Changeset 3278408
- Timestamp:
- 04/21/2025 07:20:19 PM (11 months ago)
- Location:
- primekit-addons
- Files:
-
- 8 edited
- 1 copied
-
tags/1.0.8 (copied) (copied from primekit-addons/trunk)
-
tags/1.0.8/Admin/AdminManager.php (modified) (1 diff)
-
tags/1.0.8/Inc/Manager.php (modified) (2 diffs)
-
tags/1.0.8/primekit-addons.php (modified) (11 diffs)
-
tags/1.0.8/readme.txt (modified) (3 diffs)
-
trunk/Admin/AdminManager.php (modified) (1 diff)
-
trunk/Inc/Manager.php (modified) (2 diffs)
-
trunk/primekit-addons.php (modified) (11 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
primekit-addons/tags/1.0.8/Admin/AdminManager.php
r3271717 r3278408 103 103 $this->ThemeBuilder = new ThemeBuilder(); 104 104 $this->MetaBox = new MetaBox(); 105 //$this->Templates = new Templates();105 // $this->Templates = new Templates(); 106 106 } 107 107 -
primekit-addons/tags/1.0.8/Inc/Manager.php
r3183498 r3278408 42 42 public function __construct() 43 43 { 44 $this->init(); 45 $this->register_textdomain(); 44 $this->init(); 46 45 } 47 46 … … 57 56 $this->Admin_Manager = new AdminManager(); 58 57 $this->Frontend = new Frontend(); 59 } 60 61 62 /** 63 * Register the text domain for translation. 64 * 65 * This method loads the plugin's translated strings from the specified directory. 66 * 67 * @since 1.0.0 68 */ 69 protected function register_textdomain() 70 { 71 load_plugin_textdomain('primekit-addons', false, dirname(plugin_basename(__DIR__, 2)) . '/languages'); 72 } 58 } 73 59 74 60 } -
primekit-addons/tags/1.0.8/primekit-addons.php
r3271717 r3278408 4 4 * Plugin URI: https://primekitaddons.com/ 5 5 * Description: The Elementor Custom Widgets plugin is built to enhance your website’s look and performance. With PrimeKit Addons and Templates, you’ll get access to a Theme Builder, Pop-Ups, Cost estimation, Pricing table, Forms, and WooCommerce building features, along with stunning custom elements that blend seamlessly with your site’s design. 6 * Version: 1.0. 76 * Version: 1.0.8 7 7 * Author: ABCPlugin 8 8 * Author URI: https://abcplugin.com/ … … 19 19 // Exit if accessed directly. 20 20 if (!defined('ABSPATH')) { 21 exit;21 exit; 22 22 } 23 23 24 final class PrimeKitAddons { 24 final class PrimeKitAddons 25 { 25 26 26 27 // Singleton instance. 27 28 private static $instance = null; 28 29 29 30 /** 30 31 * Initializes the PrimeKit class by defining constants, including necessary files, and initializing hooks. 31 32 */ 32 private function __construct() { 33 private function __construct() 34 { 33 35 $this->define_constants(); 34 36 $this->include_files(); 35 37 $this->init_hooks(); 36 38 } 39 40 // Load plugin textdomain. 41 public function register_textdomain() 42 { 43 load_plugin_textdomain('primekit-addons', false, dirname(plugin_basename(__FILE__)) . '/languages'); 44 } 45 37 46 38 47 /** … … 41 50 * @return PrimeKit The singleton instance of the plugin. 42 51 */ 43 public static function get_instance() { 52 public static function get_instance() 53 { 44 54 if (null === self::$instance) { 45 55 self::$instance = new self(); … … 51 61 * Defines plugin constants. 52 62 */ 53 private function define_constants() { 63 private static $plugin_name = null; 64 65 private function define_constants() 66 { 54 67 // Define Plugin Version. 55 define('PRIMEKIT_VERSION', '1.0. 7');68 define('PRIMEKIT_VERSION', '1.0.8'); 56 69 57 70 // Define Plugin Path. … … 61 74 define('PRIMEKIT_URL', plugin_dir_url(__FILE__)); 62 75 63 //Define Plugin Name. 64 define('PRIMEKIT_NAME', esc_html__('PrimeKit Addons and Templates', 'primekit-addons')); 76 define('PRIMEKIT_BASENAME', plugin_basename(__FILE__)); 65 77 66 define( 'PRIMEKIT_BASENAME', plugin_basename( __FILE__ ) ); 78 define('PRIMEKIT_FILE', __FILE__); 79 80 // Define Plugin Name directly from plugin header 81 define('PRIMEKIT_NAME', 'PrimeKit Addons and Templates'); 67 82 68 define( 'PRIMEKIT_FILE', __FILE__ ); 83 84 69 85 } 70 86 … … 72 88 * Includes necessary files. 73 89 */ 74 private function include_files() { 90 private function include_files() 91 { 75 92 if (file_exists(PRIMEKIT_PATH . 'vendor/autoload.php')) { 76 93 require_once PRIMEKIT_PATH . 'vendor/autoload.php'; … … 81 98 * Initializes hooks. 82 99 */ 83 private function init_hooks() { 100 private function init_hooks() 101 { 84 102 add_action('plugins_loaded', array($this, 'plugin_loaded')); 103 add_action('init', array($this, 'register_textdomain')); 85 104 register_activation_hook(PRIMEKIT_PATH, array($this, 'activate')); 86 105 register_deactivation_hook(PRIMEKIT_PATH, array($this, 'deactivate')); … … 90 109 * Called when the plugin is loaded. 91 110 */ 92 public function plugin_loaded() { 111 public function plugin_loaded() 112 { 93 113 if (class_exists('PrimeKit\Manager')) { 94 new \PrimeKit\Manager();95 }114 new \PrimeKit\Manager(); 115 } 96 116 } 97 117 … … 99 119 * Activates the plugin. 100 120 */ 101 public function activate() { 121 public function activate() 122 { 102 123 PrimeKit\Activate::activate(); 103 124 } … … 106 127 * Deactivates the plugin. 107 128 */ 108 public function deactivate() { 129 public function deactivate() 130 { 109 131 PrimeKit\Deactivate::deactivate(); 110 132 } … … 115 137 */ 116 138 if (!function_exists('primekit_addons_initialize')) { 117 function primekit_addons_initialize() { 139 function primekit_addons_initialize() 140 { 118 141 return PrimeKitAddons::get_instance(); 119 142 } -
primekit-addons/tags/1.0.8/readme.txt
r3271719 r3278408 1 1 === PrimeKit Addons and Templates === 2 2 Plugin Name: PrimeKit PrimeKit Addons and Templates 3 Version: 1.0. 73 Version: 1.0.8 4 4 Author: supreoxltd 5 5 Author URI: https://abcplugin.com/ … … 9 9 Requires at least: 5.4 10 10 Tested up to: 6.8 11 Stable tag: 1.0. 711 Stable tag: 1.0.8 12 12 Requires PHP: 8.0 13 13 License: GPLv2 or later … … 156 156 157 157 == Changelog == 158 = 1.0.8 = 159 - Text domain errors solved. 158 160 159 161 = 1.0.7 = -
primekit-addons/trunk/Admin/AdminManager.php
r3271717 r3278408 103 103 $this->ThemeBuilder = new ThemeBuilder(); 104 104 $this->MetaBox = new MetaBox(); 105 //$this->Templates = new Templates();105 // $this->Templates = new Templates(); 106 106 } 107 107 -
primekit-addons/trunk/Inc/Manager.php
r3183498 r3278408 42 42 public function __construct() 43 43 { 44 $this->init(); 45 $this->register_textdomain(); 44 $this->init(); 46 45 } 47 46 … … 57 56 $this->Admin_Manager = new AdminManager(); 58 57 $this->Frontend = new Frontend(); 59 } 60 61 62 /** 63 * Register the text domain for translation. 64 * 65 * This method loads the plugin's translated strings from the specified directory. 66 * 67 * @since 1.0.0 68 */ 69 protected function register_textdomain() 70 { 71 load_plugin_textdomain('primekit-addons', false, dirname(plugin_basename(__DIR__, 2)) . '/languages'); 72 } 58 } 73 59 74 60 } -
primekit-addons/trunk/primekit-addons.php
r3271717 r3278408 4 4 * Plugin URI: https://primekitaddons.com/ 5 5 * Description: The Elementor Custom Widgets plugin is built to enhance your website’s look and performance. With PrimeKit Addons and Templates, you’ll get access to a Theme Builder, Pop-Ups, Cost estimation, Pricing table, Forms, and WooCommerce building features, along with stunning custom elements that blend seamlessly with your site’s design. 6 * Version: 1.0. 76 * Version: 1.0.8 7 7 * Author: ABCPlugin 8 8 * Author URI: https://abcplugin.com/ … … 19 19 // Exit if accessed directly. 20 20 if (!defined('ABSPATH')) { 21 exit;21 exit; 22 22 } 23 23 24 final class PrimeKitAddons { 24 final class PrimeKitAddons 25 { 25 26 26 27 // Singleton instance. 27 28 private static $instance = null; 28 29 29 30 /** 30 31 * Initializes the PrimeKit class by defining constants, including necessary files, and initializing hooks. 31 32 */ 32 private function __construct() { 33 private function __construct() 34 { 33 35 $this->define_constants(); 34 36 $this->include_files(); 35 37 $this->init_hooks(); 36 38 } 39 40 // Load plugin textdomain. 41 public function register_textdomain() 42 { 43 load_plugin_textdomain('primekit-addons', false, dirname(plugin_basename(__FILE__)) . '/languages'); 44 } 45 37 46 38 47 /** … … 41 50 * @return PrimeKit The singleton instance of the plugin. 42 51 */ 43 public static function get_instance() { 52 public static function get_instance() 53 { 44 54 if (null === self::$instance) { 45 55 self::$instance = new self(); … … 51 61 * Defines plugin constants. 52 62 */ 53 private function define_constants() { 63 private static $plugin_name = null; 64 65 private function define_constants() 66 { 54 67 // Define Plugin Version. 55 define('PRIMEKIT_VERSION', '1.0. 7');68 define('PRIMEKIT_VERSION', '1.0.8'); 56 69 57 70 // Define Plugin Path. … … 61 74 define('PRIMEKIT_URL', plugin_dir_url(__FILE__)); 62 75 63 //Define Plugin Name. 64 define('PRIMEKIT_NAME', esc_html__('PrimeKit Addons and Templates', 'primekit-addons')); 76 define('PRIMEKIT_BASENAME', plugin_basename(__FILE__)); 65 77 66 define( 'PRIMEKIT_BASENAME', plugin_basename( __FILE__ ) ); 78 define('PRIMEKIT_FILE', __FILE__); 79 80 // Define Plugin Name directly from plugin header 81 define('PRIMEKIT_NAME', 'PrimeKit Addons and Templates'); 67 82 68 define( 'PRIMEKIT_FILE', __FILE__ ); 83 84 69 85 } 70 86 … … 72 88 * Includes necessary files. 73 89 */ 74 private function include_files() { 90 private function include_files() 91 { 75 92 if (file_exists(PRIMEKIT_PATH . 'vendor/autoload.php')) { 76 93 require_once PRIMEKIT_PATH . 'vendor/autoload.php'; … … 81 98 * Initializes hooks. 82 99 */ 83 private function init_hooks() { 100 private function init_hooks() 101 { 84 102 add_action('plugins_loaded', array($this, 'plugin_loaded')); 103 add_action('init', array($this, 'register_textdomain')); 85 104 register_activation_hook(PRIMEKIT_PATH, array($this, 'activate')); 86 105 register_deactivation_hook(PRIMEKIT_PATH, array($this, 'deactivate')); … … 90 109 * Called when the plugin is loaded. 91 110 */ 92 public function plugin_loaded() { 111 public function plugin_loaded() 112 { 93 113 if (class_exists('PrimeKit\Manager')) { 94 new \PrimeKit\Manager();95 }114 new \PrimeKit\Manager(); 115 } 96 116 } 97 117 … … 99 119 * Activates the plugin. 100 120 */ 101 public function activate() { 121 public function activate() 122 { 102 123 PrimeKit\Activate::activate(); 103 124 } … … 106 127 * Deactivates the plugin. 107 128 */ 108 public function deactivate() { 129 public function deactivate() 130 { 109 131 PrimeKit\Deactivate::deactivate(); 110 132 } … … 115 137 */ 116 138 if (!function_exists('primekit_addons_initialize')) { 117 function primekit_addons_initialize() { 139 function primekit_addons_initialize() 140 { 118 141 return PrimeKitAddons::get_instance(); 119 142 } -
primekit-addons/trunk/readme.txt
r3271719 r3278408 1 1 === PrimeKit Addons and Templates === 2 2 Plugin Name: PrimeKit PrimeKit Addons and Templates 3 Version: 1.0. 73 Version: 1.0.8 4 4 Author: supreoxltd 5 5 Author URI: https://abcplugin.com/ … … 9 9 Requires at least: 5.4 10 10 Tested up to: 6.8 11 Stable tag: 1.0. 711 Stable tag: 1.0.8 12 12 Requires PHP: 8.0 13 13 License: GPLv2 or later … … 156 156 157 157 == Changelog == 158 = 1.0.8 = 159 - Text domain errors solved. 158 160 159 161 = 1.0.7 =
Note: See TracChangeset
for help on using the changeset viewer.