Permalink
Browse files

custom image header now defaults as clickable to home

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
  • Loading branch information...
1 parent 0de1137 commit e8632df5ed86f99fafd10ac32a36837515cefb8c Philip M. Hofer (Frumph) committed Oct 26, 2010
Showing with 27 additions and 25 deletions.
  1. +20 −16 addons/custom-image-header.php
  2. +2 −0 changelog.txt
  3. +2 −6 functions.php
  4. +3 −3 style.css
@@ -1,5 +1,7 @@
<?php
+add_theme_support( 'custom-header' );
+
// Custom Image Header Defaults
// define('HEADER_TEXTCOLOR', '000');
// define('HEADER_IMAGE', ''); // %s is theme dir
@@ -17,31 +19,33 @@ function theme_admin_header_style() { ?>
#headimg h1, #headimg .description {
text-decoration: none;
-<?php if (get_header_textcolor() == 'blank') { ?>
display: none;
-<?php } else { ?>
- color: #<?php header_textcolor();?>;
-<?php } ?>
}
</style>
+
<?php
}
function theme_header_style() {
if (get_header_image()) { ?>
<style type="text/css">
-#header {
- width: <?php echo HEADER_IMAGE_WIDTH; ?>px;
- height: <?php echo HEADER_IMAGE_HEIGHT; ?>px;
- background: url(<?php header_image(); ?>) center center no-repeat;
-}
- <?php if ( 'blank' == get_header_textcolor() ) { ?>
-#header h1, #header .description { display: none; }
- <?php } else { ?>
-#header * { color: #<?php header_textcolor();?>; }
- <?php } ?>
- </style>
-
+ #header {
+ width: <?php echo HEADER_IMAGE_WIDTH; ?>px;
+ height: <?php echo HEADER_IMAGE_HEIGHT; ?>px;
+ background: url(<?php header_image(); ?>) top center no-repeat;
+ overflow: hidden;
+ }
+
+ #header h1 { padding: 0; }
+ #header h1 a {
+ display: block;
+ width: <?php echo HEADER_IMAGE_WIDTH; ?>px;
+ height: <?php echo HEADER_IMAGE_HEIGHT; ?>px;
+ text-indent: -9999px;
+ }
+ #header .description { display: none; }
+</style>
+
<?php }
}
View
@@ -4,3 +4,5 @@ Added ?latestcomic=# where # = category #
So you can do ?latestcomic and it will redirect to the latest comic of all categories
or latestcomic = 3 will redirect to the latestcomic of category ID #3
+custom image header now defaults to click to home
+
View
@@ -16,8 +16,6 @@
// Required by the wordpress review theme, it sucks donkey balls but is required.
add_theme_support( 'automatic-feed-links' );
-add_theme_support( 'custom-header' );
-
// This theme allows users to set a custom background
add_custom_background();
add_theme_support( 'custom-background' );
@@ -430,7 +428,7 @@ function comicpress_load_options() {
'disable_default_comic_nav' => false,
'enable_post_thumbnail_rss' => true,
- 'cp_theme_layout' => 'standard',
+ 'cp_theme_layout' => '3c',
'transcript_in_posts' => false,
'enable_widgetarea_use_sidebar_css' => false,
@@ -526,7 +524,7 @@ function comicpress_themeinfo($whichinfo = null) {
$comicpress_coreinfo = wp_upload_dir();
$comicpress_addinfo = array(
'upload_path' => get_option('upload_path'),
- 'version' => '2.9.2.21',
+ 'version' => '2.9.2.22',
'siteurl' => trailingslashit(get_option('siteurl')),
'home' => trailingslashit(home_url()),
'comiccat' => $comiccat,
@@ -569,8 +567,6 @@ function comicpress_themeinfo($whichinfo = null) {
return $comicpress_themeinfo;
}
-
-
function comicpress_get_comic_category_objects_by_id() {
global $categories_by_id;
if (empty($categories_by_id)) {
View
@@ -6,7 +6,7 @@ Description: Publish a comic with WordPress. <a href="http://comicpress.org">Vis
Author: Philip M. Hofer, Tyler Martin
Author URI: http://frumph.net
Tags: White, Two-Columns, Three-Columns, left-sidebar, right-sidebar, fixed-width, custom-header, theme-options, threaded-comments, sticky-post, translation-ready
-Version: 2.9.2.21
+Version: 2.9.2.22
License: GNU General Public License, v3 (or newer)
License URI: http://www.opensource.org/licenses/gpl-3.0.html
.
@@ -1550,7 +1550,7 @@ li.storyline-root {
margin: 0 0 20px 0;
}
-#linkspage, #linkspage ul, #linkspage li, #archivepage, #archivepage url, #archivepage li {
+#linkspage, #linkspage ul, #linkspage li, #archivepage, #archivepage ul, #archivepage li {
list-style: none;
}
@@ -1629,7 +1629,7 @@ a.tt:hover span.top {
display: block;
width: 200px;
height: 35px;
- padding-top: 10px 10px 0 10px;
+ padding-top: 10px;
margin-top: 59px;
margin-left: 25px;
background: url('images/bubble.png') 0 0 no-repeat;

0 comments on commit e8632df

Please sign in to comment.