'.$content.' '; } function oc_script() { $content = ''; $content = apply_filters( 'oc_script', $content ); if (!empty($content)) echo ' '; } //--- options function oc_body_class($classes) { global $oc_options; if (!empty($oc_options['header_image'])) $oc_options['header_background'] = 'custom'; $classes[] = 'width_' .$oc_options['width_style']; $classes[] = 'hbg_' .$oc_options['header_background']; return $classes; } function oc_favicon() { global $oc_options; $favicon = $oc_options['favicon']; $favicon = apply_filters( 'oc_favicon', $favicon ); ?> '.$content.'

'; echo $text; } function oc_comment_allowed_tags() { ?>

XHTML: You can use these tags:

'.$link.''; } function oc_style__logo($content) { global $oc_options; $css = ''; if ($oc_options['logo-enabled']) $css = apply_filters( 'oc_style__logo', $css ); $css .= ' #brand_logo { background-image: url('.$oc_options['logo-image'].'); width: '.$oc_options['logo-width'].'px; } '; if (!empty($oc_options['header_image'])) { $image = $oc_options['header_image']; fix_ori_fullpath($image); $css .= ' .hbg_custom #lay_header { background:url('.$image.') top left no-repeat; } '; } return $content.$css; } function oc_effects() { $theme = get_bloginfo( 'stylesheet_directory' ); $js = $theme.'/js'; wp_enqueue_script('clone-effects', $js.'/effects.js', array('mootools-core', 'mootools-more') ); if (is_404()) wp_enqueue_script('moo-shake', $js.'/Fx.Shake.js', array('mootools-core', 'mootools-more') ); } function getDefaultOptionsEffects() { global $oc_options; $effects = array( 'hover_normalpage', 'mootools_watermark_scroll', 'mootools_skypebutton', 'mootools_external_favicon', 'mootools_fliptext', 'mootools_snapcasa' ); $eff_options = array(); foreach ($effects as $effect) $eff_options[$effect] = $oc_options[$effect]; if (is_404()) $eff_options['mootools_shake'] = true; return $eff_options; } function oc_script__effects($content) { $eff_options = getDefaultOptionsEffects(); $effects = array(); foreach ($eff_options as $opt_name => $opt_val) if ($opt_val) $effects[] = $opt_name; $effs = array(); foreach ($effects as $effect) $effs[] = $effect.'();'; $fx = " window.addEvent('domready', function() { ".implode($effs,"\n\t\t")."\n"." }); "; return $content.$fx; } function oc_404_shake() { ?>
Error