Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if ( function_exists('register_sidebar') ) {
- register_sidebar(array(
- 'name' => 'Left Sidebar',
- 'before_widget' => '<li id="%1$s" class="widget %2$s">',
- 'after_widget' => '</li>',
- 'before_title' => '<div id="widget">
- <div class="slmenu"></div>
- <div class="smenu"></div>
- <div class="srmenu"></div>
- </div><h2 class="widgettitle">',
- 'after_title' => '</h2>',
- ));
- }
- function content($limit) {
- $content = explode(' ', get_the_content(), $limit);
- if (count($content)>=$limit) {
- array_pop($content);
- $content = implode(" ",$content).'...';
- } else {
- $content = implode(" ",$content);
- }
- $content = preg_replace('/\[.+\]/','', $content);
- $content = apply_filters('the_content', $content);
- $content = str_replace(']]>', ']]>', $content);
- return $content;
- }
- if(!function_exists('get_sidebars')) {
- function get_sidebars($args='')
- {
- get_sidebar($args);
- }
- }
- if ( function_exists("add_theme_support") ) { add_theme_support("post-thumbnails"); }
- if ( ! function_exists( 'twentyeleven_comment' ) ) :
- /**
- * Template for comments and pingbacks.
- *
- ...
- etc.
- ...
- esc_html( get_the_author() )
- );
- }
- endif;
- /**
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement