<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/php/tags/phptemplate</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Fri, 04 Jul 2008 16:44:41 GMT</pubDate>
<item>
<title>(PHP) Ugly Template Hack to display contents of a view - tgbdad</title>
<link>http://snipplr.com/view/6652/ugly-template-hack-to-display-contents-of-a-view/</link>
<description><![CDATA[ <p>This is a quick and dirty hack to display the contents of a view at the top of a page. I got some ideas for this from http://drupal.org/node/99721</p> ]]></description>
<pubDate>Wed, 11 Jun 2008 10:56:31 GMT</pubDate>
<guid>http://snipplr.com/view/6652/ugly-template-hack-to-display-contents-of-a-view/</guid>
</item>
<item>
<title>(PHP) Allow per-region template overrides. - berkes</title>
<link>http://snipplr.com/view/5042/allow-perregion-template-overrides/</link>
<description><![CDATA[ <p>A per-region override. 
ogt_blocks is ran for a region, if a region contains blocks, we search for a theme function named theme_region_regionname(). If exists, we run that, else we just return the concatenated blocks for that region.</p> ]]></description>
<pubDate>Wed, 13 Feb 2008 09:18:37 GMT</pubDate>
<guid>http://snipplr.com/view/5042/allow-perregion-template-overrides/</guid>
</item>
<item>
<title>(PHP) Easy debug variable to find what vars are available in a tpl.php file - berkes</title>
<link>http://snipplr.com/view/5039/easy-debug-variable-to-find-what-vars-are-available-in-a-tplphp-file/</link>
<description><![CDATA[ <p>An easy debug trick: gives you a variable that you can print in any tpl.php to find out what vars you have available there.</p> ]]></description>
<pubDate>Wed, 13 Feb 2008 03:30:30 GMT</pubDate>
<guid>http://snipplr.com/view/5039/easy-debug-variable-to-find-what-vars-are-available-in-a-tplphp-file/</guid>
</item>
<item>
<title>(PHP) Override specific links in theme_links based on their class. - berkes</title>
<link>http://snipplr.com/view/4560/override-specific-links-in-themelinks-based-on-their-class/</link>
<description><![CDATA[ <p>Place the first function, phptemplate_links() in your template.php file. Alternatively (and IMO better) is to name the function your_theme_name_links() where your_theme_name is the name of your theme.

From here on, you can add theme functions like your_theme_name_links_comment_add(), whom will render the specific links with the comment_add class.</p> ]]></description>
<pubDate>Mon, 14 Jan 2008 09:44:47 GMT</pubDate>
<guid>http://snipplr.com/view/4560/override-specific-links-in-themelinks-based-on-their-class/</guid>
</item>
<item>
<title>(PHP) Drupal - Unset (not include) all core stylesheets - Theme variable overrides. - berkes</title>
<link>http://snipplr.com/view/3756/drupal--unset-not-include-all-core-stylesheets--theme-variable-overrides/</link>
<description><![CDATA[ <p>Removes the core, and node styles from the $style variable. 

You most morbably already defined _phptemplate_variables($hook, $vars), in that case just add the two lines there.
_sympal_theme.. is the name of the theme where we use this.</p> ]]></description>
<pubDate>Fri, 21 Sep 2007 09:27:05 GMT</pubDate>
<guid>http://snipplr.com/view/3756/drupal--unset-not-include-all-core-stylesheets--theme-variable-overrides/</guid>
</item>
<item>
<title>(PHP) phptemplae page template based on uri - eethann</title>
<link>http://snipplr.com/view/3519/phptemplae-page-template-based-on-uri/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 15 Aug 2007 08:11:58 GMT</pubDate>
<guid>http://snipplr.com/view/3519/phptemplae-page-template-based-on-uri/</guid>
</item>
<item>
<title>(PHP) Put classes around your body - berkes</title>
<link>http://snipplr.com/view/3423/put-classes-around-your-body/</link>
<description><![CDATA[ <p>Put classes around your bodyy, to allow different colors for seperate pages and areas on your site.
IT will simply add a css-safe version of the first argument in an url. Say the url is /about_us/our_company the class will be
body.about-us
Requires phptemplate</p> ]]></description>
<pubDate>Mon, 30 Jul 2007 12:48:46 GMT</pubDate>
<guid>http://snipplr.com/view/3423/put-classes-around-your-body/</guid>
</item>
<item>
<title>(PHP) image_attach theme image in the node - berkes</title>
<link>http://snipplr.com/view/1796/imageattach-theme-image-in-the-node/</link>
<description><![CDATA[ <p>This snippet is for use with image_attach, a small contributed module that uses image module to create nice thumbs in any node type. 
The template snippet makes the images show up larger in the body node, and instead of linking to itself, it links to the attached image node.</p> ]]></description>
<pubDate>Wed, 13 Dec 2006 08:03:03 GMT</pubDate>
<guid>http://snipplr.com/view/1796/imageattach-theme-image-in-the-node/</guid>
</item>
</channel>
</rss>