Changeset 2954457
- Timestamp:
- 08/16/2023 01:56:17 PM (3 years ago)
- Location:
- show-template-name
- Files:
-
- 1 added
- 8 edited
- 1 copied
-
assets/screenshot-4.png (added)
-
tags/0.4 (copied) (copied from show-template-name/trunk)
-
tags/0.4/readme.txt (modified) (2 diffs)
-
tags/0.4/show-template-name.php (modified) (1 diff)
-
tags/0.4/src/class-plugin.php (modified) (1 diff)
-
tags/0.4/src/front/filter-action.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/show-template-name.php (modified) (1 diff)
-
trunk/src/class-plugin.php (modified) (1 diff)
-
trunk/src/front/filter-action.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
show-template-name/tags/0.4/readme.txt
r2950144 r2954457 5 5 Tested up to: 6.3 6 6 Requires PHP: 7.2 7 Stable tag: 0. 37 Stable tag: 0.4 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 24 24 2. Filter templates by name 25 25 3. Result of filtering by template "Landing" 26 4. We show the template that is used in the administration bar 26 27 27 28 == Changelog == 29 = 0.4 = 30 * Fix some PHP errors. 28 31 = 0.3 = 29 32 * Show in the top admin bar the name of the current template. -
show-template-name/tags/0.4/show-template-name.php
r2950144 r2954457 3 3 * Plugin Name: Show Template Name 4 4 * Description: Plugin to see which template has assigned every page in the list. 5 * Version: 0. 35 * Version: 0.4 6 6 * Author: Luis Ruiz 7 7 * Author URI: https://www.bubuku.com/ -
show-template-name/tags/0.4/src/class-plugin.php
r2950144 r2954457 8 8 9 9 public const _CLASSES_ = __DIR__; 10 public const CURRENT_VERSION = '0. 3';10 public const CURRENT_VERSION = '0.4'; 11 11 12 12 private const SUPPORTED_PHP_VERSION = '7.2.0'; -
show-template-name/tags/0.4/src/front/filter-action.php
r2950144 r2954457 25 25 } 26 26 27 $template_name = ''; 27 28 if ( $current_template = get_page_template_slug( get_queried_object_id() ) ){ 28 29 $templates = wp_get_theme()->get_page_templates(); … … 30 31 } 31 32 33 if ( empty( $template_name ) ) { 34 return false; 35 } 32 36 33 37 $wp_admin_bar->add_menu( … … 38 42 ); 39 43 40 return false;44 return true; 41 45 } 42 46 -
show-template-name/trunk/readme.txt
r2950144 r2954457 5 5 Tested up to: 6.3 6 6 Requires PHP: 7.2 7 Stable tag: 0. 37 Stable tag: 0.4 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 24 24 2. Filter templates by name 25 25 3. Result of filtering by template "Landing" 26 4. We show the template that is used in the administration bar 26 27 27 28 == Changelog == 29 = 0.4 = 30 * Fix some PHP errors. 28 31 = 0.3 = 29 32 * Show in the top admin bar the name of the current template. -
show-template-name/trunk/show-template-name.php
r2950144 r2954457 3 3 * Plugin Name: Show Template Name 4 4 * Description: Plugin to see which template has assigned every page in the list. 5 * Version: 0. 35 * Version: 0.4 6 6 * Author: Luis Ruiz 7 7 * Author URI: https://www.bubuku.com/ -
show-template-name/trunk/src/class-plugin.php
r2950144 r2954457 8 8 9 9 public const _CLASSES_ = __DIR__; 10 public const CURRENT_VERSION = '0. 3';10 public const CURRENT_VERSION = '0.4'; 11 11 12 12 private const SUPPORTED_PHP_VERSION = '7.2.0'; -
show-template-name/trunk/src/front/filter-action.php
r2950144 r2954457 25 25 } 26 26 27 $template_name = ''; 27 28 if ( $current_template = get_page_template_slug( get_queried_object_id() ) ){ 28 29 $templates = wp_get_theme()->get_page_templates(); … … 30 31 } 31 32 33 if ( empty( $template_name ) ) { 34 return false; 35 } 32 36 33 37 $wp_admin_bar->add_menu( … … 38 42 ); 39 43 40 return false;44 return true; 41 45 } 42 46
Note: See TracChangeset
for help on using the changeset viewer.