Skip to content

Commit

Permalink
Check whether custom header constants are defined before defining them.
Browse files Browse the repository at this point in the history
  • Loading branch information
beastaugh committed Mar 14, 2009
1 parent 7810f1f commit 58673bb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Expand Up @@ -8,6 +8,7 @@

#### Tweaks

* Check whether custom header constants are defined
* Style all text input fields in the same fashion
* Removed duplicate password required message
* Style `tt` elements
Expand Down
15 changes: 10 additions & 5 deletions app/launcher.php
Expand Up @@ -4,11 +4,16 @@
load_theme_textdomain('tarski');

// Custom header image
define('HEADER_TEXTCOLOR', '');
define('HEADER_IMAGE', '%s/headers/' . get_tarski_option('header')); // %s is theme directory URI
define('HEADER_IMAGE_WIDTH', 720);
define('HEADER_IMAGE_HEIGHT', 180);
define('NO_HEADER_TEXT', true);
if (!defined('HEADER_TEXTCOLOR'))
define('HEADER_TEXTCOLOR', '');
if (!defined('HEADER_IMAGE')) // %s is theme directory URI
define('HEADER_IMAGE', '%s/headers/' . get_tarski_option('header'));
if (!defined('HEADER_IMAGE_WIDTH'))
define('HEADER_IMAGE_WIDTH', 720);
if (!defined('HEADER_IMAGE_HEIGHT'))
define('HEADER_IMAGE_HEIGHT', 180);
if (!defined('NO_HEADER_TEXT'))
define('NO_HEADER_TEXT', true);
add_custom_image_header('', 'tarski_admin_header_style');

// Widgets
Expand Down

0 comments on commit 58673bb

Please sign in to comment.