Changeset 2452710
- Timestamp:
- 01/08/2021 03:57:40 PM (5 years ago)
- Location:
- hqtheme-extra
- Files:
-
- 14 edited
- 1 copied
-
tags/1.0.7 (copied) (copied from hqtheme-extra/trunk)
-
tags/1.0.7/hqtheme-extra.php (modified) (2 diffs)
-
tags/1.0.7/inc/admin-notifications.php (modified) (1 diff)
-
tags/1.0.7/inc/admin/page/theme-setup-wizzard.php (modified) (17 diffs)
-
tags/1.0.7/inc/hqlib/helper.php (modified) (2 diffs)
-
tags/1.0.7/inc/hqlib/license.php (modified) (1 diff)
-
tags/1.0.7/inc/menu.php (modified) (2 diffs)
-
tags/1.0.7/readme.txt (modified) (3 diffs)
-
trunk/hqtheme-extra.php (modified) (2 diffs)
-
trunk/inc/admin-notifications.php (modified) (1 diff)
-
trunk/inc/admin/page/theme-setup-wizzard.php (modified) (17 diffs)
-
trunk/inc/hqlib/helper.php (modified) (2 diffs)
-
trunk/inc/hqlib/license.php (modified) (1 diff)
-
trunk/inc/menu.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hqtheme-extra/tags/1.0.7/hqtheme-extra.php
r2430987 r2452710 5 5 * Plugin URI: https://marmot.hqwebs.net/marmot/?utm_source=wp-admin&utm_medium=link&utm_campaign=default&utm_term=hqtheme-extra&utm_content=plugin-uri 6 6 * Description: HQTheme Extra adds extras for Marmot Theme - Ready sites one click import 7 * Version: 1.0. 67 * Version: 1.0.7 8 8 * Requires at least: 5.3 9 9 * Requires PHP: 7.2 10 10 * Author: HQWebS 11 11 * Author URI: https://marmot.hqwebs.net/?utm_source=wp-admin&utm_medium=link&utm_campaign=default&utm_term=hqtheme-extra&utm_content=plugin-author 12 * License: GPL v 2or later13 * License URI: https://www.gnu.org/licenses/gpl- 2.0.html12 * License: GPL v3 or later 13 * License URI: https://www.gnu.org/licenses/gpl-3.0.html 14 14 * Text Domain: hqtheme-extra 15 15 */ … … 57 57 * @var string 58 58 */ 59 const VERSION = '1.0. 6';59 const VERSION = '1.0.7'; 60 60 61 61 // Load Autoloader -
hqtheme-extra/tags/1.0.7/inc/admin-notifications.php
r2387081 r2452710 112 112 * @param int $dismiss_expire 113 113 */ 114 public function add_notice($notice_key, $type, $message, $dismiss , $dismiss_expire = 0) {114 public function add_notice($notice_key, $type, $message, $dismiss = 1, $dismiss_expire = 0) { 115 115 global $hq_notices; 116 116 -
hqtheme-extra/tags/1.0.7/inc/admin/page/theme-setup-wizzard.php
r2430987 r2452710 72 72 <?php _ex('Marmot Theme Setup Wizzard will assist you through the initial website setup.', 'admin', 'hqtheme-extra'); ?><br> 73 73 </p> 74 74 75 <div class="hqt-container"> 75 76 <?php 76 $this->header($step); 77 $this->display_notices(); 78 $this->display_steps($step); 77 79 78 80 switch ($this->wizard_step) { … … 189 191 } 190 192 ?> 191 <a href="<?php echo admin_url('admin.php?page=marmot-theme-setup&wizzard-page=' . $next_step); ?>" class="btn btn-primary">193 <a href="<?php echo esc_url(admin_url('admin.php?page=marmot-theme-setup&wizzard-page=' . $next_step)); ?>" class="btn btn-primary"> 192 194 <?php _ex('Next step', 'admin', 'hqtheme-extra'); ?> 193 195 </a> … … 208 210 <?php _ex('You have to complete previous steps!', 'admin', 'hqtheme-extra'); ?> 209 211 </p> 210 <a href="<?php echo admin_url('admin.php?page=marmot-theme-setup&wizzard-page=1'); ?>" class="btn btn-primary">212 <a href="<?php echo esc_url(admin_url('admin.php?page=marmot-theme-setup&wizzard-page=1')); ?>" class="btn btn-primary"> 211 213 <?php _ex('Go to uncompleted step', 'admin', 'hqtheme-extra'); ?> 212 214 </a> … … 225 227 <p> 226 228 <?php _ex('You can skip this step, if do not plan to use pro features and demos.', 'admin', 'hqtheme-extra'); ?> 227 <a href="<?php echo admin_url('admin.php?page=marmot-theme-setup&wizzard-page=3&skip-license=1'); ?>">229 <a href="<?php echo esc_url(admin_url('admin.php?page=marmot-theme-setup&wizzard-page=3&skip-license=1')); ?>"> 228 230 <?php _ex('Skip this step', 'admin', 'hqtheme-extra'); ?> 229 231 </a> … … 232 234 } else { 233 235 ?> 234 <a href="<?php echo admin_url('admin.php?page=marmot-theme-setup&wizzard-page=3'); ?>" class="btn btn-primary">236 <a href="<?php echo esc_url(admin_url('admin.php?page=marmot-theme-setup&wizzard-page=3')); ?>" class="btn btn-primary"> 235 237 <?php _ex('Next step', 'admin', 'hqtheme-extra'); ?> 236 238 </a> … … 269 271 <?php _ex('You have to complete previous steps!', 'admin', 'hqtheme-extra'); ?> 270 272 </p> 271 <a href="<?php echo admin_url('admin.php?page=marmot-theme-setup&wizzard-page=' . (defined('\HQExtra\VERSION') ? $step : 1)); ?>" class="btn btn-primary">273 <a href="<?php echo esc_url(admin_url('admin.php?page=marmot-theme-setup&wizzard-page=' . (defined('\HQExtra\VERSION') ? $step : 1))); ?>" class="btn btn-primary"> 272 274 <?php _ex('Go to uncompleted step', 'admin', 'hqtheme-extra'); ?> 273 275 </a> … … 276 278 } 277 279 ?> 278 <a href="<?php echo admin_url('admin.php?page=marmot-ready-sites'); ?>" class="btn btn-primary mr-1">280 <a href="<?php echo esc_url(admin_url('admin.php?page=marmot-ready-sites')); ?>" class="btn btn-primary mr-1"> 279 281 <?php _ex('Ready Sites', 'admin', 'hqtheme-extra'); ?> 280 282 </a> 281 <a href="<?php echo admin_url('admin.php?page=marmot-theme-setup&wizzard-page=4&skip-demo=1'); ?>" class="">283 <a href="<?php echo esc_url(admin_url('admin.php?page=marmot-theme-setup&wizzard-page=4&skip-demo=1')); ?>" class=""> 282 284 <?php _ex('Skip this step', 'admin', 'hqtheme-extra'); ?> 283 285 </a> … … 297 299 <?php _ex('You have to complete previous steps!', 'admin', 'hqtheme-extra'); ?> 298 300 </p> 299 <a href="<?php echo admin_url('admin.php?page=marmot-theme-setup&wizzard-page=1'); ?>" class="btn btn-primary">301 <a href="<?php echo esc_url(admin_url('admin.php?page=marmot-theme-setup&wizzard-page=1')); ?>" class="btn btn-primary"> 300 302 <?php _ex('Go to uncompleted step', 'admin', 'hqtheme-extra'); ?> 301 303 </a> … … 312 314 <p class="m-0"><?php _ex('If you have imported pre-made demo your customization will be very easy.', 'admin', 'hqtheme-extra'); ?></p> 313 315 <p class="m-0"><?php echo sprintf('%1$s <a target="_blank" href="%2$s">%3$s</a>.', _x('Just follow the tutorial', 'admin', 'hqtheme-extra'), 'https://marmot.hqwebs.net/documentation/how-to-edit-header-template/', _x('How to edit header template', 'admin', 'hqtheme-extra')); ?></p> 314 <p class="mt-0"><?php _ex('All other elements work same way. Go to page -> from Edit with Elementor dropdown choose template and edit.', 'admin', 'hqtheme-extra'); ?></p>315 <p class="mb-0"><?php _ex('If you do not use ou tpre-made website use our documentation to find out how to attach templates.', 'admin', 'hqtheme-extra'); ?></p>316 <p class="mt-0"><?php _ex('All other elements work same way. Go to page -> from Edit with Elementor dropdown (you must be logged in as an administrator) choose template and edit.', 'admin', 'hqtheme-extra'); ?></p> 317 <p class="mb-0"><?php _ex('If you do not use our pre-made website use our documentation to find out how to attach templates.', 'admin', 'hqtheme-extra'); ?></p> 316 318 <p><?php echo sprintf('<a target="_blank" class="btn btn-primary" href="%1$s">%2$s</a>', 'https://marmot.hqwebs.net/documentation/', _x('Full documentation', 'admin', 'hqtheme-extra')); ?></p> 317 319 … … 319 321 } 320 322 321 protected function header($step) {323 protected function display_steps($step) { 322 324 ?> 323 325 … … 327 329 <div class="hqt-row"> 328 330 <div class="<?php echo esc_attr($this->getHeaderStepClass(1)) ?>"> 329 <a href="<?php echo admin_url('admin.php?page=marmot-theme-setup&wizzard-page=1'); ?>" class="step-box step-1">331 <a href="<?php echo esc_url(admin_url('admin.php?page=marmot-theme-setup&wizzard-page=1')); ?>" class="step-box step-1"> 330 332 <div class="step"> 331 333 <span class="step-arrow step-arrow-left"></span> … … 340 342 <?php if (defined('\WP_FS__DEMO_MODE') && \WP_FS__DEMO_MODE) : ?> 341 343 <div class="<?php echo esc_attr($this->getHeaderStepClass(3)) ?>"> 342 <a href="<?php echo admin_url('admin.php?page=marmot-theme-setup&wizzard-page=3'); ?>" class="step-box step-3">344 <a href="<?php echo esc_url(admin_url('admin.php?page=marmot-theme-setup&wizzard-page=3')); ?>" class="step-box step-3"> 343 345 <div class="step"> 344 346 <span class="step-arrow step-arrow-left"></span> … … 352 354 </div> 353 355 <div class="<?php echo esc_attr($this->getHeaderStepClass(4)) ?>"> 354 <a href="<?php echo admin_url('admin.php?page=marmot-theme-setup&wizzard-page=4'); ?>" class="step-box step-4">356 <a href="<?php echo esc_url(admin_url('admin.php?page=marmot-theme-setup&wizzard-page=4')); ?>" class="step-box step-4"> 355 357 <div class="step"> 356 358 <span class="step-arrow step-arrow-left"></span> … … 366 368 <?php else : ?> 367 369 <div class="<?php echo esc_attr($this->getHeaderStepClass(2)) ?>"> 368 <a href="<?php echo admin_url('admin.php?page=marmot-theme-setup&wizzard-page=2'); ?>" class="step-box step-2">370 <a href="<?php echo esc_url(admin_url('admin.php?page=marmot-theme-setup&wizzard-page=2')); ?>" class="step-box step-2"> 369 371 <div class="step"> 370 372 <span class="step-arrow step-arrow-left"></span> … … 378 380 </div> 379 381 <div class="<?php echo esc_attr($this->getHeaderStepClass(3)) ?>"> 380 <a href="<?php echo admin_url('admin.php?page=marmot-theme-setup&wizzard-page=3'); ?>" class="step-box step-3">382 <a href="<?php echo esc_url(admin_url('admin.php?page=marmot-theme-setup&wizzard-page=3')); ?>" class="step-box step-3"> 381 383 <div class="step"> 382 384 <span class="step-arrow step-arrow-left"></span> … … 390 392 </div> 391 393 <div class="<?php echo esc_attr($this->getHeaderStepClass(4)) ?>"> 392 <a href="<?php echo admin_url('admin.php?page=marmot-theme-setup&wizzard-page=4'); ?>" class="step-box step-4">394 <a href="<?php echo esc_url(admin_url('admin.php?page=marmot-theme-setup&wizzard-page=4')); ?>" class="step-box step-4"> 393 395 <div class="step"> 394 396 <span class="step-arrow step-arrow-left"></span> … … 410 412 } 411 413 414 protected function display_notices() { 415 $theme = wp_get_theme(); 416 417 if ('Marmot' === $theme->name || 'Marmot' !== $theme->parent_theme) { 418 ?> 419 <div class="hqt-row border-rad-10 hqt-box-shadow mt-1 mb-4 mx-0 py-3 px-2" style="border-left: solid 4px #2096F3;"> 420 <div class="hqt-col-1-1"> 421 <h3 class="p-0 mt-0 mb-2"><?php _ex('Not using a child theme?', 'admin', 'hqtheme-extra'); ?></h3> 422 <p class="m-0"> 423 <?php _ex('A child theme allows you to change small aspects of your site`s appearance yet still preserve your theme’s look and functionality. It protects your changes to be overwritten on update of main theme.', 'admin', 'hqtheme-extra'); ?> 424 </p> 425 <p class="mt-0 mb-3"> 426 <?php echo sprintf('<a href="%1$s" target="_blank">%2$s</a> %3$s', 'https://developer.wordpress.org/themes/advanced-topics/child-themes/', _x('Learn more', 'admin', 'hqtheme-extra'), _x('what is a child theme and how it works.', 'admin', 'hqtheme-extra')); ?> 427 </p> 428 <a href="https://github.com/hqwebs/marmot-theme-child/releases/download/1.0.0/marmot-theme-child.zip" class="btn btn-primary mr-1"><?php _ex('Download Marmot Child', 'admin', 'hqtheme-extra'); ?></a> 429 </div> 430 </div> 431 <?php 432 } 433 } 434 412 435 private function getHeaderStepClass($step) { 413 436 $classes = ['hqt-col-1-4 mb-3']; -
hqtheme-extra/tags/1.0.7/inc/hqlib/helper.php
r2400862 r2452710 336 336 <?php if (!empty($require['link'])) : ?> 337 337 <div class="ml-2"> 338 <a href="<?php echo admin_url($require['link']); ?>">Settings</a>338 <a href="<?php echo esc_url(admin_url($require['link'])); ?>">Settings</a> 339 339 </div> 340 340 <?php endif; ?> … … 359 359 <?php if (!empty($require['link'])) : ?> 360 360 <div class="ml-2"> 361 <a href="<?php echo admin_url($require['link']); ?>">Settings</a>361 <a href="<?php echo esc_url(admin_url($require['link'])); ?>">Settings</a> 362 362 </div> 363 363 <?php endif; ?> -
hqtheme-extra/tags/1.0.7/inc/hqlib/license.php
r2430987 r2452710 202 202 <h2 class="mt-0 mb-3"><?php _ex('You\'re ready to go!', 'license info', 'hqtheme-extra'); ?></h2> 203 203 <p class="mt-0 mb-2"><?php _ex('Start building your website like a Pro! Enjoy all the premium features - import awesome templates with a click, create stunning popups, attach custom headers and footers on each page, use advanced widgets for Elementor with <b>Dynamic Tags</b>, create unique WooCommerce checkout flow and more, and more...', 'license info', 'hqtheme-extra'); ?></p> 204 <a href="<?php echo admin_url('admin.php?page=marmot'); ?>" class="btn btn-border mt-3"><?php _ex('Start Using Premium Features', 'license info', 'hqtheme-extra'); ?></a>205 <a href="<?php echo admin_url('admin.php?page=marmot-ready-sites'); ?>" class="btn btn-danger-border mt-3 ml-2"><?php _ex('Import Demo', 'license info', 'hqtheme-extra'); ?></a>204 <a href="<?php echo esc_url(admin_url('admin.php?page=marmot')); ?>" class="btn btn-border mt-3"><?php _ex('Start Using Premium Features', 'license info', 'hqtheme-extra'); ?></a> 205 <a href="<?php echo esc_url(admin_url('admin.php?page=marmot-ready-sites')); ?>" class="btn btn-danger-border mt-3 ml-2"><?php _ex('Import Demo', 'license info', 'hqtheme-extra'); ?></a> 206 206 207 207 <?php -
hqtheme-extra/tags/1.0.7/inc/menu.php
r2400862 r2452710 42 42 private function __construct() { 43 43 add_action('init', [$this, 'registerPosttype'], 50, 0); 44 45 add_action('admin_enqueue_scripts', [$this, 'load_admin_assets'], 10); 44 46 } 45 47 … … 70 72 } 71 73 74 /** 75 * Fix Clever menu 76 * 77 * @since 1.0.6 78 */ 79 public function load_admin_assets() { 80 // Fix Clever Menu in Customizer 81 wp_localize_script('cmm4e-admin', 'cleverMenuItems', []); 82 } 83 72 84 } -
hqtheme-extra/tags/1.0.7/readme.txt
r2430987 r2452710 5 5 Tested up to: 5.5 6 6 Requires PHP: 7.2 7 Stable tag: 1.0. 67 Stable tag: 1.0.7 8 8 License: GPL v2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 49 49 == Changelog == 50 50 51 = 1.0.0 - 2020-09-20 = 52 * Initial Public Release! 51 = 1.0.7 - 2021-01-08- = 52 * Theme setup wizard improvements 53 * Escape admin_url 54 55 = 1.0.6 - 2020-12-03- = 56 * Marmot theme options added 57 * Theme setup wizard improvements 58 59 = 1.0.5 - 2020-11-17 = 60 * Reindex Yoast index on demo import 61 62 = 1.0.4 - 2020-10-22 = 63 * Improving activation and configuration flow 64 65 = 1.0.3 - 2020-10-01 = 66 * Added Elementor plugin dependency 67 * updating site urls 68 69 = 1.0.2 - 2020-09-30 = 70 * Filesystem class added in library 71 * get_terms_objects and get_terms_for_options added in library 53 72 54 73 = 1.0.1 - 2020-09-24 = … … 56 75 * Remove theme recommendation 57 76 58 = 1.0.2 - 2020-09-30 = 59 * Filesystem class added in library 60 * get_terms_objects and get_terms_for_options added in library 61 62 = 1.0.3 - 2020-10-01 = 63 * Added Elementor plugin dependency 64 * updating site urls 65 66 = 1.0.4 - 2020-10-22 = 67 * Improving activation and configuration flow 68 69 = 1.0.5 - 2020-11-17 = 70 * Reindex Yoast index on demo import 71 72 = 1.0.6 - 2020-12-03- = 73 * Marmot theme options added 74 * Theme setup wizard improvements 77 = 1.0.0 - 2020-09-20 = 78 * Initial Public Release! -
hqtheme-extra/trunk/hqtheme-extra.php
r2430987 r2452710 5 5 * Plugin URI: https://marmot.hqwebs.net/marmot/?utm_source=wp-admin&utm_medium=link&utm_campaign=default&utm_term=hqtheme-extra&utm_content=plugin-uri 6 6 * Description: HQTheme Extra adds extras for Marmot Theme - Ready sites one click import 7 * Version: 1.0. 67 * Version: 1.0.7 8 8 * Requires at least: 5.3 9 9 * Requires PHP: 7.2 10 10 * Author: HQWebS 11 11 * Author URI: https://marmot.hqwebs.net/?utm_source=wp-admin&utm_medium=link&utm_campaign=default&utm_term=hqtheme-extra&utm_content=plugin-author 12 * License: GPL v 2or later13 * License URI: https://www.gnu.org/licenses/gpl- 2.0.html12 * License: GPL v3 or later 13 * License URI: https://www.gnu.org/licenses/gpl-3.0.html 14 14 * Text Domain: hqtheme-extra 15 15 */ … … 57 57 * @var string 58 58 */ 59 const VERSION = '1.0. 6';59 const VERSION = '1.0.7'; 60 60 61 61 // Load Autoloader -
hqtheme-extra/trunk/inc/admin-notifications.php
r2387081 r2452710 112 112 * @param int $dismiss_expire 113 113 */ 114 public function add_notice($notice_key, $type, $message, $dismiss , $dismiss_expire = 0) {114 public function add_notice($notice_key, $type, $message, $dismiss = 1, $dismiss_expire = 0) { 115 115 global $hq_notices; 116 116 -
hqtheme-extra/trunk/inc/admin/page/theme-setup-wizzard.php
r2430987 r2452710 72 72 <?php _ex('Marmot Theme Setup Wizzard will assist you through the initial website setup.', 'admin', 'hqtheme-extra'); ?><br> 73 73 </p> 74 74 75 <div class="hqt-container"> 75 76 <?php 76 $this->header($step); 77 $this->display_notices(); 78 $this->display_steps($step); 77 79 78 80 switch ($this->wizard_step) { … … 189 191 } 190 192 ?> 191 <a href="<?php echo admin_url('admin.php?page=marmot-theme-setup&wizzard-page=' . $next_step); ?>" class="btn btn-primary">193 <a href="<?php echo esc_url(admin_url('admin.php?page=marmot-theme-setup&wizzard-page=' . $next_step)); ?>" class="btn btn-primary"> 192 194 <?php _ex('Next step', 'admin', 'hqtheme-extra'); ?> 193 195 </a> … … 208 210 <?php _ex('You have to complete previous steps!', 'admin', 'hqtheme-extra'); ?> 209 211 </p> 210 <a href="<?php echo admin_url('admin.php?page=marmot-theme-setup&wizzard-page=1'); ?>" class="btn btn-primary">212 <a href="<?php echo esc_url(admin_url('admin.php?page=marmot-theme-setup&wizzard-page=1')); ?>" class="btn btn-primary"> 211 213 <?php _ex('Go to uncompleted step', 'admin', 'hqtheme-extra'); ?> 212 214 </a> … … 225 227 <p> 226 228 <?php _ex('You can skip this step, if do not plan to use pro features and demos.', 'admin', 'hqtheme-extra'); ?> 227 <a href="<?php echo admin_url('admin.php?page=marmot-theme-setup&wizzard-page=3&skip-license=1'); ?>">229 <a href="<?php echo esc_url(admin_url('admin.php?page=marmot-theme-setup&wizzard-page=3&skip-license=1')); ?>"> 228 230 <?php _ex('Skip this step', 'admin', 'hqtheme-extra'); ?> 229 231 </a> … … 232 234 } else { 233 235 ?> 234 <a href="<?php echo admin_url('admin.php?page=marmot-theme-setup&wizzard-page=3'); ?>" class="btn btn-primary">236 <a href="<?php echo esc_url(admin_url('admin.php?page=marmot-theme-setup&wizzard-page=3')); ?>" class="btn btn-primary"> 235 237 <?php _ex('Next step', 'admin', 'hqtheme-extra'); ?> 236 238 </a> … … 269 271 <?php _ex('You have to complete previous steps!', 'admin', 'hqtheme-extra'); ?> 270 272 </p> 271 <a href="<?php echo admin_url('admin.php?page=marmot-theme-setup&wizzard-page=' . (defined('\HQExtra\VERSION') ? $step : 1)); ?>" class="btn btn-primary">273 <a href="<?php echo esc_url(admin_url('admin.php?page=marmot-theme-setup&wizzard-page=' . (defined('\HQExtra\VERSION') ? $step : 1))); ?>" class="btn btn-primary"> 272 274 <?php _ex('Go to uncompleted step', 'admin', 'hqtheme-extra'); ?> 273 275 </a> … … 276 278 } 277 279 ?> 278 <a href="<?php echo admin_url('admin.php?page=marmot-ready-sites'); ?>" class="btn btn-primary mr-1">280 <a href="<?php echo esc_url(admin_url('admin.php?page=marmot-ready-sites')); ?>" class="btn btn-primary mr-1"> 279 281 <?php _ex('Ready Sites', 'admin', 'hqtheme-extra'); ?> 280 282 </a> 281 <a href="<?php echo admin_url('admin.php?page=marmot-theme-setup&wizzard-page=4&skip-demo=1'); ?>" class="">283 <a href="<?php echo esc_url(admin_url('admin.php?page=marmot-theme-setup&wizzard-page=4&skip-demo=1')); ?>" class=""> 282 284 <?php _ex('Skip this step', 'admin', 'hqtheme-extra'); ?> 283 285 </a> … … 297 299 <?php _ex('You have to complete previous steps!', 'admin', 'hqtheme-extra'); ?> 298 300 </p> 299 <a href="<?php echo admin_url('admin.php?page=marmot-theme-setup&wizzard-page=1'); ?>" class="btn btn-primary">301 <a href="<?php echo esc_url(admin_url('admin.php?page=marmot-theme-setup&wizzard-page=1')); ?>" class="btn btn-primary"> 300 302 <?php _ex('Go to uncompleted step', 'admin', 'hqtheme-extra'); ?> 301 303 </a> … … 312 314 <p class="m-0"><?php _ex('If you have imported pre-made demo your customization will be very easy.', 'admin', 'hqtheme-extra'); ?></p> 313 315 <p class="m-0"><?php echo sprintf('%1$s <a target="_blank" href="%2$s">%3$s</a>.', _x('Just follow the tutorial', 'admin', 'hqtheme-extra'), 'https://marmot.hqwebs.net/documentation/how-to-edit-header-template/', _x('How to edit header template', 'admin', 'hqtheme-extra')); ?></p> 314 <p class="mt-0"><?php _ex('All other elements work same way. Go to page -> from Edit with Elementor dropdown choose template and edit.', 'admin', 'hqtheme-extra'); ?></p>315 <p class="mb-0"><?php _ex('If you do not use ou tpre-made website use our documentation to find out how to attach templates.', 'admin', 'hqtheme-extra'); ?></p>316 <p class="mt-0"><?php _ex('All other elements work same way. Go to page -> from Edit with Elementor dropdown (you must be logged in as an administrator) choose template and edit.', 'admin', 'hqtheme-extra'); ?></p> 317 <p class="mb-0"><?php _ex('If you do not use our pre-made website use our documentation to find out how to attach templates.', 'admin', 'hqtheme-extra'); ?></p> 316 318 <p><?php echo sprintf('<a target="_blank" class="btn btn-primary" href="%1$s">%2$s</a>', 'https://marmot.hqwebs.net/documentation/', _x('Full documentation', 'admin', 'hqtheme-extra')); ?></p> 317 319 … … 319 321 } 320 322 321 protected function header($step) {323 protected function display_steps($step) { 322 324 ?> 323 325 … … 327 329 <div class="hqt-row"> 328 330 <div class="<?php echo esc_attr($this->getHeaderStepClass(1)) ?>"> 329 <a href="<?php echo admin_url('admin.php?page=marmot-theme-setup&wizzard-page=1'); ?>" class="step-box step-1">331 <a href="<?php echo esc_url(admin_url('admin.php?page=marmot-theme-setup&wizzard-page=1')); ?>" class="step-box step-1"> 330 332 <div class="step"> 331 333 <span class="step-arrow step-arrow-left"></span> … … 340 342 <?php if (defined('\WP_FS__DEMO_MODE') && \WP_FS__DEMO_MODE) : ?> 341 343 <div class="<?php echo esc_attr($this->getHeaderStepClass(3)) ?>"> 342 <a href="<?php echo admin_url('admin.php?page=marmot-theme-setup&wizzard-page=3'); ?>" class="step-box step-3">344 <a href="<?php echo esc_url(admin_url('admin.php?page=marmot-theme-setup&wizzard-page=3')); ?>" class="step-box step-3"> 343 345 <div class="step"> 344 346 <span class="step-arrow step-arrow-left"></span> … … 352 354 </div> 353 355 <div class="<?php echo esc_attr($this->getHeaderStepClass(4)) ?>"> 354 <a href="<?php echo admin_url('admin.php?page=marmot-theme-setup&wizzard-page=4'); ?>" class="step-box step-4">356 <a href="<?php echo esc_url(admin_url('admin.php?page=marmot-theme-setup&wizzard-page=4')); ?>" class="step-box step-4"> 355 357 <div class="step"> 356 358 <span class="step-arrow step-arrow-left"></span> … … 366 368 <?php else : ?> 367 369 <div class="<?php echo esc_attr($this->getHeaderStepClass(2)) ?>"> 368 <a href="<?php echo admin_url('admin.php?page=marmot-theme-setup&wizzard-page=2'); ?>" class="step-box step-2">370 <a href="<?php echo esc_url(admin_url('admin.php?page=marmot-theme-setup&wizzard-page=2')); ?>" class="step-box step-2"> 369 371 <div class="step"> 370 372 <span class="step-arrow step-arrow-left"></span> … … 378 380 </div> 379 381 <div class="<?php echo esc_attr($this->getHeaderStepClass(3)) ?>"> 380 <a href="<?php echo admin_url('admin.php?page=marmot-theme-setup&wizzard-page=3'); ?>" class="step-box step-3">382 <a href="<?php echo esc_url(admin_url('admin.php?page=marmot-theme-setup&wizzard-page=3')); ?>" class="step-box step-3"> 381 383 <div class="step"> 382 384 <span class="step-arrow step-arrow-left"></span> … … 390 392 </div> 391 393 <div class="<?php echo esc_attr($this->getHeaderStepClass(4)) ?>"> 392 <a href="<?php echo admin_url('admin.php?page=marmot-theme-setup&wizzard-page=4'); ?>" class="step-box step-4">394 <a href="<?php echo esc_url(admin_url('admin.php?page=marmot-theme-setup&wizzard-page=4')); ?>" class="step-box step-4"> 393 395 <div class="step"> 394 396 <span class="step-arrow step-arrow-left"></span> … … 410 412 } 411 413 414 protected function display_notices() { 415 $theme = wp_get_theme(); 416 417 if ('Marmot' === $theme->name || 'Marmot' !== $theme->parent_theme) { 418 ?> 419 <div class="hqt-row border-rad-10 hqt-box-shadow mt-1 mb-4 mx-0 py-3 px-2" style="border-left: solid 4px #2096F3;"> 420 <div class="hqt-col-1-1"> 421 <h3 class="p-0 mt-0 mb-2"><?php _ex('Not using a child theme?', 'admin', 'hqtheme-extra'); ?></h3> 422 <p class="m-0"> 423 <?php _ex('A child theme allows you to change small aspects of your site`s appearance yet still preserve your theme’s look and functionality. It protects your changes to be overwritten on update of main theme.', 'admin', 'hqtheme-extra'); ?> 424 </p> 425 <p class="mt-0 mb-3"> 426 <?php echo sprintf('<a href="%1$s" target="_blank">%2$s</a> %3$s', 'https://developer.wordpress.org/themes/advanced-topics/child-themes/', _x('Learn more', 'admin', 'hqtheme-extra'), _x('what is a child theme and how it works.', 'admin', 'hqtheme-extra')); ?> 427 </p> 428 <a href="https://github.com/hqwebs/marmot-theme-child/releases/download/1.0.0/marmot-theme-child.zip" class="btn btn-primary mr-1"><?php _ex('Download Marmot Child', 'admin', 'hqtheme-extra'); ?></a> 429 </div> 430 </div> 431 <?php 432 } 433 } 434 412 435 private function getHeaderStepClass($step) { 413 436 $classes = ['hqt-col-1-4 mb-3']; -
hqtheme-extra/trunk/inc/hqlib/helper.php
r2400862 r2452710 336 336 <?php if (!empty($require['link'])) : ?> 337 337 <div class="ml-2"> 338 <a href="<?php echo admin_url($require['link']); ?>">Settings</a>338 <a href="<?php echo esc_url(admin_url($require['link'])); ?>">Settings</a> 339 339 </div> 340 340 <?php endif; ?> … … 359 359 <?php if (!empty($require['link'])) : ?> 360 360 <div class="ml-2"> 361 <a href="<?php echo admin_url($require['link']); ?>">Settings</a>361 <a href="<?php echo esc_url(admin_url($require['link'])); ?>">Settings</a> 362 362 </div> 363 363 <?php endif; ?> -
hqtheme-extra/trunk/inc/hqlib/license.php
r2430987 r2452710 202 202 <h2 class="mt-0 mb-3"><?php _ex('You\'re ready to go!', 'license info', 'hqtheme-extra'); ?></h2> 203 203 <p class="mt-0 mb-2"><?php _ex('Start building your website like a Pro! Enjoy all the premium features - import awesome templates with a click, create stunning popups, attach custom headers and footers on each page, use advanced widgets for Elementor with <b>Dynamic Tags</b>, create unique WooCommerce checkout flow and more, and more...', 'license info', 'hqtheme-extra'); ?></p> 204 <a href="<?php echo admin_url('admin.php?page=marmot'); ?>" class="btn btn-border mt-3"><?php _ex('Start Using Premium Features', 'license info', 'hqtheme-extra'); ?></a>205 <a href="<?php echo admin_url('admin.php?page=marmot-ready-sites'); ?>" class="btn btn-danger-border mt-3 ml-2"><?php _ex('Import Demo', 'license info', 'hqtheme-extra'); ?></a>204 <a href="<?php echo esc_url(admin_url('admin.php?page=marmot')); ?>" class="btn btn-border mt-3"><?php _ex('Start Using Premium Features', 'license info', 'hqtheme-extra'); ?></a> 205 <a href="<?php echo esc_url(admin_url('admin.php?page=marmot-ready-sites')); ?>" class="btn btn-danger-border mt-3 ml-2"><?php _ex('Import Demo', 'license info', 'hqtheme-extra'); ?></a> 206 206 207 207 <?php -
hqtheme-extra/trunk/inc/menu.php
r2400862 r2452710 42 42 private function __construct() { 43 43 add_action('init', [$this, 'registerPosttype'], 50, 0); 44 45 add_action('admin_enqueue_scripts', [$this, 'load_admin_assets'], 10); 44 46 } 45 47 … … 70 72 } 71 73 74 /** 75 * Fix Clever menu 76 * 77 * @since 1.0.6 78 */ 79 public function load_admin_assets() { 80 // Fix Clever Menu in Customizer 81 wp_localize_script('cmm4e-admin', 'cleverMenuItems', []); 82 } 83 72 84 } -
hqtheme-extra/trunk/readme.txt
r2430987 r2452710 5 5 Tested up to: 5.5 6 6 Requires PHP: 7.2 7 Stable tag: 1.0. 67 Stable tag: 1.0.7 8 8 License: GPL v2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 49 49 == Changelog == 50 50 51 = 1.0.0 - 2020-09-20 = 52 * Initial Public Release! 51 = 1.0.7 - 2021-01-08- = 52 * Theme setup wizard improvements 53 * Escape admin_url 54 55 = 1.0.6 - 2020-12-03- = 56 * Marmot theme options added 57 * Theme setup wizard improvements 58 59 = 1.0.5 - 2020-11-17 = 60 * Reindex Yoast index on demo import 61 62 = 1.0.4 - 2020-10-22 = 63 * Improving activation and configuration flow 64 65 = 1.0.3 - 2020-10-01 = 66 * Added Elementor plugin dependency 67 * updating site urls 68 69 = 1.0.2 - 2020-09-30 = 70 * Filesystem class added in library 71 * get_terms_objects and get_terms_for_options added in library 53 72 54 73 = 1.0.1 - 2020-09-24 = … … 56 75 * Remove theme recommendation 57 76 58 = 1.0.2 - 2020-09-30 = 59 * Filesystem class added in library 60 * get_terms_objects and get_terms_for_options added in library 61 62 = 1.0.3 - 2020-10-01 = 63 * Added Elementor plugin dependency 64 * updating site urls 65 66 = 1.0.4 - 2020-10-22 = 67 * Improving activation and configuration flow 68 69 = 1.0.5 - 2020-11-17 = 70 * Reindex Yoast index on demo import 71 72 = 1.0.6 - 2020-12-03- = 73 * Marmot theme options added 74 * Theme setup wizard improvements 77 = 1.0.0 - 2020-09-20 = 78 * Initial Public Release!
Note: See TracChangeset
for help on using the changeset viewer.