Removed support for simple:forums out of the control panel
Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
parent
b738b2ed6f
commit
3c6927ae1b
|
@ -1,11 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
// Remove the wptexturizer from changing the quotes and squotes.
|
// Remove the wptexturizer from changing the quotes and squotes.
|
||||||
remove_filter('the_title', 'wptexturize');
|
// remove_filter('the_title', 'wptexturize');
|
||||||
remove_filter('the_content', 'wptexturize');
|
// remove_filter('the_content', 'wptexturize');
|
||||||
remove_filter('the_excerpt', 'wptexturize');
|
// remove_filter('the_excerpt', 'wptexturize');
|
||||||
remove_filter('comment_text', 'wptexturize');
|
// remove_filter('comment_text', 'wptexturize');
|
||||||
|
|
||||||
|
|
||||||
global $wpmu_version;
|
global $wpmu_version;
|
||||||
if (!empty($wpmu_version)) {
|
if (!empty($wpmu_version)) {
|
||||||
|
|
|
@ -76,8 +76,8 @@
|
||||||
<?php }
|
<?php }
|
||||||
}
|
}
|
||||||
if ($disable_blog_frontpage == 'no') {
|
if ($disable_blog_frontpage == 'no') {
|
||||||
if (have_posts()):
|
if (have_posts()) {
|
||||||
|
global $blog_postcount;
|
||||||
$blog_query = 'showposts='.$blog_postcount.'&cat=-"'.exclude_comic_categories().'"&paged='.$paged;
|
$blog_query = 'showposts='.$blog_postcount.'&cat=-"'.exclude_comic_categories().'"&paged='.$paged;
|
||||||
|
|
||||||
$posts = query_posts($blog_query);
|
$posts = query_posts($blog_query);
|
||||||
|
@ -101,7 +101,7 @@ if ($disable_blog_frontpage == 'no') {
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
|
|
||||||
<?php endif; } ?>
|
<?php } } ?>
|
||||||
<?php get_sidebar('underblog'); ?>
|
<?php get_sidebar('underblog'); ?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -13,8 +13,9 @@ Author URI: http://webcomicplanet.com/
|
||||||
|
|
||||||
function comicpress_show_control_panel() {
|
function comicpress_show_control_panel() {
|
||||||
global $wpmu_version; ?>
|
global $wpmu_version; ?>
|
||||||
<ul><li>
|
<ul>
|
||||||
<?php if (!is_user_logged_in()) { ?>
|
<?php if (!is_user_logged_in()) { ?>
|
||||||
|
<li>
|
||||||
<form action="<?php bloginfo('url') ?>/wp-login.php" method="post">
|
<form action="<?php bloginfo('url') ?>/wp-login.php" method="post">
|
||||||
UserName:<br />
|
UserName:<br />
|
||||||
<input type="text" name="log" id="sname" value="<?php echo wp_specialchars(stripslashes($user_login), 1) ?>" size="22" /><br /><br />
|
<input type="text" name="log" id="sname" value="<?php echo wp_specialchars(stripslashes($user_login), 1) ?>" size="22" /><br /><br />
|
||||||
|
@ -37,21 +38,9 @@ global $wpmu_version; ?>
|
||||||
$uri = wp_nonce_url( site_url("wp-login.php?action=logout$redirect", 'login'), 'log-out' ); ?>
|
$uri = wp_nonce_url( site_url("wp-login.php?action=logout$redirect", 'login'), 'log-out' ); ?>
|
||||||
<li><a href="<?php echo $uri; ?>">Logout</a></li>
|
<li><a href="<?php echo $uri; ?>">Logout</a></li>
|
||||||
<?php wp_register(); ?>
|
<?php wp_register(); ?>
|
||||||
<?php
|
|
||||||
if (function_exists('pm_inbox_new_count')) {
|
|
||||||
$newmsgs = 0;
|
|
||||||
$newmsgs = pm_inbox_new_count($current_user->ID);
|
|
||||||
if (!$newmsgs) $newmsgs=0;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<?php if (function_exists('pm_inbox_new_count')) { ?>
|
|
||||||
<li><a href="/forum?pmaction=viewinpm&pms=1">Inbox (<?php echo $newmsgs; ?>)</a></li>
|
|
||||||
<li><a href="/forum?profile=user">Profile</a></li>
|
|
||||||
<?php } else { ?>
|
|
||||||
<li><a href="/wp-admin/profile.php">Profile</a></li>
|
<li><a href="/wp-admin/profile.php">Profile</a></li>
|
||||||
<?php }
|
<?php } ?>
|
||||||
} ?>
|
</ul>
|
||||||
</li></ul>
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue