Plugin Directory

Changeset 1990853


Ignore:
Timestamp:
12/10/2018 02:31:17 PM (7 years ago)
Author:
jibberchat
Message:

Changed to old array syntax

Location:
jibber-chat/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • jibber-chat/trunk/inc/JC_Pages/Jibber_Chat_Admin.php

    r1860379 r1990853  
    4242
    4343        $this->pages =
    44         [
    45             [
     44        array(
     45            array(
    4646            'page_title'=> 'Jibber Chat',
    4747            'menu_title'=> 'Jibber Chat',
     
    5151            'icon_url'=> 'data:image/svg+xml;base64,' . base64_encode($iconData),
    5252            'position'=> 110
    53             ]
    54         ];
     53            )
     54        );
    5555    }
    5656
    5757    // Create input fields on page and set options
    5858    public function jibber_chat_setSettings() {
    59         $args = [
    60             [
     59        $args = array(
     60            array(
    6161                'option_group'=> 'jibberchat_options_group',
    6262                'option_name'=> 'jibber_chat_ID',
    6363                'callback'=> array($this->callbacks, 'jibber_chat_OptionsGroup')
    64             ],
    65             [
     64            ),
     65            array(
    6666                'option_group'=> 'jibberchat_options_group',
    6767                'option_name'=> 'jibber_chat_hideFrontPage',
    6868                'callback'=> array($this->callbacks, 'jibber_chat_OptionsGroup')
    69             ]
    70         ];
     69            )
     70        );
    7171
    7272        $this->settings->jibber_chat_setSettings($args);
     
    7474
    7575    public function jibber_chat_setSections() {
    76         $args = [
    77             [
     76        $args = array(
     77            array(
    7878                'id'=> 'jibberchat_admin_index',
    7979                'title'=> 'Link up your Jibber Chat',
    8080                'callback'=> array($this->callbacks, 'jibber_chat_AdminSection'),
    8181                'page'=> 'jibber_chat'
    82             ]
    83         ];
     82            )
     83        );
    8484
    8585        $this->settings->jibber_chat_setSections($args);
     
    8787
    8888    public function jibber_chat_setFields() {
    89         $args = [
    90             [
     89        $args = array(
     90            array(
    9191                'id'=> 'jibber_chat_ID',
    9292                'title'=> 'Enter your Company ID here:',
     
    9898                    'class'=> 'jibber_chat_IDClass'
    9999                )
    100             ],
    101             [
     100            ),
     101            array(
    102102                'id'=> 'jibber_chat_hideFrontPage',
    103103                'title'=> 'Hide from front page:',
     
    109109                    'class'=> 'jibber_chat_HideFrontPageClass'
    110110                )
    111             ]
    112         ];
     111            )
     112        );
    113113
    114114        $this->settings->jibber_chat_setFields($args);
  • jibber-chat/trunk/inc/Jibber_Chat_Init.php

    r1860379 r1990853  
    1111    // Store all the classes inside an array and return array of classes
    1212    public static function jibber_chat_get_services() {
    13         return [
     13       
     14
     15        $array_classes = array(
    1416            JC_Pages\Jibber_Chat_Admin::class,
    1517            JC_Base\Jibber_Chat_Enqueue::class,
    1618            JC_Base\Jibber_Chat_SettingsLink::class,
    1719            JC_Base\Jibber_Chat_PluginScript::class
    18         ];
     20        );
     21
     22        return $array_classes;
     23
    1924    }
    2025
     
    2934    }
    3035
     36    private static function console_log( $data ){
     37        echo '<script>';
     38        echo 'console.log('. json_encode( $data ) .')';
     39        echo '</script>';
     40      }
     41
    3142    // Initialize the class and return new instance of the class
    3243    private static function jibber_chat_instantiate($class) {
  • jibber-chat/trunk/jibber-chat.php

    r1978068 r1990853  
    77Plugin Name: Jibber Chat
    88Description: Plugin for Jibber Chat
    9 Version:     1.0.3
     9Version:     1.0.4
    1010Author:      Jibber AB
    1111Author URI:  https://jibber.social/
  • jibber-chat/trunk/readme.txt

    r1978068 r1990853  
    33Tags: 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
    44Requires at least: 4.0
    5 Tested up to: 4.9.5
    6 Stable tag: 4.9.5
    7 Requires PHP: 7.0.0
     5Tested up to: 5.0
     6Stable tag: 5.0
     7Requires PHP: 5.3
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.