Changeset 1130505
- Timestamp:
- 04/08/2015 03:30:40 PM (10 years ago)
- Location:
- display-template-name
- Files:
-
- 4 added
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
display-template-name/trunk/display-template-name.php
r847740 r1130505 2 2 /* 3 3 Plugin Name: Display Template Name 4 Description: Displays the name of the template used by the currently displayed page . Plugins very useful for developing your blog.4 Description: Displays the name of the template used by the currently displayed page in the admin bar or inside the pages. Plugins very useful for developing your blog. 5 5 Version: 1.5 6 6 Author: Aurélien Chappard … … 32 32 33 33 function init() { 34 // add special cap 35 $admin_role = get_role("administrator"); 36 $admin_role->add_cap( 'view_template_name' ); 37 38 //get option 34 39 $this->getAdminOptions(); 35 40 } … … 136 141 137 142 // Css position according to the showing admin bar 138 if( !is_admin_bar_showing())143 if( !is_admin_bar_showing() && current_user_can('view_template_name') ) 139 144 { 140 145 $top = "0px"; … … 235 240 function displayTplNameAdminBar() 236 241 { 237 if(!is_admin() && is_admin_bar_showing() ){242 if(!is_admin() && is_admin_bar_showing() && current_user_can('view_template_name') ){ 238 243 global $wp_admin_bar; 239 244 $templateInfos = $this->get_current_template(); -
display-template-name/trunk/readme.txt
r847740 r1130505 2 2 Tags: developpement, template 3 3 Requires at least: 3.0.0 4 Tested up to: 3.85 Stable tag: 1. 54 Tested up to: 4.1.1 5 Stable tag: 1.6 6 6 7 7 8 8 == Description == 9 9 10 Displays the name of the template used by the currently displayed page . Plugins very useful for developing your blog.10 Displays the name of the template used by the currently displayed page in the admin bar or inside the pages. Plugins very useful for developing your blog. 11 11 12 12 … … 24 24 25 25 == Changelog == 26 27 = 1.6 = 28 * Add special capability 26 29 27 30 = 1.5 =
Note: See TracChangeset
for help on using the changeset viewer.