This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (function_exists('get_field') && !function_exists('tfield')) | |
{ | |
/* | |
Example usage: | |
<?php tfield('header_text', '<div class="entry">', '</div>'); ?> | |
*/ | |
function tfield($field, $before='', $after='', $echo=true) | |
{ | |
/* don't output if field doesn't have value. */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Based on debugging function found in CMS Made Simple http://www.cmsmadesimple.org/ | |
Meant for use in WordPress (ability to only output to 'manage_options' users) | |
Pass in 'false' as section param to show to everyone. | |
*/ | |
if (!function_exists('debug_display')) | |
{ | |
function debug_display($var, $admins=true, $title="", $echo_to_screen = true, $use_html = true) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function maybe_ssl_url($url) | |
{ | |
if (!is_ssl()) { return $url; } | |
return str_ireplace('http://', 'https://', $url); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.decbdr | |
{ | |
border-bottom: 13px solid #ff6e00; | |
border-image:url('img/bg/decbdr.jpg') 0 0 100 0 repeat; | |
} | |
.no-borderimage .decbdr | |
{ | |
border-bottom: 13px solid transparent; | |
position: relative; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Column Equalize | |
Example: $('.col-equalize .col').colequalize(); | |
*/ | |
;(function($) { | |
$.fn.colequalize = function(options) { | |
var h = 0; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fancy_adjacent_post_link($prev=false, $iter=1) | |
{ | |
global $post; | |
$link = $title = ''; | |
$a_post = get_adjacent_post( false, '', $prev ); | |
if ($a_post && $a_post->ID > 0) | |
{ |
NewerOlder