Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

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 

  1. <!-- BOTTOM THREE COLUMN SECTION -->
  2. <div id="togglebottom" onclick="showorhide('bottom');"><a href="#">show/hide</a></div>
  3. <div id="bottom" style="display:block;">
  4. <div class="column1">
  5.  
  6. <?php if ( !function_exists('dynamic_sidebar')
  7.         || !dynamic_sidebar('Left Sidebar') ) : ?>
  8. <?php endif; ?>
  9.  
  10. <ul>
  11. <!-- RECENT ENTRIES -->
  12. <?php if (function_exists('wp_get_archives')) { ?>
  13.         <li id="recent-entries"><h3>Recent Entries</h3>
  14.                 <ul>
  15.                 <?php wp_get_archives('type=postbypost&limit=5&format=custom&before=<li>&after=</li>'); ?>
  16.                 </ul>
  17.         </li>
  18. <?php } ?>
  19.  
  20. <!-- RECENT COMMENTS -->
  21. <?php if (function_exists('mdv_recent_comments')) { ?>
  22.         <li id="recent-comments"><h3>Recent Comments</h3>
  23.                 <ul>
  24.                 <?php mdv_recent_comments(5, 7, '<li>', '</li>', false, 1) ?>
  25.                 </ul>
  26. </li>
  27. <?php } ?>
  28. </ul>
  29.  
  30. </div><!-- close COLUMN1 -->
  31.  
  32. <div class="column2">
  33. <?php include (TEMPLATEPATH.'/sidebar2.php') ?>
  34. </div><!-- close COLUMN2 -->
  35.  
  36.  
  37. <div class="column3">
  38. <?php include (TEMPLATEPATH.'/sidebar3.php') ?>
  39. </div><!-- close COLUMN3 -->
  40. <div class="clearer"></div>
  41. </div><!-- close BOTTOM -->
  42. <?php get_footer(); ?>
  43.  
  44. SECOND SIDEBAR CODE:
  45. <?php if ( !function_exists('dynamic_sidebar')
  46.         || !dynamic_sidebar('Center Sidebar') ) : ?>
  47. <?php endif; ?>
  48.  
  49.  
  50. <ul>
  51. <!-- ADMIN CONSOLE -->
  52. <li id="admin"><h3>Control Panel</h3>
  53.         <ul>
  54.         <li><a href="<?php bloginfo('url'); ?>">Home</a></li>
  55.         <?php wp_register(); ?>
  56.         <li><?php wp_loginout(); ?></li>
  57.         </ul>
  58. </li>
  59.  
  60. <!-- MEMBER REGISTRATION PANEL -->
  61. <li>
  62.         <?php global $user_ID, $user_identity, $user_level ?>
  63.         <?php if ( $user_ID ) : ?>
  64.         <h3>User Login</h3>
  65.         <ul>
  66.                 <li>Identified as <strong><?php echo $user_identity ?></strong>.
  67.                 <ul>
  68.                         <li><a href="<?php bloginfo('url') ?>/wp-admin/">Dashboard</a></li>
  69.                                 <?php if ( $user_level >= 1 ) : ?>
  70.                         <li><a href="<?php bloginfo('url') ?>/wp-admin/post-new.php">Write an article</a></li>
  71.                                 <?php endif // $user_level >= 1 ?>
  72.                         <li><a href="<?php bloginfo('url') ?>/wp-admin/profile.php">Profile and personal options</a></li>
  73.                         <li><a href="<?php bloginfo('url') ?>/wp-login.php?action=logout&amp;redirect_to=<?php echo urlencode($_SERVER['REQUEST_URI']) ?>">Exit</a></li>
  74.                 </ul>
  75.                 </li>
  76.         </ul>
  77.  
  78.         <?php elseif ( get_option('users_can_register') ) : ?>
  79.  
  80.         <h3>User Control Panel</h3>
  81.                 <ul>
  82.                         <li>
  83.                         <form action="<?php bloginfo('url') ?>/wp-login.php" method="post">
  84.                         <p>
  85.                         <label for="log"><input type="text" name="log" id="log" value="<?php echo wp_specialchars(stripslashes($user_login), 1) ?>" size="22" /> User</label><br />
  86.                         <label for="pwd"><input type="password" name="pwd" id="pwd" size="22" /> Password</label><br />
  87.                         <input type="submit" name="submit" value="Send" class="button" />
  88.                         <label for="rememberme"><input name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever" /> Remember me</label><br />
  89.                         </p>
  90.                         <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/>
  91.                         </form>
  92.                         </li>
  93.  
  94.                         <li><a href="<?php bloginfo('url') ?>/wp-register.php">Register</a></li>
  95.                         <li><a href="<?php bloginfo('url') ?>/wp-login.php?action=lostpassword">Recover password</a></li>
  96.                 </ul>
  97.  
  98.         <?php endif // get_option('users_can_register') ?>
  99. </li>
  100. </ul>
  101.  
  102. THIRD SIDEBAR CODE:
  103. <?php if ( !function_exists('dynamic_sidebar')
  104.         || !dynamic_sidebar('Right Sidebar') ) : ?>
  105. <?php endif; ?>
  106.  
  107. <ul>
  108. <!-- DROPDOWN DATE-BASED ARCHIVES -->
  109. <li id="archives"><h3>Archives</h3>
  110.    <ul><li>
  111.    <form id="archiveform" action="">
  112.    <select name="archive_chrono" onchange="window.location =
  113. (document.forms.archiveform.archive_chrono[document.forms.archiveform.archive_chrono.selectedIndex].value);">
  114. <option value=''>Select Month</option>
  115.    <?php get_archives('monthly','','option'); ?>
  116.    </select>
  117.    </form>
  118.    </li></ul>
  119. </li>
  120.  
  121.  
  122. <!-- DROPDOWN CATEGORY ARCHIVES -->
  123. <li id="categories"><h3>Topical Index</h3>
  124.    <ul><li>
  125.    <form action="/index.php" method="get">
  126.    <?php dropdown_cats('true','all','name','asc','false','false','true','false'); ?>
  127.    <input type="submit" name="submit" value="Go!" />
  128.    </form>
  129.    </li></ul>
  130. </li>
  131.  
  132. <!-- EVENT LIST -->
  133. <?php if (function_exists('ec3_get_events')) { ?>
  134. <li id="event-list"><h3>Upcoming Events</h3>
  135.    <?php ec3_get_events(5); ?>
  136. </li>
  137. <?php } ?>
  138.  
  139. <!-- EVENT CALENDAR -->
  140. <?php if (function_exists('ec3_get_calendar')) { ?>
  141. <li id="event-calendar"><h3>Daze Gone By</h3>
  142.        <?php ec3_get_calendar(); ?>
  143. </li>
  144. <?php } ?>
  145. </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.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



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.

worth-right worth-right