Plugin Directory

Changeset 3348724


Ignore:
Timestamp:
08/22/2025 03:40:50 PM (5 months ago)
Author:
chamawp
Message:

readme.txt

Location:
chama/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • chama/trunk/chama.php

    r3348711 r3348724  
    44     * Plugin URI:  https://www.chamawp.com
    55     * Description: Monetize your content with donations, paid subscriptions, crowdfunding and commissions.
    6      * Version:     1.0.9
     6     * Version:     1.0.10
    77     * Author:      Leetoo
    88     * Author URI:  https://leetoo.net/
     
    3434
    3535                if (! defined('CHAMA_VERSION')) {
    36                     define('CHAMA_VERSION', '1.0.9');
     36                    define('CHAMA_VERSION', '1.0.10');
    3737                }
    3838                if (! defined('CHAMAWP_URL')) {
  • chama/trunk/inc/options.php

    r3348313 r3348724  
    241241        if (! get_option('chama_subscription_cancellation_template')) {
    242242            update_option('chama_subscription_cancellation_template', chama_get_default_email_template('chama_subscription_cancellation_template'));
     243        }
     244
     245        // Newsletter form defaults
     246        if (! get_option('chama_newsletter_form_background_color')) {
     247            add_option('chama_newsletter_form_background_color', '#f9fafb');
     248        }
     249        if (! get_option('chama_newsletter_form_border_color')) {
     250            add_option('chama_newsletter_form_border_color', '#d4d4d4');
     251        }
     252        if (! get_option('chama_newsletter_form_border_radius')) {
     253            add_option('chama_newsletter_form_border_radius', '4');
     254        }
     255        if (! get_option('chama_newsletter_form_background_image')) {
     256            add_option('chama_newsletter_form_background_image', '');
     257        }
     258        if (! get_option('chama_newsletter_form_background_transparency')) {
     259            add_option('chama_newsletter_form_background_transparency', '20');
     260        }
     261
     262        // Header defaults
     263        if (! get_option('chama_newsletter_header_font_color')) {
     264            add_option('chama_newsletter_header_font_color', '#000000');
     265        }
     266        if (! get_option('chama_newsletter_header_font_size')) {
     267            add_option('chama_newsletter_header_font_size', '24');
     268        }
     269        if (! get_option('chama_newsletter_header_font_weight')) {
     270            add_option('chama_newsletter_header_font_weight', 'normal');
     271        }
     272        if (! get_option('chama_newsletter_form_header_text')) {
     273            update_option('chama_newsletter_form_header_text', 'Join the Newsletter');
     274        }
     275
     276        // Sub Header defaults
     277        if (! get_option('chama_newsletter_sub_header_font_color')) {
     278            add_option('chama_newsletter_sub_header_font_color', '#686868');
     279        }
     280        if (! get_option('chama_newsletter_sub_header_font_size')) {
     281            add_option('chama_newsletter_sub_header_font_size', '18');
     282        }
     283        if (! get_option('chama_newsletter_form_sub_header_text')) {
     284            update_option('chama_newsletter_form_sub_header_text', 'Subscribe to our newsletter get the latest news');
     285        }
     286
     287        // Email field defaults
     288        if (! get_option('chama_newsletter_email_font_color')) {
     289            add_option('chama_newsletter_email_font_color', '#000000');
     290        }
     291        if (! get_option('chama_newsletter_email_border_color')) {
     292            add_option('chama_newsletter_email_border_color', '#e3e3e3');
     293        }
     294        if (! get_option('chama_newsletter_email_field_border_radius')) {
     295            add_option('chama_newsletter_email_field_border_radius', '4');
     296        }
     297        if (! get_option('chama_newsletter_email_font_weight')) {
     298            add_option('chama_newsletter_email_font_weight', 'normal');
     299        }
     300        if (! get_option('chama_newsletter_email_field_label')) {
     301            update_option('chama_newsletter_email_field_label', 'Email address');
     302        }
     303
     304        // Button defaults
     305        if (! get_option('chama_newsletter_button_font_color')) {
     306            add_option('chama_newsletter_button_font_color', '#ffffff');
     307        }
     308        if (! get_option('chama_newsletter_button_border_radius')) {
     309            add_option('chama_newsletter_button_border_radius', '4');
     310        }
     311        if (! get_option('chama_newsletter_button_font_weight')) {
     312            add_option('chama_newsletter_button_font_weight', 'normal');
     313        }
     314        if (! get_option('chama_newsletter_button_background_color')) {
     315            add_option('chama_newsletter_button_background_color', '#ff4757');
    243316        }
    244317
  • chama/trunk/inc/shortcodes.php

    r3348313 r3348724  
    472472        }
    473473    }
    474     $header_text       = get_option('chama_newsletter_form_header_text', 'Join the Newsletter');
    475     $sub_eader_text    = get_option('chama_newsletter_form_sub_header_text', 'Subscribe to our newsletter get the latest news');
    476     $email_placeholder = get_option('chama_newsletter_email_field_label', 'Email address');
     474    $header_text       = ( $val = get_option('chama_newsletter_form_header_text') ) ? $val : 'Join the Newsletter';
     475    $sub_header_text   = ( $val = get_option('chama_newsletter_form_sub_header_text') ) ? $val : 'Subscribe to our newsletter get the latest news';
     476    $email_placeholder = ( $val = get_option('chama_newsletter_email_field_label') ) ? $val : 'Email address';
     477
    477478?>
    478479<div class="chama-newsletter-form-wrapper">
     
    483484
    484485        <h2><?php echo esc_html($header_text); ?></h2>
    485         <p><?php echo esc_html($sub_eader_text); ?></p>
     486        <p><?php echo esc_html($sub_header_text); ?></p>
    486487            <?php wp_nonce_field('chama_newsletter_signup', 'chama_newsletter_nonce'); ?>
    487488        <input type="hidden" name="chama_action" value="process-newsletter-signup"/>
  • chama/trunk/readme.txt

    r3348711 r3348724  
    8282
    8383== Changelog ==
     84
     85= 1.0.10 - 2025-08-22 =
     86* UPDATE: Optimization of newsletter form functionality.
    8487
    8588= 1.0.9 - 2025-08-22 =
Note: See TracChangeset for help on using the changeset viewer.