Adding flag switch for static blog posts that appear on every single page.

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
Philip M. Hofer (Frumph) 2009-11-20 06:31:37 -08:00
parent eb32e00aa9
commit 8c81ff96f5
4 changed files with 29 additions and 71 deletions

View File

@ -177,6 +177,11 @@ $options = array (
"default" => "no",
"type" => "comicpress-blogposts_with_comic"),
array(
"id" => "comicpress-static_blog",
"default" => "no",
"type" => "comicpress-static_blog"),
array(
"id" => "comicpress-disable_page_titles",
"default" => "no",

View File

@ -101,7 +101,7 @@ function comicpress_admin() {
src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1"
height="1">
</form>
<a href="http://comicpress.org/"><strong>ComicPress 2.9</strong> <small>[ <?php global $comicpress_version; echo $comicpress_version; ?> ]</small></a>. <?php _e('Created by','comicpress'); ?> <a href="http://mindfaucet.com/">Tyler Martin</a> <?php _e('with','comicpress'); ?> <a href="http://www.coswellproductions.com/">John Bintz</a><?php _e(',','comicpress'); ?> <a href="http://webcomicplanet.com/">Philip M. Hofer</a> <small>(<a href="http://frumph.net/">Frumph</a>)</small> <?php _e('and','comicpress'); ?> <a href="http://www.oycomics.com/">Danny Burleson</a>.<br />
<a href="http://comicpress.org/"><strong>ComicPress 2.9</strong> <small>[ <?php global $comicpress_version; echo $comicpress_version; ?> ]</small></a>. <?php _e('Created by','comicpress'); ?> <a href="http://mindfaucet.com/">Tyler Martin</a> <?php _e('with','comicpress'); ?> <a href="http://www.coswellproductions.com/">John Bintz</a><?php _e(',','comicpress'); ?> <a href="http://frumph.net/">Philip M. Hofer</a> <small>(<a href="http://frumph.net/">Frumph</a>)</small> <?php _e('and','comicpress'); ?> <a href="http://www.oycomics.com/">Danny Burleson</a>.<br />
<?php _e('If you like the ComicPress theme, please donate. It will help in creating new versions.','comicpress'); ?>
<br />
<br />

View File

@ -80,7 +80,6 @@ if (get_option('upload_path') !== false) {
'enable_related_posts' => 'enable_related_posts',
'comic_clicks_next' => 'comic_clicks_next',
'rascal_says' => 'rascal_says',
'disable_css_style_editor' => 'disable_css_style_editor',
'enable_post_calendar' => 'enable_post_calendar',
'enable_post_author_gravatar' => 'enable_post_author_gravatar',
'enable_comic_post_calendar' => 'enable_comic_post_calendar',
@ -111,7 +110,8 @@ if (get_option('upload_path') !== false) {
'remove_wptexturize' => 'remove_wptexturize',
'disable_default_menubar' => 'disable_default_menubar',
'disable_blogheader' => 'disable_blogheader',
'disable_page_titles' => 'disable_page_titles' ) as $options => $variable_name) {
'disable_page_titles' => 'disable_page_titles',
'static_blog' => 'static_blog' ) as $options => $variable_name) {
$variables_to_extract[$variable_name] = get_option("comicpress-${options}");
}

View File

@ -11,8 +11,6 @@
foreach ($options as $value) {
switch ( $value['type'] ) {
case "comicpress-transcript_in_posts": ?>
<tr>
<th scope="row"><strong><?php _e('Show transcript in post area?','comicpress'); ?></strong><br /><br /><?php _e('When enabled, if the comic has a transcript, the transcript will be displayed inside the comic post.','comicpress'); ?></th>
<td valign="top" width="100">
@ -67,15 +65,7 @@ case "comicpress-transcript_in_posts": ?>
</td>
</tr>
<tr><td><h2>- Authors/Avatars -</h2></td></tr>
<tr><td><h2>- Authors/Avatars/Moods -</h2></td></tr>
<?php break;
case "comicpress-split_column_in_two": ?>
@ -156,12 +146,6 @@ case "comicpress-transcript_in_posts": ?>
</td>
</tr>
<?php break;
case "comicpress-avatar_directory":
$current_avatar_directory = get_option($value['id']);
@ -192,17 +176,6 @@ case "comicpress-transcript_in_posts": ?>
<br />
</td>
</tr>
<?php break;
case "comicpress-moods_directory":
$current_directory = get_option($value['id']);
@ -234,8 +207,6 @@ case "comicpress-transcript_in_posts": ?>
</td>
</tr>
<tr><td><h2>- Calendar -</h2></td></tr>
@ -271,13 +242,6 @@ case "comicpress-transcript_in_posts": ?>
<?php _e('To not have calendar graphics, select "none". Calendar directories are found in your theme directory/images/cal/* to create your own custom archive calendar images just create a directory under images/cal/ and place your image files inside of it.','comicpress'); ?>
</td>
</tr>
<?php break;
case "comicpress-enable_comic_post_calendar": ?>
<tr>
@ -291,9 +255,6 @@ case "comicpress-transcript_in_posts": ?>
<?php _e('The graphic calendar is an image that has the date of the comic blog post overlayed on top of it.','comicpress'); ?>
</td>
</tr>
<?php break;
case "comicpress-enable_post_calendar": ?>
<tr>
@ -308,15 +269,9 @@ case "comicpress-transcript_in_posts": ?>
</td>
</tr>
<tr><td><h2>- Tags/Categories -</h2></td></tr>
<?php break;
case "comicpress-disable_tags_in_posts": ?>
<tr>
<th scope="row"><strong><?php _e('Disable display of tags in posts?','comicpress'); ?></strong><br /><br /><?php _e('Tags are "descriptive keywords" of content in a post.','comicpress'); ?></th>
@ -330,10 +285,6 @@ case "comicpress-transcript_in_posts": ?>
</td>
</tr>
<?php break;
case "comicpress-disable_categories_in_posts": ?>
<tr>
@ -348,11 +299,7 @@ case "comicpress-transcript_in_posts": ?>
</td>
</tr>
<tr><td><h2>- Pages -</h2></td></tr>
<tr><td><h2>- Pages & Blog Loop -</h2></td></tr>
<?php break;
case "comicpress-blogposts_with_comic": ?>
@ -367,11 +314,22 @@ case "comicpress-transcript_in_posts": ?>
<?php _e('All the blog posts that are on the same day and greater to the next comic post on the comic your viewing will appear.','comicpress'); ?>
</td>
</tr>
<?php break;
case "comicpress-static_blog": ?>
<tr>
<th scope="row"><strong><?php _e('Blog loop stays with all the single pages?','comicpress'); ?></strong><br /></th>
<td valign="top">
<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"; } ?> /><?php _e('Yes','comicpress'); ?></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"; } ?> /><?php _e('No','comicpress'); ?></label>
</td>
<td valign="top">
<?php _e('Blog will stay with the single pages, good to use with comments disabled in the settings.','comicpress'); ?>
</td>
</tr>
<?php break;
case "comicpress-disable_page_titles": ?>
<tr>
<th scope="row"><strong><?php _e('Disable the titles on pages?','comicpress'); ?></strong><br /><br /></th>
@ -384,11 +342,6 @@ case "comicpress-transcript_in_posts": ?>
<?php _e('If you disable the titles no pages you can add a post-page-image in the page editor.','comicpress'); ?>
</td>
</tr>
<?php break;
}
}