[44] | 1 | <?php
|
---|
| 2 | if ( function_exists('register_sidebar') )
|
---|
| 3 | register_sidebar(array(
|
---|
| 4 | 'name'=>'sidebar_full',
|
---|
| 5 | 'before_widget' => '<div class="sidebartop"></div><div class="sidebarcontent"><ul><li id="%1$s" class="sidebaritem %2$s">',
|
---|
| 6 | 'after_widget' => '</li></ul></div><div class="sidebarbottom"></div>',
|
---|
| 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">',
|
---|
| 13 | 'after_widget' => '</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">',
|
---|
| 20 | 'after_widget' => '</li>',
|
---|
| 21 | 'before_title' => '<h2 class="widgettitle">',
|
---|
| 22 | 'after_title' => '</h2>',
|
---|
| 23 | ));
|
---|
| 24 |
|
---|
| 25 |
|
---|
| 26 |
|
---|
| 27 |
|
---|
| 28 | add_action('admin_menu', 'add_welcome_interface');
|
---|
| 29 |
|
---|
| 30 | function add_welcome_interface() {
|
---|
| 31 | add_theme_page('FeedBurner set up', 'FeedBurner', '8', 'functions', 'editoptions');
|
---|
| 32 | }
|
---|
| 33 |
|
---|
| 34 | function editoptions() {
|
---|
| 35 | ?>
|
---|
| 36 | <div class='wrap'>
|
---|
| 37 | <h2>FeedBurner - updates by email</h2>
|
---|
| 38 | <form method="post" action="options.php">
|
---|
| 39 | <?php wp_nonce_field('update-options') ?>
|
---|
| 40 | <p><strong>Please enter your FeedBurner ID here: </strong></p>
|
---|
| 41 | <p><input type="text" name="feedid" value="<?php echo get_option('feedid'); ?>" /></p>
|
---|
| 42 | <p><input type="submit" name="Submit" value="Update Options" /></p>
|
---|
| 43 | <input type="hidden" name="action" value="update" />
|
---|
| 44 | <input type="hidden" name="page_options" value="feedid" />
|
---|
| 45 | </form>
|
---|
| 46 | </div>
|
---|
| 47 | <?php
|
---|
| 48 | }
|
---|
| 49 |
|
---|
| 50 |
|
---|
| 51 |
|
---|
| 52 |
|
---|
| 53 | function mytheme_comment($comment, $args, $depth) {
|
---|
| 54 | $GLOBALS['comment'] = $comment; ?>
|
---|
| 55 | <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
|
---|
| 56 | <div id="comment-<?php comment_ID(); ?>">
|
---|
| 57 | <a class="gravatar">
|
---|
| 58 | <?php echo get_avatar($comment,44); ?>
|
---|
| 59 | </a>
|
---|
| 60 |
|
---|
| 61 | <div class="commentbody">
|
---|
| 62 | <cite><?php comment_author_link() ?></cite>
|
---|
| 63 | <?php if ($comment->comment_approved == '0') : ?>
|
---|
| 64 | <em>Your comment is awaiting moderation.</em>
|
---|
| 65 | <?php endif; ?>
|
---|
| 66 | <br />
|
---|
| 67 | <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',' ',''); ?></small>
|
---|
| 68 | <div class="cleared"></div>
|
---|
| 69 | <?php comment_text() ?>
|
---|
| 70 | </div>
|
---|
| 71 |
|
---|
| 72 | <div class="reply">
|
---|
| 73 | <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
|
---|
| 74 | </div>
|
---|
| 75 | </div>
|
---|
| 76 | <?php
|
---|
| 77 | }
|
---|
| 78 |
|
---|
| 79 |
|
---|
| 80 |
|
---|
| 81 | function mytheme_ping($comment, $args, $depth) {
|
---|
| 82 | $GLOBALS['comment'] = $comment; ?>
|
---|
| 83 | <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
|
---|
| 84 | <div id="comment-<?php comment_ID(); ?>">
|
---|
| 85 | <div class="commentbody">
|
---|
| 86 | <cite><?php comment_author_link() ?></cite>
|
---|
| 87 | <?php if ($comment->comment_approved == '0') : ?>
|
---|
| 88 | <em>Your comment is awaiting moderation.</em>
|
---|
| 89 | <?php endif; ?>
|
---|
| 90 | <br />
|
---|
| 91 | <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',' ',''); ?></small>
|
---|
| 92 |
|
---|
| 93 | <?php comment_text() ?>
|
---|
| 94 | </div>
|
---|
| 95 | </div>
|
---|
| 96 | <?php
|
---|
| 97 | }
|
---|
| 98 |
|
---|
| 99 |
|
---|
| 100 |
|
---|
| 101 |
|
---|
| 102 | ?> |
---|