Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
Philip M. Hofer (Frumph) 2009-09-28 14:49:51 -07:00
parent dd0b65003b
commit 94639dca9b
25 changed files with 598 additions and 51 deletions

View File

@ -5,7 +5,7 @@ if (function_exists('id_get_comment_number')) {
remove_filter('comments_number','id_get_comment_number');
}
$comicpress_version = '2.8.1.11';
$comicpress_version = '2.8.1.12';
// Remove the wptexturizer from changing the quotes and squotes.
// remove_filter('the_content', 'wpautop');

View File

@ -5,7 +5,7 @@
*
* Author: Philip M. Hofer (Frumph)
* Author URI: http://webcomicplanet.com/ http://frumph.net/
* Version: 1.0.1
* Version: 1.0.6
*
* This function adds the browser type as a class
* in the <body> tag where you can then do .ie #page and do things specific
@ -27,14 +27,6 @@ function comicpress_body_class($classes = '') {
$classes[] = 'user-guest';
}
if (is_single()) {
if (in_comic_category()) {
$classes[] = 'comiccat';
} else {
$classes[] = 'blogcat';
}
}
if (function_exists('comicpress_is_member')) {
if (comicpress_is_member()) {
$classes[] = 'sitemember';
@ -66,21 +58,19 @@ function comicpress_body_class($classes = '') {
}
// NOT hijacked from anything, doi! people should do this.
$rightnow = date('gi');
$rightnow = date('Gi');
$ampm = date('a');
$classes[] = $ampm;
if ($ampm == 'am') {
if ((int)$rightnow < 30) $classes[] = 'midnight';
if ((int)$rightnow < 560) $classes[] = 'night';
if ((int)$rightnow > 559 && (int)$rightnow < 1130) $classes[] = 'morning';
if ((int)$rightnow > 1129) $classes[]='noon';
} else {
if ((int)$rightnow < 30) $classes[] = 'noon';
if ((int)$rightnow < 559) $classes[] = 'day';
if ((int)$rightnow > 559 && (int)$rightnow < 1130) $classes[] = 'evening';
if ((int)$rightnow > 1129) $classes[]='midnight';
}
if ((int)$rightnow > 559 && (int)$rightnow < 1800) $classes[] = 'day';
if ((int)$rightnow < 600 || (int)$rightnow > 1759) $classes[] = 'night';
if ((int)$rightnow > 2329 || (int)$rightnow < 0030) $classes[] = 'midnight';
if ((int)$rightnow > 0559 && (int)$rightnow < 1130) $classes[] = 'morning';
if ((int)$rightnow > 1129 && (int)$rightnow < 1230) $classes[] = 'noon';
if ((int)$rightnow > 1759 && (int)$rightnow < 2330) $classes[] = 'evening';
$classes[] = strtolower(date('D'));
if ( is_attachment() ) {
$classes[] = 'attachment attachment-' . $wp_query->post->ID;

View File

@ -17,10 +17,16 @@
?></title>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type') ?>; charset=<?php bloginfo('charset') ?>" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url') ?>" type="text/css" media="screen" />
<?php global $graphicnav_directory; if (file_exists(get_template_directory() . '/images/nav/' .$graphicnav_directory. '/navstyle.css')) { ?>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory') ?>/images/nav/<?php echo $graphicnav_directory; ?>/navstyle.css" type="text/css" media="screen" />
<?php } ?>
<?php global $themepack_directory;
<?php global $graphicnav_directory, $themepack_directory;
if ($graphicnav_directory == 'themepack') { ?>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory') ?>/themepack/<?php echo $themepack_directory; ?>/nav/navstyle.css" type="text/css" media="screen" />
<?php } else {
if (file_exists(get_template_directory() . '/images/nav/' .$graphicnav_directory. '/navstyle.css')) { ?>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory') ?>/images/nav/<?php echo $graphicnav_directory; ?>/navstyle.css" type="text/css" media="screen" />
<?php }
}
?>
<?php
if ($themepack_directory != 'none') { ?>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/themepack/<?php echo $themepack_directory; ?>/style.css" type="text/css" media="screen" />
<?php } ?>
@ -44,11 +50,11 @@
<?php if ($disable_page_restraints != 'yes') {
if (is_cp_theme_layout('standard,v')) { ?>
<div id="page-wrap"><!-- Wraps outside the site width -->
<div id="page"><!-- Defines entire site width - Ends in Footer -->
<div id="page"><!-- Wraps outside the site width -->
<div id="page-wrap"><!-- Defines entire site width - Ends in Footer -->
<?php } else { ?>
<div id="page-wrap-wide">
<div id="page-wide">
<div id="page-wide">
<div id="page-wrap-wide">
<?php }
} ?>

BIN
images/options/rgn.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -5,7 +5,7 @@
<?php if (is_cp_theme_layout('gn,v3c')) get_sidebar('left'); ?>
<?php if (is_cp_theme_layout('gn')) { ?>
<?php if (is_cp_theme_layout('gn,rgn')) { ?>
<div id="pagewrap-right">
<?php } ?>
@ -39,7 +39,7 @@
<?php } ?>
<?php get_sidebar('overblog'); ?>
<?php if (is_cp_theme_layout('3c')) get_sidebar('left'); ?>
<?php if (is_cp_theme_layout('3c,rgn')) get_sidebar('left'); ?>
<?php if (!is_cp_theme_layout('v3c,v')) { ?>
<div id="content" class="narrowcolumn">
@ -66,7 +66,7 @@
<?php get_sidebar('overblog'); ?>
<?php if (is_cp_theme_layout('3c')) get_sidebar('left'); ?>
<?php if (is_cp_theme_layout('3c,rgn')) get_sidebar('left'); ?>
<?php if (!is_cp_theme_layout('v3c')) { ?>
<div id="content" class="narrowcolumn">

View File

@ -13,10 +13,10 @@ if (is_cp_theme_layout('3c,v3c,gn,standard,v')) {
</div>
<?php } ?>
<?php if (is_cp_theme_layout('gn')) { ?>
<?php if (is_cp_theme_layout('gn,rgn')) { ?>
</div>
<?php } ?>
<?php if (is_cp_theme_layout('rgn')) get_sidebar('right'); ?>
<div class="clear"></div>
</div>
<div id="content-wrapper-bottom"></div>

View File

@ -3,7 +3,7 @@
<?php if (is_cp_theme_layout('gn,v3c')) get_sidebar('left'); ?>
<?php if (is_cp_theme_layout('gn')) { ?>
<?php if (is_cp_theme_layout('gn,rgn')) { ?>
<div id="pagewrap-right">
<?php } ?>
@ -18,7 +18,7 @@
<?php } ?>
<?php get_sidebar('overblog'); ?>
<?php if (is_cp_theme_layout('3c')) get_sidebar('left'); ?>
<?php if (is_cp_theme_layout('3c,rgn')) get_sidebar('left'); ?>
<?php if (!is_cp_theme_layout('v3c,v')) { ?>
<div id="content" class="narrowcolumn">

View File

@ -86,12 +86,20 @@
$count = count($results = glob(get_template_directory() . '/images/nav/'.$current_gnav_directory.'/*'));
$gnav_directories = glob(get_template_directory() . '/images/nav/*');
$themepack_directory = get_option('comicpress-themepack_directory');
if (!empty($themepack_directory) && $themepack_directory != 'none') {
if (file_exists(get_template_directory().'/themepack/'.$themepack_directory.'/nav/navstyle.css')) $themepacknav = 1;
}
?>
<tr>
<th scope="row"><strong>Graphic Navigation Directory</strong><br /><br />Choose a directory to get the graphic navigation styling from.<br /></th>
<td valign="top">
<label>
<select name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>">
<?php if ($themepacknav) { ?>
<option class="level-0" value="themepack" <?php if ($current_gnav_directory == "themepack") { ?>selected="selected"<?php } ?>>ThemePack (<?php echo $themepack_directory; ?>)</option>
<?php } ?>
<?php
foreach ($gnav_directories as $gnav_dirs) {
if (is_dir($gnav_dirs)) {

View File

@ -22,11 +22,12 @@
<td valign="top">
<label>
<select name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" class="code" onchange="showimage(this,'cpthemestyle')">
<option class="level-0" value="standard" <?php if (get_option($value['id'])=='standard') {?>selected="selected" <?php } ?>>Standard</option>
<option class="level-0" value="3c" <?php if (get_option($value['id'])=='3c') {?>selected="selected" <?php } ?>>3-Column</option>
<option class="level-0" value="gn" <?php if (get_option($value['id'])=='gn') {?>selected="selected" <?php } ?>>Graphic Novel</option>
<option class="level-0" value="v" <?php if (get_option($value['id'])=='v') {?>selected="selected" <?php } ?>>Vertical</option>
<option class="level-0" value="v3c" <?php if (get_option($value['id'])=='v3c') {?>selected="selected" <?php } ?>>Vertical 3-Column</option>
<option class="level-0" value="standard" <?php if (get_option($value['id'])=='standard') { ?>selected="selected" <?php } ?>>Standard</option>
<option class="level-0" value="3c" <?php if (get_option($value['id'])=='3c') { ?>selected="selected" <?php } ?>>3-Column</option>
<option class="level-0" value="gn" <?php if (get_option($value['id'])=='gn') { ?>selected="selected" <?php } ?>>Graphic Novel</option>
<option class="level-0" value="rgn" <?php if (get_option($value['id'])=='rgn') { ?>selected="selected" <?php } ?>>R Graphic Novel</option>
<option class="level-0" value="v" <?php if (get_option($value['id'])=='v') { ?>selected="selected" <?php } ?>>Vertical</option>
<option class="level-0" value="v3c" <?php if (get_option($value['id'])=='v3c') { ?>selected="selected" <?php } ?>>Vertical 3-Column</option>
</select>
</label>
</td>

View File

@ -5,7 +5,7 @@
<?php if (is_cp_theme_layout('gn,v3c')) get_sidebar('left'); ?>
<?php if (is_cp_theme_layout('gn')) { ?>
<?php if (is_cp_theme_layout('gn,rgn')) { ?>
<div id="pagewrap-right">
<?php } ?>
@ -33,7 +33,7 @@
<?php } ?>
<?php get_sidebar('overblog'); ?>
<?php if (is_cp_theme_layout('3c')) get_sidebar('left'); ?>
<?php if (is_cp_theme_layout('3c,rgn')) get_sidebar('left'); ?>
<?php if (!is_cp_theme_layout('v3c,v')) { ?>
<div id="content" class="narrowcolumn">

View File

@ -174,7 +174,7 @@ h3, h3 a {
/* Change this width to set the entire site's width - increase/reduce #content width by the same amount */
/* Maintains the #page and #pagewide width after padding is set */
#page-wrap {
#page-wrap, #page-wrap-wide {
}
#page {

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

View File

@ -0,0 +1,117 @@
/* COMIC NAVIGATION
Author: Tyler Martin
Style: Default
*/
#comic_navi_wrapper {
padding: 5px 0 10px 0;
}
#comic_navi {
display: table;
border-collapse: collapse;
margin: 0 auto;
}
.navi {
width: 66px;
padding: 66px 0 0 0;
/* margin: 0 5px; */
display: block;
float: left;
overflow: hidden;
font-size: 11px;
text-align: center;
color: #555;
}
.navi:hover {
background-position: -66px 0;
}
.navi-first {
margin: 0;
background: url('first.png') no-repeat;
}
.navi-prevchap {
background: url('prevchap.png') no-repeat;
}
.navi-prev {
margin-right: 30px;
background: url('prev.png') no-repeat;
}
.navi-comments, .navi-archive, .navi-random, .navi-buyprint {
margin: 0 5px;
}
.navi-buyprint {
border: none;
cursor: pointer;
background: url('buyprint.png') no-repeat;
}
.navi-buyprint:hover {
color: #f00;
}
.navi-buyprint-form {
width: 76px;
display: block;
float: left;
margin: 0;
padding: 0;
}
.navi-archive {
background: url('archive.png') no-repeat;
}
.navi-random {
background: url('random.png') no-repeat;
}
.navi-comments {
padding: 0;
background: url('comments.png') no-repeat;
}
a.navi-comments span {
width: 66px;
height: 66px;
display: block;
font-size: 16px;
font-weight: bold;
line-height: 66px;
color: #c5c5c5;
}
a.navi-comments span:hover {
color: #860b04;
}
.navi-next {
margin-left: 30px;
background: url('next.png') no-repeat;
}
.navi-nextchap {
background: url('nextchap.png') no-repeat;
}
.navi-last {
margin: 0;
background: url('last.png') no-repeat;
}
.navi-void, .navi-void:hover {
color: #999;
background-position: -132px 0;
}
.comic-left .navi-prev, .comic-right .navi-prev, .comic-left .navi-next, .comic-right .navi-next {
/* margin: 0 5px; */
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -0,0 +1,425 @@
/*
ThemePack Name: MooseMountain
ThemePack URI: http://comicpress.org
Description:
Author: Philip M. Hofer (Frumph)
Author URI: http://frumph.net/
Version: 0.1.0
.
The CSS, XHTML and design is released under GPL v3:
http://www.opensource.org/licenses/gpl-3.0.html
.
*/
/* STANDARD TAGS */
body {
margin: 0;
font-family: 'Arial',sans-serif;
background: #A28366 none repeat scroll 0 0;
color: #572B2A;
font-size: 14px;
}
a {
color: #000;
text-decoration: none;
}
a:hover {
color: #5e6f29;
}
a img {
border: none;
}
hr {
height: 1px;
color: #5e6f29;
background-color: #5e6f29;
border: 0px;
}
blockquote {
margin: 10px;
padding: 5px 10px 5px 20px;
border-width: 1px 1px 1px 5px;
border-style: solid;
border-color: #d6e1b4;
}
blockquote cite {
margin: 5px 0 0;
display: block;
}
/* HEADINGS */
h1, h1 a, h1 a:hover {
margin: 0;
padding: 0 0 0 5px;
color: #fff;
font-family: 'Georgia', serif;
font-size: 50px;
font-weight: normal;
text-align: left;
text-decoration: none;
letter-spacing: -2px;
}
h2, h2 a {
margin: 0;
color: #fff;
font-weight: bold;
font-size: 22px;
text-align: left;
text-decoration: none;
}
h2.pagetitle, h2.pagetitle a {
margin: 20px 0 0 0;
padding: 0 0 5px 0;
color: #fff;
font-family: 'Georgia', serif;
font-size: 32px;
font-weight: normal;
letter-spacing: -2px;
text-align: left;
}
h3, h3 a {
margin: 30px 10px 0 0;
padding: 0;
color: #fff;
font-size: 18px;
font-weight: bold;
text-align: left;
text-decoration: none;
clear: both;
}
h2 a:hover, h3 a:hover {
color: #fff;
border-bottom: 1px dotted #fff;
}
/* PAGE */
#page-wide {
width: 900px;
}
/* THE HEADER */
#header {
width: 567px;
height: 56px;
padding: 102px 0 0 333px;
margin: 0 auto;
background: url('header.jpg') no-repeat;
overflow: hidden;
}
#header h1 {
text-indent: -9999px;
}
.description {
text-indent: -9999px;
}
#header ul {
margin: 0;
padding: 0;
list-style: none;
background: #f00;
}
#header li {
margin: 0;
padding: 0;
float: left;
}
#header li a {
height: 40px;
padding: 0;
margin: 0;
display: block;
text-indent: -1000px;
background-image: url('header.jpg');
background-repeat: no-repeat;
overflow: hidden;
}
.menu-home {
width: 78px;
background-position: 0 40px;
}
.menu-home:hover {
background-position: -333px -158px;
}
.menu-newreaders {
width: 162px;
background-position: 0 40px;
}
.menu-newreaders:hover {
background-position: -411px -158px;
}
.menu-forum {
width: 94px;
background-position: 0 40px;
}
.menu-forum:hover {
background-position: -573px -158px;
}
.menu-store {
width: 87px;
background-position: 0 40px;
}
.menu-store:hover {
background-position: -667px -158px;
}
.menu-contact {
width: 110px;
background-position: 0 40px;
}
.menu-contact:hover {
background-position: -754px -158px;
}
/* THE MENU */
#menubar {
width: 900px;
height: 25px;
margin: 0 auto;
background: #000;
}
#menunav {
margin: 0;
padding: 1px 0 0 0;
float: right;
font-size: 19px;
}
#menunav a {
margin: 0 1px 0 0;
color: #aaa;
text-decoration: none;
background: #222;
-moz-border-radius: 10px;
-khtml-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#menunav a:hover {
color: #fff;
background: #555;
}
.prev {
padding: 0 2px 0 0;
}
.next {
padding: 0 0 0 2px;
}
#menu {
color: #999;
font-size: 12px;
text-transform: uppercase;
}
#menu ul {
margin: 0;
padding: 0;
list-style: none;
}
#menu li {
margin: 0;
padding: 0;
float: left;
}
#menu li a {
height: 25px;
padding: 0 5px 0 5px;
display: block;
float: left;
color: #aaa;
line-height: 25px;
text-decoration: none;
border-width: 0 1px 0 0;
border-style: solid;
border-color: #aaa;
}
#menu li a:hover {
color: #fff;
background: #333;
}
#content-wrapper {
padding: 0;
}
/* Comic */
#comic-head, #comic, #comic-foot {
background: #fff;
border: 0;
}
#comic-foot {
border-bottom: 30px solid #5e6f29;
}
#subcontent-wrapper {
background: #9bae5f;
padding: 5px 0;
}
.narrowcolumn {
width: 470px;
}
/* CALENDAR */
#wp-calendar-wrap {
background-color: transparent;
border: 0;
}
#wp-calendar-wrap img {
border: solid 1px #5d2d29;
width: 163px;
}
table#wp-calendar td {
border: 1px solid #5E6F29;
}
#wp-calendar th {
color: #5e6f29;
}
#wp-calendar caption {
color: #5e6f29;
font-size: 20px;
}
#wp-calendar td {
border: 1px solid #5E6F29;
font-size: 12px;
}
#wp-calendar a {
color: #fff;
background: #5e6f29;
}
#wp-calendar a:hover {
color: #fff;
background: #572b2a;
}
/* Sidebar */
.sidebar ul {
margin: 0;
padding: 0;
list-style: none;
}
.sidebar ul li {
padding: 0;
}
.sidebar ul li ul li {
padding: 0;
}
.sidebar ul li ul li a {
color: #000;
text-decoration: none;
}
.sidebar ul li ul li a:hover {
color: #000;
background: #d6e1b4;
}
.sidebar-earl a {
width: 192px;
height: 192px;
display: block;
color: #9bae5f;
background: url('earl-extras.jpg') no-repeat;
}
.sidebar-earl a:hover {
color: #9bae5f;
background-position: 0 -192px;
}
.sidebar-extras a {
width: 192px;
height: 154px;
line-height: 154px;
display: block;
color: #9bae5f;
background: url('earl-extras.jpg') 0 -384px no-repeat;
}
.sidebar-extras a:hover {
color: #9bae5f;
background-position: 0 -538px;
}
/* THE FOOTER */
#footer {
width: 900px;
margin: 0px auto;
padding: 20px 0;
color: #9bae5f;
text-align: center;
background: #5e6f29;
}
#footer a {
color: #fff;
text-decoration: none;
border: none;
}
#footer a:hover {
border-bottom: 1px dotted #fff;
}
#footer-ad {
width: 900px;
margin: 0 auto;
padding: 30px 0;
text-align: center;
}