added back storyline chapters to comic posts links, fixed the graphical navigationt o handle johns storylines, sidebar-right.php fixed comicpress_calendar link
Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
parent
2b863e844f
commit
cc7519e964
|
@ -325,23 +325,44 @@ function get_terminal_post_in_category($categoryID, $first = true) {
|
||||||
/**
|
/**
|
||||||
* Find the first post in the storyline prior to the current one.
|
* Find the first post in the storyline prior to the current one.
|
||||||
*/
|
*/
|
||||||
|
function get_previous_storyline_start() {
|
||||||
|
if (($category_id = get_adjacent_storyline_category_id(true)) !== false) {
|
||||||
|
return get_terminal_post_in_category($category_id);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
function get_previous_storyline_start_permalink() {
|
function get_previous_storyline_start_permalink() {
|
||||||
|
$prev_story = get_previous_storyline_start();
|
||||||
|
if (is_object($prev_story)) {
|
||||||
|
if (isset($prev_story->ID)) {
|
||||||
|
return get_permalink($prev_story->ID);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Find the first post in the storyline following to the current one.
|
||||||
|
*/
|
||||||
|
function get_next_storyline_start() {
|
||||||
if (($category_id = get_adjacent_storyline_category_id()) !== false) {
|
if (($category_id = get_adjacent_storyline_category_id()) !== false) {
|
||||||
return get_terminal_post_in_category($category_id);
|
return get_terminal_post_in_category($category_id);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Find the first post in the storyline following to the current one.
|
|
||||||
*/
|
|
||||||
function get_next_storyline_start_permalink() {
|
function get_next_storyline_start_permalink() {
|
||||||
if (($category_id = get_adjacent_storyline_category_id(true)) !== false) {
|
$next_story = get_next_storyline_start();
|
||||||
return get_terminal_post_in_category($category_id);
|
if (is_object($next_story)) {
|
||||||
}
|
if (isset($next_story->ID)) {
|
||||||
return false;
|
return get_permalink($next_story->ID);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function get_adjacent_storyline_category_id($next = false) {
|
function get_adjacent_storyline_category_id($next = false) {
|
||||||
global $post, $category_tree;
|
global $post, $category_tree;
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,9 @@ function display_comic_post() {
|
||||||
<div class="post-text">
|
<div class="post-text">
|
||||||
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
||||||
<small> By <?php the_author_posts_link(); ?> on <?php the_time('F jS, Y'); ?> <?php edit_post_link('Edit Post', ' [ ', ' ] '); ?></small><br />
|
<small> By <?php the_author_posts_link(); ?> on <?php the_time('F jS, Y'); ?> <?php edit_post_link('Edit Post', ' [ ', ' ] '); ?></small><br />
|
||||||
|
<?php if (get_option('comicpress-enable-storyline-support') == 1) { ?>
|
||||||
|
<ul class="storyline-cats"><li class="storyline-root"><?php the_category(' » </li><li>', multiple) ?></li></ul>
|
||||||
|
<?php } ?>
|
||||||
<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
|
<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<?php if (is_cp_theme_style('standard,v')) { ?>
|
<?php if (is_cp_theme_style('standard,v')) { ?>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<?php get_calendar() ?>
|
<?php comicpress_calendar() ?>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
329
style.css
329
style.css
|
@ -22,33 +22,27 @@ body {
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: #800;
|
color: #800;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
a:hover {
|
a:hover {
|
||||||
color: #f00;
|
color: #f00;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
a:focus {
|
a:focus {
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
a img {
|
a img {
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
p {
|
p {
|
||||||
margin: 12px 0;
|
margin: 12px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
img {
|
img {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
@ -210,159 +204,159 @@ h3, h3 a {
|
||||||
background: url('images/menu.png');
|
background: url('images/menu.png');
|
||||||
text-align: left;
|
text-align: left;
|
||||||
border: 1px solid #999;
|
border: 1px solid #999;
|
||||||
}
|
}
|
||||||
|
|
||||||
#menunav {
|
#menunav {
|
||||||
float: right;
|
float: right;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menunav-search {
|
|
||||||
padding: 1px 1px 0 0;
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
.menunav-rss {
|
|
||||||
width: 25px;
|
|
||||||
height: 25px;
|
|
||||||
margin: 0 0 0 4px;
|
|
||||||
display: block;
|
|
||||||
float: left;
|
|
||||||
text-indent: -9999px;
|
|
||||||
overflow: hidden;
|
|
||||||
background: url('images/menu-nav.png') no-repeat;
|
|
||||||
}
|
|
||||||
|
|
||||||
.menunav-rss:hover {
|
|
||||||
background-position: 0 -25px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.menunav-prev, .menunav-next {
|
.menunav-search {
|
||||||
display: block;
|
padding: 1px 1px 0 0;
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menunav-prev {
|
.menunav-rss {
|
||||||
margin: 0 0 0 5px;
|
width: 25px;
|
||||||
}
|
height: 25px;
|
||||||
|
margin: 0 0 0 4px;
|
||||||
|
display: block;
|
||||||
|
float: left;
|
||||||
|
text-indent: -9999px;
|
||||||
|
overflow: hidden;
|
||||||
|
background: url('images/menu-nav.png') no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
.menunav-prev a, .menunav-next a {
|
.menunav-rss:hover {
|
||||||
width: 25px;
|
background-position: 0 -25px;
|
||||||
height: 25px;
|
}
|
||||||
display: block;
|
|
||||||
text-indent: -9999px;
|
.menunav-prev, .menunav-next {
|
||||||
overflow: hidden;
|
display: block;
|
||||||
}
|
float: left;
|
||||||
|
}
|
||||||
.menunav-prev a {
|
|
||||||
background: url('images/menu-nav.png') -25px 0 no-repeat;
|
.menunav-prev {
|
||||||
}
|
margin: 0 0 0 5px;
|
||||||
|
}
|
||||||
.menunav-prev a:hover {
|
|
||||||
background-position: -25px -25px;
|
.menunav-prev a, .menunav-next a {
|
||||||
}
|
width: 25px;
|
||||||
|
height: 25px;
|
||||||
.menunav-next a {
|
display: block;
|
||||||
background: url('images/menu-nav.png') -50px 0 no-repeat;
|
text-indent: -9999px;
|
||||||
}
|
overflow: hidden;
|
||||||
|
}
|
||||||
.menunav-next a:hover {
|
|
||||||
background-position: -50px -25px;
|
.menunav-prev a {
|
||||||
}
|
background: url('images/menu-nav.png') -25px 0 no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menunav-prev a:hover {
|
||||||
|
background-position: -25px -25px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menunav-next a {
|
||||||
|
background: url('images/menu-nav.png') -50px 0 no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menunav-next a:hover {
|
||||||
|
background-position: -50px -25px;
|
||||||
|
}
|
||||||
|
|
||||||
#menu {
|
#menu {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
float: left;
|
float: left;
|
||||||
line-height: 25px;
|
line-height: 25px;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
border-right: 1px solid #aaa;
|
border-right: 1px solid #aaa;
|
||||||
}
|
}
|
||||||
|
|
||||||
#menu a {
|
#menu a {
|
||||||
padding: 0px 10px 0 10px;
|
padding: 0px 10px 0 10px;
|
||||||
display: block;
|
display: block;
|
||||||
color: #000;
|
color: #000;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#menu li .rss {
|
#menu li .rss {
|
||||||
padding: 5px 0 5px 0;
|
padding: 5px 0 5px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#menu li {
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
#menu li a {
|
|
||||||
border-left: 1px solid #aaa;
|
|
||||||
border-right: 1px solid #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
#menu li:hover a, #menu li.sfhover a {
|
#menu li {
|
||||||
border-left: 1px solid #8b160f;
|
float: left;
|
||||||
border-right: 1px solid #c28380;
|
}
|
||||||
color: #fff; /* Main menu highlighted text color */
|
|
||||||
background: url('images/menu.png') 0 -75px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#menu li:hover, #menu li.sfhover {
|
#menu li a {
|
||||||
/* Main menu highlighted background color */
|
border-left: 1px solid #aaa;
|
||||||
}
|
border-right: 1px solid #fff;
|
||||||
|
}
|
||||||
/* For submenu dropdowns - this order must be maintained */
|
|
||||||
|
|
||||||
#menu ul {
|
#menu li:hover a, #menu li.sfhover a {
|
||||||
padding: 0;
|
border-left: 1px solid #8b160f;
|
||||||
margin: 0;
|
border-right: 1px solid #c28380;
|
||||||
list-style: none;
|
color: #fff; /* Main menu highlighted text color */
|
||||||
position: absolute;
|
background: url('images/menu.png') 0 -75px;
|
||||||
left: -9999px;
|
}
|
||||||
width: 175px;
|
|
||||||
line-height: 1;
|
#menu li:hover, #menu li.sfhover {
|
||||||
}
|
/* Main menu highlighted background color */
|
||||||
#menu li li {
|
}
|
||||||
width: 165px;
|
|
||||||
padding: 4px 5px;
|
/* For submenu dropdowns - this order must be maintained */
|
||||||
color: #fff;
|
|
||||||
}
|
#menu ul {
|
||||||
#menu li li a {
|
padding: 0;
|
||||||
width: 174px;
|
margin: 0;
|
||||||
padding: 0;
|
list-style: none;
|
||||||
color: #fff;
|
position: absolute;
|
||||||
border: none;
|
left: -9999px;
|
||||||
}
|
width: 175px;
|
||||||
#menu li ul ul {
|
line-height: 1;
|
||||||
margin: -17px 0 0 170px;
|
}
|
||||||
}
|
#menu li li {
|
||||||
#menu li ul li:hover a, #menu li ul li li:hover a, #menu li ul li li li:hover a, #menu li ul li li li:hover a {
|
width: 165px;
|
||||||
color: #fff; /*Submenu highlighted text color */
|
padding: 4px 5px;
|
||||||
}
|
color: #fff;
|
||||||
#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 {
|
}
|
||||||
color: #fff; /*Submenu text color */
|
#menu li li a {
|
||||||
border: none;
|
width: 174px;
|
||||||
background: none;
|
padding: 0;
|
||||||
}
|
color: #fff;
|
||||||
#menu li li:hover {
|
border: none;
|
||||||
background: #f00; /*Submenu highlighted background color */
|
}
|
||||||
}
|
#menu li ul ul {
|
||||||
#menu li:hover ul ul, #menu li:hover ul ul ul, #menu li:hover ul ul ul ul, #menu li.sfhover ul ul, #menu li.sfhover ul ul ul, #menu li.sfhover ul ul ul ul {
|
margin: -17px 0 0 170px;
|
||||||
left: -9999px;
|
}
|
||||||
}
|
#menu li ul li:hover a, #menu li ul li li:hover a, #menu li ul li li li:hover a, #menu li ul li li li:hover a {
|
||||||
#menu li:hover ul, #menu li li:hover ul, #menu li li li:hover ul, #menu li li li li:hover ul, #menu li.sfhover ul, #menu li li.sfhover ul, #menu li li li.sfhover ul, #menu li li li li.sfhover ul {
|
color: #fff; /*Submenu highlighted text color */
|
||||||
left: auto;
|
}
|
||||||
background: #000; /* Submenu background color */
|
#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 {
|
||||||
text-transform: none;
|
color: #fff; /*Submenu text color */
|
||||||
}
|
border: none;
|
||||||
|
background: none;
|
||||||
#menu .current_page_item a {
|
}
|
||||||
color: #fff;
|
#menu li li:hover {
|
||||||
border-left: 1px solid #555;
|
background: #f00; /*Submenu highlighted background color */
|
||||||
border-right: 1px solid #555;
|
}
|
||||||
background: url('images/menu.png') 0 -50px;
|
#menu li:hover ul ul, #menu li:hover ul ul ul, #menu li:hover ul ul ul ul, #menu li.sfhover ul ul, #menu li.sfhover ul ul ul, #menu li.sfhover ul ul ul ul {
|
||||||
}
|
left: -9999px;
|
||||||
|
}
|
||||||
|
#menu li:hover ul, #menu li li:hover ul, #menu li li li:hover ul, #menu li li li li:hover ul, #menu li.sfhover ul, #menu li li.sfhover ul, #menu li li li.sfhover ul, #menu li li li li.sfhover ul {
|
||||||
|
left: auto;
|
||||||
|
background: #000; /* Submenu background color */
|
||||||
|
text-transform: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#menu .current_page_item a {
|
||||||
|
color: #fff;
|
||||||
|
border-left: 1px solid #555;
|
||||||
|
border-right: 1px solid #555;
|
||||||
|
background: url('images/menu.png') 0 -50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -370,9 +364,9 @@ h3, h3 a {
|
||||||
|
|
||||||
|
|
||||||
#comic {
|
#comic {
|
||||||
background:#fff;
|
background: #fff;
|
||||||
padding:10px 0;
|
padding: 10px 0;
|
||||||
border:1px solid #999;
|
border: 1px solid #999;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
}
|
}
|
||||||
|
@ -907,11 +901,11 @@ ul.children {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wp-calendar-thumb {
|
.wp-calendar-thumb {
|
||||||
width: 178px;
|
width: 178px;
|
||||||
height: 130px;
|
height: 130px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#wp-calendar th {
|
#wp-calendar th {
|
||||||
|
@ -1211,25 +1205,20 @@ li.pingback div p, li.trackback div p {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* STORYLINES */
|
/* STORYLINES */
|
||||||
|
|
||||||
|
.storyline-cats {
|
||||||
#storyline-cats {
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0 10px 0 0;
|
margin: 0;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.storyline-cats li {
|
||||||
#storyline-cats li {
|
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
li.storyline-root {
|
||||||
#storyline-cats ul {
|
display: none;
|
||||||
display: inline;
|
|
||||||
margin-right: 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1240,11 +1229,6 @@ li.pingback div p, li.trackback div p {
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* CLEAR MARGINS */
|
/* CLEAR MARGINS */
|
||||||
/* Used with BR for clearing paragraph margins for Safari, Chrome - avoid background gaps */
|
/* Used with BR for clearing paragraph margins for Safari, Chrome - avoid background gaps */
|
||||||
|
|
||||||
|
@ -1256,12 +1240,6 @@ li.pingback div p, li.trackback div p {
|
||||||
font-size: 0;
|
font-size: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/** BUY THIS **/
|
/** BUY THIS **/
|
||||||
|
|
||||||
|
|
||||||
|
@ -1286,7 +1264,6 @@ li.pingback div p, li.trackback div p {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.headerpwad {
|
.headerpwad {
|
||||||
float: right;
|
float: right;
|
||||||
margin: 5px 5px 0 0;
|
margin: 5px 5px 0 0;
|
||||||
|
@ -1298,11 +1275,8 @@ li.pingback div p, li.trackback div p {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Archive Calendar Template */
|
/* Archive Calendar Template */
|
||||||
|
|
||||||
|
|
||||||
.cpcal-month {
|
.cpcal-month {
|
||||||
width: 157px;
|
width: 157px;
|
||||||
height: 138px;
|
height: 138px;
|
||||||
|
@ -1323,6 +1297,7 @@ li.pingback div p, li.trackback div p {
|
||||||
line-height: 16px;
|
line-height: 16px;
|
||||||
letter-spacing: -1px;
|
letter-spacing: -1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cpcal-dayletter {
|
.cpcal-dayletter {
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 15px;
|
height: 15px;
|
||||||
|
@ -1362,7 +1337,6 @@ li.pingback div p, li.trackback div p {
|
||||||
|
|
||||||
/* Storyline Template */
|
/* Storyline Template */
|
||||||
|
|
||||||
|
|
||||||
#storyline, #storyline ul {
|
#storyline, #storyline ul {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
@ -1621,11 +1595,8 @@ a.tt:hover span.bottom {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.userpage-posts li {
|
.userpage-posts li {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -25,14 +25,13 @@ class widget_comicpress_graphical_navigation extends WP_Widget {
|
||||||
$wp_query->is_single = true;
|
$wp_query->is_single = true;
|
||||||
$prev_comic = get_previous_comic_permalink();
|
$prev_comic = get_previous_comic_permalink();
|
||||||
$next_comic = get_next_comic_permalink();
|
$next_comic = get_next_comic_permalink();
|
||||||
|
$prev_story = get_previous_storyline_start_permalink();
|
||||||
|
$next_story = get_next_storyline_start_permalink();
|
||||||
$wp_query->is_single = $temp_query;
|
$wp_query->is_single = $temp_query;
|
||||||
$temp_query = null;
|
$temp_query = null;
|
||||||
|
|
||||||
$first_comic = get_first_comic_permalink();
|
$first_comic = get_first_comic_permalink();
|
||||||
$last_comic = get_last_comic_permalink();
|
$last_comic = get_last_comic_permalink();
|
||||||
|
|
||||||
$prev_story = get_previous_storyline_start_permalink();
|
|
||||||
$next_story = get_next_storyline_start_permalink();
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div id="comic_navi_wrapper">
|
<div id="comic_navi_wrapper">
|
||||||
|
|
Loading…
Reference in New Issue