Apraksts
Prints an html comment in the footer of every page letting you know which template file of your theme was used for the display.
This plugin is aimed towards theme developers and for theme support. It is recommended to only have this plugin activated during development or support as it will expose your file system path structure.
Props to Joel Fisher for the idea behind this plugin.
Upgrade
- Use the plugin updater in WordPress or…
- Delete the previous
show-template
folder from the/wp-content/plugins/
directory - Upload the new
show-template
folder to the/wp-content/plugins/
directory
Usage
- Install and activate.
- View source of your blog through your web browser. You will see a html comment in the form of
<!-- Active Template: /home/username/public_html/wordpress/wp-content/themes/default/index.php -->
Uzstādīšana
- Upload the
show-template
folder to the/wp-content/plugins/
directory or install directly through the plugin installer. - Activate the plugin through the ‘Plugins’ menu in WordPress or by using the link provided by the plugin installer
BUJ
- Why is the html comment not showing in the view source of my site?
-
This plugin requires that your themes footer.php contain
<?php wp_footer(); ?>
directly above the</body>
tag.
Atsauksmes
Autori un izstrādātāji
“Show Template” ir atvērtā pirmkoda programmatūra. Šo spraudni ir veidojuši šādi cilvēki.
LīdzdalībniekiTulkot “Show Template” savā valodā.
Vai jūs interesē attīstība?
Pārlūkojiet kodu, apmeklējiet SVN krātuvi vai abonējiet attīstības žurnālu, ko izveidojis RSS.
Izmaiņu žurnāls
1.1 (2010-09-12):
- Use the WordPress 3.0 logic in determining the template file to include
- Add additional functionality to detect when a plugin or theme has intercepted the template loader
1.0 (2009-05-13):
- Initial Public Release