Changeset 2649535
- Timestamp:
- 12/27/2021 02:58:13 PM (4 years ago)
- Location:
- quick-child-theme-generator
- Files:
-
- 19 added
- 5 edited
-
tags/2.1.0 (added)
-
tags/2.1.0/assets (added)
-
tags/2.1.0/assets/css (added)
-
tags/2.1.0/assets/css/jquery-ui.css (added)
-
tags/2.1.0/assets/css/qcthg_custom_style.css (added)
-
tags/2.1.0/assets/images (added)
-
tags/2.1.0/assets/images/qcthg-logo.png (added)
-
tags/2.1.0/assets/js (added)
-
tags/2.1.0/assets/js/qcthg_custom_script.js (added)
-
tags/2.1.0/includes (added)
-
tags/2.1.0/includes/qcthg_function.php (added)
-
tags/2.1.0/includes/qcthg_helper.php (added)
-
tags/2.1.0/index.php (added)
-
tags/2.1.0/init.php (added)
-
tags/2.1.0/quick-child-theme-generator.php (added)
-
tags/2.1.0/readme.txt (added)
-
tags/2.1.0/views (added)
-
tags/2.1.0/views/qcthg_menu.php (added)
-
tags/2.1.0/views/qcthg_template.php (added)
-
trunk/includes/qcthg_function.php (modified) (5 diffs)
-
trunk/includes/qcthg_helper.php (modified) (7 diffs)
-
trunk/init.php (modified) (2 diffs)
-
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
r2649102 r2649535 13 13 register_uninstall_hook(QCTHG_SLUG_PATH, array('QCTHG_Main', 'qcthgUninstall')); 14 14 15 add_action('admin_menu', array( 'QCTHG_Main', 'qcthgPluginMenu'));16 add_action('admin_init', array( 'QCTHG_Main', 'qcthgRegisterAssets'));17 add_action('admin_enqueue_scripts', array( 'QCTHG_Main', 'qcthgEnqueueAssets'));18 add_action('admin_post_qcthg_create_theme', array( 'QCTHG_Main', 'qcthgCreateChildTheme'));19 add_action('admin_post_qcthg_create_template', array( 'QCTHG_Main', 'qcthgCreateBlankTemplate'));15 add_action('admin_menu', array($this, 'qcthgPluginMenu')); 16 add_action('admin_init', array($this, 'qcthgRegisterAssets')); 17 add_action('admin_enqueue_scripts', array($this, 'qcthgEnqueueAssets')); 18 add_action('admin_post_qcthg_create_theme', array($this, 'qcthgCreateChildTheme')); 19 add_action('admin_post_qcthg_create_template', array($this, 'qcthgCreateBlankTemplate')); 20 20 if (isset($_COOKIE['qcthg_adminNotices']) && $_COOKIE['qcthg_adminNotices'] !== 0) { 21 21 ob_start(); … … 38 38 'manage_options', 39 39 'quick-child-theme-generator', 40 array( 'QCTHG_Main', 'qcthgMenuPage'),40 array($this, 'qcthgMenuPage'), 41 41 'dashicons-groups', 42 42 60 … … 49 49 'manage_options', 50 50 'quick-blank-template-generator', 51 array( 'QCTHG_Main', 'qcthgSubMenuTemplatePage'),51 array($this, 'qcthgSubMenuTemplatePage'), 52 52 1 53 53 ); … … 74 74 if($hook === 'toplevel_page_quick-child-theme-generator' 75 75 || $hook === 'quick-child-theme_page_quick-blank-template-generator' 76 || $_GET['page'] === 'quick-child-theme-generator'77 || $_GET['page'] === 'quick-blank-template-generator') {76 || isset($_GET['page']) && $_GET['page'] === 'quick-child-theme-generator' 77 || isset($_GET['page']) && $_GET['page'] === 'quick-blank-template-generator') { 78 78 wp_enqueue_script('jquery'); 79 79 wp_enqueue_script('jquery-ui-core'); … … 480 480 } 481 481 482 $obj = new QCTHG_Main();482 $objMain = new QCTHG_Main(); 483 483 } -
quick-child-theme-generator/trunk/includes/qcthg_helper.php
r2562917 r2649535 92 92 * @return [string] 93 93 */ 94 public function qcthgRefSanitizeText($text)94 public static function qcthgRefSanitizeText($text) 95 95 { 96 96 if(empty($text)) { return; } … … 105 105 * @param $cookieValue 106 106 */ 107 public function qcthgSetCookies($cookieName, $cookieValue)107 public static function qcthgSetCookies($cookieName, $cookieValue) 108 108 { 109 109 if(empty($cookieName)) { … … 116 116 * Display dynamic error notices (destroy current cookies) 117 117 */ 118 public function adminNoticeError() {118 public static function adminNoticeError() { 119 119 ?> 120 120 <div class="notice notice-error is-dismissible qcthgErrNotice"> … … 129 129 * Display dynamic success notices (destroy current cookies) 130 130 */ 131 public function adminNoticeSuccess() {131 public static function adminNoticeSuccess() { 132 132 ?> 133 133 <div class="notice notice-success is-dismissible qcthgErrNotice"> … … 143 143 * @param $body 144 144 */ 145 public function qcthgLogCall($body)145 public static function qcthgLogCall($body) 146 146 { 147 147 $endpoint = 'http://api.sharmajay.com/info/'; … … 168 168 * @return [boolean] 169 169 */ 170 public function qcthgChkTemplateName($templateName)170 public static function qcthgChkTemplateName($templateName) 171 171 { 172 172 $res = locate_template('template-'.$templateName.'.php'); … … 184 184 * @return [boolean] 185 185 */ 186 public function findHeaderFooter($fileNm, $scanPath)186 public static function findHeaderFooter($fileNm, $scanPath) 187 187 { 188 188 $find = false; -
quick-child-theme-generator/trunk/init.php
r2446397 r2649535 13 13 { 14 14 $pluginAdminUrl = QCTHG_ADMIN_URL.'admin.php?page=quick-child-theme-generator'; 15 $pluginAdminTemplateUrl = QCTHG_ADMIN_URL.'admin.php?page=quick-blank-template-generator'; 16 15 17 $link = '<a href='.$pluginAdminUrl.' title="Create New Child Theme">Create New</a>'; 18 $link .= ' | <a href='.$pluginAdminTemplateUrl.' title="Create New Blank Template">Create Template</a>'; 16 19 17 20 if(strpos($pluginFileName, 'quick-child-theme-generator.php')) { … … 26 29 } 27 30 28 QCTHG_Main::qcthgInitialization();31 $objMain->qcthgInitialization(); -
quick-child-theme-generator/trunk/quick-child-theme-generator.php
r2649102 r2649535 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 and you can create custom templates as well. 6 * Version: 2. 0.16 * Version: 2.1.0 7 7 * Author: Ajay Kumar 8 8 * Author URI: https://sharmajay.com -
quick-child-theme-generator/trunk/readme.txt
r2649102 r2649535 5 5 Requires at least: 4.7 6 6 Tested up to: 5.8 7 Stable tag: 2. 0.17 Stable tag: 2.1.0 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 48 48 == Changelog == 49 49 50 = 2.1.0 = 51 * Added quick access link. 52 * Bug fixes and code enhancement. 53 50 54 = 2.0.1 = 51 55 * Minor deprecation bug fixes. … … 75 79 == Upgrade Notice == 76 80 81 = 2.1.0 = 82 Added quick access link. 83 Bug fixes. 84 77 85 = 2.0.1 = 78 86 Bug fixes.
Note: See TracChangeset
for help on using the changeset viewer.