A couple of questions about what syntax to use, especially on template pages:
1. I see that a lot of people use
echo('string...'). Is this just a bbpress/wordpress thing or is this generally acceptable php coding?
2. In front-page.php of kakumei (and many other places), I see people using this shorthand echo where normal text would work just fine. For instance, in the hottags div, it is:
<h2><?php _e('Hot Tags'): ?></h2>
Why would you have PHP echo that when you could just have it as plain ol’ text in the first place? Am I missing something?
I realize neither of these is of any earth-shaking importance, but I would like to know so I can keep my code modifications in line with the default syntax that is used throughout. Thanks!
You must be logged in to reply to this topic.