My Recent Pastes (66 and counting)

Pastes by Joon Park (66 and counting)

Pages:

Below are the 15 most recent pasties by Joon Park.

April 19, 2011
5:17PM EDT
by Joon Park

<?php

define('CURRENT_PAGE',-1);
define('ACTIVE',       0);

February 05, 2011
2:15AM EDT
by Joon Park

<?php

/**
 * Work in progress! drupal_render() + CSS simple selectors = jackpot!
 * 

February 03, 2011
2:05AM EDT
by Joon Park

; 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

<?php

/**
 * A more flexible version of core's semi-broken theme_get_setting().
 * 

January 31, 2011
11:52AM EDT
by Joon Park

<?php

/**
 * A more flexible version of core's theme_get_setting().
 * 

November 01, 2009
2:11AM EDT
by Joon Park

/* `Containers -------------------------------------------------------------*/

.container-12 {
  width:  960px;
  margin-left: auto;

November 01, 2009
2:10AM EDT
by Joon Park

@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

<?php

/**
 * Using array_merge() to reorder variables keys.
 */

August 23, 2009
9:28PM EDT
by Joon Park

<?php

/**
 * Theming a common wrapper to supply html attributes without modifying templates.
 *

August 23, 2009
9:11PM EDT
by Joon Park

<?php

/**
 * Theming a common wrapper to supply html attributes without modifying templates.
 */

August 11, 2009
4:07PM EDT
by Joon Park

<?php

/**
 * Binding references from variables to deep array and object structures.
 * 

October 25, 2007
12:02PM EDT
by Joon Park

<?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

/**
 * 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

<?php

function _phptemplate_variables($hook, $vars = array()) { 
  if ($hook == 'node') {
      $vars['template_files][] = 'node-'. $vars['node']->nid;

Next page