Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
Philip M. Hofer (Frumph) 2009-08-30 03:49:02 -07:00
parent 0fc9ef7215
commit 972d9c6720
7 changed files with 274 additions and 564 deletions

View File

@ -1,153 +0,0 @@
<?php
/*
Template Name: Blog Calendar Archive
*/
?>
<?php get_header(); ?>
<?php
$dayWidth = 22; //set to .cpcal-day total width in pixels including: width, left & right border, left & right margin, left & right padding
if (isset($_GET['archive_year'])) {
$archive_year = (int)$_GET['archive_year'];
} else {
$latest_comic = get_terminal_post_in_category(get_all_comic_categories_as_cat_string(),false);
$archive_year = get_post_time('Y', false, $latest_comic, true);
if (empty($archive_year)) $archive_year = date('Y');
}
$firstDayMargins = array();
for ($i = 1; $i <= 12; ++$i) {
$dateInfo = getdate(mktime(0,0,0,$i,1,$archive_year));
$firstDayMargins[$i] = $dateInfo['wday'] * $dayWidth;
}
$tempPost = $post;
$comicArchive = new WP_Query(); $comicArchive->query('&showposts=1000&cat=-'.exclude_comic_categories().'&year='.$archive_year);
while ($comicArchive->have_posts()) : $comicArchive->the_post();
$calTitle = get_the_title();
$calLink = get_permalink();
$calDay = get_the_time('j');
$calMonth = get_the_time('F');
$calComic[$calMonth.$calDay] = array('link' => $calLink, 'title' => $calTitle);
endwhile;
$post = $tempPost;
function leapYear($yr) {
if ($yr % 4 != 0) {
return 28;
} else {
if ($yr % 100 != 0) {
return 29;
} else {
if ($yr % 400 != 0) {
return 28;
} else {
return 29;
}
}
}
}
$leapYear = leapYear($archive_year);
$month['1'] = array('month' => 'January', 'days' => '31');
$month['2'] = array('month' => 'February', 'days' => $leapYear);
$month['3'] = array('month' => 'March', 'days' => '31');
$month['4'] = array('month' => 'April', 'days' => '30');
$month['5'] = array('month' => 'May', 'days' => '31');
$month['6'] = array('month' => 'June', 'days' => '30');
$month['7'] = array('month' => 'July', 'days' => '31');
$month['8'] = array('month' => 'August', 'days' => '31');
$month['9'] = array('month' => 'September', 'days' => '30');
$month['10'] = array('month' => 'October', 'days' => '31');
$month['11'] = array('month' => 'November', 'days' => '30');
$month['12'] = array('month' => 'December', 'days' => '31');
?>
<?php if (is_cp_theme_style('gn,v3c')) get_sidebar('left'); ?>
<?php if (is_cp_theme_style('v3c,v')) { ?>
<div id="content" class="narrowcolumn">
<div class="column">
<?php } ?>
<?php if (is_cp_theme_style('gn')) { ?>
<div id="pagewrap-right">
<?php } ?>
<?php if (is_cp_theme_style('3c,standard')) { ?>
<div id="content-wrapper">
<?php } ?>
<?php get_sidebar('overblog'); ?>
<?php if (is_cp_theme_style('3c')) get_sidebar('left'); ?>
<?php if (is_cp_theme_style('gn,standard,3c')) { ?>
<div id="content" class="narrowcolumn">
<div class="column">
<?php } ?>
<div class="post-page-head"></div>
<div class="post-page">
<?php while (have_posts()) : the_post() ?>
<div class="entry">
<h2 class="pagetitle"><?php the_title() ?> <span class="page-archive-year"> <?php echo $archive_year; ?></span></h2>
<?php the_content(); ?>
</div>
<?php endwhile; ?>
<div class="archive-yearlist">|
<?php $years = $wpdb->get_col("SELECT DISTINCT YEAR(post_date) FROM $wpdb->posts WHERE post_status = 'publish' ORDER BY post_date ASC");
foreach ( $years as $year ) {
if ($year != (0) ) { ?>
<a href="<?php echo add_query_arg('archive_year', $year) ?>"><strong><?php echo $year ?></strong></a> |
<?php } } ?>
</div>
<?php $i=1; while($i<=12) { ?>
<div class="cpcal-month" id="<?php echo $month[$i]['month'] ?>">
<div class="cpcal-monthtitle"><?php echo $month[$i]['month']." ".$archive_year ?></div>
<?php foreach(array("S", "M", "T", "W", "T", "F", "S") as $dow) { ?>
<div class="cpcal-dayletter"><?php echo $dow ?></div>
<?php } ?>
<div class="clear"></div>
<?php $day=1; while($day<=$month[$i]['days']) {
if ($day == 1) { ?>
<div style="width:<?php echo $firstDayMargins[$i]; ?>px;height:15px;float:left;"></div>
<?php } ?>
<div class="cpcal-day">
<?php if (isset($calComic[$month[$i]['month'].$day])) { ?>
<a href="<?php echo $calComic[$month[$i]['month'].$day]['link'] ?>" title="<?php echo $calComic[$month[$i]['month'].$day]['title'] ?>"><?php echo $day ?></a>
<?php } else {
echo $day." ";
} ?>
</div>
<?php ++$day;
}
++$i ?>
</div>
<?php } ?>
<br class="clear-margins" />
</div>
<div class="post-page-foot"></div>
<?php if ('open' == $post->comment_status) {
comments_template('', true);
} ?>
</div>
</div>
<?php
if (is_cp_theme_style('3c,v3c,gn,standard,v')) {
get_sidebar('right');
} ?>
<?php if (is_cp_theme_style('standard,gn,3c')) { ?>
<div class="clear"></div>
</div> <!-- end pageright-wrapper / content-wrapper -->
<?php } ?>
<?php get_footer() ?>

