开发者

Naming a template [closed]

开发者 https://www.devze.com 2023-01-28 04:04 出处:网络
Closed. This question is opinion-based. It is not currently accepting answers. 开发者_JS百科 Want to improve this question? Update the question so it can be answered with facts and citation
Closed. This question is opinion-based. It is not currently accepting answers.
开发者_JS百科

Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.

Closed 9 years ago.

Improve this question

A page is generated by loading a few templates. The page contains:

  • A header (using a header.php template)
  • A menu (using menu.php)
  • A sidebar (sidebar.php)
  • A article (post.php)
  • A tabbed area below the article that contains "comments", "related articles" and "about the author" sections (xxx.php)
  • A footer (footer.php)

So besides xxx.php, all templates have intuitive names

Do you have any suggestions on how should I name this template, based on the content it has?


Maybe you should name it post-meta.php? I think it's a good name, since the file displays some information about the post.


I would call it something like post-info.php because it is related to the post it is placed under.


Personally Id pick the name used by roles: secondary (XHTML2) or complementary (HTML5).

0

精彩评论

暂无评论...
验证码 换一张
取 消