More options styling... :) Moved the .css out of the js folder to the options folder.
This commit is contained in:
parent
737466c654
commit
4c7cbab9bd
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
|
||||
//COMIC CATEGORY -the WordPress ID # of your comic category (default "3")
|
||||
$comiccat = "58";
|
||||
$comiccat = "3";
|
||||
|
||||
//BLOG CATEGORY - the WordPress ID of your blog category (default "1")
|
||||
$blogcat = "55";
|
||||
$blogcat = "1";
|
||||
|
||||
//COMIC FOLDER - the folder your comics files are located in (default "comics")
|
||||
$comic_folder = "comics";
|
||||
|
|
|
@ -6,19 +6,9 @@ function options() {
|
|||
}
|
||||
|
||||
function comicpress_admin_page_head() { ?>
|
||||
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/js/tabbed/tabbed_pages.css" type="text/css" media="screen" />
|
||||
<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/tabbed/tabbed_pages.js"></script>
|
||||
<!--[if lt ie 8]>
|
||||
<style>
|
||||
div.show {
|
||||
position: static;
|
||||
margin-top: 1px;
|
||||
}
|
||||
#cpadmin div.off {
|
||||
height: 22px;
|
||||
}
|
||||
</style>
|
||||
<![endif]-->
|
||||
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/options/options.css" type="text/css" media="screen" />
|
||||
<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/tabbed_pages.js"></script>
|
||||
<!--[if lt ie 8]> <style> div.show { position: static; margin-top: 1px; } #cpadmin div.off { height: 22px; } </style> <![endif]-->
|
||||
|
||||
<?php }
|
||||
|
||||
|
@ -182,43 +172,8 @@ function comicpress_admin() {
|
|||
<?php include(get_template_directory() . '/options/membersoptions.php'); ?>
|
||||
</div>
|
||||
|
||||
<div class="cpadmin-footer">
|
||||
<a href="http://comicpress.org/"><strong>ComicPress 2.9</strong> <small>[ <?php echo $comicpress_options['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'); ?>
|
||||
<table style="margin:0 auto;">
|
||||
<tr>
|
||||
<td style="width:200px;">
|
||||
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
||||
<input type="hidden" name="cmd" value="_s-xclick">
|
||||
<input type="hidden" name="hosted_button_id" value="7827910">
|
||||
<input type="image"
|
||||
src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif"
|
||||
border="0" name="submit" alt="PayPal - The safer, easier way to pay
|
||||
online!">
|
||||
<img alt="" border="0"
|
||||
src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1"
|
||||
height="1">
|
||||
</form>
|
||||
</td>
|
||||
<td style="width:200px;">
|
||||
<a href="http://comicpress.org/"><img src="<?php echo get_template_directory_uri(); ?>/images/cal/default.png" /></a>
|
||||
</td>
|
||||
<td style="width:200px;">
|
||||
<form method="post" id="myForm" name="template" enctype="multipart/form-data">
|
||||
<?php wp_nonce_field('update-options') ?>
|
||||
<input name="comicpress_reset" type="submit" class="button" value="Reset All Settings" />
|
||||
<input type="hidden" name="action" value="comicpress_reset" />
|
||||
</form>
|
||||
</td>
|
||||
</td>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
|
|
|
@ -3,57 +3,55 @@
|
|||
<form method="post" id="myForm" name="template" enctype="multipart/form-data">
|
||||
<?php wp_nonce_field('update-options') ?>
|
||||
|
||||
<div class="stuffbox" style="background: #ebf8ff;">
|
||||
<h3>Archive and Search Page Options</h3>
|
||||
<table class="form-table" style="width: auto;">
|
||||
<div id="comicpress-options">
|
||||
|
||||
<table class="widefat">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="row"><?php _e('Archive Viewing','comicpress'); ?></th>
|
||||
<td valign="top">
|
||||
<label><input name="excerpt_or_content_archive" id="excerpt_or_content_archive" type="radio" value="content"<?php if ( $comicpress_options['excerpt_or_content_archive'] == "content") { echo " checked"; } ?> />Full Content</label>
|
||||
|
||||
<label><input name="excerpt_or_content_archive" id="excerpt_or_content_archive" type="radio" value="excerpt"<?php if ( $comicpress_options['excerpt_or_content_archive'] == "excerpt") { echo " checked"; } ?> />Excerpt</label>
|
||||
</td>
|
||||
<td valign="top">
|
||||
<th colspan="3">Archive & Search Page Options</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tr class="alternate">
|
||||
<th scope="row" colspan="2">
|
||||
<?php _e('Archive Viewing','comicpress'); ?><br />
|
||||
<input name="excerpt_or_content_archive" id="content_archive" type="radio" value="content"<?php if ( $comicpress_options['excerpt_or_content_archive'] == "content") { echo " checked"; } ?> /> <label for="content_archive" class="inline-label"><?php _e('Full Content','comicpress'); ?></label>
|
||||
<input name="excerpt_or_content_archive" id="excerpt_archive" type="radio" value="excerpt"<?php if ( $comicpress_options['excerpt_or_content_archive'] == "excerpt") { echo " checked"; } ?> /> <label for="excerpt_archive" class="inline-label"><?php _e('Excerpt','comicpress'); ?></label>
|
||||
</th>
|
||||
<td>
|
||||
<?php _e('Would you like to have users see the <b>full content</b> or just an <b>excerpt</b> when viewing the archives?','comicpress'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="row"><?php _e('Searching','comicpress'); ?></th>
|
||||
<td valign="top" width="160">
|
||||
<label><input name="excerpt_or_content_search" id="excerpt_or_content_search" type="radio" value="content"<?php if ( $comicpress_options['excerpt_or_content_search'] == "content") { echo " checked"; } ?> />Full Content</label>
|
||||
|
||||
<label><input name="excerpt_or_content_search" id="excerpt_or_content_search" type="radio" value="excerpt"<?php if ( $comicpress_options['excerpt_or_content_search'] == "excerpt") { echo " checked"; } ?> />Excerpt</label>
|
||||
</td>
|
||||
<td valign="top">
|
||||
<th scope="row" colspan="2">
|
||||
<?php _e('Searching','comicpress'); ?><br />
|
||||
<input name="excerpt_or_content_search" id="content_search" type="radio" value="content"<?php if ( $comicpress_options['excerpt_or_content_search'] == "content") { echo " checked"; } ?> /> <label for="content_search" class="inline-label"><?php _e('Full Content','comicpress'); ?></label>
|
||||
<input name="excerpt_or_content_search" id="excerpt_search" type="radio" value="excerpt"<?php if ( $comicpress_options['excerpt_or_content_search'] == "excerpt") { echo " checked"; } ?> /> <label for="excerpt_search" class="inline-label"><?php _e('Excerpt','comicpress'); ?></label>
|
||||
</th>
|
||||
<td>
|
||||
<?php _e('Would you like to have users see the <b>full content</b> or just an <b>excerpt</b> when searching?','comicpress'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="row"><?php _e('Archive Display Order','comicpress'); ?></th>
|
||||
<td valign="top">
|
||||
<label>
|
||||
<th scope="row" colspan="2">
|
||||
<label for="archive_display_order"><?php _e('Archive Display Order','comicpress'); ?></label>
|
||||
<select name="archive_display_order" id="archive_display_order">
|
||||
<option class="level-0" value="asc" <?php if ($comicpress_options['archive_display_order'] == "asc") { ?>selected="selected"<?php } ?>>Oldest to Newest</option>
|
||||
<option class="level-0" value="desc" <?php if ($comicpress_options['archive_display_order'] == "desc") { ?>selected="selected"<?php } ?>>Newest to Oldest</option>
|
||||
</select>
|
||||
</label>
|
||||
</td>
|
||||
<td valign="top">
|
||||
</th>
|
||||
<td>
|
||||
<?php _e('Sets the display order of your archives. <b>Newest to Oldest</b> will display your posts starting with the most recent. <b>Oldest to Newest</b> will start with the first entry in the category, tag, or date range (e.g., Selecting May 20XX will start with May 1, not May 31st.)','comicpress'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="row"><?php _e('Number of archived comics to display','comicpress'); ?></th>
|
||||
<td valign="top">
|
||||
<th scope="row"><label for="category_thumbnail_postcount"><?php _e('Number of archived comics to display','comicpress'); ?></label></th>
|
||||
<td>
|
||||
<label>
|
||||
<input type="text" size="5" name="category_thumbnail_postcount" id="category_thumbnail_postcount" value="<?php echo $comicpress_options['category_thumbnail_postcount']; ?>" /><br />
|
||||
<input type="text" size="3" name="category_thumbnail_postcount" id="category_thumbnail_postcount" value="<?php echo $comicpress_options['category_thumbnail_postcount']; ?>" /><br />
|
||||
</label>
|
||||
</td>
|
||||
<td valign="top">
|
||||
<td>
|
||||
<?php _e('How many images in the comic category would you like to see in the archive page?','comicpress'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tr class="alternate">
|
||||
<th class="scope"><label for="disable_page_restraints"><?php _e('Disable page restraints?','comicpress'); ?></label></th>
|
||||
<th scope="row"><label for="disable_page_restraints"><?php _e('Disable page restraints?','comicpress'); ?></label></th>
|
||||
<td>
|
||||
<input id="disable_page_restraints" name="disable_page_restraints" type="checkbox" value="1" <?php checked(true, $comicpress_options['disable_page_restraints']); ?> />
|
||||
</td>
|
||||
|
@ -21,7 +21,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="scope"><label for="rascal_says"><?php _e('Enable Rascal the ComicPress Mascot?','comicpress'); ?></label></th>
|
||||
<th scope="row"><label for="rascal_says"><?php _e('Enable Rascal the ComicPress Mascot?','comicpress'); ?></label></th>
|
||||
<td>
|
||||
<input id="rascal_says" name="rascal_says" type="checkbox" value="1" <?php checked(true, $comicpress_options['rascal_says']); ?> />
|
||||
</td>
|
||||
|
@ -30,7 +30,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
<tr class="alternate">
|
||||
<th class="scope"><label for="disable_comment_note"><?php _e('Disable the comment notes?','comicpress'); ?></label></th>
|
||||
<th scope="row"><label for="disable_comment_note"><?php _e('Disable the comment notes?','comicpress'); ?></label></th>
|
||||
<td>
|
||||
<input id="disable_comment_note" name="disable_comment_note" type="checkbox" value="1" <?php checked(true, $comicpress_options['disable_comment_note']); ?> />
|
||||
</td>
|
||||
|
@ -39,7 +39,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="scope"><label for="disable_blogheader"><?php _e('Disable blog header?','comicpress'); ?></label></th>
|
||||
<th scope="row"><label for="disable_blogheader"><?php _e('Disable blog header?','comicpress'); ?></label></th>
|
||||
<td>
|
||||
<input id="disable_blogheader" name="disable_blogheader" type="checkbox" value="1" <?php checked(true, $comicpress_options['disable_blogheader']); ?> />
|
||||
</td>
|
||||
|
@ -56,7 +56,7 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tr class="alternate">
|
||||
<th class="scope"><label for="enable_numbered_pagination"><?php _e('Enable numbered pagination?','comicpress'); ?></label></th>
|
||||
<th scope="row"><label for="enable_numbered_pagination"><?php _e('Enable numbered pagination?','comicpress'); ?></label></th>
|
||||
<td>
|
||||
<input id="enable_numbered_pagination" name="enable_numbered_pagination" type="checkbox" value="1" <?php checked(true, $comicpress_options['enable_numbered_pagination']); ?> />
|
||||
</td>
|
||||
|
@ -65,7 +65,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="scope"><label for="comic_clicks_next"><?php _e('Click comic to go next?','comicpress'); ?></label></th>
|
||||
<th scope="row"><label for="comic_clicks_next"><?php _e('Click comic to go next?','comicpress'); ?></label></th>
|
||||
<td>
|
||||
<input id="comic_clicks_next" name="comic_clicks_next" type="checkbox" value="1" <?php checked(true, $comicpress_options['comic_clicks_next']); ?> />
|
||||
</td>
|
||||
|
@ -74,7 +74,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
<tr class="alternate">
|
||||
<th class="scope"><label for="disable_default_comic_nav"><?php _e('Disable the default comic post navigation?','comicpress'); ?></label></th>
|
||||
<th scope="row"><label for="disable_default_comic_nav"><?php _e('Disable the default comic post navigation?','comicpress'); ?></label></th>
|
||||
<td>
|
||||
<input id="disable_default_comic_nav" name="disable_default_comic_nav" type="checkbox" value="1" <?php checked(true, $comicpress_options['disable_default_comic_nav']); ?> />
|
||||
</td>
|
||||
|
@ -90,7 +90,7 @@
|
|||
foreach ($dirs_to_search as $dir) { $gnav_directories = array_merge($gnav_directories,glob("${dir}/images/nav/*")); }
|
||||
?>
|
||||
<tr>
|
||||
<th class="scope" colspan="2"><label for="graphicnav_directory" style="text-align:left"><?php _e('Graphic Navigation Directory','comicpress'); ?></label>
|
||||
<th scope="row" colspan="2"><label for="graphicnav_directory"><?php _e('Graphic Navigation Directory','comicpress'); ?></label>
|
||||
|
||||
<select name="graphicnav_directory" id="graphicnav_directory">
|
||||
<?php
|
||||
|
@ -117,7 +117,7 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tr class="alternate">
|
||||
<th class="scope"><label for="enable_widgetarea_use_sidebar_css"><?php _e('Enable main Sidebar CSS for all sidebars?','comicpress'); ?></label></th>
|
||||
<th scope="row"><label for="enable_widgetarea_use_sidebar_css"><?php _e('Enable main Sidebar CSS for all sidebars?','comicpress'); ?></label></th>
|
||||
<td>
|
||||
<input id="enable_widgetarea_use_sidebar_css" name="enable_widgetarea_use_sidebar_css" type="checkbox" value="1" <?php checked(true, $comicpress_options['enable_widgetarea_use_sidebar_css']); ?> />
|
||||
</td>
|
||||
|
@ -126,7 +126,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="scope"><label for="disable_lrsidebars_frontpage"><?php _e('Disable home page sidebars?','comicpress'); ?></label></th>
|
||||
<th scope="row"><label for="disable_lrsidebars_frontpage"><?php _e('Disable home page sidebars?','comicpress'); ?></label></th>
|
||||
<td>
|
||||
<input id="disable_lrsidebars_frontpage" name="disable_lrsidebars_frontpage" type="checkbox" value="1" <?php checked(true, $comicpress_options['disable_lrsidebars_frontpage']); ?> />
|
||||
</td>
|
||||
|
@ -143,7 +143,7 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tr class="alternate">
|
||||
<th class="scope"><label for="disable_footer_text"><?php _e('Disable the default text in the footer?','comicpress'); ?></label></th>
|
||||
<th scope="row"><label for="disable_footer_text"><?php _e('Disable the default text in the footer?','comicpress'); ?></label></th>
|
||||
<td>
|
||||
<input id="disable_footer_text" name="disable_footer_text" type="checkbox" value="1" <?php checked(true, $comicpress_options['disable_footer_text']); ?> />
|
||||
</td>
|
||||
|
|
|
@ -8,11 +8,11 @@
|
|||
<table class="widefat">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="3">Post</th>
|
||||
<th colspan="3">Blog</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tr class="alternate">
|
||||
<th class="scope"><label for="disable_blog_frontpage"><?php _e('Disable the blog on the Home page?','comicpress'); ?></label></th>
|
||||
<th scope="row"><label for="disable_blog_frontpage"><?php _e('Disable the blog on the Home page?','comicpress'); ?></label></th>
|
||||
<td>
|
||||
<input id="disable_blog_frontpage" name="disable_blog_frontpage" type="checkbox" value="1" <?php checked(true, $comicpress_options['disable_blog_frontpage']); ?> />
|
||||
</td>
|
||||
|
@ -29,7 +29,7 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tr class="alternate">
|
||||
<th class="scope"><label for="disable_comic_frontpage"><?php _e('Disable comic on Home page?','comicpress'); ?></label></th>
|
||||
<th scope="row"><label for="disable_comic_frontpage"><?php _e('Disable comic on Home page?','comicpress'); ?></label></th>
|
||||
<td>
|
||||
<input id="disable_comic_frontpage" name="disable_comic_frontpage" type="checkbox" value="1" <?php checked(true, $comicpress_options['disable_comic_frontpage']); ?> />
|
||||
</td>
|
||||
|
@ -38,7 +38,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="scope"><label for="disable_comic_blog_frontpage"><?php _e('Disable the comic blog on Home page?','comicpress'); ?></label></th>
|
||||
<th scope="row"><label for="disable_comic_blog_frontpage"><?php _e('Disable the comic blog on Home page?','comicpress'); ?></label></th>
|
||||
<td>
|
||||
<input id="disable_comic_blog_frontpage" name="disable_comic_blog_frontpage" type="checkbox" value="1" <?php checked(true, $comicpress_options['disable_comic_blog_frontpage']); ?> />
|
||||
</td>
|
||||
|
@ -47,7 +47,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
<tr class="alternate">
|
||||
<th class="scope"><label for="disable_comic_blog_single"><?php _e('Disable the comic blog on the single pages?','comicpress'); ?></lable></th>
|
||||
<th scope="row"><label for="disable_comic_blog_single"><?php _e('Disable the comic blog on the single pages?','comicpress'); ?></lable></th>
|
||||
<td>
|
||||
<input id="disable_comic_blog_single" name="disable_comic_blog_single" type="checkbox" value="1" <?php checked(true, $comicpress_options['disable_comic_blog_single']); ?> />
|
||||
</td>
|
||||
|
|
|
@ -137,6 +137,11 @@ font-size: 14px;
|
|||
display: block;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#comicpress-options table.widefat label.inline-label {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
#comicpress-options table.widefat select {
|
||||
width: 100%;
|
||||
}
|
||||
|
@ -146,14 +151,35 @@ margin-bottom: 10px;
|
|||
border-bottom: none;
|
||||
}
|
||||
|
||||
#comicpress-options table.widefat th.scope {
|
||||
#comicpress-options table.widefat th {
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
#comicpress-options table.widefat th.scope label {
|
||||
#comicpress-options table.widefat th label {
|
||||
color: #21759b;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#comicpress-options table.widefat th.scope label:hover {
|
||||
#comicpress-options table.widefat th label:hover {
|
||||
color: #d54e21;
|
||||
}
|
||||
|
||||
#comicpress-options table.widefat th, #comicpress-options table.widefat td {
|
||||
vertical-align: middle;
|
||||
}
|
||||
#comicpress-version-title {
|
||||
font-family: 'Georgia', serif;
|
||||
font-size: 48px;
|
||||
letter-spacing: -2px;
|
||||
margin: 0;
|
||||
padding: 30px 0 5px 0;
|
||||
font-variant: small-caps;
|
||||
}
|
||||
|
||||
#comicpress-version-title a {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
div.show .cpadmin-footer img{
|
||||
float: none;
|
||||
}
|
|
@ -3,71 +3,70 @@
|
|||
<form method="post" id="myForm" name="template" enctype="multipart/form-data">
|
||||
<?php wp_nonce_field('update-options') ?>
|
||||
|
||||
<div class="stuffbox" style="background: #ebf8ff;">
|
||||
<h3>Post</h3>
|
||||
<table class="form-table" style="width: auto;">
|
||||
<div id="comicpress-options">
|
||||
|
||||
<table class="widefat">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="row"><?php _e('Show transcript in post area?','comicpress'); ?></th>
|
||||
<td valign="top">
|
||||
<input name="transcript_in_posts" type="checkbox" value="1" <?php checked(true, $comicpress_options['transcript_in_posts']); ?> />
|
||||
<th colspan="3">Post</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tr class="alternate">
|
||||
<th scope="row"><label for="transcript_in_posts"><?php _e('Show transcript in post area?','comicpress'); ?></label></th>
|
||||
<td>
|
||||
<input id="transcript_in_posts" name="transcript_in_posts" type="checkbox" value="1" <?php checked(true, $comicpress_options['transcript_in_posts']); ?> />
|
||||
</td>
|
||||
<td valign="top">
|
||||
<td>
|
||||
<?php _e('When enabled, if the comic has a transcript, the transcript will be displayed inside the comic post. The transcript is text that that you can have of the dialog in your comic.','comicpress'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="row"><?php _e('Put Related Comics in comic posts?','comicpress'); ?></th>
|
||||
<td valign="top">
|
||||
<input name="enable_related_comics" type="checkbox" value="1" <?php checked(true, $comicpress_options['enable_related_comics']); ?> />
|
||||
<th scope="row"><label for="enable_related_comics"><?php _e('Put Related Comics in comic posts?','comicpress'); ?></label></th>
|
||||
<td>
|
||||
<input id="enable_related_comics" name="enable_related_comics" type="checkbox" value="1" <?php checked(true, $comicpress_options['enable_related_comics']); ?> />
|
||||
</td>
|
||||
<td valign="top">
|
||||
<td>
|
||||
<?php _e('Comics will be related by "tags" that you create for each comic post. When creating tags for your comics, include *only* the subject material and possibly cast. Do not use tags that can relate to the entire archive or storyline the post is in.','comicpress'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="row"><?php _e('Put Related Posts in blog posts?','comicpress'); ?></th>
|
||||
<td valign="top">
|
||||
<input name="enable_related_posts" type="checkbox" value="1" <?php checked(true, $comicpress_options['enable_related_posts']); ?> />
|
||||
<tr class="alternate">
|
||||
<th scope="row"><label for="enable_related_posts"><?php _e('Put Related Posts in blog posts?','comicpress'); ?></label></th>
|
||||
<td>
|
||||
<input id="enable_related_posts" name="enable_related_posts" type="checkbox" value="1" <?php checked(true, $comicpress_options['enable_related_posts']); ?> />
|
||||
</td>
|
||||
<td valign="top">
|
||||
<td>
|
||||
<?php _e('Blog posts will be related by "tags" that you create for each blog post. Like the related posts for comics, the related posts for blog post checks with other blog posts comparing the tags. Try to only use 1-5 tags total; the less the better.','comicpress'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="row"><?php _e('Disable WordPress default content formatting?','comicpress'); ?></th>
|
||||
<td valign="top">
|
||||
<input name="remove_wptexturize" type="checkbox" value="1" <?php checked(true, $comicpress_options['remove_wptexturize']); ?> />
|
||||
<th scope="row"><label for="remove_wptexturize"><?php _e('Disable WordPress default content formatting?','comicpress'); ?></label></th>
|
||||
<td>
|
||||
<input id="remove_wptexturize" name="remove_wptexturize" type="checkbox" value="1" <?php checked(true, $comicpress_options['remove_wptexturize']); ?> />
|
||||
</td>
|
||||
<td valign="top">
|
||||
<td>
|
||||
<?php _e('Prevents WordPress from reformatting any specially formatted content you may add. Generally, you want to leave the WordPress formatting enabled, but it some special cases you may prefer to preserve non-WP formatting.','comicpress'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="stuffbox" style="background: #edffeb;">
|
||||
<h3>Authors/Avatars/Moods</h3>
|
||||
<table class="form-table" style="width: auto;">
|
||||
|
||||
<table class="widefat">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="row"><?php _e('Two author blog? ','comicpress'); ?></th>
|
||||
<td valign="top">
|
||||
<input name="split_column_in_two" type="checkbox" value="1" <?php checked(true, $comicpress_options['split_column_in_two']); ?> />
|
||||
<th colspan="3">Authors/Avatars/Moods</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tr class="alternate">
|
||||
<th scope="row"><label for="split_column_in_two"><?php _e('Two author blog? ','comicpress'); ?></label></th>
|
||||
<td>
|
||||
<input id="split_column_in_two" name="split_column_in_two" type="checkbox" value="1" <?php checked(true, $comicpress_options['split_column_in_two']); ?> />
|
||||
</td>
|
||||
<td valign="top">
|
||||
<td>
|
||||
<?php _e('When enabled, it will make 2 seperate columns to have two seperate columns available to two different post authors.','comicpress'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="row"><?php _e('Author for Column one?','comicpress'); ?><br />
|
||||
<br />
|
||||
<label>
|
||||
<th scope="row" colspan="2">
|
||||
<label for="author_column_one"><?php _e('Author for column one?','comicpress'); ?></label>
|
||||
<?php
|
||||
$args = array('echo' => '0', 'show' => 'display_name', 'selected' => $comicpress_options['author_column_one']);
|
||||
$selected = wp_dropdown_users($args);
|
||||
|
@ -75,53 +74,43 @@
|
|||
|
||||
echo $selected;
|
||||
?>
|
||||
</label>
|
||||
</th>
|
||||
<td></td>
|
||||
<td valign="top">
|
||||
<?php _e('If column is split in two.','comicpress'); ?>
|
||||
<td>
|
||||
<?php _e('For two author blogs. Choose the author for the first column.','comicpress'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="row"><?php _e('Author for Column two?','comicpress'); ?><br />
|
||||
<br />
|
||||
<label>
|
||||
<tr class="alternate">
|
||||
<th scope="row" colspan="2">
|
||||
<label for="author_column_two"><?php _e('Author for column two?','comicpress'); ?></label>
|
||||
<?php
|
||||
$args = array('echo' => '0', 'show' => 'display_name', 'selected' => $comicpress_options['author_column_two']);
|
||||
$selected = wp_dropdown_users($args);
|
||||
$selected = preg_replace('#<select([^>]*)>#', '<select name="author_column_two" id="author_column_two">', $selected);
|
||||
|
||||
echo $selected;
|
||||
?>
|
||||
</label>
|
||||
</th>
|
||||
<td></td>
|
||||
<td valign="top">
|
||||
<?php _e('If column is split in two. This is the name of the author for the 2nd column.','comicpress'); ?>
|
||||
<td>
|
||||
<?php _e('For two author blogs. Choose the author for the second column.','comicpress'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="row"><?php _e('Comic post author Gravatar?','comicpress'); ?></th>
|
||||
<td valign="top">
|
||||
<input name="enable_comic_post_author_gravatar" type="checkbox" value="1" <?php checked(true, $comicpress_options['enable_comic_post_author_gravatar']); ?> />
|
||||
<th scope="row"><label for="enable_comic_post_author_gravatar"><?php _e('Comic post author Gravatar?','comicpress'); ?></label></th>
|
||||
<td>
|
||||
<input id="enable_comic_post_author_gravatar" name="enable_comic_post_author_gravatar" type="checkbox" value="1" <?php checked(true, $comicpress_options['enable_comic_post_author_gravatar']); ?> />
|
||||
</td>
|
||||
<td valign="top">
|
||||
<td>
|
||||
<?php _e('Enabling this option will show a gravatar of the comic post author based on the author email address. Gravatars are associated by your email address and you can create them at','comicpress'); ?> <a href="http://gravatar.com/">http://gravatar.com</a>.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="row"><?php _e('Blog post author Gravatar?','comicpress'); ?></th>
|
||||
<td valign="top">
|
||||
<input name="enable_post_author_gravatar" type="checkbox" value="1" <?php checked(true, $comicpress_options['enable_post_author_gravatar']); ?> />
|
||||
<tr class="alternate">
|
||||
<th scope="row"><label for="enable_post_author_gravatar"><?php _e('Blog post author Gravatar?','comicpress'); ?></label></th>
|
||||
<td>
|
||||
<input id="enable_post_author_gravatar" name="enable_post_author_gravatar" type="checkbox" value="1" <?php checked(true, $comicpress_options['enable_post_author_gravatar']); ?> />
|
||||
</td>
|
||||
<td valign="top">
|
||||
<td>
|
||||
<?php _e('Enabling this option will show a gravatar of the post author based on the author email address. Gravatars are associated by your email address and you can create them at','comicpress'); ?> <a href="http://gravatar.com/">http://gravatar.com</a>.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
$current_avatar_directory = $comicpress_options['avatar_directory'];
|
||||
if (empty($current_avatar_directory)) $current_avatar_directory = 'default';
|
||||
|
@ -130,9 +119,8 @@
|
|||
foreach ($dirs_to_search as $dir) { $avatar_directories = array_merge($avatar_directories,glob("${dir}/images/avatars/*")); }
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row"><?php _e('Avatar (no Gravatar) Directory','comicpress'); ?><br />
|
||||
<br />
|
||||
<label>
|
||||
<th scope="row" colspan="2">
|
||||
<label for="avatar_directory"><?php _e('Avatar Directory','comicpress'); ?></label>
|
||||
<select name="avatar_directory" id="avatar_directory">
|
||||
<option class="level-0" value="none" <?php if ($current_cal_directory == "none") { ?>selected="selected"<?php } ?>>none</option>
|
||||
<?php
|
||||
|
@ -144,26 +132,21 @@
|
|||
}
|
||||
?>
|
||||
</select>
|
||||
</label>
|
||||
</th>
|
||||
<td></td>
|
||||
<td valign="top">
|
||||
<td>
|
||||
<?php _e('Choose a directory to get the avatars for default gravatars if someone does not have one. You will have to make these images yourself, or download them from avatar providers. Then make a new directory on your site server to upload them to and select that directory here.','comicpress'); ?><br />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
$current_directory = $comicpres_options['moods_directory'];
|
||||
if (empty($current_directory)) $current_directory = 'default';
|
||||
|
||||
$dirs_to_search = array_unique(array(get_template_directory(),get_stylesheet_directory()));
|
||||
$mood_directories = array();
|
||||
foreach ($dirs_to_search as $dir) { $mood_directories = array_merge($mood_directories,glob("${dir}/images/moods/*")); }
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row"><?php _e('Moods Directory','comicpress'); ?><br />
|
||||
<br />
|
||||
<label>
|
||||
<tr class="alternate">
|
||||
<th scope="row" colspan="2">
|
||||
<label for="moods_directory"><?php _e('Moods Directory','comicpress'); ?></label>
|
||||
<select name="moods_directory" id="moods_directory">
|
||||
<option class="level-0" value="none" <?php if ($current_directory == "none") { ?>selected="selected"<?php } ?>>none</option>
|
||||
<?php
|
||||
|
@ -175,31 +158,29 @@
|
|||
}
|
||||
?>
|
||||
</select>
|
||||
</label>
|
||||
</th>
|
||||
<td></td>
|
||||
<td valign="top">
|
||||
<td>
|
||||
<?php _e('Choose a directory to get the post moods from. Set this to "none" to turn off use. Mood directories are found in your theme directory/images/moods/* to create your own custom moods just create a directory under images/moods/ and place ONLY image files inside of it. The name of the image file represents what the mood is.','comicpress'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="stuffbox" style="background: #ebf8ff;">
|
||||
<h3>Calendar</h3>
|
||||
<table class="form-table" style="width: auto;">
|
||||
<table class="widefat">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="3">Calendar</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<?php
|
||||
$current_cal_directory = $comicpress_options['calendar_directory'];
|
||||
if (empty($current_cal_directory)) $current_cal_directory = 'default';
|
||||
|
||||
$dirs_to_search = array_unique(array(get_template_directory(),get_stylesheet_directory()));
|
||||
$cal_directories = array();
|
||||
foreach ($dirs_to_search as $dir) { $cal_directories = array_merge($cal_directories,glob("${dir}/images/cal/*")); }
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row"><?php _e('Calendar Directory','comicpress'); ?><br />
|
||||
<br />
|
||||
<label>
|
||||
<tr class="alternate">
|
||||
<th scope="row" colspan="2">
|
||||
<label for="calendar_directory"><?php _e('Calendar Directory','comicpress'); ?></label>
|
||||
<select name="calendar_directory" id="calendar_directory">
|
||||
<option class="level-0" value="none" <?php if ($current_cal_directory == "none") { ?>selected="selected"<?php } ?>>none</option>
|
||||
<?php
|
||||
|
@ -211,101 +192,104 @@
|
|||
}
|
||||
?>
|
||||
</select>
|
||||
</label>
|
||||
</th>
|
||||
<td></td>
|
||||
<td valign="top">
|
||||
<td>
|
||||
<?php _e('Choose a directory to get the Archive Calendar styling from. 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>
|
||||
|
||||
<tr>
|
||||
<th scope="row"><?php _e('Add graphic calendar to comic posts?','comicpress'); ?></th>
|
||||
<td valign="top">
|
||||
<input name="enable_comic_post_calendar" type="checkbox" value="1" <?php checked(true, $comicpress_options['enable_comic_post_calendar']); ?> />
|
||||
<th scope="row"><label for="enable_comic_post_calendar"><?php _e('Add graphic calendar to comic posts?','comicpress'); ?></label></th>
|
||||
<td>
|
||||
<input id="enable_comic_post_calendar" name="enable_comic_post_calendar" type="checkbox" value="1" <?php checked(true, $comicpress_options['enable_comic_post_calendar']); ?> />
|
||||
</td>
|
||||
<td valign="top">
|
||||
<td>
|
||||
<?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>
|
||||
|
||||
<tr>
|
||||
<th scope="row"><?php _e('Add graphic calendar to blog posts?','comicpress'); ?></th>
|
||||
<td valign="top">
|
||||
<input name="enable_post_calendar" type="checkbox" value="1" <?php checked(true, $comicpress_options['enable_post_calendar']); ?> />
|
||||
<tr class="alternate">
|
||||
<th scope="row"><label for="enable_post_calendar"><?php _e('Add graphic calendar to blog posts?','comicpress'); ?></label></th>
|
||||
<td>
|
||||
<input id="enable_post_calendar" name="enable_post_calendar" type="checkbox" value="1" <?php checked(true, $comicpress_options['enable_post_calendar']); ?> />
|
||||
</td>
|
||||
<td valign="top">
|
||||
<td>
|
||||
<?php _e('Enabling this option will display a calendar image on your blog posts. The graphic calendar is an image that has the date of the blog post overlayed on top of it.','comicpress'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="stuffbox" style="background: #edffeb;">
|
||||
<h3>Tags/Categories</h3>
|
||||
<table class="form-table" style="width: auto;">
|
||||
|
||||
<table class="widefat">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="row"><?php _e('Disable display of tags in posts?','comicpress'); ?><br /><br /></th>
|
||||
<td valign="top">
|
||||
<input name="disable_tags_in_posts" type="checkbox" value="1" <?php checked(true, $comicpress_options['disable_tags_in_posts']); ?> />
|
||||
<th colspan="3">Tags/Categories</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tr class="alternate">
|
||||
<th scope="row"><label for="disable_tags_in_posts"><?php _e('Disable display of tags in posts?','comicpress'); ?></label></th>
|
||||
<td>
|
||||
<input id="disable_tags_in_posts" name="disable_tags_in_posts" type="checkbox" value="1" <?php checked(true, $comicpress_options['disable_tags_in_posts']); ?> />
|
||||
</td>
|
||||
<td valign="top">
|
||||
<td>
|
||||
<?php _e('Tags != Categories, Tags are "descriptive keywords" of content in a post.','comicpress'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="row"><?php _e('Disable display of categories in posts?','comicpress'); ?></th>
|
||||
<td valign="top">
|
||||
<input name="disable_categories_in_posts" type="checkbox" value="1" <?php checked(true, $comicpress_options['disable_categories_in_posts']); ?> />
|
||||
<th scope="row"><label for="disable_categories_in_posts"><?php _e('Disable display of categories in posts?','comicpress'); ?></label></th>
|
||||
<td>
|
||||
<input id="disable_categories_in_posts" name="disable_categories_in_posts" type="checkbox" value="1" <?php checked(true, $comicpress_options['disable_categories_in_posts']); ?> />
|
||||
</td>
|
||||
<td valign="top">
|
||||
<td>
|
||||
<?php _e('Categories != Tags, The categories that are shown by default are the ones the post in set to.','comicpress'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="stuffbox" style="background: #ebf8ff;">
|
||||
<h3>Pages & Blog Loop</h3>
|
||||
<table class="form-table" style="width: auto;">
|
||||
|
||||
<table class="widefat">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="row"><?php _e('Show all blog posts up until the next comic post on single pages?','comicpress'); ?></th>
|
||||
<td valign="top">
|
||||
<input name="blogposts_with_comic" type="checkbox" value="1" <?php checked(true, $comicpress_options['blogposts_with_comic']); ?> />
|
||||
<th colspan="3">Pages & Blog Loop</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tr class="alternate">
|
||||
<th scope="row"><label for="blogposts_with_comic"><?php _e('Show all blog posts up until the next comic post on single pages?','comicpress'); ?></label></th>
|
||||
<td>
|
||||
<input id="blogposts_with_comic" name="blogposts_with_comic" type="checkbox" value="1" <?php checked(true, $comicpress_options['blogposts_with_comic']); ?> />
|
||||
</td>
|
||||
<td valign="top">
|
||||
<td>
|
||||
<?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>
|
||||
|
||||
<tr>
|
||||
<th scope="row"><?php _e('Blog loop stays with all the single pages?','comicpress'); ?></th>
|
||||
<td valign="top">
|
||||
<input name="static_blog" type="checkbox" value="1" <?php checked(true, $comicpress_options['static_blog']); ?> />
|
||||
<th scope="row"><label for="static_blog"><?php _e('Blog loop stays with all the single pages?','comicpress'); ?></label></th>
|
||||
<td>
|
||||
<input id="static_blog" name="static_blog" type="checkbox" value="1" <?php checked(true, $comicpress_options['static_blog']); ?> />
|
||||
</td>
|
||||
<td valign="top">
|
||||
<td>
|
||||
<?php _e('Blog will stay with the single pages, good to use with comments disabled in the settings.','comicpress'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="row"><?php _e('Disable the titles on pages?','comicpress'); ?><br /><br /></th>
|
||||
<td valign="top">
|
||||
<input name="disable_page_titles" type="checkbox" value="1" <?php checked(true, $comicpress_options['disable_page_titles']); ?> />
|
||||
<tr class="alternate">
|
||||
<th scope="row"><label for="disable_page_titles"><?php _e('Disable the titles on pages?','comicpress'); ?></label></th>
|
||||
<td>
|
||||
<input id="disable_page_titles" name="disable_page_titles" type="checkbox" value="1" <?php checked(true, $comicpress_options['disable_page_titles']); ?> />
|
||||
</td>
|
||||
<td valign="top">
|
||||
<td>
|
||||
<?php _e('If you disable the titles no pages you can add a post-page-image in the page editor.','comicpress'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="comicpress-options-save">
|
||||
<div id="major-publishing-actions">
|
||||
<div id="publishing-action">
|
||||
<input name="comicpress_save_post" type="submit" class="button-primary" value="Save Settings" />
|
||||
<input type="hidden" name="action" value="comicpress_save_post" />
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
|
@ -7,9 +7,10 @@
|
|||
</script>
|
||||
|
||||
<div id="themestyle" class="<?php if ($tab == 'themestyle' || empty($tab)) { ?>show<?php } else { ?>hide<?php } ?>">
|
||||
<form method="post" id="myForm" name="template" enctype="multipart/form-data">
|
||||
<?php wp_nonce_field('update-options') ?>
|
||||
|
||||
<form method="post" id="myForm" name="template" enctype="multipart/form-data">
|
||||
|
||||
<?php wp_nonce_field('update-options') ?>
|
||||
|
||||
<div id="comicpress-options">
|
||||
|
||||
|
@ -20,7 +21,7 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tr class="alternate">
|
||||
<th class="scope" style="width:250px"><br /><label for="cp_theme_layout" style="text-align:left"><?php _e('Choose Your Website Layout','comicpress'); ?></label>
|
||||
<th scope="row" style="width:250px"><label for="cp_theme_layout" style="text-align:left"><?php _e('Choose Your Website Layout','comicpress'); ?></label>
|
||||
<select name="cp_theme_layout" id="cp_theme_layout" onchange="showimage(this,'cpthemestyle')">
|
||||
<option class="level-0" value="standard" <?php if ($comicpress_options['cp_theme_layout'] == 'standard') { ?>selected="selected" <?php } ?>><?php _e('2 Column (Standard)','comicpress'); ?></option>
|
||||
<option class="level-0" value="3c" <?php if ($comicpress_options['cp_theme_layout'] =='3c') { ?>selected="selected" <?php } ?>><?php _e('3 Column ','comicpress'); ?></option>
|
||||
|
@ -60,4 +61,39 @@
|
|||
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="cpadmin-footer">
|
||||
<div id="comicpress-version-title"><a href="http://comicpress.org/">ComicPress 2.9</a></div>
|
||||
[ <?php echo $comicpress_options['comicpress_version']; ?> ]<br />
|
||||
<?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'); ?>
|
||||
<table style="margin:0 auto;">
|
||||
<tr>
|
||||
<td style="width:200px;">
|
||||
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
||||
<input type="hidden" name="cmd" value="_s-xclick">
|
||||
<input type="hidden" name="hosted_button_id" value="7827910">
|
||||
<input type="image"
|
||||
src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif"
|
||||
border="0" name="submit" alt="PayPal - The safer, easier way to pay
|
||||
online!">
|
||||
<img alt="" border="0"
|
||||
src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1"
|
||||
height="1">
|
||||
</form>
|
||||
</td>
|
||||
<td style="width:200px;">
|
||||
<a href="http://comicpress.org/"><img src="<?php echo get_template_directory_uri(); ?>/images/cal/default.png" /></a>
|
||||
</td>
|
||||
<td style="width:200px;">
|
||||
<form method="post" id="myForm" name="template" enctype="multipart/form-data">
|
||||
<?php wp_nonce_field('update-options') ?>
|
||||
<input name="comicpress_reset" type="submit" class="button" value="Reset All Settings" />
|
||||
<input type="hidden" name="action" value="comicpress_reset" />
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue