]+\>*<\/div>$/', '', $post);
$post = preg_replace('/
]+\>/i', '', $post);
}
return $post;
}
function commentedWhen($comm_date){
$now_date = time();
$comment_date = strtotime($comm_date);
if ($now_date - 3601 <= $comment_date){
return __('Moments Ago', 'lb-lang');
}else if ($now_date - ( 3600 * 24 ) <= $comment_date - 3600){
return __('Today', 'lb-lang');
}else{
return strftime( __('%B %d, %Y', 'lb-lang'), strtotime($comm_date) );
}
}
add_action('wp_head', 'syntax_highlighter_css', 9);
function syntax_highlighter_css() {
if( false !== lb_teme_syntax_highlighter() ){
$template_url = get_bloginfo('template_url');
$stylesheet = '
';
echo $stylesheet;
}else{
return false;
}
}
add_action('wp_head', 'run_invalid_css', 9);
function run_invalid_css() {
if( false !== lb_teme_invalid_css() ){
$template_url = get_bloginfo('template_url');
$stylesheet = '
';
echo $stylesheet;
}else{
return false;
}
}
function syntaxHighlighter(){
if( false !== lb_teme_syntax_highlighter() ){
$template_url = get_bloginfo('template_url');
$script = '';
$script .= '';
$script .= '';
return $script;
}else{
return false;
}
}
function pngFix(){
if( false == lb_teme_pngfix() ){
$template_url = get_bloginfo('template_url');
$behavior = '\'behavior: url(' . $template_url . '/js/iepngfix_v2/iepngfix.php)\');' . "\n";
$script = '' . "\n";
return $script;
}else{
return false;
}
}