View File

@ -1,82 +0,0 @@
<?php
/*
Template Name: Blog Year Archive
*/
?>
<?php get_header(); ?>
<?php
if (isset($_GET['archive_year'])) {
$archive_year = (int)$_GET['archive_year'];
} else {
$latest_comic = get_terminal_post_in_category(get_all_comic_categories_as_cat_string(),false);
$archive_year = get_post_time('Y', false, $latest_comic, true);
}
if (empty($archive_year)) $archive_year = date('Y');
?>
<?php if (is_cp_theme_style('gn,v3c')) get_sidebar('left'); ?>
<?php if (is_cp_theme_style('v3c,v')) { ?>
<div id="content" class="narrowcolumn">
<div class="column">
<?php } ?>
<?php if (is_cp_theme_style('gn')) { ?>
<div id="pagewrap-right">
<?php } ?>
<?php if (is_cp_theme_style('3c,standard')) { ?>
<div id="content-wrapper">
<?php } ?>
<?php get_sidebar('overblog'); ?>
<?php if (is_cp_theme_style('3c')) get_sidebar('left'); ?>
<?php if (is_cp_theme_style('gn,standard,3c')) { ?>
<div id="content" class="narrowcolumn">
<div class="column">
<?php } ?>
<div class="post-page-head"></div>
<div class="post-page">
<?php while (have_posts()) : the_post() ?>
<div class="entry">
<h2 class="pagetitle"><?php the_title() ?> <span class="page-archive-year"> <?php echo $archive_year; ?></span></h2>
<?php the_content(); ?>
</div>
<?php endwhile; ?>
<div class="archive-yearlist">|
<?php $years = $wpdb->get_col("SELECT DISTINCT YEAR(post_date) FROM $wpdb->posts WHERE post_status = 'publish' ORDER BY post_date ASC");
foreach ( $years as $year ) {
if ($year != (0) ) { ?>
<a href="<?php echo add_query_arg('archive_year', $year) ?>"><strong><?php echo $year ?></strong></a> |
<?php } } ?>
</div>
<table class="month-table">
<?php $comicArchive = new WP_Query(); $comicArchive->query('showposts=10000&cat=-'.exclude_comic_categories().'&year='.$archive_year);
while ($comicArchive->have_posts()) : $comicArchive->the_post() ?>
<tr><td class="archive-date"><?php the_time('M j') ?></td><td class="archive-title"><a href="<?php echo get_permalink($post->ID) ?>" rel="bookmark" title="Permanent Link: <?php the_title() ?>"><?php the_title() ?></a></td></tr>
<?php endwhile; ?>
</table>
<br class="clear-margins" />
</div>
<div class="post-page-foot"></div>
</div>
</div>
<?php
if (is_cp_theme_style('3c,v3c,gn,standard,v')) {
get_sidebar('right');
} ?>
<?php if (is_cp_theme_style('standard,gn,3c')) { ?>
<div class="clear"></div>
</div> <!-- end pageright-wrapper / content-wrapper -->
<?php } ?>
<?php get_footer() ?>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

