Plugin Directory

Changeset 3278408


Ignore:
Timestamp:
04/21/2025 07:20:19 PM (11 months ago)
Author:
abcplugins
Message:

Update to version 1.0.8 from GitHub

Location:
primekit-addons
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • primekit-addons/tags/1.0.8/Admin/AdminManager.php

    r3271717 r3278408  
    103103        $this->ThemeBuilder = new ThemeBuilder();
    104104        $this->MetaBox = new MetaBox();
    105         //$this->Templates = new Templates();
     105       // $this->Templates = new Templates();
    106106    }
    107107
  • primekit-addons/tags/1.0.8/Inc/Manager.php

    r3183498 r3278408  
    4242  public function __construct()
    4343  {
    44     $this->init();
    45     $this->register_textdomain();
     44    $this->init();   
    4645  }
    4746
     
    5756    $this->Admin_Manager = new AdminManager();
    5857    $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  }
    7359
    7460}
  • primekit-addons/tags/1.0.8/primekit-addons.php

    r3271717 r3278408  
    44 * Plugin URI: https://primekitaddons.com/
    55 * 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.7
     6 * Version: 1.0.8
    77 * Author: ABCPlugin
    88 * Author URI: https://abcplugin.com/
     
    1919// Exit if accessed directly.
    2020if (!defined('ABSPATH')) {
    21     exit;
     21    exit;
    2222}
    2323
    24 final class PrimeKitAddons {
     24final class PrimeKitAddons
     25{
    2526
    2627    // Singleton instance.
    2728    private static $instance = null;
    28  
     29
    2930    /**
    3031     * Initializes the PrimeKit class by defining constants, including necessary files, and initializing hooks.
    3132     */
    32     private function __construct() {
     33    private function __construct()
     34    {
    3335        $this->define_constants();
    3436        $this->include_files();
    3537        $this->init_hooks();
    3638    }
     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
    3746
    3847    /**
     
    4150     * @return PrimeKit The singleton instance of the plugin.
    4251     */
    43     public static function get_instance() {
     52    public static function get_instance()
     53    {
    4454        if (null === self::$instance) {
    4555            self::$instance = new self();
     
    5161     * Defines plugin constants.
    5262     */
    53     private function define_constants() {
     63    private static $plugin_name = null;
     64
     65    private function define_constants()
     66    {
    5467        // Define Plugin Version.
    55         define('PRIMEKIT_VERSION', '1.0.7');
     68        define('PRIMEKIT_VERSION', '1.0.8');
    5669
    5770        // Define Plugin Path.
     
    6174        define('PRIMEKIT_URL', plugin_dir_url(__FILE__));
    6275
    63         //Define Plugin Name.
    64         define('PRIMEKIT_NAME', esc_html__('PrimeKit Addons and Templates', 'primekit-addons'));
     76        define('PRIMEKIT_BASENAME', plugin_basename(__FILE__));
    6577
    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');
    6782
    68         define( 'PRIMEKIT_FILE', __FILE__ );
     83       
     84
    6985    }
    7086
     
    7288     * Includes necessary files.
    7389     */
    74     private function include_files() {
     90    private function include_files()
     91    {
    7592        if (file_exists(PRIMEKIT_PATH . 'vendor/autoload.php')) {
    7693            require_once PRIMEKIT_PATH . 'vendor/autoload.php';
     
    8198     * Initializes hooks.
    8299     */
    83     private function init_hooks() {
     100    private function init_hooks()
     101    {
    84102        add_action('plugins_loaded', array($this, 'plugin_loaded'));
     103        add_action('init', array($this, 'register_textdomain'));
    85104        register_activation_hook(PRIMEKIT_PATH, array($this, 'activate'));
    86105        register_deactivation_hook(PRIMEKIT_PATH, array($this, 'deactivate'));
     
    90109     * Called when the plugin is loaded.
    91110     */
    92     public function plugin_loaded() {
     111    public function plugin_loaded()
     112    {
    93113        if (class_exists('PrimeKit\Manager')) {
    94             new \PrimeKit\Manager();
    95         }
     114            new \PrimeKit\Manager();
     115        }
    96116    }
    97117
     
    99119     * Activates the plugin.
    100120     */
    101     public function activate() {
     121    public function activate()
     122    {
    102123        PrimeKit\Activate::activate();
    103124    }
     
    106127     * Deactivates the plugin.
    107128     */
    108     public function deactivate() {
     129    public function deactivate()
     130    {
    109131        PrimeKit\Deactivate::deactivate();
    110132    }
     
    115137 */
    116138if (!function_exists('primekit_addons_initialize')) {
    117     function primekit_addons_initialize() {
     139    function primekit_addons_initialize()
     140    {
    118141        return PrimeKitAddons::get_instance();
    119142    }
  • primekit-addons/tags/1.0.8/readme.txt

    r3271719 r3278408  
    11=== PrimeKit Addons and Templates ===
    22Plugin Name: PrimeKit PrimeKit Addons and Templates
    3 Version: 1.0.7
     3Version: 1.0.8
    44Author: supreoxltd
    55Author URI: https://abcplugin.com/
     
    99Requires at least: 5.4 
    1010Tested up to: 6.8 
    11 Stable tag: 1.0.7
     11Stable tag: 1.0.8
    1212Requires PHP: 8.0
    1313License: GPLv2 or later
     
    156156
    157157== Changelog ==
     158= 1.0.8 =
     159- Text domain errors solved.
    158160
    159161= 1.0.7 =
  • primekit-addons/trunk/Admin/AdminManager.php

    r3271717 r3278408  
    103103        $this->ThemeBuilder = new ThemeBuilder();
    104104        $this->MetaBox = new MetaBox();
    105         //$this->Templates = new Templates();
     105       // $this->Templates = new Templates();
    106106    }
    107107
  • primekit-addons/trunk/Inc/Manager.php

    r3183498 r3278408  
    4242  public function __construct()
    4343  {
    44     $this->init();
    45     $this->register_textdomain();
     44    $this->init();   
    4645  }
    4746
     
    5756    $this->Admin_Manager = new AdminManager();
    5857    $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  }
    7359
    7460}
  • primekit-addons/trunk/primekit-addons.php

    r3271717 r3278408  
    44 * Plugin URI: https://primekitaddons.com/
    55 * 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.7
     6 * Version: 1.0.8
    77 * Author: ABCPlugin
    88 * Author URI: https://abcplugin.com/
     
    1919// Exit if accessed directly.
    2020if (!defined('ABSPATH')) {
    21     exit;
     21    exit;
    2222}
    2323
    24 final class PrimeKitAddons {
     24final class PrimeKitAddons
     25{
    2526
    2627    // Singleton instance.
    2728    private static $instance = null;
    28  
     29
    2930    /**
    3031     * Initializes the PrimeKit class by defining constants, including necessary files, and initializing hooks.
    3132     */
    32     private function __construct() {
     33    private function __construct()
     34    {
    3335        $this->define_constants();
    3436        $this->include_files();
    3537        $this->init_hooks();
    3638    }
     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
    3746
    3847    /**
     
    4150     * @return PrimeKit The singleton instance of the plugin.
    4251     */
    43     public static function get_instance() {
     52    public static function get_instance()
     53    {
    4454        if (null === self::$instance) {
    4555            self::$instance = new self();
     
    5161     * Defines plugin constants.
    5262     */
    53     private function define_constants() {
     63    private static $plugin_name = null;
     64
     65    private function define_constants()
     66    {
    5467        // Define Plugin Version.
    55         define('PRIMEKIT_VERSION', '1.0.7');
     68        define('PRIMEKIT_VERSION', '1.0.8');
    5669
    5770        // Define Plugin Path.
     
    6174        define('PRIMEKIT_URL', plugin_dir_url(__FILE__));
    6275
    63         //Define Plugin Name.
    64         define('PRIMEKIT_NAME', esc_html__('PrimeKit Addons and Templates', 'primekit-addons'));
     76        define('PRIMEKIT_BASENAME', plugin_basename(__FILE__));
    6577
    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');
    6782
    68         define( 'PRIMEKIT_FILE', __FILE__ );
     83       
     84
    6985    }
    7086
     
    7288     * Includes necessary files.
    7389     */
    74     private function include_files() {
     90    private function include_files()
     91    {
    7592        if (file_exists(PRIMEKIT_PATH . 'vendor/autoload.php')) {
    7693            require_once PRIMEKIT_PATH . 'vendor/autoload.php';
     
    8198     * Initializes hooks.
    8299     */
    83     private function init_hooks() {
     100    private function init_hooks()
     101    {
    84102        add_action('plugins_loaded', array($this, 'plugin_loaded'));
     103        add_action('init', array($this, 'register_textdomain'));
    85104        register_activation_hook(PRIMEKIT_PATH, array($this, 'activate'));
    86105        register_deactivation_hook(PRIMEKIT_PATH, array($this, 'deactivate'));
     
    90109     * Called when the plugin is loaded.
    91110     */
    92     public function plugin_loaded() {
     111    public function plugin_loaded()
     112    {
    93113        if (class_exists('PrimeKit\Manager')) {
    94             new \PrimeKit\Manager();
    95         }
     114            new \PrimeKit\Manager();
     115        }
    96116    }
    97117
     
    99119     * Activates the plugin.
    100120     */
    101     public function activate() {
     121    public function activate()
     122    {
    102123        PrimeKit\Activate::activate();
    103124    }
     
    106127     * Deactivates the plugin.
    107128     */
    108     public function deactivate() {
     129    public function deactivate()
     130    {
    109131        PrimeKit\Deactivate::deactivate();
    110132    }
     
    115137 */
    116138if (!function_exists('primekit_addons_initialize')) {
    117     function primekit_addons_initialize() {
     139    function primekit_addons_initialize()
     140    {
    118141        return PrimeKitAddons::get_instance();
    119142    }
  • primekit-addons/trunk/readme.txt

    r3271719 r3278408  
    11=== PrimeKit Addons and Templates ===
    22Plugin Name: PrimeKit PrimeKit Addons and Templates
    3 Version: 1.0.7
     3Version: 1.0.8
    44Author: supreoxltd
    55Author URI: https://abcplugin.com/
     
    99Requires at least: 5.4 
    1010Tested up to: 6.8 
    11 Stable tag: 1.0.7
     11Stable tag: 1.0.8
    1212Requires PHP: 8.0
    1313License: GPLv2 or later
     
    156156
    157157== Changelog ==
     158= 1.0.8 =
     159- Text domain errors solved.
    158160
    159161= 1.0.7 =
Note: See TracChangeset for help on using the changeset viewer.