Plugin Directory

Changeset 2399191


Ignore:
Timestamp:
10/14/2020 06:56:20 AM (5 years ago)
Author:
wilsos6
Message:

v2.2.7 commit

Location:
joy-of-text/trunk
Files:
2 added
2 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • joy-of-text/trunk/classes/class-jot-plugin-admin.php

    r2120548 r2399191  
    2727            // Register the settings screen within WordPress.
    2828            add_action( 'admin_menu', array( $this, 'register_settings_screen' ) );
     29       
     30            // Add toolbar link to JOT
     31            add_action( 'admin_bar_menu', array($this,'add_jot_toolbar_link'), 999);
    2932        } // End __construct()
    3033       
     
    4851            add_menu_page(__('Messaging', 'jot-plugin'), __('Messaging', 'jot-plugin'), 'manage_options', 'jot-plugin', array( $this, 'settings_screen' ),'dashicons-phone');
    4952        } // End register_settings_screen()
     53       
     54        /**
     55        * add a link to the WP Toolbar
     56        */
     57        function add_jot_toolbar_link($wp_admin_bar) {
     58            $toolbar_label = __( 'JOT', 'jot-plugin' );
     59            $toolbar_label = apply_filters('jot_whitelabel_dashboard_admin_toolbar_label',$toolbar_label);
     60           
     61            $args = array(
     62                'id' => 'jot-messages-toolbar',
     63                'title' => '<span class="ab-icon"></span><span class="ab-label">'. $toolbar_label .'</span>',
     64                'href' => admin_url('admin.php?page=jot-plugin'),
     65                'meta' => array(
     66                    'target'=> '_self',
     67                    'class' => 'jot-messages-toolbar',
     68                    'title' => 'JOT Messaging'
     69                    )
     70            );
     71            $wp_admin_bar->add_node($args);
     72        }
    5073       
    5174        /**
  • joy-of-text/trunk/classes/class-jot-plugin-settings.php

    r2327333 r2399191  
    208208                        'section' => 'messages',
    209209                        'subform' => 'main',
    210                         'maxlength' => 640,   
     210                        'maxlength' => 640,
     211                        'rows' =>5,
     212                        'cols' =>100,
    211213                        'description' => sprintf( __("You can include the %s - %%name%%, %%number%% or %%lastpost%% into your message.","jot-plugin"),$tagurl),
    212214                        'markup' => "<span id='jot-message-count-message'></span>"
     
    292294                        'section' => 'group-list',
    293295                        'subform' => 'main',
    294                         'maxlength' => 160,   
     296                        'maxlength' => 160,
     297                        'rows' =>5,
     298                        'cols' =>100,
    295299                        'description' => sprintf( __("You can include the %s - %%name%%, %%number%% or %%lastpost%% into your welcome message.","jot-plugin"),$tagurl),
    296300                        'markup' => "<span id='jot-message-count-welcome'></span>"
     
    16221626       
    16231627       
    1624        
    16251628        /**
    16261629        * Render HTML markup for the "textarea" field type.
     
    16281631        */
    16291632        protected function render_field_textarea ( $key, $args ) {
    1630            
     1633               
    16311634                if (isset($args['maxlength'])) {
    16321635                    $maxlength = " maxlength='" . $args['maxlength']. "' ";
     
    16341637                    $maxlength = " ";
    16351638                }
    1636                
    16371639                if (isset($args['cols'])) {
    16381640                    $cols = $args['cols'];
     
    16401642                    $cols = 40;
    16411643                }
    1642                
    16431644                if (isset($args['rows'])) {
    16441645                    $rows = $args['rows'];
     
    16461647                    $rows = 5;
    16471648                }
     1649                       
     1650       
     1651                if (isset($args['wrap'])) {
     1652                    $wrap = " wrap='off' ";
     1653                } else {
     1654                    $wrap = "";
     1655                }
    16481656       
    16491657                if (isset($args['placeholder'])) {
     
    16531661                }
    16541662               
    1655                            
    16561663                if (isset($args['readonly'])) {
    16571664                    $readonly = ' readonly ';
    16581665                } else {
    16591666                    $readonly = "";
    1660                 }       
     1667                }
     1668       
     1669        if (isset($args['hidden'])) {
     1670                    $hidden = ' style="display:none" ';
     1671                } else {
     1672                    $hidden = "";
     1673                }   
    16611674                 
    1662                 $html = '<textarea id="' . esc_attr( $key ) . '" name="' . esc_attr( $key ) . '" cols="' . $cols . '" rows="' . $rows. '" placeholder="' . $placeholder .'"' . $maxlength. $readonly . '>' . esc_attr( $args['value']) . '</textarea>' . "\n";
     1675                $html = '<textarea id="' . esc_attr( $key ) . '" name="' . esc_attr( $key ) . '" cols="' . $cols . '" rows="' . $rows. '" placeholder="' . $placeholder .'"' . $maxlength. $readonly . $wrap . $hidden . '>' . $args['value'] . '</textarea>' . "\n";
    16631676               
     1677           
    16641678            return apply_filters('jot_render_field_textarea',$html);
    16651679        } // End render_field_textarea()
    16661680       
    1667        
     1681         
    16681682        /**
    16691683        * Render HTML markup for the "checkbox" field type.
  • joy-of-text/trunk/joy-of-text.php

    r2327333 r2399191  
    1717 * Plugin URI:        http://www.getcloudsms.com
    1818 * Description:       Send SMS and text-to-voice messages to your customers, subscribers, followers, members and friends.
    19  * Version:           2.2.6
     19 * Version:           2.2.7
    2020 * Author:            Stuart Wilson
    2121 * Author URI:        http://www.getcloudsms.com
     
    3232  *
    3333  * Version
     34  * 2.2.7 - Minor change to the layout of the Messages tab.
     35  *       - Added quick link to WP toolbar.
    3436  * 2.2.6 - Stop double clicking on the "Send message" button.
    3537  *         Show Twilio account balance.
     
    118120            $this->product = "JOT Lite";                       
    119121            $this->token = 'jot-plugin';
    120             $this->version = '2.2.6';
     122            $this->version = '2.2.7';
    121123            $this->debug = false;           
    122124           
  • joy-of-text/trunk/readme.txt

    r2327346 r2399191  
    44Tags:  twilio, message, sms, mms, text, mobile, sms scheduler, scheduler, woocommerce, membermouse, voice message, notification, subscribe, buddypress, gravity forms
    55Requires at least: 3.0.1
    6 Tested up to: 5.4.2
    7 Stable tag: 5.4.2
     6Tested up to: 5.5.1
     7Stable tag: 5.5.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    258258== Changelog ==
    259259
     260= 2.2.7 =
     261* Minor change to the layout of the Messages tab.
     262* Added quick link to WP toolbar.
     263
    260264= 2.2.6 =
    261265* Stop double clicking on the "Send message" button.
     
    381385== Upgrade Notice ==
    382386
    383 = 2.2.6 =
    384 * Stop double clicking on the "Send message" button.
    385 * Show Twilio account balance on Messaging-Settings-Twilio Settings page.
    386 * Added functions to support changes to the JOT Scheduler plugin.
    387 
     387= 2.2.7 =
     388* Minor change to the layout of the Messages tab.
     389* Added quick link to WP toolbar.
     390
Note: See TracChangeset for help on using the changeset viewer.