Changeset 1990853
- Timestamp:
- 12/10/2018 02:31:17 PM (7 years ago)
- Location:
- jibber-chat/trunk
- Files:
-
- 4 edited
-
inc/JC_Pages/Jibber_Chat_Admin.php (modified) (6 diffs)
-
inc/Jibber_Chat_Init.php (modified) (2 diffs)
-
jibber-chat.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
jibber-chat/trunk/inc/JC_Pages/Jibber_Chat_Admin.php
r1860379 r1990853 42 42 43 43 $this->pages = 44 [45 [44 array( 45 array( 46 46 'page_title'=> 'Jibber Chat', 47 47 'menu_title'=> 'Jibber Chat', … … 51 51 'icon_url'=> 'data:image/svg+xml;base64,' . base64_encode($iconData), 52 52 'position'=> 110 53 ]54 ];53 ) 54 ); 55 55 } 56 56 57 57 // Create input fields on page and set options 58 58 public function jibber_chat_setSettings() { 59 $args = [60 [59 $args = array( 60 array( 61 61 'option_group'=> 'jibberchat_options_group', 62 62 'option_name'=> 'jibber_chat_ID', 63 63 'callback'=> array($this->callbacks, 'jibber_chat_OptionsGroup') 64 ],65 [64 ), 65 array( 66 66 'option_group'=> 'jibberchat_options_group', 67 67 'option_name'=> 'jibber_chat_hideFrontPage', 68 68 'callback'=> array($this->callbacks, 'jibber_chat_OptionsGroup') 69 ]70 ];69 ) 70 ); 71 71 72 72 $this->settings->jibber_chat_setSettings($args); … … 74 74 75 75 public function jibber_chat_setSections() { 76 $args = [77 [76 $args = array( 77 array( 78 78 'id'=> 'jibberchat_admin_index', 79 79 'title'=> 'Link up your Jibber Chat', 80 80 'callback'=> array($this->callbacks, 'jibber_chat_AdminSection'), 81 81 'page'=> 'jibber_chat' 82 ]83 ];82 ) 83 ); 84 84 85 85 $this->settings->jibber_chat_setSections($args); … … 87 87 88 88 public function jibber_chat_setFields() { 89 $args = [90 [89 $args = array( 90 array( 91 91 'id'=> 'jibber_chat_ID', 92 92 'title'=> 'Enter your Company ID here:', … … 98 98 'class'=> 'jibber_chat_IDClass' 99 99 ) 100 ],101 [100 ), 101 array( 102 102 'id'=> 'jibber_chat_hideFrontPage', 103 103 'title'=> 'Hide from front page:', … … 109 109 'class'=> 'jibber_chat_HideFrontPageClass' 110 110 ) 111 ]112 ];111 ) 112 ); 113 113 114 114 $this->settings->jibber_chat_setFields($args); -
jibber-chat/trunk/inc/Jibber_Chat_Init.php
r1860379 r1990853 11 11 // Store all the classes inside an array and return array of classes 12 12 public static function jibber_chat_get_services() { 13 return [ 13 14 15 $array_classes = array( 14 16 JC_Pages\Jibber_Chat_Admin::class, 15 17 JC_Base\Jibber_Chat_Enqueue::class, 16 18 JC_Base\Jibber_Chat_SettingsLink::class, 17 19 JC_Base\Jibber_Chat_PluginScript::class 18 ]; 20 ); 21 22 return $array_classes; 23 19 24 } 20 25 … … 29 34 } 30 35 36 private static function console_log( $data ){ 37 echo '<script>'; 38 echo 'console.log('. json_encode( $data ) .')'; 39 echo '</script>'; 40 } 41 31 42 // Initialize the class and return new instance of the class 32 43 private static function jibber_chat_instantiate($class) { -
jibber-chat/trunk/jibber-chat.php
r1978068 r1990853 7 7 Plugin Name: Jibber Chat 8 8 Description: Plugin for Jibber Chat 9 Version: 1.0. 39 Version: 1.0.4 10 10 Author: Jibber AB 11 11 Author URI: https://jibber.social/ -
jibber-chat/trunk/readme.txt
r1978068 r1990853 3 3 Tags: chat, chat online, contact plugin, customer support, free chat, chat software, live chat, live chat, online chat, online support, website chat, wordpress chat, jibber, jibber chat 4 4 Requires at least: 4.0 5 Tested up to: 4.9.56 Stable tag: 4.9.57 Requires PHP: 7.0.05 Tested up to: 5.0 6 Stable tag: 5.0 7 Requires PHP: 5.3 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.