Author: nick
Date: 2007-11-03 16:52:54 -0400 (Sat, 03 Nov 2007)
New Revision: 10377
Modified:
build/topp.build.wordpress/trunk/topp/build/wordpress/wordpress-mu/wp-content/themes/openplans/sidebar.php
Log:
removed empty box from wp sidebar when user isnt logged in
Modified:
build/topp.build.wordpress/trunk/topp/build/wordpress/wordpress-mu/wp-content/themes/openplans/sidebar.php
===================================================================
---
build/topp.build.wordpress/trunk/topp/build/wordpress/wordpress-mu/wp-content/themes/openplans/sidebar.php
2007-11-03 20:51:10 UTC (rev 10376)
+++
build/topp.build.wordpress/trunk/topp/build/wordpress/wordpress-mu/wp-content/themes/openplans/sidebar.php
2007-11-03 20:52:54 UTC (rev 10377)
@@ -1,22 +1,25 @@
<!-- begin sidebar -->
<div id="oc-content-sidebar">
-<div class="oc-boxy">
<?php /* Widgetized sidebar, if you have the plugin installed. */
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
<?php if (current_user_can('publish_posts')) : ?>
+ <div class="oc-boxy">
<a href="<?php bloginfo('home'); ?>/wp-admin/post-new.php"
class="oc-banana">Write a post</a>
<p style="text-align: center">
<a href="<?php bloginfo('home'); ?>/wp-admin/">Administer your blog</a>
</p>
+ </div>
<?php elseif (current_user_can('edit_posts')) : ?>
+ <div class="oc-boxy">
<a href="<?php bloginfo('home'); ?>/wp-admin/post-new.php"
class="oc-banana">Submit a post</a>
<p style="text-align: center">
<a href="<?php bloginfo('home'); ?>/wp-admin/">Administer your blog</a>
</p>
+ </div>
<?php endif; ?>
-</div>
+
<div id="search" class="oc-boxy">
<form id="searchform" method="get" action="<?php bloginfo('home'); ?>">
<h2><label for="s""><?php _e('Search this blog'); ?></label></h2>
--
Archive:
http://www.openplans.org/projects/opencore/lists/openplans-svn/archive/2007/11/1194123174694
To unsubscribe send an email with subject unsubscribe to [EMAIL PROTECTED]
Please contact [EMAIL PROTECTED] for questions.