asfd
Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
parent
c35f0c5a73
commit
b68e072986
|
@ -93,7 +93,7 @@
|
|||
<?php } else { ?>
|
||||
<div class="<?php comicpress_post_class(); ?>">
|
||||
<div class="post-head"></div>
|
||||
<div class="post">
|
||||
<div <?php post_class(); ?>>
|
||||
<div class="post-info">
|
||||
<?php if ($enable_post_author_gravatar == 'yes') { ?>
|
||||
<div class="post-author-gravatar"><?php echo str_replace("alt='", "alt='".get_the_author_meta('display_name')."' title='".get_the_author_meta('display_name'),get_avatar(get_the_author_meta('email'), 64)); ?></div>
|
||||
|
|
|
@ -22,7 +22,7 @@ $archive_comic_width = "380";
|
|||
$rss_comic_width = "600";
|
||||
|
||||
//BLOG POSTCOUNT - the number of blog entries to appear on the home page (default "5").
|
||||
$blog_postcount = "5";
|
||||
$blog_postcount = "3";
|
||||
|
||||
//Mini Comic Width - The width your comics will appear in minithumbs (default "100")
|
||||
$mini_comic_width = "100";
|
||||
|
|
|
@ -1,10 +1,15 @@
|
|||
<?php
|
||||
|
||||
load_theme_textdomain( 'comicpress', get_template_directory().'/languages' );
|
||||
|
||||
$locale = get_locale();
|
||||
$locale_file = get_template_directory()."/languages/$locale.php";
|
||||
if (file_exists($locale_file)) require_once($locale_file);
|
||||
function init_language(){
|
||||
// xili-language plugin check
|
||||
if (class_exists('xili_language')) {
|
||||
define('THEME_TEXTDOMAIN','comicpress');
|
||||
define('THEME_LANGS_FOLDER','/lang');
|
||||
} else {
|
||||
load_theme_textdomain( 'comicpress', get_template_directory().'/lang' );
|
||||
}
|
||||
}
|
||||
add_action ('init', 'init_language');
|
||||
|
||||
// remove intense debates control over the comment numbers
|
||||
if (function_exists('id_get_comment_number')) {
|
||||
|
@ -130,6 +135,11 @@ foreach (glob(dirname(__FILE__) . '/widgets/*.php') as $__file) { require_once($
|
|||
// FUNCTIONS & Extra's
|
||||
foreach (glob(dirname(__FILE__) . '/functions/*.php') as $__file) { require_once($__file); }
|
||||
|
||||
// widgets in the themepack
|
||||
if (file_exists(get_template_directory(). '/themepack/'. $themepack_directory.'/widgets')) {
|
||||
foreach (glob(get_template_directory(). '/themepack/'. $themepack_directory . '/widgets/*.php') as $__file) { require_once($__file); }
|
||||
}
|
||||
|
||||
// Dashboard Menu Comicpress Options and ComicPress CSS
|
||||
require_once(get_template_directory() . '/comicpress-options.php');
|
||||
|
||||
|
|
|
@ -94,15 +94,15 @@ function comicpress_post_class($class = '') {
|
|||
);
|
||||
|
||||
/* Microformats. */
|
||||
$classes[] = 'hentry';
|
||||
$classes[] = 'uentry';
|
||||
|
||||
/* Post alt class. */
|
||||
$classes[] = 'post-' . ++$post_alt;
|
||||
$classes[] = 'postonpage-' . ++$post_alt;
|
||||
|
||||
if ( $post_alt % 2 )
|
||||
$classes[] = 'odd';
|
||||
else
|
||||
$classes[] = 'even alt';
|
||||
$classes[] = 'even';
|
||||
|
||||
/* Sticky class (only on home/blog page). */
|
||||
if( is_sticky() && is_home() )
|
||||
|
@ -116,6 +116,16 @@ function comicpress_post_class($class = '') {
|
|||
if ( post_password_required() )
|
||||
$classes[] = 'protected';
|
||||
|
||||
/* User-created classes. */
|
||||
if ( !empty( $class ) ) :
|
||||
if ( !is_array( $class ) )
|
||||
$class = preg_split( '#\s+#', $class );
|
||||
$classes = array_merge( $classes, $class );
|
||||
endif;
|
||||
|
||||
/* Join all the classes into one string and echo them. */
|
||||
$class = join( ' ', $classes );
|
||||
|
||||
echo apply_filters( 'comicpress_post_class', $class );
|
||||
}
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ function display_blog_post() {
|
|||
<div class="clear"></div>
|
||||
<div class="<?php comicpress_post_class(); ?>">
|
||||
<div class="post-head"></div>
|
||||
<div class="post" id="post-<?php the_ID() ?>">
|
||||
<div <?php post_class(); ?> id="post-<?php the_ID() ?>">
|
||||
<div class="post-info">
|
||||
<?php if ($enable_post_author_gravatar == 'yes') { ?>
|
||||
<div class="post-author-gravatar"><?php echo str_replace("alt='", "alt='".get_the_author_meta('display_name')."' title='".get_the_author_meta('display_name'),get_avatar(get_the_author_meta('email'), 64)); ?></div>
|
||||
|
|
42
index.php
42
index.php
|
@ -32,34 +32,10 @@
|
|||
<?php endwhile; ?>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php if (is_cp_theme_layout('3c,v')) { ?>
|
||||
<div id="subcontent-wrapper-head"></div>
|
||||
<div id="subcontent-wrapper">
|
||||
<?php } ?>
|
||||
|
||||
<?php get_sidebar('overblog'); ?>
|
||||
<?php if (is_cp_theme_layout('3c,rgn')) get_sidebar('left'); ?>
|
||||
|
||||
<?php if (!is_cp_theme_layout('v3c,v')) { ?>
|
||||
<div id="content" class="narrowcolumn">
|
||||
<div class="column">
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($disable_comic_frontpage != 'yes' && $disable_comic_blog_frontpage != 'yes') {
|
||||
while ($comicFrontpage->have_posts()) : $comicFrontpage->the_post();
|
||||
|
||||
display_comic_post();
|
||||
|
||||
endwhile; ?>
|
||||
|
||||
<div id="blogheader"><!-- This area can be used for a heading above your main page blog posts --></div>
|
||||
|
||||
<?php }
|
||||
|
||||
} else { ?>
|
||||
<?php } ?>
|
||||
|
||||
<?php if (is_cp_theme_layout('3c,v')) { ?>
|
||||
<?php if (is_cp_theme_layout('3c,standard,3c2r')) { ?>
|
||||
<div id="subcontent-wrapper-head"></div>
|
||||
<div id="subcontent-wrapper">
|
||||
<?php } ?>
|
||||
|
@ -71,7 +47,7 @@
|
|||
<div id="content" class="narrowcolumn">
|
||||
<div class="column">
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
<?php if (function_exists('the_project_wonderful_ad')) { ?>
|
||||
<div class="blogpwad">
|
||||
<center>
|
||||
|
@ -80,6 +56,17 @@
|
|||
</div>
|
||||
<?php }
|
||||
|
||||
if ($disable_comic_frontpage != 'yes' && $disable_comic_blog_frontpage != 'yes' && !is_paged() ) {
|
||||
while ($comicFrontpage->have_posts()) : $comicFrontpage->the_post();
|
||||
|
||||
display_comic_post();
|
||||
|
||||
endwhile; ?>
|
||||
|
||||
<div id="blogheader"><!-- This area can be used for a heading above your main page blog posts --></div>
|
||||
|
||||
<?php }
|
||||
|
||||
get_sidebar('blog');
|
||||
|
||||
if ($disable_blog_frontpage != 'yes') {
|
||||
|
@ -100,6 +87,5 @@ if ($disable_blog_frontpage != 'yes') {
|
|||
<?php get_sidebar('underblog'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include(get_template_directory() . '/layout-foot.php'); ?>
|
||||
<?php get_footer() ?>
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
@ -1,13 +1,14 @@
|
|||
<?php if (is_cp_theme_layout('v')) { ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if (is_cp_theme_layout('3c2r')) {
|
||||
get_sidebar('left');
|
||||
} ?>
|
||||
|
||||
<?php
|
||||
if (is_cp_theme_layout('3c,v3c,gn,standard,v')) {
|
||||
if (is_cp_theme_layout('3c,v3c,gn,standard,v,3c2r')) {
|
||||
get_sidebar('right'); ?>
|
||||
<?php } ?>
|
||||
|
||||
<?php if (is_cp_theme_layout('3c,standard')) { ?>
|
||||
<?php if (is_cp_theme_layout('3c,standard,3c2r')) { ?>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div id="subcontent-wrapper-bottom"></div>
|
||||
|
@ -17,6 +18,6 @@ if (is_cp_theme_layout('3c,v3c,gn,standard,v')) {
|
|||
</div>
|
||||
<?php } ?>
|
||||
<?php if (is_cp_theme_layout('rgn')) get_sidebar('right'); ?>
|
||||
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div id="content-wrapper-bottom"></div>
|
||||
|
|
|
@ -12,10 +12,10 @@
|
|||
<div class="column">
|
||||
<?php } ?>
|
||||
|
||||
<?php if (is_cp_theme_layout('3c,standard')) { ?>
|
||||
<div id="subcontent-wrapper-top"></div>
|
||||
<div id="subcontent-wrapper">
|
||||
<?php } ?>
|
||||
<?php if (is_cp_theme_layout('3c,standard,3c2r')) { ?>
|
||||
<div id="subcontent-wrapper-top"></div>
|
||||
<div id="subcontent-wrapper">
|
||||
<?php } ?>
|
||||
|
||||
<?php get_sidebar('overblog'); ?>
|
||||
<?php if (is_cp_theme_layout('3c,rgn')) get_sidebar('left'); ?>
|
||||
|
@ -23,4 +23,5 @@
|
|||
<?php if (!is_cp_theme_layout('v3c,v')) { ?>
|
||||
<div id="content" class="narrowcolumn">
|
||||
<div class="column">
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
<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 } ?>><?php _e('Standard','comicpress'); ?></option>
|
||||
<option class="level-0" value="3c" <?php if (get_option($value['id'])=='3c') { ?>selected="selected" <?php } ?>><?php _e('3 Column','comicpress'); ?></option>
|
||||
<option class="level-0" value="3c2r" <?php if (get_option($value['id'])=='3c2r') { ?>selected="selected" <?php } ?>><?php _e('3 Column, Sidebars Right','comicpress'); ?></option>
|
||||
<option class="level-0" value="gn" <?php if (get_option($value['id'])=='gn') { ?>selected="selected" <?php } ?>><?php _e('Graphic Novel Left','comicpress'); ?></option>
|
||||
<option class="level-0" value="rgn" <?php if (get_option($value['id'])=='rgn') { ?>selected="selected" <?php } ?>><?php _e('Graphic Novel Right','comicpress'); ?></option>
|
||||
<option class="level-0" value="v" <?php if (get_option($value['id'])=='v') { ?>selected="selected" <?php } ?>><?php _e('Vertical','comicpress'); ?></option>
|
||||
|
|
|
@ -51,7 +51,7 @@ $count = $tmp_search->post_count;
|
|||
<?php } else { ?>
|
||||
<div class="<?php comicpress_post_class(); ?>">
|
||||
<div class="post-head"></div>
|
||||
<div class="post">
|
||||
<div <?php post_class(); ?>>
|
||||
<div class="post-info">
|
||||
<?php if ($enable_post_author_gravatar == 'yes') { ?>
|
||||
<div class="post-author-gravatar"><?php echo str_replace("alt='", "alt='".get_the_author_meta('display_name')."' title='".get_the_author_meta('display_name'),get_avatar(get_the_author_meta('email'), 64)); ?></div>
|
||||
|
|
|
@ -49,7 +49,7 @@ $count = $tmp_search->post_count;
|
|||
|
||||
<div class="<?php comicpress_post_class(); ?>">
|
||||
<div class="post-head"></div>
|
||||
<div class="post">
|
||||
<div <?php post_class(); ?>>
|
||||
<div class="post-info">
|
||||
<?php if ($enable_post_author_gravatar == 'yes') { ?>
|
||||
<div class="post-author-gravatar"><?php echo str_replace("alt='", "alt='".get_the_author_meta('display_name')."' title='".get_the_author_meta('display_name'),get_avatar(get_the_author_meta('email'), 64)); ?></div>
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
<?php } ?>
|
||||
<?php } endwhile; ?>
|
||||
|
||||
<?php if (is_cp_theme_layout('3c,v')) { ?>
|
||||
<?php if (is_cp_theme_layout('3c,standard')) { ?>
|
||||
<div id="subcontent-wrapper-top"></div>
|
||||
<div id="subcontent-wrapper">
|
||||
<?php } ?>
|
||||
|
|
19
style.css
19
style.css
|
@ -459,13 +459,12 @@ a.navi-comments:hover span {
|
|||
margin: 0;
|
||||
}
|
||||
|
||||
/* Wraps the content area */
|
||||
/* Wraps the content area w/comic */
|
||||
#content-wrapper {
|
||||
padding: 5px 0;
|
||||
}
|
||||
|
||||
/* wraps the content area */
|
||||
#subcontent-wrapper {
|
||||
padding: 5px 0;
|
||||
}
|
||||
|
||||
#content {
|
||||
|
@ -473,7 +472,7 @@ a.navi-comments:hover span {
|
|||
}
|
||||
|
||||
.narrowcolumn {
|
||||
width: 570px;
|
||||
width: 560px;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
|
@ -489,7 +488,6 @@ a.navi-comments:hover span {
|
|||
.post, .post-comic, .post-page {
|
||||
clear: both;
|
||||
text-align: left;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.post-head, .post-page-head, .post-comic-head {
|
||||
|
@ -498,6 +496,10 @@ a.navi-comments:hover span {
|
|||
.post-foot, .post-comic-foot, .post-page-foot {
|
||||
}
|
||||
|
||||
.post-page-head {
|
||||
padding-top: 5px;
|
||||
}
|
||||
|
||||
.post-foot {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
@ -787,13 +789,15 @@ ul.children {
|
|||
/* Left Sidebar Themes */
|
||||
#sidebar-left {
|
||||
float: left;
|
||||
width: 210px;
|
||||
width: 200px;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
/* Right Sidebar Themes */
|
||||
#sidebar-right {
|
||||
float: right;
|
||||
width: 210px;
|
||||
width: 200px;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
#sidebar-overcomic {
|
||||
|
@ -811,7 +815,6 @@ ul.children {
|
|||
.sidebar {
|
||||
font-size: 11px;
|
||||
overflow: hidden;
|
||||
margin: 0 5px;
|
||||
}
|
||||
|
||||
.sidebar h2, .sidebar h2 a {
|
||||
|
|
|
@ -29,7 +29,7 @@ body {
|
|||
color: #fff;
|
||||
background: #f00 url('menu.png') 0 -75px;
|
||||
}
|
||||
|
||||
|
||||
.narrowcolumn {
|
||||
width: 560px;
|
||||
}
|
||||
|
@ -212,6 +212,10 @@ body {
|
|||
|
||||
/* THE COMIC */
|
||||
|
||||
#comic-head {
|
||||
padding-top: 2px;
|
||||
}
|
||||
|
||||
#comic {
|
||||
background: #fff;
|
||||
border: 1px solid #999;
|
||||
|
|
|
@ -60,6 +60,7 @@ h1, h1 a, h2, h2 a, h3, h3 a {
|
|||
|
||||
#content-wrapper {
|
||||
background: #555;
|
||||
padding: 5px 0;
|
||||
border: solid 1px #000;
|
||||
}
|
||||
|
||||
|
@ -69,6 +70,11 @@ h1, h1 a, h2, h2 a, h3, h3 a {
|
|||
border: solid 1px #000;
|
||||
}
|
||||
|
||||
.layout-standard .narrowcolumn, .layout-3c2r .narrowcolumn, .layout-v .narrowcolumn {
|
||||
width: 551px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
#menubar {
|
||||
background: transparent;
|
||||
margin-bottom: -1px;
|
||||
|
@ -103,11 +109,15 @@ h1, h1 a, h2, h2 a, h3, h3 a {
|
|||
border: 0;
|
||||
}
|
||||
|
||||
.layout-gn #comic, .layout-standard #comic, .layout-3c #comic {
|
||||
.layout-gn #comic, .layout-standard #comic, .layout-3c #comic, .layout-3c2r #comic, .layout-rgn #comic {
|
||||
padding: 5px;
|
||||
margin: 0 5px;
|
||||
}
|
||||
|
||||
#sidebar-left, #sidebar-right {
|
||||
padding: 0 5px;
|
||||
}
|
||||
|
||||
.sidebar h2 {
|
||||
border: solid 1px #000;
|
||||
padding-left: 5px;
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 338 B |
Binary file not shown.
Before Width: | Height: | Size: 215 B |
Binary file not shown.
Before Width: | Height: | Size: 272 B |
|
@ -1,3 +0,0 @@
|
|||
<?php global $post; if ($post->comment_status != 'closed') { ?>
|
||||
<div class="comment-link">[ <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?> ]</div>
|
||||
<?php } ?>
|
|
@ -1,6 +0,0 @@
|
|||
<strong>ThemePack</strong>: twopointfive<br />
|
||||
<strong>Author</strong>: ComicPress Development Team<br />
|
||||
<strong>Layouts</strong>: standard, 3c, gn, v, v3c<br />
|
||||
<br />
|
||||
<strong>Installation Notes</strong>:<br />
|
||||
<br />
|
Binary file not shown.
Before Width: | Height: | Size: 22 KiB |
|
@ -1,159 +0,0 @@
|
|||
/*
|
||||
ThemePack Name: twopointfive
|
||||
ThemePack URI: http://comicpress.org
|
||||
Author: Tyler Martin
|
||||
Author URI: http://mindfaucet.com/
|
||||
Version: 0.1.0
|
||||
*/
|
||||
|
||||
/* STANDARD TAGS */
|
||||
|
||||
body {
|
||||
background: #444 url('background.png') repeat;
|
||||
}
|
||||
|
||||
#page, #page-wide {
|
||||
background: #ddd;
|
||||
border-left: solid 1px #000;
|
||||
border-right: solid 1px #000;
|
||||
border-bottom: solid 1px #000;
|
||||
}
|
||||
|
||||
#page-wrap {
|
||||
padding: 0 10px;
|
||||
background: url('classic-background-narrow.png') top center repeat-y;
|
||||
}
|
||||
|
||||
#page-wide-wrap {
|
||||
padding: 0 10px;
|
||||
background: url('classic-background-wide.png') top center repeat-y;
|
||||
}
|
||||
|
||||
#header {
|
||||
background: #333;
|
||||
padding: 20px 0;
|
||||
}
|
||||
|
||||
#header h1 {
|
||||
text-align: left;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
#header .description {
|
||||
text-align: left;
|
||||
padding-left: 60px;
|
||||
}
|
||||
|
||||
#content-wrapper {
|
||||
padding: 0;
|
||||
background: #dedede;
|
||||
}
|
||||
|
||||
#footer {
|
||||
padding: 20px 0;
|
||||
color: #fff;
|
||||
background: #222;
|
||||
border-bottom: solid 1px #000;
|
||||
}
|
||||
|
||||
#comic_navi_wrapper, #comic, .pagenav {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
#pagewrap-right {
|
||||
width: 778px;
|
||||
}
|
||||
|
||||
.narrowcolumn {
|
||||
width: 558px;
|
||||
}
|
||||
|
||||
.narrowcolumn, .widecolumn {
|
||||
background: #efefef;
|
||||
}
|
||||
|
||||
.page .narrowcolumn, .page .widecolumn {
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
#header h1 a, #header .description {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.page .narrowcolumn { padding-top: 5px; }
|
||||
|
||||
#comic-head {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#sidebar-abovecomic {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
#comic {
|
||||
margin: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
padding: 5px 0;
|
||||
}
|
||||
|
||||
#sidebar-undercomic, #comic-foot {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
#footer a {
|
||||
color: #ff0000;
|
||||
}
|
||||
#footer a:hover {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
|
||||
/* MENU */
|
||||
|
||||
.menunav-prev a, .menunav-next a {
|
||||
border-left: solid 1px #aaa;
|
||||
}
|
||||
|
||||
.menunav-rss:hover {
|
||||
background: #ff6600;
|
||||
}
|
||||
|
||||
#menu {
|
||||
text-transform: uppercase;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
#menu li a {
|
||||
border-right: solid 1px #aaa;
|
||||
}
|
||||
|
||||
#menu li:hover li a, #menu li li:hover li a, #menu li li li:hover li a, #menu li li li li:hover li a,
|
||||
#menu li:hover li, #menu li li:hover li, #menu li li li:hover li, #menu li li li li:hover li {
|
||||
text-transform: uppercase;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
/* COMMENT LINK */
|
||||
|
||||
.comment-link {
|
||||
font-size: 9px;
|
||||
}
|
||||
|
||||
#sidebar-undercomic {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.widget_sociable_widget {
|
||||
margin: 0 auto;
|
||||
padding: 0 0;
|
||||
}
|
||||
|
||||
.cpcal-cals {
|
||||
width: 516px;
|
||||
margin: 0 auto;
|
||||
padding-left: 5px;
|
||||
}
|
Loading…
Reference in New Issue