Changeset 3228171
- Timestamp:
- 01/24/2025 05:05:46 PM (11 months ago)
- Location:
- gradient-starter-templates/trunk
- Files:
-
- 3 edited
-
gradient-starter-templates.php (modified) (2 diffs)
-
includes/functions.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
gradient-starter-templates/trunk/gradient-starter-templates.php
r3215786 r3228171 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. 512 Version: 1.2.6 13 13 Author: gradientthemes 14 14 Author URI: www.gradientthemes.com … … 21 21 22 22 /*Define Constants for this plugin*/ 23 define( 'gradient_starter_templates_VERSION', '1.2. 5' );23 define( 'gradient_starter_templates_VERSION', '1.2.6' ); 24 24 define( 'gradient_starter_templates_PLUGIN_NAME', 'gradient-starter-templates' ); 25 25 define( 'gradient_starter_templates_PATH', plugin_dir_path( __FILE__ ) ); -
gradient-starter-templates/trunk/includes/functions.php
r3215786 r3228171 4 4 return $current_theme->get('Author'); 5 5 } 6 6 7 function gradient_starter_templates_get_current_theme_slug(){ 7 $current_theme = wp_get_theme(); 8 return $current_theme->stylesheet; 9 } 8 // Get the current theme object 9 $theme = wp_get_theme(); 10 // Check if it's a child theme 11 if ($theme->parent()) { 12 // Get the parent theme slug 13 $parent_theme_slug = $theme->parent()->get('TextDomain'); 14 return $parent_theme_slug; 15 } else { 16 return $theme->get('TextDomain'); 17 } 18 } 19 10 20 function gradient_starter_templates_get_theme_screenshot(){ 11 21 $current_theme = wp_get_theme(); … … 20 30 21 31 //echo gradient_starter_templates_get_current_theme_slug(); 22 23 32 24 33 if(gradient_starter_templates_get_current_theme_slug()=='best-shop' && function_exists('best_shop_pro_textdomain') ){ -
gradient-starter-templates/trunk/readme.txt
r3215786 r3228171 5 5 Requires at least: 4.9 6 6 Tested up to: 6.7 7 Stable tag: 1.2. 57 Stable tag: 1.2.6 8 8 Requires PHP: 5.6 9 9 License: GPLv2 or later
Note: See TracChangeset
for help on using the changeset viewer.