1. Doug Stewart
  2. elbee-elgee

Commits

Doug Stewart  committed 3f29f1b

Moved stuff around to compensate for custom header code.

  • Participants
  • Parent commits f2b4b7f
  • Branches default

Comments (0)

Files changed (2)

File functions.php

View file
  • Ignore whitespace
 }
 
 
-// Set up custom header code
-define('HEADER_TEXTCOLOR', 'cfcfd0');
-define('HEADER_IMAGE', '%s/styles/default/newbanner2.png');
-define('HEADER_IMAGE_WIDTH', '1024');
-define('HEADER_IMAGE_HEIGHT', '279');
+$use_custom_header = $shortname."_use_custom_header";
+if(get_settings($use_custom_header) == true){
+	// Set up custom header code
+	define('HEADER_TEXTCOLOR', 'cfcfd0');
+	define('HEADER_IMAGE', '%s/styles/default/newbanner2.png');
+	define('HEADER_IMAGE_WIDTH', '1024');
+	define('HEADER_IMAGE_HEIGHT', '279');
+
+	add_custom_image_header('header_style', 'elbee_admin_header_style');
+}
 
 function header_style() {
-/*?>
+?>
 <style type="text/css">
 #header{
 	background: url(<?php header_image() ?>) bottom right no-repeat;
 }
 <?php } ?>
 </style>
-<?php*/
+<?php
 }
 
 function elbee_admin_header_style() {
 <?php
 }
 
-add_custom_image_header('header_style', 'elbee_admin_header_style');
-
 add_action('wp_head', 'mytheme_wp_head');
 add_action('admin_menu', 'mytheme_add_admin'); 
 ?>

File styles/default-inverted.css

View file
  • Ignore whitespace
 
 #header {
 	height: 279px;
-	background: #0e1223 url(default-inverted/logo-inverted.png) bottom right no-repeat;
-	border-bottom: 1px solid #f3f3dc;
+	background: #fff url(default-inverted/logo-inverted.png) bottom right no-repeat;
+	border-bottom: 1px solid #111;
 }
 
 #content {
 	padding: 0;
 	float: left;
 	width: 100%;
-	border-bottom: 1px solid #f3f3dc;
+	border-bottom: 1px solid #111;
 	border-top: 0px;
 	position: relative;
 	vertical-align: bottom;