這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

WP Template Viewer

外掛說明

Ever wanted to take a quick look at a theme template file without opening an editor? Or wondered what template files were used to display the current page?

This plugin displays all theme template file names in use for the current page in a toolbar menu. File names are shown in the order they were included. File content is displayed in the footer of your site by clicking a file name.

Only admins and super admins have access to the toolbar menu and file content.

For more information see the plugin documentation

Note: Display of file content only works if the current theme follows the recommended practice of calling the wp_footer() template tag (most theme’s do).

Filters can be used to change (override) the default settings or behavior of the plugin.

For example,

  • Allow specific users access to the menu and content. (convenient for troubleshooting with others)
  • Also include plugin files.
  • Show the menu in the footer instead of the toolbar.

For more information see the filter documentation.

Roadmap

  • Show content with popular syntax highlighter plugins.

螢幕擷圖

  • The WP Template Viewer toolbar menu.
  • File menu in the footer with part of the content of single.php.
  • Content of index.php.

安裝方式

  • Unzip the wp-template-viewer.zip folder.
  • Upload the wp-template-viewer folder to your /wp-content/plugins directory.
  • Activate wp-template-viewer.
  • That’s it, now you are ready to use the plugin.

Note: There’s no settings page for this plugin.

使用者評論

2019 年 11 月 13 日
No more hesitation to find the good template to work with. “Where’s the north ?” “Hmm… i think i’m gonna hovering on the admin-bar !” It’s like Magic ! Merci beaucoup pour ce beau travail.
2017 年 3 月 29 日
Wow! Simply wonderful! This plugin is everything I needed to stop wasting time when I need to modify any theme!
閱讀全部 3 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈WP Template Viewer〉的開發相關工作。

參與者

將〈WP Template Viewer〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.0

  • Add more specific css to display viewer on top.
  • Add the current template to the toolbar

0.1.2

  • Added links to select text an hide or show files in the footer.
  • Added custom capability ‘view_wp_template_viewer’ for users.

0.1.1

  • Added a menu item to see the menu in the footer.
  • Better color coding for menu items

0.1

  • Initial commit.