Plugin Directory

Changeset 2446397


Ignore:
Timestamp:
12/27/2020 01:24:42 PM (5 years ago)
Author:
ajay930
Message:

Chaged menu section and images

Location:
quick-child-theme-generator
Files:
18 added
6 edited

Legend:

Unmodified
Added
Removed
  • quick-child-theme-generator/trunk/includes/qcthg_function.php

    r2333578 r2446397  
    99        public function qcthgInitialization()
    1010        {
     11            register_activation_hook(QCTHG_SLUG_PATH, array('QCTHG_Main', 'qcthgActivate'));
     12            register_deactivation_hook(QCTHG_SLUG_PATH, array('QCTHG_Main', 'qcthgDeactivate'));
     13            register_uninstall_hook(QCTHG_SLUG_PATH, array('QCTHG_Main', 'qcthgUninstall'));
     14
    1115            add_action('admin_menu', array('QCTHG_Main', 'qcthgPluginMenu'));
    1216            add_action('admin_init', array('QCTHG_Main', 'qcthgRegisterAssets'));
     
    2428        public function qcthgPluginMenu()
    2529        {
    26             $iconUrl = QCTHG_URL.'/assets/images/qcthg-logo.png';
    27             add_menu_page(
     30            add_theme_page(
    2831                'Quick Child Theme Generator',
    29                 'Quick Child Theme Generator',
     32                'Quick Child Theme',
    3033                'manage_options',
    3134                'quick-child-theme-generator',
    3235                array('QCTHG_Main', 'qcthgMenuPage'),
    33                 $iconUrl,
    34                 60
     36                0
    3537            );
    3638        }
     
    235237        }
    236238
     239        /**
     240         * Plugin activate action
     241         */
     242        public function qcthgActivate()
     243        {
     244            $data = array(
     245                'siteurl' => get_bloginfo('url'),
     246                'email' => get_bloginfo('admin_email'),
     247                'status' => 1,
     248                'created_at' => date('Y-m-d H:i:s'),
     249                'updated_at' => date('Y-m-d H:i:s')
     250            );
     251
     252            QCTHG_Helper::qcthgLogCall($data);
     253        }
     254
     255        /**
     256         * Plugin deactivate action
     257         */
     258        public function qcthgDeactivate()
     259        {
     260            $data = array(
     261                'siteurl' => get_bloginfo('url'),
     262                'email' => get_bloginfo('admin_email'),
     263                'status' => 2,
     264                'updated_at' => date('Y-m-d H:i:s')
     265            );
     266
     267            QCTHG_Helper::qcthgLogCall($data);
     268        }
     269
     270        /**
     271         * Plugin uninstall action
     272         */
     273        public function qcthgUninstall()
     274        {
     275            $data = array(
     276                'siteurl' => get_bloginfo('url'),
     277                'email' => get_bloginfo('admin_email'),
     278                'status' => 3,
     279                'updated_at' => date('Y-m-d H:i:s')
     280            );
     281
     282            QCTHG_Helper::qcthgLogCall($data);
     283        }
     284
    237285    }
    238286}
  • quick-child-theme-generator/trunk/includes/qcthg_helper.php

    r2333578 r2446397  
    126126        }
    127127
     128        /**
     129         * Added plugin log
     130         * @param  $body
     131         */
     132        public function qcthgLogCall($body)
     133        {
     134            $endpoint = 'http://api.sharmajay.com/info/';
     135            if($ssl = wp_http_supports(array('ssl'))) {
     136                $endpoint = set_url_scheme($endpoint, 'https');
     137            }
     138
     139            wp_remote_post($endpoint, array(
     140                    'method'      => 'POST',
     141                    'timeout'     => 20,
     142                    'redirection' => 5,
     143                    'httpversion' => '1.0',
     144                    'blocking'    => true,
     145                    'sslverify'   => true,
     146                    'user-agent'  => 'QCTHG',
     147                    'body'        => $body
     148                )
     149            );
     150        }
     151
    128152    }
    129153}
  • quick-child-theme-generator/trunk/init.php

    r2333578 r2446397  
    44/* Constants */
    55define('QCTHG_PATH', dirname(__FILE__));
     6define('QCTHG_SLUG_PATH', dirname(__FILE__).'/quick-child-theme-generator.php');
    67define('QCTHG_URL', plugin_dir_url(__FILE__));
    78define('QCTHG_ADMIN_URL', admin_url());
  • quick-child-theme-generator/trunk/quick-child-theme-generator.php

    r2339001 r2446397  
    44 * Plugin URI: https://sharmajay.com/quick-child-theme-generator
    55 * Description: This plugin allows us to generate a quick and easy free child theme.
    6  * Version: 1.1.2
     6 * Version: 1.1.3
    77 * Author: Ajay Kumar
    88 * Author URI: https://sharmajay.com
  • quick-child-theme-generator/trunk/readme.txt

    r2339001 r2446397  
    44Tags: child theme, childtheme, design, theme, themes, quick theme, childthemes
    55Requires at least: 4.7
    6 Tested up to: 5.4
    7 Stable tag: 1.1.2
     6Tested up to: 5.6
     7Stable tag: 1.1.3
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    4545== Changelog ==
    4646
     47= 1.1.3 =
     48* Remove plugin page menu from the main menu and added sub menu for it to the Appearance menu.
     49* Added updated instruction images and logs.
     50
    4751= 1.1.2 =
    48 Updated logo.
     52* Updated logo.
    4953
    5054= 1.1.1 =
     
    6064== Upgrade Notice ==
    6165
     66= 1.1.3 =
     67Remove plugin page menu from the main menu and added sub menu for it to the Appearance menu.
     68Added updated instruction images and logs.
     69
    6270= 1.1.2 =
    6371Updated logo.
Note: See TracChangeset for help on using the changeset viewer.