我有一些PHP经验,但几乎没有任何WP主题写作经验……我刚刚开始旅程。
到目前为止,我在.org存储库中看到的所有主题都有如下代码:
<?php if (condition) { ?>
..some html
<?php } else { ?>
..some other html
<?php } ?>
而不是:
<?php
if (condition) {
echo ..some html
}
else {
echo ..some other html
}
?>
我可以看到,当使用像notepad++这样的编辑器时,我们宁愿让html“裸