blogpwad and footerpwad classes removed and trying to cleanup the membersonly.php shortcode to not have the extra <p></p> need to figure that sucker out.

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
Philip M. Hofer (Frumph) 2009-12-24 07:35:55 -08:00
parent 8f76c62ada
commit 0823a14d2b
3 changed files with 9 additions and 15 deletions

View File

@ -1,12 +1,8 @@
<?php global $wpmu_version, $comicpress_options; ?>
<div id="footer">
<?php if (function_exists('the_project_wonderful_ad')) { ?>
<div class="footerpwad">
<center>
<?php the_project_wonderful_ad('footer'); ?>
</center>
</div>
<?php } ?>
<?php if (function_exists('the_project_wonderful_ad')) {
the_project_wonderful_ad('footer');
} ?>
<?php get_sidebar('footer'); ?>
<?php if (!$comicpress_options['disable_footer_text']) { ?>
<p>

View File

@ -52,7 +52,9 @@ function shortcode_for_comicpress_members_only( $atts, $content = null ) {
if ( !empty($current_user->ID) ) {
$is_member = get_usermeta($current_user->ID,'comicpress-is-member');
if ($is_member == 'yes' || current_user_can('publish_posts')) {
$returninfo = '<div class="members-only">'.$content.'</div>';
$returninfo = "<div class=\"members-only\">$content</div>\r\n";
$returninfo = str_replace('<p>', '', $returninfo);
$returninfo = str_replace('</p>', '', $returninfo);
}
}
return $returninfo;

View File

@ -16,13 +16,9 @@
UnProtect(); ?>
<?php } ?>
<?php if (function_exists('the_project_wonderful_ad')) { ?>
<div class="blogpwad">
<center>
<?php the_project_wonderful_ad('blog'); ?>
</center>
</div>
<?php } ?>
<?php if (function_exists('the_project_wonderful_ad')) {
the_project_wonderful_ad('blog');
} ?>
<?php get_sidebar('blog'); ?>