Source code highlight plugin/modifier for PHP template engine Smarty
Monday, June 30th, 2008<?php
function smarty_modifier_highlight_code($text)
{
$text = highlight_string($text, 1);
return $text;
}
?>
<?php
function smarty_modifier_highlight_code($text)
{
$text = highlight_string($text, 1);
return $text;
}
?>
<!– Google FireFox –>
{if !eregi(”Firefox”,$smarty.server.HTTP_USER_AGENT)}
<div align=”center”>
{literal}
<script type=”text/javascript”><!–
google_ad_client = “pub-8425891275034886″;
google_ad_width = 110;
google_ad_height = 32;
google_ad_format = “110×32_as_rimg”;
google_cpa_choice = “CAAQ_-KZzgEaCHfyBUS9wT0_KOP143Q”;
//–></script>
<script type=”text/javascript” src=”http://pagead2.googlesyndication.com/pagead/show_ads.js”>
</script>
{/literal}
</div>
{/if}
<!– /Google FireFox –>
Note:
you should replace your own code between {literal} .. {/literal}
please check also google’s terms when you’ll get paid
Your PAGE title should include your keywords in order to be optimized for search engines. Your POST title should be catchy and written for your visitors. How do you accomplish this in Wordpress?
Get the SEO Title Tag Wordpress plugin. It allows you to have separate titles for your posts and your pages.
Advanced Tip: You’ll also want to check your post template (single.php) and make sure your post titles are using H2 tags and are linking to your Permalink URL.
This will give your post titles more prominence in the search engines. An example code:
<h2 class=’post-title’><a href=”<?php echo get_permalink() ?>” title=”Permanent Link: <?php the_title(); ?>”><?php the_title(); ?></a></h2>