XPressME Integration Kit

Trac


Ignore:
Timestamp:
Mar 23, 2010, 11:42:58 AM (14 years ago)
Author:
toemon
Message:

デフォルトテーマをWP3から導入されるカスタムメニュー対応にする Fixes #320
また、「ヘッダーの背景と文字の色」の編集に対応させる。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/wp-content/themes/xpress_default/functions.php

    r64 r561  
    88    )); 
    99 
     10        // This theme uses wp_nav_menu() 
     11        if ( function_exists('add_theme_support') )add_theme_support( 'nav-menus' ); 
     12 
    1013load_theme_textdomain('xpress'); 
    1114 
     
    1518        if ( xpress_header_image() ) { 
    1619                $url =  xpress_header_image_url() ; 
    17                 $output .= "#header { background: url('$url') no-repeat bottom center; }\n"; 
     20                $output .= "#header { background: url('$url') repeat-x bottom left; }\n"; 
    1821        } 
    1922        if ( false !== ( $color = xpress_header_color() ) ) { 
    20                 $output .= "#headerimg h1 a, #headerimg h1 a:visited, #headerimg .description { color: $color; }\n"; 
     23                $output .= "#xpress-header-bar-top a, #xpress-header-bar-top a:visited, #xpress-header-bar-top .xpress-description ,#xpress-header-bar-top .xpress-conditional-title,#access a, #xpress-menu a{ color: $color; }\n"; 
    2124        } 
    2225        if ( false !== ( $display = xpress_header_display() ) ) { 
     
    3942                return $q['upper']; 
    4043        } else 
    41                 return '69aee7'; 
     44                return 'ffffff'; 
    4245} 
    4346 
     
    4750                return $q['lower']; 
    4851        } else 
    49                 return '4180b6'; 
     52                return 'ffffff'; 
    5053} 
    5154 
     
    6669        $color = xpress_header_color(); 
    6770        if ( false === $color ) 
    68                 return 'white'; 
     71                return 'black'; 
    6972 
    7073        return $color; 
     
    279282                font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Arial, Sans-Serif; 
    280283                font-weight: bold; 
    281                 font-size: 4em; 
     284                font-size: 2em; 
    282285                text-align: center; 
    283286                padding-top: 70px; 
Note: See TracChangeset for help on using the changeset viewer.