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:
parent
8f76c62ada
commit
0823a14d2b
10
footer.php
10
footer.php
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
10
index.php
10
index.php
|
@ -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'); ?>
|
||||
|
||||
|
|
Loading…
Reference in New Issue