Changeset 3330131
- Timestamp:
- 07/18/2025 10:32:48 AM (7 months ago)
- Location:
- gradient-starter-templates/trunk
- Files:
-
- 3 edited
-
gradient-starter-templates.php (modified) (3 diffs)
-
includes/functions.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
gradient-starter-templates/trunk/gradient-starter-templates.php
r3316401 r3330131 10 10 Plugin Name: Starter Templates by Gradient Themes 11 11 Description: Plugin used to install demo data for themes developed and submitted by Gradient Themes. 12 Version: 1.2. 712 Version: 1.2.8 13 13 Author: gradientthemes 14 14 Author URI: www.gradientthemes.com 15 Tested up to: 6. 715 Tested up to: 6.8.2 16 16 Generated By: http://gradientthemes.com 17 17 License: GPL-2.0+ … … 21 21 22 22 /*Define Constants for this plugin*/ 23 define( 'gradient_starter_templates_VERSION', '1.2. 6' );23 define( 'gradient_starter_templates_VERSION', '1.2.8' ); 24 24 define( 'gradient_starter_templates_PLUGIN_NAME', 'gradient-starter-templates' ); 25 25 define( 'gradient_starter_templates_PATH', plugin_dir_path( __FILE__ ) ); … … 27 27 define( 'gradient_starter_templates_TEMPLATE_URL', gradient_starter_templates_URL.'includes/demo-data/' ); 28 28 define( 'gradient_starter_templates_SCRIPT_PREFIX', ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '' ); 29 30 31 add_filter( 'doing_it_wrong_trigger_error', '__return_false' ); 29 32 30 33 /** -
gradient-starter-templates/trunk/includes/functions.php
r3316401 r3330131 11 11 if ($theme->parent()) { 12 12 // Get the parent theme slug 13 $parent_theme_slug = ""; //$theme->parent()->get('TextDomain');13 $parent_theme_slug = $theme->parent()->get('TextDomain'); 14 14 return $parent_theme_slug; 15 15 } else { 16 return ""; //$theme->get('TextDomain');16 return $theme->get('TextDomain'); 17 17 } 18 18 } … … 29 29 function gradient_starter_templates_is_pro(){ 30 30 31 //echogradient_starter_templates_get_current_theme_slug();31 echo "current theme: " . gradient_starter_templates_get_current_theme_slug(); 32 32 33 33 if(gradient_starter_templates_get_current_theme_slug()=='best-shop' && function_exists('best_shop_pro_textdomain') ){ … … 93 93 'business-agency' =>array( 94 94 'title' => __( 'Business / Agency', 'wp-starter-templates' ),/*Title*/ 95 'is_pro' => gradient_starter_templates_is_pro(),/*Premium*/95 'is_pro' => false,/*Premium*/ 96 96 'pro_url' => 'https://gradientthemes.com/', 97 97 'type' => 'elementor', /*Optional eg elementor or other page builders*/ -
gradient-starter-templates/trunk/readme.txt
r3316401 r3330131 4 4 Tags: import, content, demo, data, widgets, settings, redux, theme options 5 5 Requires at least: 4.9 6 Tested up to: 6. 77 Stable tag: 1.2. 76 Tested up to: 6.8.2 7 Stable tag: 1.2.8 8 8 Requires PHP: 5.6 9 9 License: GPLv2 or later
Note: See TracChangeset
for help on using the changeset viewer.