WordPress.org

Make WordPress Themes

Changes from subtle/1.1 at r82994 to subtle/1.2 at r82994


Ignore:
Location:
subtle/1.2
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • subtle/1.2/content-none.php

    r82994 r82994  
    22    <p><?php _e("Sorry, but no results were found.", "subtle"); ?></p> 
    33    <?php if( is_search() ) : ?> 
    4     <form method="get" id="searchform" class='form-inline' action="<?php bloginfo('url'); ?>/"> 
     4    <form method="get" id="searchform" class='form-inline' action="<?php echo home_url() ?>/"> 
    55        <div class='form-group'> 
    66            <input class='form-control' type="text" value="<?php the_search_query(); ?>" name="s" id="s" /> 
  • subtle/1.2/functions.php

    r82994 r82994  
    144144 
    145145        // Google Source Sans Pro Font 
    146         wp_enqueue_style( 'google-source-sans-pro' , 'http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,400italic', array() ); 
     146        wp_enqueue_style( 'google-source-sans-pro' , '//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,400italic', array() ); 
    147147 
    148148        // Get the main stylesheet for the theme. 
  • subtle/1.2/header.php

    r82994 r82994  
    2626    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> 
    2727    <link rel="profile" href="http://gmpg.org/xfn/11"> 
    28     <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?> 
    2928 
    3029    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> 
     
    3332        <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js"></script> 
    3433    <![endif]--> 
     34    <?php if ( get_header_image() ) : ?> 
     35        <style type="text/css"> 
     36            #site-branding { 
     37                background: url("<?php header_image(); ?>") center no-repeat !important; 
     38                height: <?php echo get_custom_header()->height; ?>px !important; 
     39            } 
     40 
     41            #site-branding .site-title, 
     42            #site-branding .site-description { 
     43                <?php  
     44                if( get_header_textcolor() == 'blank' ) :  
     45                    echo 'visibility: hidden;';  
     46                else :   
     47                    echo 'color: #999'; 
     48                endif; ?> 
     49            } 
     50        </style> 
     51    <?php endif; ?> 
    3552 
    3653    <?php wp_head(); ?> 
    3754    </head> 
    38     <body  <?php body_class(); ?>> 
     55    <body <?php body_class(); ?>> 
    3956     
    4057    <header id="site-header"> 
     
    4259        <div class="site-header"> 
    4360            <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"> 
    44                 <img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt=""> 
     61                 
    4562            </a> 
    4663        </div> 
  • subtle/1.2/style.css

    r82994 r82994  
    22Theme Name: Subtle 
    33Theme URI: http://www.demo.xavortm.com/subtle 
    4 Version: 1.1 
     4Version: 1.2 
    55Author: Alexander Dimitrov 
    66Author URI: http://www.xavortm.com 
     
    201201  text-transform: uppercase; 
    202202} 
    203  
    204203.site-header { 
    205204  background-color: #000; 
    206205  max-width: 1920px; 
    207   position: relative; 
    208206  width: 100%; 
    209   z-index: 4; 
     207  z-index: 0; 
    210208} 
    211209 
     
    339337} 
    340338 
     339/* Stylws for main content 
     340 * ------------------------------------------------ */ 
     341#primary { 
     342  background: white; 
     343} 
     344 
     345.custom-background #primary { 
     346  padding-top: 15px; 
     347} 
    341348 
    342349/* Entry stylings 
Note: See TracChangeset for help on using the changeset viewer.