Changeset 2446397
- Timestamp:
- 12/27/2020 01:24:42 PM (5 years ago)
- Location:
- quick-child-theme-generator
- Files:
-
- 18 added
- 6 edited
-
assets/screenshot-2.png (modified) (previous)
-
tags/1.1.3 (added)
-
tags/1.1.3/assets (added)
-
tags/1.1.3/assets/css (added)
-
tags/1.1.3/assets/css/jquery-ui.css (added)
-
tags/1.1.3/assets/css/qcthg_custom_style.css (added)
-
tags/1.1.3/assets/images (added)
-
tags/1.1.3/assets/images/qcthg-logo.png (added)
-
tags/1.1.3/assets/js (added)
-
tags/1.1.3/assets/js/qcthg_custom_script.js (added)
-
tags/1.1.3/includes (added)
-
tags/1.1.3/includes/qcthg_function.php (added)
-
tags/1.1.3/includes/qcthg_helper.php (added)
-
tags/1.1.3/index.php (added)
-
tags/1.1.3/init.php (added)
-
tags/1.1.3/quick-child-theme-generator.php (added)
-
tags/1.1.3/readme.txt (added)
-
tags/1.1.3/views (added)
-
tags/1.1.3/views/qcthg_menu.php (added)
-
trunk/includes/qcthg_function.php (modified) (3 diffs)
-
trunk/includes/qcthg_helper.php (modified) (1 diff)
-
trunk/init.php (modified) (1 diff)
-
trunk/quick-child-theme-generator.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
quick-child-theme-generator/trunk/includes/qcthg_function.php
r2333578 r2446397 9 9 public function qcthgInitialization() 10 10 { 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 11 15 add_action('admin_menu', array('QCTHG_Main', 'qcthgPluginMenu')); 12 16 add_action('admin_init', array('QCTHG_Main', 'qcthgRegisterAssets')); … … 24 28 public function qcthgPluginMenu() 25 29 { 26 $iconUrl = QCTHG_URL.'/assets/images/qcthg-logo.png'; 27 add_menu_page( 30 add_theme_page( 28 31 'Quick Child Theme Generator', 29 'Quick Child Theme Generator',32 'Quick Child Theme', 30 33 'manage_options', 31 34 'quick-child-theme-generator', 32 35 array('QCTHG_Main', 'qcthgMenuPage'), 33 $iconUrl, 34 60 36 0 35 37 ); 36 38 } … … 235 237 } 236 238 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 237 285 } 238 286 } -
quick-child-theme-generator/trunk/includes/qcthg_helper.php
r2333578 r2446397 126 126 } 127 127 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 128 152 } 129 153 } -
quick-child-theme-generator/trunk/init.php
r2333578 r2446397 4 4 /* Constants */ 5 5 define('QCTHG_PATH', dirname(__FILE__)); 6 define('QCTHG_SLUG_PATH', dirname(__FILE__).'/quick-child-theme-generator.php'); 6 7 define('QCTHG_URL', plugin_dir_url(__FILE__)); 7 8 define('QCTHG_ADMIN_URL', admin_url()); -
quick-child-theme-generator/trunk/quick-child-theme-generator.php
r2339001 r2446397 4 4 * Plugin URI: https://sharmajay.com/quick-child-theme-generator 5 5 * Description: This plugin allows us to generate a quick and easy free child theme. 6 * Version: 1.1. 26 * Version: 1.1.3 7 7 * Author: Ajay Kumar 8 8 * Author URI: https://sharmajay.com -
quick-child-theme-generator/trunk/readme.txt
r2339001 r2446397 4 4 Tags: child theme, childtheme, design, theme, themes, quick theme, childthemes 5 5 Requires at least: 4.7 6 Tested up to: 5. 47 Stable tag: 1.1. 26 Tested up to: 5.6 7 Stable tag: 1.1.3 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 45 45 == Changelog == 46 46 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 47 51 = 1.1.2 = 48 Updated logo.52 * Updated logo. 49 53 50 54 = 1.1.1 = … … 60 64 == Upgrade Notice == 61 65 66 = 1.1.3 = 67 Remove plugin page menu from the main menu and added sub menu for it to the Appearance menu. 68 Added updated instruction images and logs. 69 62 70 = 1.1.2 = 63 71 Updated logo.
Note: See TracChangeset
for help on using the changeset viewer.