Welcome To Snipplr


Everyone's Recent Snippets Tagged template



1 2 3 4 5 ... 8
3 1224 posted 14 years ago by SixteenOne
Instead of directly edit your TEMPLATE\_CONTEXT\_PROCESSORS, import it in your app's settings.py and just append what you need. (credits: denysonique and all #django channel community)
0 1249 posted 14 years ago by caruso_g
0 1056 posted 14 years ago by danhanly
This simple construct allows you to replace parts of a string with items in a hash table (e.g. and Object). Example: var replacements : Object = { SPEED : "slow", ADJECTIVE : "green", VERB: "slithers" }; var template: String = "The %{SPEED}...
0 1636 posted 14 years ago by mgeduld
Some cool free templates I've found. Included in every template : Photoshop Document : Layered and ready to tweak HTML Template: Tested and ready for your content
0 1094 posted 14 years ago by Iban
0 839 posted 14 years ago by mattneary
In addition to CSS style information for your theme, style.css provides details about the Theme in the form of comments. The stylesheet must provide details about the Theme in the form of comments. No two Themes are allowed to have the same details l...
0 2186 posted 14 years ago by blueocto
*String template (String template, Object data)* Usage: template('Hello <b>${name}!</b> (not ${name}?)', { name: 'Gandalf' }) Result: Hello <b>Gandalf!</b> (not Gandalf?)
0 1045 posted 14 years ago by emdin
0 878 posted 14 years ago by thecheesewheel
Only this portion needed // Add page template suggestions based on node type, if we aren't editing the node. if ($vars['node'] && arg(2) != 'edit') { $vars['template_files'][] = 'page-nodetype-'. $vars['node']->type;...
1 1173 posted 14 years ago by resting
0 996 posted 14 years ago by laurentzziu
0 1031 posted 14 years ago by jli
Just a bit of essential code lines to start everytime from. // I don't use it :P
5 2136 posted 14 years ago by claudiowebdesign
From CSS-Tricks: Shortcodes in WordPress are bits of text you can use in the content area to invoke some kind of function to accomplish certain tasks. For example, video embedding in WP 2.9+ uses the [video] [/video] shortcode. You can write your own...
2 1296 posted 14 years ago by cwulff
File: /template/[mytemplate]/html/com_content/category/blog.php page...
0 1099 posted 14 years ago by harikaram
0 1246 posted 15 years ago by Eystein
0 772 posted 15 years ago by yoyoparis
A template of a basic jQuery plugin, including over-ridable options
3 1218 posted 15 years ago by nikefido
0 806 posted 15 years ago by mkluwe
Geo Mashup contextual maps display the results of a WordPress query, so they can be very useful in combination with the WordPress `query_posts` function. This example maps post with an example tag, but any call to `query_posts` could be substituted....
0 1183 posted 15 years ago by cyberhobo
1 2 3 4 5 ... 8