Advertisement
Guest User

Parse error2

a guest
Feb 15th, 2014
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.45 KB | None | 0 0
  1. <?php
  2. if ( function_exists('register_sidebar') )
  3. register_sidebar(array(
  4. 'name'=>'sidebar_full',
  5. 'before_widget' => '<li id="%1$s" class="sidebaritem %2$s"><div class="sidebarbox">',
  6. 'after_widget' => '</div></li>',
  7. 'before_title' => '<h2 class="widgettitle">',
  8. 'after_title' => '</h2>'
  9. ));
  10. register_sidebar(array(
  11. 'name'=>'sidebar_left',
  12. 'before_widget' => '<li id="%1$s" class="sidebaritem %2$s"><div class="sidebarbox">',
  13. 'after_widget' => '</div></li>',
  14. 'before_title' => '<h2 class="widgettitle">',
  15. 'after_title' => '</h2>'
  16. ));
  17. register_sidebar(array(
  18. 'name'=>'sidebar_right',
  19. 'before_widget' => '<li id="%1$s" class="sidebaritem %2$s"><div class="sidebarbox">',
  20. 'after_widget' => '</div></li>',
  21. 'before_title' => '<h2 class="widgettitle">',
  22. 'after_title' => '</h2>'
  23. ));
  24. register_sidebar(array(
  25. 'name'=>'footer_left',
  26. 'before_widget' => '<div id="%1$s" class="widget %2$s">',
  27. 'after_widget' => '</div>',
  28. 'before_title' => '<h3>',
  29. 'after_title' => '</h3>'
  30. ));
  31. register_sidebar(array(
  32. 'name'=>'footer_middle',
  33. 'before_widget' => '<div id="%1$s" class="widget %2$s">',
  34. 'after_widget' => '</div>',
  35. 'before_title' => '<h3>',
  36. 'after_title' => '</h3>'
  37. ));
  38. register_sidebar(array(
  39. 'name'=>'footer_right',
  40. 'before_widget' => '<div id="%1$s" class="widget %2$s">',
  41. 'after_widget' => '</div>',
  42. 'before_title' => '<h3>',
  43. 'after_title' => '</h3>'
  44. ));
  45.  
  46.  
  47. add_action('admin_menu', 'add_welcome_interface');
  48.  
  49. function add_welcome_interface() {
  50. add_theme_page('welcome', 'Theme Options', '8', 'functions', 'editoptions');
  51. }
  52.  
  53. function editoptions() {
  54. ?>
  55. <div class='wrap'>
  56. <h2>Theme Options</h2>
  57. <form method="post" action="options.php">
  58. <?php wp_nonce_field('update-options') ?>
  59. <p><strong>Greeting Heading:</strong></p>
  60. <p><input type="text" name="greeting" value="<?php echo get_option('greeting'); ?>" /></p>
  61. <p><strong>Welcome Message:</strong></p>
  62. <p><textarea name="welcomemessage" cols="100%" rows="10"><?php echo get_option('welcomemessage'); ?></textarea></p>
  63. <p><strong>Please enter the name of your FeedBurner feed below: </strong>(What's the name of your feed? Well, for instance, in the following - http://feeds.feedburner.com/NAME - NAME would be your feed :))</p>
  64. <p><input type="text" name="feedname" value="<?php echo get_option('feedname'); ?>" /></p>
  65. <p><input type="submit" name="Submit" value="Update Options" /></p>
  66. <input type="hidden" name="action" value="update" />
  67. <input type="hidden" name="page_options" value="feedname,greeting,welcomemessage" />
  68. </form>
  69. </div>
  70. <?php
  71. }
  72.  
  73.  
  74. function mytheme_comment($comment, $args, $depth) {
  75. $GLOBALS['comment'] = $comment; ?>
  76. <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
  77. <div id="comment-<?php comment_ID(); ?>">
  78. <a class="gravatar">
  79. <?php echo get_avatar($comment,$size='60'); ?>
  80. </a>
  81.  
  82. <div class="commentbody">
  83. <cite><?php comment_author_link() ?></cite>
  84. <?php if ($comment->comment_approved == '0') : ?>
  85. <em>Your comment is awaiting moderation.</em>
  86. <?php endif; ?>
  87. <br />
  88. <small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?> on <?php comment_time() ?></a> <?php edit_comment_link('edit','&nbsp;&nbsp;',''); ?></small>
  89.  
  90. <?php comment_text() ?>
  91. </div><div class="cleared"></div>
  92.  
  93. <div class="reply">
  94. <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
  95. </div>
  96. </div>
  97. <?php
  98. }
  99.  
  100.  
  101.  
  102. function mytheme_ping($comment, $args, $depth) {
  103. $GLOBALS['comment'] = $comment; ?>
  104. <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
  105. <div id="comment-<?php comment_ID(); ?>">
  106. <div class="commentbody">
  107. <cite><?php comment_author_link() ?></cite>
  108. <?php if ($comment->comment_approved == '0') : ?>
  109. <em>Your comment is awaiting moderation.</em>
  110. <?php endif; ?>
  111. <br />
  112. <small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?> on <?php comment_time() ?></a> <?php edit_comment_link('edit','&nbsp;&nbsp;',''); ?></small>
  113.  
  114. <?php comment_text() ?>
  115. </div>
  116. </div>
  117. <?php
  118. }
  119.  
  120.  
  121.  
  122. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement