Changeset 2950144
- Timestamp:
- 08/09/2023 08:21:46 AM (3 years ago)
- Location:
- show-template-name
- Files:
-
- 4 added
- 9 edited
- 1 copied
-
assets/icon.svg (modified) (1 prop)
-
tags/0.3 (copied) (copied from show-template-name/trunk)
-
tags/0.3/readme.txt (modified) (2 diffs)
-
tags/0.3/show-template-name.php (modified) (1 diff)
-
tags/0.3/src/admin/filter-action.php (modified) (1 diff)
-
tags/0.3/src/class-plugin.php (modified) (4 diffs)
-
tags/0.3/src/front (added)
-
tags/0.3/src/front/filter-action.php (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/show-template-name.php (modified) (1 diff)
-
trunk/src/admin/filter-action.php (modified) (1 diff)
-
trunk/src/class-plugin.php (modified) (4 diffs)
-
trunk/src/front (added)
-
trunk/src/front/filter-action.php (added)
Legend:
- Unmodified
- Added
- Removed
-
show-template-name/assets/icon.svg
-
Property
svn:mime-type
set to
image/svg+xml
-
Property
svn:mime-type
set to
-
show-template-name/tags/0.3/readme.txt
r2540422 r2950144 2 2 Contributors: lruizcode 3 3 Tags: template, theme template 4 Requires at least: 4.95 Tested up to: 5.7.24 Requires at least: 5.2 5 Tested up to: 6.3 6 6 Requires PHP: 7.2 7 Stable tag: 0. 27 Stable tag: 0.3 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 26 26 27 27 == Changelog == 28 = 0.3 = 29 * Show in the top admin bar the name of the current template. 30 * Fix some PHP errors. 31 28 32 = 0.2 = 29 33 * Filter by template name. -
show-template-name/tags/0.3/show-template-name.php
r2540422 r2950144 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. 25 * Version: 0.3 6 6 * Author: Luis Ruiz 7 7 * Author URI: https://www.bubuku.com/ -
show-template-name/tags/0.3/src/admin/filter-action.php
r2540422 r2950144 107 107 } 108 108 109 if ( $screen->id == 'edit-page' ) {109 if ( is_object($screen) && $screen->id == 'edit-page' ) { 110 110 if ( isset($_GET['template_admin_filter'] ) && 'All' !== $_GET['template_admin_filter'] ) { 111 111 $template_id = sanitize_text_field($_GET['template_admin_filter']); -
show-template-name/tags/0.3/src/class-plugin.php
r2540422 r2950144 8 8 9 9 public const _CLASSES_ = __DIR__; 10 public const CURRENT_VERSION = '0. 2';10 public const CURRENT_VERSION = '0.3'; 11 11 12 12 private const SUPPORTED_PHP_VERSION = '7.2.0'; … … 14 14 15 15 public function __invoke() { 16 if (! \is_admin()) {17 return;18 }19 16 20 17 \define(__NAMESPACE__ . '\_PLUGIN_', dirname(__DIR__)); … … 32 29 } 33 30 34 final private function initialize(): void { 35 require_once(self::_CLASSES_ . '/admin/filter-action.php'); 31 private function initialize(): void { 32 33 if ( is_admin() ) { 34 require_once(self::_CLASSES_ . '/admin/filter-action.php'); 35 if (class_exists('Bubuku\Plugins\ShowTemplateName\Admin\FilterAction')) { 36 $filter_action_admin = new \Bubuku\Plugins\ShowTemplateName\Admin\FilterAction(); 37 } 36 38 37 if (class_exists('Bubuku\Plugins\ShowTemplateName\Admin\FilterAction')) { 38 $filter_action_admin = new \Bubuku\Plugins\ShowTemplateName\Admin\FilterAction(); 39 } else { 40 require_once(self::_CLASSES_ . '/front/filter-action.php'); 41 if (class_exists('Bubuku\Plugins\ShowTemplateName\Front\FilterAction')) { 42 $filter_action_admin = new \Bubuku\Plugins\ShowTemplateName\Front\FilterAction(); 43 } 39 44 } 40 45 … … 46 51 * @return void 47 52 */ 48 finalprivate function uninstall(): void {53 private function uninstall(): void { 49 54 ( new Settings() )->unregister(); 50 55 } -
show-template-name/trunk/readme.txt
r2540422 r2950144 2 2 Contributors: lruizcode 3 3 Tags: template, theme template 4 Requires at least: 4.95 Tested up to: 5.7.24 Requires at least: 5.2 5 Tested up to: 6.3 6 6 Requires PHP: 7.2 7 Stable tag: 0. 27 Stable tag: 0.3 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 26 26 27 27 == Changelog == 28 = 0.3 = 29 * Show in the top admin bar the name of the current template. 30 * Fix some PHP errors. 31 28 32 = 0.2 = 29 33 * Filter by template name. -
show-template-name/trunk/show-template-name.php
r2540422 r2950144 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. 25 * Version: 0.3 6 6 * Author: Luis Ruiz 7 7 * Author URI: https://www.bubuku.com/ -
show-template-name/trunk/src/admin/filter-action.php
r2540422 r2950144 107 107 } 108 108 109 if ( $screen->id == 'edit-page' ) {109 if ( is_object($screen) && $screen->id == 'edit-page' ) { 110 110 if ( isset($_GET['template_admin_filter'] ) && 'All' !== $_GET['template_admin_filter'] ) { 111 111 $template_id = sanitize_text_field($_GET['template_admin_filter']); -
show-template-name/trunk/src/class-plugin.php
r2540422 r2950144 8 8 9 9 public const _CLASSES_ = __DIR__; 10 public const CURRENT_VERSION = '0. 2';10 public const CURRENT_VERSION = '0.3'; 11 11 12 12 private const SUPPORTED_PHP_VERSION = '7.2.0'; … … 14 14 15 15 public function __invoke() { 16 if (! \is_admin()) {17 return;18 }19 16 20 17 \define(__NAMESPACE__ . '\_PLUGIN_', dirname(__DIR__)); … … 32 29 } 33 30 34 final private function initialize(): void { 35 require_once(self::_CLASSES_ . '/admin/filter-action.php'); 31 private function initialize(): void { 32 33 if ( is_admin() ) { 34 require_once(self::_CLASSES_ . '/admin/filter-action.php'); 35 if (class_exists('Bubuku\Plugins\ShowTemplateName\Admin\FilterAction')) { 36 $filter_action_admin = new \Bubuku\Plugins\ShowTemplateName\Admin\FilterAction(); 37 } 36 38 37 if (class_exists('Bubuku\Plugins\ShowTemplateName\Admin\FilterAction')) { 38 $filter_action_admin = new \Bubuku\Plugins\ShowTemplateName\Admin\FilterAction(); 39 } else { 40 require_once(self::_CLASSES_ . '/front/filter-action.php'); 41 if (class_exists('Bubuku\Plugins\ShowTemplateName\Front\FilterAction')) { 42 $filter_action_admin = new \Bubuku\Plugins\ShowTemplateName\Front\FilterAction(); 43 } 39 44 } 40 45 … … 46 51 * @return void 47 52 */ 48 finalprivate function uninstall(): void {53 private function uninstall(): void { 49 54 ( new Settings() )->unregister(); 50 55 }
Note: See TracChangeset
for help on using the changeset viewer.