option to turn off text in the footer

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
Philip M. Hofer (Frumph) 2009-09-05 19:00:23 -07:00
parent dbc2c0f941
commit 8d6c5b6e4c
5 changed files with 23 additions and 1 deletions

View File

@ -204,6 +204,10 @@ $options = array (
"default" => "no",
"type" => "comicpress-disable_dynamic_menubar_links"),
array(
"id" => "comicpress-disable_footer_text",
"default" => "no",
"type" => "comicpress-disable_footer_text"),
array("type" => "close")
);

View File

@ -298,6 +298,20 @@ function comicpress_admin() {
</td>
</tr>
<?php break;
case "comicpress-disable_footer_text": ?>
<tr>
<th scope="row"><strong>Disable the default text in the footer?</strong><br /><br />Set to &quot;Yes&quot; and the text in the footer will not show.<br /><br /></th>
<td valign="top" width="100">
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> />Yes</label>
&nbsp;&nbsp;
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-no" type="radio" value="no"<?php if ( get_option( $value['id'] ) == "no") { echo " checked"; } ?> />No</label><br />
</td>
<td valign="top">
Footer text that shows up in the #footer area can be simply removed this way.
</td>
</tr>
<?php break;
}
}

View File

@ -7,11 +7,13 @@
</div>
<?php } ?>
<?php get_sidebar('footer'); ?>
<?php global $disable_footer_text; if ($disable_footer_text != 'yes') { ?>
<p>
<?php echo cp_copyright_year(); ?> | Powered by <a href="http://wordpress.org/">WordPress</a> with <a href="http://comicpress.org/">ComicPress</a>
| Subscribe: <a href="<?php bloginfo('rss2_url') ?>">RSS Feed</a> | <a href="#outside" onclick="scrollup(); return false;">Back to Top &uarr;</a><br />
<!-- <?php echo get_num_queries() ?> queries. <?php timer_stop(1) ?> seconds. -->
</p>
<?php } ?>
</div>
<?php global $disable_page_restraints; if ($disable_page_restraints == 'no') { ?>

View File

@ -82,7 +82,8 @@ if (get_option('upload_path') !== false) {
'disable_lrsidebars_frontpage' => 'disable_lrsidebars_frontpage',
'calendar_directory' => 'calendar_directory',
'contact_in_menubar' => 'contact_in_menubar',
'disable_dynamic_menubar_links' => 'disable_dynamic_menubar_links' ) as $options => $variable_name) {
'disable_dynamic_menubar_links' => 'disable_dynamic_menubar_links',
'disable_footer_text' => 'disable_footer_text' ) as $options => $variable_name) {
$variables_to_extract[$variable_name] = get_option("comicpress-${options}");
}

View File

@ -42,6 +42,7 @@ class widget_comicpress_comic_date extends WP_Widget {
?>
<p><label for="<?php echo $this->get_field_id('title'); ?>">Words to use before date:<br /><input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<p><label for="<?php echo $this->get_field_id('format'); ?>">Format of the Time/Date:<br /><input class="widefat" id="<?php echo $this->get_field_id('format'); ?>" name="<?php echo $this->get_field_name('format'); ?>" type="text" value="<?php echo attribute_escape($format); ?>" /></label></p>
<p><a href="http://us.php.net/manual/en/function.date.php" target="_blank">Date String Examples</a></p>
<?php
}