Advertising
Paste Description for jonimueller
Code for sidebar which pulls in sidebar2.php and sidebar3.php as well.
- jonimueller
- Thursday, September 6th, 2007 at 2:15:03pm MDT
- <!-- BOTTOM THREE COLUMN SECTION -->
- <div id="togglebottom" onclick="showorhide('bottom');"><a href="#">show/hide</a></div>
- <div id="bottom" style="display:block;">
- <div class="column1">
- <?php if ( !function_exists('dynamic_sidebar')
- || !dynamic_sidebar('Left Sidebar') ) : ?>
- <?php endif; ?>
- <ul>
- <!-- RECENT ENTRIES -->
- <?php if (function_exists('wp_get_archives')) { ?>
- <li id="recent-entries"><h3>Recent Entries</h3>
- <ul>
- <?php wp_get_archives('type=postbypost&limit=5&format=custom&before=<li>&after=</li>'); ?>
- </ul>
- </li>
- <?php } ?>
- <!-- RECENT COMMENTS -->
- <?php if (function_exists('mdv_recent_comments')) { ?>
- <li id="recent-comments"><h3>Recent Comments</h3>
- <ul>
- <?php mdv_recent_comments(5, 7, '<li>', '</li>', false, 1) ?>
- </ul>
- </li>
- <?php } ?>
- </ul>
- </div><!-- close COLUMN1 -->
- <div class="column2">
- <?php include (TEMPLATEPATH.'/sidebar2.php') ?>
- </div><!-- close COLUMN2 -->
- <div class="column3">
- <?php include (TEMPLATEPATH.'/sidebar3.php') ?>
- </div><!-- close COLUMN3 -->
- <div class="clearer"></div>
- </div><!-- close BOTTOM -->
- <?php get_footer(); ?>
- SECOND SIDEBAR CODE:
- <?php if ( !function_exists('dynamic_sidebar')
- || !dynamic_sidebar('Center Sidebar') ) : ?>
- <?php endif; ?>
- <ul>
- <!-- ADMIN CONSOLE -->
- <li id="admin"><h3>Control Panel</h3>
- <ul>
- <li><a href="<?php bloginfo('url'); ?>">Home</a></li>
- <?php wp_register(); ?>
- <li><?php wp_loginout(); ?></li>
- </ul>
- </li>
- <!-- MEMBER REGISTRATION PANEL -->
- <li>
- <?php global $user_ID, $user_identity, $user_level ?>
- <?php if ( $user_ID ) : ?>
- <h3>User Login</h3>
- <ul>
- <li>Identified as <strong><?php echo $user_identity ?></strong>.
- <ul>
- <li><a href="<?php bloginfo('url') ?>/wp-admin/">Dashboard</a></li>
- <?php if ( $user_level >= 1 ) : ?>
- <li><a href="<?php bloginfo('url') ?>/wp-admin/post-new.php">Write an article</a></li>
- <?php endif // $user_level >= 1 ?>
- <li><a href="<?php bloginfo('url') ?>/wp-admin/profile.php">Profile and personal options</a></li>
- <li><a href="<?php bloginfo('url') ?>/wp-login.php?action=logout&redirect_to=<?php echo urlencode($_SERVER['REQUEST_URI']) ?>">Exit</a></li>
- </ul>
- </li>
- </ul>
- <?php elseif ( get_option('users_can_register') ) : ?>
- <h3>User Control Panel</h3>
- <ul>
- <li>
- <form action="<?php bloginfo('url') ?>/wp-login.php" method="post">
- <p>
- <label for="log"><input type="text" name="log" id="log" value="<?php echo wp_specialchars(stripslashes($user_login), 1) ?>" size="22" /> User</label><br />
- <label for="pwd"><input type="password" name="pwd" id="pwd" size="22" /> Password</label><br />
- <input type="submit" name="submit" value="Send" class="button" />
- <label for="rememberme"><input name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever" /> Remember me</label><br />
- </p>
- <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/>
- </form>
- </li>
- <li><a href="<?php bloginfo('url') ?>/wp-register.php">Register</a></li>
- <li><a href="<?php bloginfo('url') ?>/wp-login.php?action=lostpassword">Recover password</a></li>
- </ul>
- <?php endif // get_option('users_can_register') ?>
- </li>
- </ul>
- THIRD SIDEBAR CODE:
- <?php if ( !function_exists('dynamic_sidebar')
- || !dynamic_sidebar('Right Sidebar') ) : ?>
- <?php endif; ?>
- <ul>
- <!-- DROPDOWN DATE-BASED ARCHIVES -->
- <li id="archives"><h3>Archives</h3>
- <ul><li>
- <form id="archiveform" action="">
- <select name="archive_chrono" onchange="window.location =
- (document.forms.archiveform.archive_chrono[document.forms.archiveform.archive_chrono.selectedIndex].value);">
- <option value=''>Select Month</option>
- <?php get_archives('monthly','','option'); ?>
- </select>
- </form>
- </li></ul>
- </li>
- <!-- DROPDOWN CATEGORY ARCHIVES -->
- <li id="categories"><h3>Topical Index</h3>
- <ul><li>
- <form action="/index.php" method="get">
- <?php dropdown_cats('true','all','name','asc','false','false','true','false'); ?>
- <input type="submit" name="submit" value="Go!" />
- </form>
- </li></ul>
- </li>
- <!-- EVENT LIST -->
- <?php if (function_exists('ec3_get_events')) { ?>
- <li id="event-list"><h3>Upcoming Events</h3>
- <?php ec3_get_events(5); ?>
- </li>
- <?php } ?>
- <!-- EVENT CALENDAR -->
- <?php if (function_exists('ec3_get_calendar')) { ?>
- <li id="event-calendar"><h3>Daze Gone By</h3>
- <?php ec3_get_calendar(); ?>
- </li>
- <?php } ?>
- </ul>
Paste Details
Tags: widgets
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.