Changeset 2399191
- Timestamp:
- 10/14/2020 06:56:20 AM (5 years ago)
- Location:
- joy-of-text/trunk
- Files:
-
- 2 added
- 2 deleted
- 4 edited
-
classes/class-jot-plugin-admin.php (modified) (2 diffs)
-
classes/class-jot-plugin-settings.php (modified) (8 diffs)
-
css/jot-2-2-6.css (deleted)
-
css/jot-2-2-7.css (added)
-
joy-of-text.php (modified) (3 diffs)
-
js/jot-messenger-2-2-6.js (deleted)
-
js/jot-messenger-2-2-7.js (added)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
joy-of-text/trunk/classes/class-jot-plugin-admin.php
r2120548 r2399191 27 27 // Register the settings screen within WordPress. 28 28 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); 29 32 } // End __construct() 30 33 … … 48 51 add_menu_page(__('Messaging', 'jot-plugin'), __('Messaging', 'jot-plugin'), 'manage_options', 'jot-plugin', array( $this, 'settings_screen' ),'dashicons-phone'); 49 52 } // 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 } 50 73 51 74 /** -
joy-of-text/trunk/classes/class-jot-plugin-settings.php
r2327333 r2399191 208 208 'section' => 'messages', 209 209 'subform' => 'main', 210 'maxlength' => 640, 210 'maxlength' => 640, 211 'rows' =>5, 212 'cols' =>100, 211 213 'description' => sprintf( __("You can include the %s - %%name%%, %%number%% or %%lastpost%% into your message.","jot-plugin"),$tagurl), 212 214 'markup' => "<span id='jot-message-count-message'></span>" … … 292 294 'section' => 'group-list', 293 295 'subform' => 'main', 294 'maxlength' => 160, 296 'maxlength' => 160, 297 'rows' =>5, 298 'cols' =>100, 295 299 'description' => sprintf( __("You can include the %s - %%name%%, %%number%% or %%lastpost%% into your welcome message.","jot-plugin"),$tagurl), 296 300 'markup' => "<span id='jot-message-count-welcome'></span>" … … 1622 1626 1623 1627 1624 1625 1628 /** 1626 1629 * Render HTML markup for the "textarea" field type. … … 1628 1631 */ 1629 1632 protected function render_field_textarea ( $key, $args ) { 1630 1633 1631 1634 if (isset($args['maxlength'])) { 1632 1635 $maxlength = " maxlength='" . $args['maxlength']. "' "; … … 1634 1637 $maxlength = " "; 1635 1638 } 1636 1637 1639 if (isset($args['cols'])) { 1638 1640 $cols = $args['cols']; … … 1640 1642 $cols = 40; 1641 1643 } 1642 1643 1644 if (isset($args['rows'])) { 1644 1645 $rows = $args['rows']; … … 1646 1647 $rows = 5; 1647 1648 } 1649 1650 1651 if (isset($args['wrap'])) { 1652 $wrap = " wrap='off' "; 1653 } else { 1654 $wrap = ""; 1655 } 1648 1656 1649 1657 if (isset($args['placeholder'])) { … … 1653 1661 } 1654 1662 1655 1656 1663 if (isset($args['readonly'])) { 1657 1664 $readonly = ' readonly '; 1658 1665 } else { 1659 1666 $readonly = ""; 1660 } 1667 } 1668 1669 if (isset($args['hidden'])) { 1670 $hidden = ' style="display:none" '; 1671 } else { 1672 $hidden = ""; 1673 } 1661 1674 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"; 1663 1676 1677 1664 1678 return apply_filters('jot_render_field_textarea',$html); 1665 1679 } // End render_field_textarea() 1666 1680 1667 1681 1668 1682 /** 1669 1683 * Render HTML markup for the "checkbox" field type. -
joy-of-text/trunk/joy-of-text.php
r2327333 r2399191 17 17 * Plugin URI: http://www.getcloudsms.com 18 18 * Description: Send SMS and text-to-voice messages to your customers, subscribers, followers, members and friends. 19 * Version: 2.2. 619 * Version: 2.2.7 20 20 * Author: Stuart Wilson 21 21 * Author URI: http://www.getcloudsms.com … … 32 32 * 33 33 * Version 34 * 2.2.7 - Minor change to the layout of the Messages tab. 35 * - Added quick link to WP toolbar. 34 36 * 2.2.6 - Stop double clicking on the "Send message" button. 35 37 * Show Twilio account balance. … … 118 120 $this->product = "JOT Lite"; 119 121 $this->token = 'jot-plugin'; 120 $this->version = '2.2. 6';122 $this->version = '2.2.7'; 121 123 $this->debug = false; 122 124 -
joy-of-text/trunk/readme.txt
r2327346 r2399191 4 4 Tags: twilio, message, sms, mms, text, mobile, sms scheduler, scheduler, woocommerce, membermouse, voice message, notification, subscribe, buddypress, gravity forms 5 5 Requires at least: 3.0.1 6 Tested up to: 5. 4.27 Stable tag: 5. 4.26 Tested up to: 5.5.1 7 Stable tag: 5.5.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 258 258 == Changelog == 259 259 260 = 2.2.7 = 261 * Minor change to the layout of the Messages tab. 262 * Added quick link to WP toolbar. 263 260 264 = 2.2.6 = 261 265 * Stop double clicking on the "Send message" button. … … 381 385 == Upgrade Notice == 382 386 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.