Advertisement
Guest User

Untitled

a guest
Aug 12th, 2012
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. <?php
  2. if ( function_exists('register_sidebar') ) {
  3. register_sidebar(array(
  4. 'name' => 'Left Sidebar',
  5. 'before_widget' => '<li id="%1$s" class="widget %2$s">',
  6. 'after_widget' => '</li>',
  7. 'before_title' => '<div id="widget">
  8. <div class="slmenu"></div>
  9. <div class="smenu"></div>
  10. <div class="srmenu"></div>
  11. </div><h2 class="widgettitle">',
  12. 'after_title' => '</h2>',
  13. ));
  14.  
  15.  
  16. }
  17. function content($limit) {
  18. $content = explode(' ', get_the_content(), $limit);
  19. if (count($content)>=$limit) {
  20. array_pop($content);
  21. $content = implode(" ",$content).'...';
  22. } else {
  23. $content = implode(" ",$content);
  24. }
  25. $content = preg_replace('/\[.+\]/','', $content);
  26. $content = apply_filters('the_content', $content);
  27. $content = str_replace(']]>', ']]&gt;', $content);
  28. return $content;
  29. }
  30.  
  31. if(!function_exists('get_sidebars')) {
  32. function get_sidebars($args='')
  33. {
  34. get_sidebar($args);
  35. }
  36. }
  37.  
  38. if ( function_exists("add_theme_support") ) { add_theme_support("post-thumbnails"); }
  39.  
  40. if ( ! function_exists( 'twentyeleven_comment' ) ) :
  41. /**
  42. * Template for comments and pingbacks.
  43. *
  44. ...
  45. etc.
  46. ...
  47. esc_html( get_the_author() )
  48. );
  49. }
  50. endif;
  51.  
  52. /**
  53.  
  54.  
  55. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement