Plugin Directory

Changeset 3457302


Ignore:
Timestamp:
02/09/2026 05:26:34 PM (11 days ago)
Author:
dragwyb
Message:

Update to version 1.0.4 from GitHub

Location:
dragwyb-click-to-chat
Files:
32 added
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • dragwyb-click-to-chat/tags/1.0.4/dragwyb-click-to-chat.php

    r3446508 r3457302  
    55 * Description: Connect with visitors via Facebook, WhatsApp, Telegram etc.
    66 * Author: Dragwyb
    7  * Version: 1.0.3
     7 * Version: 1.0.4
    88 * Text Domain: dragwyb-click-to-chat
    99 * License: GPLv2 or later
     
    1212if (! defined('ABSPATH')) exit;
    1313
    14 define('DCTC_PLUGIN_DIR', plugin_dir_path(__FILE__));
    15 define('DCTC_PLUGIN_URL', plugin_dir_url(__FILE__));
    16 define('DCTC_VERSION', '1.0.3');
    17 class DCTC_Click_To_Chat
    18 {
     14use DRAGWYB_CTC\Admin\Review\DCTC_Review_Form;
    1915
    20     private static $instance = null;
     16!defined('DCTC_FILE') && define('DCTC_FILE', __FILE__);
     17!defined('DCTC_PLUGIN_DIR') && define('DCTC_PLUGIN_DIR', plugin_dir_path(__FILE__));
     18!defined('DCTC_PLUGIN_URL') && define('DCTC_PLUGIN_URL', plugin_dir_url(__FILE__));
     19!defined('DCTC_VERSION') && define('DCTC_VERSION', '1.0.4');
    2120
    22     public function init()
     21if (!class_exists('DCTC_Click_To_Chat')) {
     22
     23    class DCTC_Click_To_Chat
    2324    {
    24         if (is_admin()) {
    25             require_once DCTC_PLUGIN_DIR . 'admin/settings.php';
     25
     26        private static $instance = null;
     27
     28        public static function get_instance()
     29        {
     30            if (null === self::$instance) {
     31                self::$instance = new self();
     32            }
     33            return self::$instance;
    2634        }
    27         require_once DCTC_PLUGIN_DIR . 'includes/channel-registry.php';
    28         require_once DCTC_PLUGIN_DIR . 'includes/frontend.php';
     35
     36        public function __construct()
     37        {
     38            $this->required_files();
     39            add_action('plugins_loaded', array($this, 'init'));
     40            register_activation_hook(DCTC_FILE, array($this, 'plugin_activated'));
     41        }
     42
     43
     44        public function init()
     45        {
     46            if (is_admin()) {
     47                require_once DCTC_PLUGIN_DIR . 'admin/settings.php';
     48            }
     49            require_once DCTC_PLUGIN_DIR . 'includes/channel-registry.php';
     50            require_once DCTC_PLUGIN_DIR . 'includes/frontend.php';
     51        }
     52
     53        /**
     54         * Includes necessary files for the plugin based on the current context.
     55         */
     56        public function required_files()
     57        {
     58            // Include the class for registering plugin functionality
     59            if (is_admin()) {
     60                if (file_exists(DCTC_PLUGIN_DIR . 'admin/feedback/class-dctc-feedback-form.php')) {
     61                    require_once DCTC_PLUGIN_DIR . 'admin/feedback/class-dctc-feedback-form.php';
     62                }
     63
     64                if (file_exists(DCTC_PLUGIN_DIR . 'admin/review/class-dctc-review-form.php')) {
     65                    require_once DCTC_PLUGIN_DIR . 'admin/review/class-dctc-review-form.php';
     66                }
     67                // Include the class for handling feedback form data in the admin area
     68                if (class_exists('DCTC_Feedback_Form')) {
     69                    DCTC_Feedback_Form::get_instance();
     70                }
     71
     72                $already_rated = get_option('dragwyb_ctc_already_reviewd', false);
     73
     74                if (!$already_rated && class_exists(DCTC_Review_Form::class)) {
     75                    DCTC_Review_Form::get_instance();
     76                }
     77            }
     78        }
     79
     80        /**
     81         * Placeholder for activation logic.
     82         * This method is called when the plugin is activated.
     83         * It updates options for installation date and plugin version.
     84         */
     85        public function plugin_activated()
     86        {
     87            // Installation data
     88            update_option('dragwyb_ctc_installation_date', gmdate('Y-m-d H:i:s'));
     89            // Plugin version
     90            update_option('dragwyb_ctc_version', DCTC_VERSION);
     91        }
    2992    }
    3093
    31     public static function get_instance()
    32     {
    33         if (null === self::$instance) {
    34             self::$instance = new DCTC_Click_To_Chat();
    35             self::$instance->init();
    36         }
    37         return self::$instance;
    38     }
     94    // Initialize the plugin.
     95    $dragwyb_click_to_chat = DCTC_Click_To_Chat::get_instance();
    3996}
    40 
    41 add_action('plugins_loaded', array('DCTC_Click_To_Chat', 'get_instance'));
  • dragwyb-click-to-chat/tags/1.0.4/readme.txt

    r3446510 r3457302  
    44Requires at least: 5.0
    55Tested up to: 6.9
    6 Stable tag: 1.0.3
     6Stable tag: 1.0.4
    77Requires PHP: 7.2
    88License: GPLv2 or later
     
    8989== Changelog ==
    9090
     91= 1.0.4 =
     92* Added feedback & review notice.
     93
    9194= 1.0.3 =
    9295* SEO optimization for **multi-channel social chat** and **floating button** keywords.
  • dragwyb-click-to-chat/trunk/dragwyb-click-to-chat.php

    r3446508 r3457302  
    55 * Description: Connect with visitors via Facebook, WhatsApp, Telegram etc.
    66 * Author: Dragwyb
    7  * Version: 1.0.3
     7 * Version: 1.0.4
    88 * Text Domain: dragwyb-click-to-chat
    99 * License: GPLv2 or later
     
    1212if (! defined('ABSPATH')) exit;
    1313
    14 define('DCTC_PLUGIN_DIR', plugin_dir_path(__FILE__));
    15 define('DCTC_PLUGIN_URL', plugin_dir_url(__FILE__));
    16 define('DCTC_VERSION', '1.0.3');
    17 class DCTC_Click_To_Chat
    18 {
     14use DRAGWYB_CTC\Admin\Review\DCTC_Review_Form;
    1915
    20     private static $instance = null;
     16!defined('DCTC_FILE') && define('DCTC_FILE', __FILE__);
     17!defined('DCTC_PLUGIN_DIR') && define('DCTC_PLUGIN_DIR', plugin_dir_path(__FILE__));
     18!defined('DCTC_PLUGIN_URL') && define('DCTC_PLUGIN_URL', plugin_dir_url(__FILE__));
     19!defined('DCTC_VERSION') && define('DCTC_VERSION', '1.0.4');
    2120
    22     public function init()
     21if (!class_exists('DCTC_Click_To_Chat')) {
     22
     23    class DCTC_Click_To_Chat
    2324    {
    24         if (is_admin()) {
    25             require_once DCTC_PLUGIN_DIR . 'admin/settings.php';
     25
     26        private static $instance = null;
     27
     28        public static function get_instance()
     29        {
     30            if (null === self::$instance) {
     31                self::$instance = new self();
     32            }
     33            return self::$instance;
    2634        }
    27         require_once DCTC_PLUGIN_DIR . 'includes/channel-registry.php';
    28         require_once DCTC_PLUGIN_DIR . 'includes/frontend.php';
     35
     36        public function __construct()
     37        {
     38            $this->required_files();
     39            add_action('plugins_loaded', array($this, 'init'));
     40            register_activation_hook(DCTC_FILE, array($this, 'plugin_activated'));
     41        }
     42
     43
     44        public function init()
     45        {
     46            if (is_admin()) {
     47                require_once DCTC_PLUGIN_DIR . 'admin/settings.php';
     48            }
     49            require_once DCTC_PLUGIN_DIR . 'includes/channel-registry.php';
     50            require_once DCTC_PLUGIN_DIR . 'includes/frontend.php';
     51        }
     52
     53        /**
     54         * Includes necessary files for the plugin based on the current context.
     55         */
     56        public function required_files()
     57        {
     58            // Include the class for registering plugin functionality
     59            if (is_admin()) {
     60                if (file_exists(DCTC_PLUGIN_DIR . 'admin/feedback/class-dctc-feedback-form.php')) {
     61                    require_once DCTC_PLUGIN_DIR . 'admin/feedback/class-dctc-feedback-form.php';
     62                }
     63
     64                if (file_exists(DCTC_PLUGIN_DIR . 'admin/review/class-dctc-review-form.php')) {
     65                    require_once DCTC_PLUGIN_DIR . 'admin/review/class-dctc-review-form.php';
     66                }
     67                // Include the class for handling feedback form data in the admin area
     68                if (class_exists('DCTC_Feedback_Form')) {
     69                    DCTC_Feedback_Form::get_instance();
     70                }
     71
     72                $already_rated = get_option('dragwyb_ctc_already_reviewd', false);
     73
     74                if (!$already_rated && class_exists(DCTC_Review_Form::class)) {
     75                    DCTC_Review_Form::get_instance();
     76                }
     77            }
     78        }
     79
     80        /**
     81         * Placeholder for activation logic.
     82         * This method is called when the plugin is activated.
     83         * It updates options for installation date and plugin version.
     84         */
     85        public function plugin_activated()
     86        {
     87            // Installation data
     88            update_option('dragwyb_ctc_installation_date', gmdate('Y-m-d H:i:s'));
     89            // Plugin version
     90            update_option('dragwyb_ctc_version', DCTC_VERSION);
     91        }
    2992    }
    3093
    31     public static function get_instance()
    32     {
    33         if (null === self::$instance) {
    34             self::$instance = new DCTC_Click_To_Chat();
    35             self::$instance->init();
    36         }
    37         return self::$instance;
    38     }
     94    // Initialize the plugin.
     95    $dragwyb_click_to_chat = DCTC_Click_To_Chat::get_instance();
    3996}
    40 
    41 add_action('plugins_loaded', array('DCTC_Click_To_Chat', 'get_instance'));
  • dragwyb-click-to-chat/trunk/readme.txt

    r3446510 r3457302  
    44Requires at least: 5.0
    55Tested up to: 6.9
    6 Stable tag: 1.0.3
     6Stable tag: 1.0.4
    77Requires PHP: 7.2
    88License: GPLv2 or later
     
    8989== Changelog ==
    9090
     91= 1.0.4 =
     92* Added feedback & review notice.
     93
    9194= 1.0.3 =
    9295* SEO optimization for **multi-channel social chat** and **floating button** keywords.
Note: See TracChangeset for help on using the changeset viewer.