Changeset 3457302
- Timestamp:
- 02/09/2026 05:26:34 PM (11 days ago)
- Location:
- dragwyb-click-to-chat
- Files:
-
- 32 added
- 4 edited
- 1 copied
-
tags/1.0.4 (copied) (copied from dragwyb-click-to-chat/trunk)
-
tags/1.0.4/admin/feedback (added)
-
tags/1.0.4/admin/feedback/assets (added)
-
tags/1.0.4/admin/feedback/assets/css (added)
-
tags/1.0.4/admin/feedback/assets/css/dctc-feedback-form.css (added)
-
tags/1.0.4/admin/feedback/assets/css/dctc-feedback-form.min.css (added)
-
tags/1.0.4/admin/feedback/assets/js (added)
-
tags/1.0.4/admin/feedback/assets/js/dctc-feedback-form.js (added)
-
tags/1.0.4/admin/feedback/assets/js/dctc-feedback-form.min.js (added)
-
tags/1.0.4/admin/feedback/class-dctc-feedback-form.php (added)
-
tags/1.0.4/admin/feedback/index.php (added)
-
tags/1.0.4/admin/review (added)
-
tags/1.0.4/admin/review/class-dctc-review-form.php (added)
-
tags/1.0.4/assets/css/admin.css (added)
-
tags/1.0.4/assets/css/admin.min.css (added)
-
tags/1.0.4/assets/js/admin.js (added)
-
tags/1.0.4/assets/js/admin.min.js (added)
-
tags/1.0.4/dragwyb-click-to-chat.php (modified) (2 diffs)
-
tags/1.0.4/readme.txt (modified) (2 diffs)
-
trunk/admin/feedback (added)
-
trunk/admin/feedback/assets (added)
-
trunk/admin/feedback/assets/css (added)
-
trunk/admin/feedback/assets/css/dctc-feedback-form.css (added)
-
trunk/admin/feedback/assets/css/dctc-feedback-form.min.css (added)
-
trunk/admin/feedback/assets/js (added)
-
trunk/admin/feedback/assets/js/dctc-feedback-form.js (added)
-
trunk/admin/feedback/assets/js/dctc-feedback-form.min.js (added)
-
trunk/admin/feedback/class-dctc-feedback-form.php (added)
-
trunk/admin/feedback/index.php (added)
-
trunk/admin/review (added)
-
trunk/admin/review/class-dctc-review-form.php (added)
-
trunk/assets/css/admin.css (added)
-
trunk/assets/css/admin.min.css (added)
-
trunk/assets/js/admin.js (added)
-
trunk/assets/js/admin.min.js (added)
-
trunk/dragwyb-click-to-chat.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dragwyb-click-to-chat/tags/1.0.4/dragwyb-click-to-chat.php
r3446508 r3457302 5 5 * Description: Connect with visitors via Facebook, WhatsApp, Telegram etc. 6 6 * Author: Dragwyb 7 * Version: 1.0. 37 * Version: 1.0.4 8 8 * Text Domain: dragwyb-click-to-chat 9 9 * License: GPLv2 or later … … 12 12 if (! defined('ABSPATH')) exit; 13 13 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 { 14 use DRAGWYB_CTC\Admin\Review\DCTC_Review_Form; 19 15 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'); 21 20 22 public function init() 21 if (!class_exists('DCTC_Click_To_Chat')) { 22 23 class DCTC_Click_To_Chat 23 24 { 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; 26 34 } 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 } 29 92 } 30 93 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(); 39 96 } 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 4 4 Requires at least: 5.0 5 5 Tested up to: 6.9 6 Stable tag: 1.0. 36 Stable tag: 1.0.4 7 7 Requires PHP: 7.2 8 8 License: GPLv2 or later … … 89 89 == Changelog == 90 90 91 = 1.0.4 = 92 * Added feedback & review notice. 93 91 94 = 1.0.3 = 92 95 * SEO optimization for **multi-channel social chat** and **floating button** keywords. -
dragwyb-click-to-chat/trunk/dragwyb-click-to-chat.php
r3446508 r3457302 5 5 * Description: Connect with visitors via Facebook, WhatsApp, Telegram etc. 6 6 * Author: Dragwyb 7 * Version: 1.0. 37 * Version: 1.0.4 8 8 * Text Domain: dragwyb-click-to-chat 9 9 * License: GPLv2 or later … … 12 12 if (! defined('ABSPATH')) exit; 13 13 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 { 14 use DRAGWYB_CTC\Admin\Review\DCTC_Review_Form; 19 15 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'); 21 20 22 public function init() 21 if (!class_exists('DCTC_Click_To_Chat')) { 22 23 class DCTC_Click_To_Chat 23 24 { 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; 26 34 } 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 } 29 92 } 30 93 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(); 39 96 } 40 41 add_action('plugins_loaded', array('DCTC_Click_To_Chat', 'get_instance')); -
dragwyb-click-to-chat/trunk/readme.txt
r3446510 r3457302 4 4 Requires at least: 5.0 5 5 Tested up to: 6.9 6 Stable tag: 1.0. 36 Stable tag: 1.0.4 7 7 Requires PHP: 7.2 8 8 License: GPLv2 or later … … 89 89 == Changelog == 90 90 91 = 1.0.4 = 92 * Added feedback & review notice. 93 91 94 = 1.0.3 = 92 95 * SEO optimization for **multi-channel social chat** and **floating button** keywords.
Note: See TracChangeset
for help on using the changeset viewer.