View File

@ -7,7 +7,8 @@ if ($disable_lrsidebars_frontpage == 'yes' && is_home()) {
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Left Sidebar') ) : ?>
<ul>
<li>
<?php comicpress_calendar() ?>
<?php $default_image = get_bloginfo('stylesheet_directory').'/images/cal/default.png'; ?>
<?php comicpress_calendar(array('thumbnail' => $default_image)) ?>
</li>
</ul>
<?php comicpress_archive_dropdown(); ?>

View File

@ -10,7 +10,8 @@ if ($disable_lrsidebars_frontpage == 'yes' && is_home()) {
<?php if (is_cp_theme_style('standard,v')) { ?>
<ul>
<li>
<?php comicpress_calendar() ?>
<?php $default_image = get_bloginfo('stylesheet_directory').'/images/cal/default.png'; ?>
<?php comicpress_calendar(array('thumbnail' => $default_image)) ?>
</li>
</ul>
<?php } ?>

591
style.css
View File

@ -314,7 +314,7 @@ h3, h3 a {
/* Main menu highlighted background color */
}
/* For submenu dropdowns - this order must be maintained */
/* For submenu dropdowns - this order must be maintained */
#menu ul {
padding: 0;
@ -379,9 +379,9 @@ h3, h3 a {
z-index: 100;
}
#comic img {
margin: 5px;
}
#comic img {
margin: 5px;
}
#comic-foot {
padding-bottom: 5px;
@ -409,25 +409,25 @@ a.navi-comments:hover span {
padding: 8px 5px 5px 5px;
}
.nav-first {
padding: 0 5px 0 0;
float: left;
}
.nav-first {
padding: 0 5px 0 0;
float: left;
}
.nav-previous {
padding: 0 5px;
float: left;
}
.nav-previous {
padding: 0 5px;
float: left;
}
.nav-next {
padding: 0 5px;
float: left;
}
.nav-next {
padding: 0 5px;
float: left;
}
.nav-last {
padding: 0 0 0 5px;
float: left;
}
.nav-last {
padding: 0 0 0 5px;
float: left;
}
.pagenav, .commentnav {
height: 25px;
@ -440,34 +440,26 @@ a.navi-comments:hover span {
clear: both;
}
.pagenav-left, .commentnav-left {
float: left;
}
.pagenav-left, .commentnav-left {
float: left;
}
.pagenav-right, .commentnav-right {
float: right;
}
.nav a, .pagenav a, .nav-blog a {
display: block;
float: left;
color: #000;
}
.nav a:hover, .pagenav a:hover, .nav-blog a:hover {
color: #800;
}
.pagenav-right, .commentnav-right {
float: right;
}
.nav a, .pagenav a, .nav-blog a {
display: block;
float: left;
color: #000;
}
.nav a:hover, .pagenav a:hover, .nav-blog a:hover {
color: #800;
}
/* POSTS - PAGES */
#pagewrap-right {
width: 770px;
float: left;
@ -482,7 +474,6 @@ a.navi-comments:hover span {
padding: 0;
}
#content {
float: left;
overflow: hidden;
@ -576,7 +567,6 @@ a.navi-comments:hover span {
font-size: 14px;
}
.postdate {
font-size: 11px;
}
@ -727,7 +717,6 @@ a.navi-comments:hover span {
background: #efefef;
}
.comment-author {
display: inline;
}
@ -743,7 +732,6 @@ a.navi-comments:hover span {
display: none;
}
.commentsrsslink {
float: right;
font-size: 11px;
@ -844,7 +832,6 @@ ul.children {
/* Sidebar Class */
.sidebar {
font-size: 11px;
margin: 0 5px 0 5px;
@ -852,39 +839,37 @@ ul.children {
padding: 0 0 5px 0;
}
.sidebar h2, .sidebar h2 a {
font-family:arial;
font-size: 16px;
}
.sidebar h2, .sidebar h2 a {
font-family:arial;
font-size: 16px;
}
.sidebar .widget {
margin-bottom: 10px;
}
.sidebar .widget {
margin-bottom: 10px;
}
.sidebar ul {
margin: 0;
padding: 0;
list-style: none;
}
.sidebar ul {
margin: 0;
padding: 0;
list-style: none;
}
.sidebar ul li {
margin: 0;
padding: 0;
text-align: left;
list-style: none;
}
.sidebar ul li {
margin: 0;
padding: 0;
text-align: left;
list-style: none;
}
.sidebar ul li ul li {
margin: 0 0 0 13px;
padding: 0;
text-align: left;
}
.sidebar ul li ul li {
margin: 0 0 0 13px;
padding: 0;
text-align: left;
}
.sidebar li h2 {
margin-top: 15px;
}
.sidebar li h2 {
margin-top: 15px;
}
/* WIDGETS */
@ -893,12 +878,12 @@ ul.children {
margin: 0 auto;
}
.widget_comicpress_comictitle {
font-size: 36px;
font-family: georgia;
letter-spacing: -2px;
text-align: center;
}
.widget_comicpress_comictitle {
font-size: 36px;
font-family: georgia;
letter-spacing: -2px;
text-align: center;
}
.random-comic-icon {
padding: 0 5px;
@ -916,9 +901,9 @@ ul.children {
background: url('images/browse-search.png') no-repeat;
}
.archive-dropdown-wrap:hover {
background-position: 0 -23px;
}
.archive-dropdown-wrap:hover {
background-position: 0 -23px;
}
.archive-dropdown {
margin: 0;
@ -949,79 +934,73 @@ ul.children {
margin: 0 auto;
}
.wp-calendar-thumb {
width: 178px;
height: 130px;
margin: 0 auto;
}
#wp-calendar th {
font-size: 10px;
font-weight: normal;
text-align: center;
}
#wp-calendar caption {
font-family: 'Georgia' , sans-serif;
font-size: 18px;
letter-spacing: -1px;
font-variant: small-caps;
}
#wp-calendar td {
min-width: 20px;
padding: 0;
text-align: center;
border: 1px solid #000;
}
#wp-calendar a {
display: block;
text-decoration: none;
font-weight: bold;
}
#wp-calendar a:hover {
color: #fff;
background: #000;
}
table#wp-calendar {
border:none;
background: transparent;
}
table#wp-calendar td {
border-color: #999;
}
.wp-calendar-download {
width: 166px;
margin: 0 auto;
overflow: hidden;
font-size: 10px;
text-align: right;
color: #777;
background: #222;
}
.wp-calendar-download a {
padding: 0 3px;
font-weight: bold;
color: #fff;
background: #000;
border-left: 1px solid #777;
.wp-calendar-thumb {
width: 178px;
height: 130px;
margin: 0 auto;
}
.wp-calendar-download a:hover {
background: #800;
#wp-calendar th {
font-size: 10px;
font-weight: normal;
text-align: center;
}
#wp-calendar caption {
font-family: 'Georgia' , sans-serif;
font-size: 18px;
letter-spacing: -1px;
font-variant: small-caps;
}
#wp-calendar td {
min-width: 20px;
padding: 0;
text-align: center;
border: 1px solid #000;
}
#wp-calendar a {
display: block;
text-decoration: none;
font-weight: bold;
}
#wp-calendar a:hover {
color: #fff;
background: #000;
}
table#wp-calendar {
border:none;
background: transparent;
}
table#wp-calendar td {
border-color: #999;
}
.wp-calendar-download {
width: 166px;
margin: 0 auto;
overflow: hidden;
font-size: 10px;
text-align: right;
color: #777;
background: #222;
}
.wp-calendar-download a {
padding: 0 3px;
font-weight: bold;
color: #fff;
background: #000;
border-left: 1px solid #777;
}
.wp-calendar-download a:hover {
background: #800;
}
/* SEARCH */
@ -1037,41 +1016,39 @@ table#wp-calendar td {
background: url('images/browse-search.png') 0 -46px no-repeat;
}
#s-search:hover, #s-search:focus, #s-transcript:hover, #s-transcript:focus {
color: #550000;
background-position: 0 -69px;
}
#s-search:hover, #s-search:focus, #s-transcript:hover, #s-transcript:focus {
color: #550000;
background-position: 0 -69px;
}
#searchform button, #searchform-transcript button {
padding: 0;
margin: 0;
border: none;
height: 23px;
width: 23px;
line-height: 0;
font-size: 0;
cursor: pointer;
text-indent: -9999px;
background: url('images/browse-search.png') -143px -46px no-repeat;
}
#searchform button, #searchform-transcript button {
padding: 0;
margin: 0;
border: none;
height: 23px;
width: 23px;
line-height: 0;
font-size: 0;
cursor: pointer;
text-indent: -9999px;
background: url('images/browse-search.png') -143px -46px no-repeat;
}
#searchform button:hover, #searchform-transcript button:hover {
background-position: -143px -69px;
}
#searchform button:hover, #searchform-transcript button:hover {
background-position: -143px -69px;
}
#searchform button:hover, #searchform-transcript button:-moz-focus-inner {
border: 0;
}
.searchresults {
float: right;
padding: 5px;
}
#searchform button:hover, #searchform-transcript button:-moz-focus-inner {
border: 0;
}
.searchresults {
float: right;
padding: 5px;
}
/* GALLERY */
.gallery-image {
width: 518px;
border: 1px solid #000;
@ -1080,26 +1057,23 @@ table#wp-calendar td {
text-align: center;
}
.gallery-caption {
font-size: 11px;
}
.gallery-caption p {
width: 510px;
padding: 5px;
margin: 0;
text-align: center;
color: #fff;
background: #000;
}
.gallery-caption p {
width: 510px;
padding: 5px;
margin: 0;
text-align: center;
color: #fff;
background: #000;
}
.imagenav-wrap {
margin: 5px 0 0 0;
}
.imagenav {
width: 77px;
height: 77px;
@ -1107,7 +1081,6 @@ table#wp-calendar td {
overflow: hidden;
}
.imagenav-center {
width: 344px;
height: 65px;
@ -1120,13 +1093,11 @@ table#wp-calendar td {
overflow: hidden;
}
.imagetitle {
color: #000;
font-size: 18px;
}
.imagenav-bg {
width: 75px;
height: 75px;
@ -1137,13 +1108,11 @@ table#wp-calendar td {
overflow: hidden;
}
.imagenav-bg img {
width: 75px;
height: 75px;
}
.imagenav-arrow {
width: 75px;
height: 75px;
@ -1158,7 +1127,6 @@ table#wp-calendar td {
float: left;
}
.imagenav-link {
width: 75px;
height: 75px;
@ -1169,45 +1137,35 @@ table#wp-calendar td {
overflow: hidden;
}
.imagenav-link img {
width: 75px;
height: 75px; /* opacity: 0.50; filter: alpha(opacity=50); */
height: 75px;
/* opacity: 0.50; filter: alpha(opacity=50); */
}
.imagenav-link img:hover {
/* opacity: 0.00; filter: alpha(opacity=0); */
/* opacity: 0.00; filter: alpha(opacity=0); */
}
/* POSTED IMAGES */
.wp-caption p {
margin: 5px 0;
line-height: 11px;
font-size: 11px;
}
.aligncenter {
margin: 0 auto;
display: block;
}
.alignright {
margin: 10px 0 10px 10px;
display: inline;
float: right;
}
.alignleft {
margin: 10px 10px 10px 0;
display: inline;
@ -1223,28 +1181,28 @@ table#wp-calendar td {
border-right: 4px dotted #333;
}
.transcript-border {
padding: 0 5px;
margin: 15px 0;
border: 1px solid #555;
background: #fff;
clear: both;
}
.transcript-border {
padding: 0 5px;
margin: 15px 0;
border: 1px solid #555;
background: #fff;
clear: both;
}
a.transcript-title {
padding: 0 0 5px 0;
margin: 0 0 5px 0;
display: block;
font-family: 'Georgia' , serif;
font-style: italic;
font-size: 12px;
font-style: normal;
font-weight: normal;
text-transform: uppercase;
letter-spacing: 1px;
line-height: 2em;
border-bottom: 1px dashed #777;
}
a.transcript-title {
padding: 0 0 5px 0;
margin: 0 0 5px 0;
display: block;
font-family: 'Georgia' , serif;
font-style: italic;
font-size: 12px;
font-style: normal;
font-weight: normal;
text-transform: uppercase;
letter-spacing: 1px;
line-height: 2em;
border-bottom: 1px dashed #777;
}
#transcript-content {
font-family: 'Courier New' , monospace;
@ -1265,18 +1223,16 @@ li.pingback div p, li.trackback div p {
list-style: none;
}
.storyline-cats li {
display: inline;
}
li.storyline-root {
display: none;
}
.storyline-cats li {
display: inline;
}
li.storyline-root {
display: none;
}
/* CLEAR FLOATS */
.clear {
clear: both;
}
@ -1284,7 +1240,6 @@ li.storyline-root {
/* CLEAR MARGINS */
/* Used with BR for clearing paragraph margins for Safari, Chrome - avoid background gaps */
.clear-margins {
clear: both;
height: 0;
@ -1294,12 +1249,10 @@ li.storyline-root {
/** BUY THIS **/
.buythis {
padding: 0 5px 0 5px;
}
.buythisbutton {
height: 27px;
width: 240px;
@ -1307,10 +1260,8 @@ li.storyline-root {
background: url('images/buythis.png') no-repeat;
}
/** Project Wonderful CSS Embedded areas **/
.blogpwad {
text-align: center;
width: 100%;
@ -1459,7 +1410,6 @@ li.storyline-root {
/* Archive Year Template */
.archive-date {
padding: 0 5px 0 0;
font-size: 11px;
@ -1477,12 +1427,10 @@ li.storyline-root {
margin: 0 0 20px 0;
}
#linkspage, #linkspage ul, #linkspage li {
list-style: none;
}
#linkspage h2 {
margin-top: 20px;
}
@ -1559,93 +1507,88 @@ li.storyline-root {
text-decoration: none;
margin-bottom: -110px;
}
a.tt span {
display: none;
}
a.tt:hover span.tooltip {
position: absolute;
display: block;
width: 200px;
color: #000;
margin: 0 auto;
text-align: center;
height: 164px;
background: url('images/comicpress-rascal.png') no-repeat;
z-index: 1000;
}
a.tt:hover span.top {
display: block;
width: 200px;
height: 35px;
padding-top: 10px 10px 0 10px;
margin-top: 59px;
margin-left: 25px;
background: url('images/bubble.png') 0 0 no-repeat;
z-index: 1000;
}
a.tt:hover span.middle {
/* different middle bg for stretch */
display: block;
width: 180px;
margin-left: 25px;
padding: 0 10px;
background: url('images/bubble.png') -200px 0 repeat-y;
z-index: 1000;
}
a.tt:hover span.bottom {
display: block;
width: 200px;
height: 15px;
background-position: -100px;
color: #548912;
margin-left: 25px;
background: url('images/bubble.png') 0 -35px no-repeat;
z-index: 1000;
}
a.tt span {
display: none;
}
a.tt:hover span.tooltip {
position: absolute;
display: block;
width: 200px;
color: #000;
margin: 0 auto;
text-align: center;
height: 164px;
background: url('images/comicpress-rascal.png') no-repeat;
z-index: 1000;
}
a.tt:hover span.top {
display: block;
width: 200px;
height: 35px;
padding-top: 10px 10px 0 10px;
margin-top: 59px;
margin-left: 25px;
background: url('images/bubble.png') 0 0 no-repeat;
z-index: 1000;
}
a.tt:hover span.middle {
/* different middle bg for stretch */
display: block;
width: 180px;
margin-left: 25px;
padding: 0 10px;
background: url('images/bubble.png') -200px 0 repeat-y;
z-index: 1000;
}
a.tt:hover span.bottom {
display: block;
width: 200px;
height: 15px;
background-position: -100px;
color: #548912;
margin-left: 25px;
background: url('images/bubble.png') 0 -35px no-repeat;
z-index: 1000;
}
/* User Pages */
#userpage {
width: 100%;
padding: 5px;
}
.userpage-avatar {
float: left;
width: 64px;
height: 64px;
}
.userpage-avatar {
float: left;
width: 64px;
height: 64px;
}
.userpage-info {
margin-left: 10px;
float: left;
}
.userpage-desc {
width: 400px;
padding: 5px;
margin-top: 30px;
border: 1px dotted #efefef;
}
.userpage-info {
margin-left: 10px;
float: left;
}
.userpage-posts {
margin-top: 20px;
}
.userpage-posts ol {
margin: 10px 0 0 30px;
padding: 0;
}
.userpage-desc {
width: 400px;
padding: 5px;
margin-top: 30px;
border: 1px dotted #efefef;
}
.userpage-posts {
margin-top: 20px;
}
.userpage-posts ol {
margin: 10px 0 0 30px;
padding: 0;
}
.userpage-posts li {
list-style: none;
margin: 0;
padding: 0;
}
.userpage-posts li {
list-style: none;
margin: 0;
padding: 0;
}

View File

@ -22,7 +22,7 @@ function comicpress_calendar($instance = null) {
<div id="wp-calendar-wrap">
<?php if (!empty($thumbnail)) { ?>
<div class="wp-calendar-download">
<img src="<?php echo $thumbnail; ?>" alt="" /><br />
<img src="<?php echo $thumbnail; ?>" class="wp-calendar-thumb" alt="" /><br />
<?php if (!empty($small) || !empty($medium) || !empty($large)) { ?>
DOWNLOAD <?php if (!empty($small)) { ?><a href="<?php echo $small; ?>" title="Download Small">S</a><?php } ?><?php if (!empty($medium)) { ?><a href="<?php echo $medium; ?>" title="Download Medium">M</a><?php } ?><?php if (!empty($large)) { ?><a href="<?php echo $large; ?>" title="Download Large">L</a><?php } ?>
<?php } ?>
@ -62,7 +62,8 @@ class widget_comicpress_calendar extends WP_Widget {
}
function form($instance) {
$instance = wp_parse_args( (array) $instance, array( 'title' => '', 'thumbnail' => '', 'small' => '', 'medium' => '', 'large' => '') );
$default_image = get_bloginfo('stylesheet_directory').'/images/cal/default.png';
$instance = wp_parse_args( (array) $instance, array( 'title' => '', 'thumbnail' => $default_image, 'small' => '', 'medium' => '', 'large' => '') );
$title = strip_tags($instance['title']);
$thumbnail = strip_tags($instance['thumbnail']);
$small = strip_tags($instance['small']);
@ -70,7 +71,6 @@ class widget_comicpress_calendar extends WP_Widget {
$large = strip_tags($instance['large']);
?>
<p><label for="<?php echo $this->get_field_id('title'); ?>">Title: <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<p><label for="<?php echo $this->get_field_id('thumbnail'); ?>">Thumbnail URL (178px by 130px): <input class="widefat" id="<?php echo $this->get_field_id('thumbnail'); ?>" name="<?php echo $this->get_field_name('thumbnail'); ?>" type="text" value="<?php echo attribute_escape($thumbnail); ?>" /></label></p>
<p><label for="<?php echo $this->get_field_id('small'); ?>">Wallpaper URL (Small): <input class="widefat" id="<?php echo $this->get_field_id('small'); ?>" name="<?php echo $this->get_field_name('small'); ?>" type="text" value="<?php echo attribute_escape($small); ?>" /></label></p>
<p><label for="<?php echo $this->get_field_id('medium'); ?>">Wallpaper URL (Medium): <input class="widefat" id="<?php echo $this->get_field_id('medium'); ?>" name="<?php echo $this->get_field_name('medium'); ?>" type="text" value="<?php echo attribute_escape($medium); ?>" /></label></p>