X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/449d082fcc4873c1f7d363a0d9f7409be7f6e77d..f8ce8fee333796f41d394479265f31b87bd6e436:/wp-content/themes/default/functions.php diff --git a/wp-content/themes/default/functions.php b/wp-content/themes/default/functions.php index 340d23c3..072ab662 100644 --- a/wp-content/themes/default/functions.php +++ b/wp-content/themes/default/functions.php @@ -4,13 +4,18 @@ * @subpackage Default_Theme */ -if ( function_exists('register_sidebar') ) - register_sidebar(array( - 'before_widget' => '
  • ', - 'after_widget' => '
  • ', - 'before_title' => '

    ', - 'after_title' => '

    ', - )); +$content_width = 450; + +automatic_feed_links(); + +if ( function_exists('register_sidebar') ) { + register_sidebar(array( + 'before_widget' => '
  • ', + 'after_widget' => '
  • ', + 'before_title' => '

    ', + 'after_title' => '

    ', + )); +} /** @ignore */ function kubrick_head() { @@ -150,7 +155,7 @@ function kubrick_add_theme_page() { } add_action('admin_head', 'kubrick_theme_page_head'); } - add_theme_page(__('Customize Header'), __('Header Image and Color'), 'edit_themes', basename(__FILE__), 'kubrick_theme_page'); + add_theme_page(__('Custom Header'), __('Custom Header'), 'edit_themes', basename(__FILE__), 'kubrick_theme_page'); } function kubrick_theme_page_head() { @@ -163,7 +168,7 @@ function kubrick_theme_page_head() { kUpdate(ColorPicker_targetInput.id); } function PopupWindow_populate(contents) { - contents += '

    '; + contents += '

    '; this.contents = contents; this.populated = false; } @@ -248,13 +253,13 @@ function kubrick_theme_page_head() { document.getElementById('headerimg').style.display = document.getElementById('fontdisplay').value; } function kRevert() { - document.getElementById('headerimage').value = ''; - document.getElementById('advuppercolor').value = document.getElementById('uppercolor').value = '#'; - document.getElementById('advlowercolor').value = document.getElementById('lowercolor').value = '#'; - document.getElementById('header').style.background = 'url("") center no-repeat'; + document.getElementById('headerimage').value = ''; + document.getElementById('advuppercolor').value = document.getElementById('uppercolor').value = '#'; + document.getElementById('advlowercolor').value = document.getElementById('lowercolor').value = '#'; + document.getElementById('header').style.background = 'url("") center no-repeat'; document.getElementById('header').style.color = ''; - document.getElementById('advfontcolor').value = document.getElementById('fontcolor').value = ''; - document.getElementById('fontdisplay').value = ''; + document.getElementById('advfontcolor').value = document.getElementById('fontcolor').value = ''; + document.getElementById('fontdisplay').value = ''; document.getElementById('headerimg').style.display = document.getElementById('fontdisplay').value; } function kInit() { @@ -308,6 +313,12 @@ function kubrick_theme_page_head() { width: 100%; display: ; } + + .description { + margin-top: 16px; + color: #fff; + } + #jsForm { display: none; text-align: center; @@ -377,43 +388,43 @@ function kubrick_theme_page() {
    -
    - red', '#FF0000', 'rgb(255, 0, 0)'); ?>
    - #FF0000', '#F00'); ?>
    - #FF0000', '#F00'); ?>
    - - - - +
    + red', '#FF0000', 'rgb(255, 0, 0)'); ?>
    + #FF0000', '#F00'); ?>
    + #FF0000', '#F00'); ?>
    + + + +
    -
    + - - - - - + + + + + - - - - - -

    + + + + + +