Changeset 847740
- Timestamp:
- 01/29/2014 04:08:42 PM (12 years ago)
- Location:
- display-template-name/trunk
- Files:
-
- 2 edited
-
display-template-name.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
display-template-name/trunk/display-template-name.php
r647427 r847740 3 3 Plugin Name: Display Template Name 4 4 Description: Displays the name of the template used by the currently displayed page. Plugins very useful for developing your blog. 5 Version: 1. 45 Version: 1.5 6 6 Author: Aurélien Chappard 7 7 Author URI: http://www.deefuse.fr/ … … 63 63 <h2>Display Template Name</h2> 64 64 <?php 65 $themes = get_themes(); 66 $current_theme = get_current_theme(); 67 $screenshotIMG = $themes[$current_theme]['Screenshot']; 68 69 $urlScreenShot = plugin_dir_url(__FILE__) . 'images/default.png'; 70 71 72 if( $screenshotIMG != '' ) 65 $themes = wp_get_theme(); 66 67 $urlScreenShot = $themes->get_screenshot(); 68 if( empty($urlScreenShot) ) 73 69 { 74 $urlScreenShot = get_bloginfo('template_directory') . '/' . $screenshotIMG;70 $urlScreenShot = plugin_dir_url(__FILE__) . 'images/default.png'; 75 71 } 76 72 ?> … … 287 283 } 288 284 if (function_exists('add_options_page')) { 289 add_options_page('Display Template Name', 'Display Template Name', 9, basename(__FILE__), array(&$display_template_name_plugin, 'printAdminPage'));285 add_options_page('Display Template Name', 'Display Template Name', 'activate_plugins', basename(__FILE__), array(&$display_template_name_plugin, 'printAdminPage')); 290 286 } 291 287 } -
display-template-name/trunk/readme.txt
r647427 r847740 2 2 Tags: developpement, template 3 3 Requires at least: 3.0.0 4 Tested up to: 3. 55 Stable tag: 1. 44 Tested up to: 3.8 5 Stable tag: 1.5 6 6 7 7 … … 24 24 25 25 == Changelog == 26 27 = 1.5 = 28 * Wordpress 3.8 compatibility 26 29 27 30 = 1.4 =
Note: See TracChangeset
for help on using the changeset viewer.