Welcome To Snipplr


Everyone's Recent Snippets Tagged template



This makes template code that applies to children of a particular page much more readable, especially if you can use a page path instead of an ID: `if ( is_child_of( 'topic/subtopic' ) ) :`.
1 1829 posted 16 years ago by cyberhobo
jQuery is included via the Google AJAX Libraries repository. Dean Edwards' IE7-js is included via it's Google Code hosting URL. Version numbers of both libraries should be checked and updated to latest versions. _**Note:** While libraries can be r...
0 2248 posted 16 years ago by chrisdpratt
An example solution for the 'insert-checkin-template exercise listed here: http://stackoverflow.com/questions/41522/tips-for-learning-elisp/59589#59589 It generates a "pretty" check in notice to be emailed, and also generates a line you can cut/pa...
0 3711 posted 16 years ago by bigfaceworm
An example solution for the 'insert-code-template exercise listed here: http://stackoverflow.com/questions/41522/tips-for-learning-elisp/59589#59589
1 3671 posted 16 years ago by bigfaceworm
There's no has\_children() function in WP 2.8.4, but get\_children() returns false if the post/page has no children, so it can serve the same purpose in a page template. Outside a page template you'd have to add a global declaration for the $post...
2 1964 posted 16 years ago by cyberhobo
1 1630 posted 16 years ago by iTony
HTML/CSS Template - HTML 4 Transitional
0 2133 posted 16 years ago by thehamilton
An empty FLA to be repurposed for creating other banners of varying size. Clickable area is resized automatically to fit the stage size, and a sample button with rollover states is included. Looping and loop delay are set according to actionscript v...
0 3795 posted 16 years ago by Winkyboy
0 1861 posted 16 years ago by CommissarXiii
I made this class because is was fed up with all those strings with escaped quotes with when building html into an output-string. You could also build a php-version of it.
0 1462 posted 16 years ago by leonardreinders
How to customize a Maven Calm settings.xml in order to allow multiple environment builds; for more info look here http://code.google.com/p/maven-calm/
0 1250 posted 16 years ago by mpillitu
How to customize a Maven Calm profiles.xml in order to allow multiple environment builds; for more info look here http://code.google.com/p/maven-calm/
0 1201 posted 16 years ago by mpillitu
0 1859 posted 17 years ago by AzizLight
This turns the about page into a featured category post page. The principles for just a regular custom page template with sidebars is there too.
3 2857 posted 17 years ago by kristarella
Put this before the loop in archive.php to have posts in the archive for category '26' sorted by custom field 'date'. Assign sortable values like '090501' or '2009-05-01' to those fields when editing posts and your Upcoming Events will be sorted by...
8 3172 posted 17 years ago by hussong
This is a no-nonsense xHTML 1.1 template for use in a new document. The first head section has the stuff that shouldn't change from project to project. The second head section has the stuff that shouldn't change from page to page. The third has the s...
8 2255 posted 17 years ago by Kerrick
0 1868 posted 17 years ago by fnurl
Skor PHP Template class can assign individual variable values or arrays with several variable values. A separate sub-class extends the base class to support delimited template section replacements.
0 1364 posted 17 years ago by Agundur
This command will fix the “The list is too large to save as a template. The size of a template cannot exceed 10485760 bytes." error when saving a list (including content) that's too big.
0 1513 posted 17 years ago by blackf0rk
0 1552 posted 17 years ago by glends
Just a bare-bones DocumentClass template I use.
1 1406 posted 17 years ago by allnatural
3 2433 posted 17 years ago by jimmysessions