[ create a new paste ] login | about

Link: http://codepad.org/Mj5mNaD9    [ raw code | fork ]

PHP, pasted on Aug 28:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
add_shortcode('one_third','vp_one_third');
function vp_one_third($atts, $content = null){
	extract(shortcode_atts(array(
		'noleft' => '',
		'noright' => ''
	), $atts));
	$content = filter_shortcode($content);
	$class = '';
	if($noleft !== '')
		$class .= 'alpha ';
	if($noright !== '')
		$class .= 'omega';
	$output = '<div class="one-third column ' . $class . '">' . $content . '</div>';
	return $output;
}


Create a new paste based on this one


Comments: