cnp/template-library

该包的最新版本(v0.9.0)没有可用的许可信息。

v0.9.0 2018-01-26 14:16 UTC

README

A PHP library of WordPress atoms and organisms engineered for writing standardized markup quickly. Most atoms include a WordPress template tag and the markup to surround the content returned from the template tag. For instance, the atom PostTitle returns content from the WordPress function the_title();, contained inside an h2 tag by default.

每个原子(从标签到内容)都可以在原子参数中进行配置,如果不能访问主要参数,还可以单独过滤。最后,原子可以堆叠在一起形成生物体,这使得为 WordPress 主题编写标记更快、更干净。这样,您不必处理一大堆打开和关闭的 PHP 标签,或奇特的缩进和奇异的 if 语句嵌套。所有这些都会分散对标记核心的关注:内容。WordPress 模板库使标记更清晰。