Plugin Directory

Changeset 1537552


Ignore:
Timestamp:
11/21/2016 01:08:07 PM (9 years ago)
Author:
sendmachine
Message:

added customisable subscribe button label

Location:
sendmachine
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • sendmachine/tags/1.0.11/includes/sendmachine_subscribe_manager.php

    r1481448 r1537552  
    138138        $notices = $this->subscribe_notification && $this->subscribe_notification['form_nr'] == $this->form_count ? "<div class='".$this->subscribe_notification['status']."' >".$msg."</div>" : "";
    139139        $submit_action = isset($this->app['list']['reload_subscribe']) && $this->app['list']['reload_subscribe'] ? "" : "subscribe_user(this);return false;" ;
     140               
     141        $subscribe_label = $this->app['list']['label_submit_button'] ? $this->app['list']['label_submit_button'] : __('Subscribe', SM_LANGUAGE_DOMAIN);
    140142       
    141143        return ''
     
    146148                . '<input type="hidden" name="sm_form_nr" value="'.$this->form_count.'"/> '
    147149                . $list_fields
    148                 . '<div class="sm_wp_form_submit_button_wrapper"><input class="sm_wp_form_submit_button" type="submit" value="'.__('Subscribe', SM_LANGUAGE_DOMAIN).'" /></div>'
     150                . '<div class="sm_wp_form_submit_button_wrapper"><input class="sm_wp_form_submit_button" type="submit" value="'. $subscribe_label .'" /></div>'
    149151                . '<div class="sm_wp_sub_req_resp" >' . $notices . '</div>'
    150152                . '</form>'
  • sendmachine/tags/1.0.11/readme.txt

    r1481453 r1537552  
    44Requires at least: 3.2.1
    55Tested up to: 4.6
    6 Stable tag: 1.0.10
     6Stable tag: 1.0.11
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9696== Changelog ==
    9797
     98= 1.0.11 =
     99* Added customisable subscribe button label
     100
    98101= 1.0.10 =
    99102* Tested plugin up to WP v4.6
  • sendmachine/tags/1.0.11/sendmachine_wp.php

    r1481448 r1537552  
    55  Plugin URI: https://www.sendmachine.com
    66  Description: The official Sendmachine plugin featuring subscribe forms, users sync, news feed, email sending and transactional campaigns.
    7   Version: 1.0.10
     7  Version: 1.0.11
    88  Author: Sendmachine team
    99  Author URI: http://developers.sendmachine.com/
  • sendmachine/tags/1.0.11/views/wp_sm_list_settings.php

    r1226818 r1537552  
    118118                    </td>
    119119                </tr>
     120                <tr>
     121                    <td class='sm_row_title'>
     122                        <span><?php _e("Submit button label", SM_LANGUAGE_DOMAIN); ?></span>
     123                    </td>
     124                    <td class='sm_row_content' colspan="2">
     125                        <input type="text" name="update[list][label_submit_button]" class="widefat" value="<?php echo $this->app['list']['label_submit_button']; ?>" />
     126                    </td>
     127                </tr>
    120128                <?php
    121129                    if(!empty($this->app['list']['fields'])){
  • sendmachine/trunk/includes/sendmachine_subscribe_manager.php

    r1481448 r1537552  
    138138        $notices = $this->subscribe_notification && $this->subscribe_notification['form_nr'] == $this->form_count ? "<div class='".$this->subscribe_notification['status']."' >".$msg."</div>" : "";
    139139        $submit_action = isset($this->app['list']['reload_subscribe']) && $this->app['list']['reload_subscribe'] ? "" : "subscribe_user(this);return false;" ;
     140               
     141        $subscribe_label = $this->app['list']['label_submit_button'] ? $this->app['list']['label_submit_button'] : __('Subscribe', SM_LANGUAGE_DOMAIN);
    140142       
    141143        return ''
     
    146148                . '<input type="hidden" name="sm_form_nr" value="'.$this->form_count.'"/> '
    147149                . $list_fields
    148                 . '<div class="sm_wp_form_submit_button_wrapper"><input class="sm_wp_form_submit_button" type="submit" value="'.__('Subscribe', SM_LANGUAGE_DOMAIN).'" /></div>'
     150                . '<div class="sm_wp_form_submit_button_wrapper"><input class="sm_wp_form_submit_button" type="submit" value="'. $subscribe_label .'" /></div>'
    149151                . '<div class="sm_wp_sub_req_resp" >' . $notices . '</div>'
    150152                . '</form>'
  • sendmachine/trunk/readme.txt

    r1481453 r1537552  
    44Requires at least: 3.2.1
    55Tested up to: 4.6
    6 Stable tag: 1.0.10
     6Stable tag: 1.0.11
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9696== Changelog ==
    9797
     98= 1.0.11 =
     99* Added customisable subscribe button label
     100
    98101= 1.0.10 =
    99102* Tested plugin up to WP v4.6
  • sendmachine/trunk/sendmachine_wp.php

    r1481448 r1537552  
    55  Plugin URI: https://www.sendmachine.com
    66  Description: The official Sendmachine plugin featuring subscribe forms, users sync, news feed, email sending and transactional campaigns.
    7   Version: 1.0.10
     7  Version: 1.0.11
    88  Author: Sendmachine team
    99  Author URI: http://developers.sendmachine.com/
  • sendmachine/trunk/views/wp_sm_list_settings.php

    r1226818 r1537552  
    118118                    </td>
    119119                </tr>
     120                <tr>
     121                    <td class='sm_row_title'>
     122                        <span><?php _e("Submit button label", SM_LANGUAGE_DOMAIN); ?></span>
     123                    </td>
     124                    <td class='sm_row_content' colspan="2">
     125                        <input type="text" name="update[list][label_submit_button]" class="widefat" value="<?php echo $this->app['list']['label_submit_button']; ?>" />
     126                    </td>
     127                </tr>
    120128                <?php
    121129                    if(!empty($this->app['list']['fields'])){
Note: See TracChangeset for help on using the changeset viewer.