first generic edit commits
authorIan Weller <ian@gaslightmedia.com>
Fri, 30 Dec 2016 14:57:49 +0000 (09:57 -0500)
committerIan Weller <ian@gaslightmedia.com>
Fri, 30 Dec 2016 14:57:49 +0000 (09:57 -0500)
I have added the generic code that allows edits from the appearance menu
on the admin side.

functions.php
header.php
style.css

index 1d3e2ae..b2e7d47 100644 (file)
@@ -46,6 +46,26 @@ if (!function_exists('glm_get_clientinfo_option')) {
 
 add_theme_support('post-thumbnails');
 set_post_thumbnail_size(120, 100, true);
+
+$defaults = array(
+       'default-color'          => '',
+       'default-image'          => '',
+       'default-repeat'         => '',
+       'default-position-x'     => '',
+       'default-attachment'     => '',
+       'wp-head-callback'       => '_custom_background_cb',
+       'admin-head-callback'    => '',
+       'admin-preview-callback' => ''
+);
+add_theme_support( 'custom-background', $defaults );
+add_theme_support( 'title-tag' );
+add_theme_support( 'custom-logo', array(
+    'height'        => 200,
+    'width'         => 400,
+    'flex-height'   => true,
+    'flex-width'    => true,
+    'header-text'   => array ( 'site-title', 'site-description'),
+) );
 /**
  * glm_site_scripts
  *
index d42dbe6..ffa996f 100644 (file)
             <div id="page-wrapper">
                 <div class="shadow-wrapper">
                     <header class="main">
-                        <div class="row collapse">
-                            <div class="large-2 columns show-for-large-up">
-                                <img alt="map showing Emmet County" src="<?php echo esc_url( get_template_directory_uri() ) ;?>/assets/michigan-map.png">
-                            </div>
-                            <div class="small-12 text-center medium-text-left medium-6 columns">
-                                <a id="logo" href="<?php echo esc_url( home_url() );?>"><img alt="Airport Logo" src="<?php echo esc_url( get_template_directory_uri() );?>/assets/logo.png"></a>
-                            </div>
+                        <div class="row collapse text-center">
+                            <?php get_custom_logo($blog_id = 0 );?>
+                            <?php the_custom_logo($blog_id = 0 );?>
+                            <?php
+                                if ( is_front_page() && is_home() ) : ?>
+                                    <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
+                                <?php else : ?>
+                                    <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
+                                <?php endif;
 
-                            <div class="large-4 columns show-for-large-up airlineInfo">
-                                <a class="facebook" href="https://www.facebook.com/pellstonairport/" target="_blank"></a>
-                                <h1 id="headerPhone">Delta Air Line </h1>
-                                <p class="headerNumber">(231) 539-8423 Local </p>
-                                <p class="headerNumber">(800) 221-1212 National </p>
-<!--                                <h6 class="small-text-center medium-text-left" id="slogan">Closest Airport to Mackinac Island!</h6>-->
-                            </div>
-                            <div class="row">
-                            <div class="small-offset-3 small-7 columns sloganDiv show-for-large-up">
-                                <h6 class="small-text-center" id="slogan">Closest Airport to Mackinac Island!</h6>
-                            </div>
-                        </div>
+                                $description = get_bloginfo( 'description', 'display' );
+                                if ( $description || is_customize_preview() ) : ?>
+                                    <p class="site-description"><?php echo $description; ?></p>
+                                <?php endif;
+                            ?>
                         </div>
                     </header>
                     <?php get_template_part('parts/top-bar');?>
index 3f099b9..83e6cb9 100644 (file)
--- a/style.css
+++ b/style.css
@@ -1,7 +1,7 @@
 /*
-Theme Name: PellstonAirport
+Theme Name: GenericPellstonAirport
 Author: Gaslight Media
 Author URI: http://www.gaslightmedia.com
-Description: A theme for PellstonAirport
-Version: 1.0.7
+Description: A generic theme based on PellstonAirport
+Version: 1.0
 */