My Recent Pastes (66 and counting)
Pastes by Joon Park (66 and counting)
Below are the 15 most recent pasties by Joon Park.
April 19, 2011
5:17PM EDT
by Joon Park
View all 24 lines
<?php define('CURRENT_PAGE',-1); define('ACTIVE', 0);
February 05, 2011
2:15AM EDT
by Joon Park
View all 47 lines
<?php /** * Work in progress! drupal_render() + CSS simple selectors = jackpot! *
February 03, 2011
2:05AM EDT
by Joon Park
View all 53 lines
; Global switch to enable/disable any css alterations. settings[css_alter] = 1 ; Setup optional css. The 'css_enable' settings will enable its inclusion.
January 31, 2011
12:11PM EDT
by Joon Park
View all 60 lines
<?php /** * A more flexible version of core's semi-broken theme_get_setting(). *
January 31, 2011
11:52AM EDT
by Joon Park
View all 54 lines
<?php /** * A more flexible version of core's theme_get_setting(). *
November 01, 2009
2:11AM EDT
by Joon Park
View all 109 lines
/* `Containers -------------------------------------------------------------*/ .container-12 { width: 960px; margin-left: auto;
November 01, 2009
2:10AM EDT
by Joon Park
View all 115 lines
@variables { W: 960px; // Container Width C: 12; // Column Count G: 20px; // Gutter Width }
September 10, 2009
3:35PM EDT
by Joon Park
9/10/09 3:32:59 PM Espresso Warning *** Error trying to load XML at file://localhost/Applications/Espresso.app/Contents/SharedSupport/Sugars/PHP.sugar/TextActions/Sorting.xml: Error Domain=NSURLErrorDomain Code=-1014 UserInfo=0x775f70 "zero byte resource"
August 31, 2009
9:41PM EDT
by Joon Park
View all 34 lines
<?php /** * Using array_merge() to reorder variables keys. */
August 23, 2009
9:28PM EDT
by Joon Park
View all 106 lines
<?php /** * Theming a common wrapper to supply html attributes without modifying templates. *
August 23, 2009
9:11PM EDT
by Joon Park
View all 104 lines
<?php /** * Theming a common wrapper to supply html attributes without modifying templates. */
August 11, 2009
4:07PM EDT
by Joon Park
View all 107 lines
<?php /** * Binding references from variables to deep array and object structures. *
October 25, 2007
12:02PM EDT
by Joon Park
View all 13 lines
<?php
function phptemplate_node_form($form) {
//This places each element of the form as a variable inside the template file.
foreach (element_children($form) as $element) {
October 25, 2007
12:00AM EDT
by Joon Park
View all 27 lines
/** * Intercept template variables. * * This mimics how themes work in Drupal 6. Instead of using switch cases, * separated functions are called to alter the variables per hook. This is
October 24, 2007
11:50PM EDT
by Joon Park
View all 8 lines
<?php
function _phptemplate_variables($hook, $vars = array()) {
if ($hook == 'node') {
$vars['template_files][] = 'node-'. $vars['node']->nid;
