From: Steve Sutton Date: Tue, 18 Nov 2014 19:59:22 +0000 (-0500) Subject: Theme updates X-Git-Tag: v1.0.0~78 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=0f17d5293e1beb3562df7c85e2e8e41d5014d4de;p=WP-Themes%2FPrestonFeather.git Theme updates adding wp_head and wp_footer to the theme pages. put js into que --- diff --git a/css/styles.css b/css/styles.css index ef967aa..3e78340 100644 --- a/css/styles.css +++ b/css/styles.css @@ -476,4 +476,75 @@ p.in { } top-bar-section .has-dropdown .dropdown li.has-dropdown > a:after { left: 5px; -} \ No newline at end of file +} + + +/* Images */ + +img.centered { + display: block; + margin-left: auto; + margin-right: auto; + } + +img.alignright { + padding: 0; + margin: 0 0 6px 11px; + display: inline; + } + +img.alignleft { + padding: 0; + margin: 0 11px 6px 0; + display: inline; + } +img.alignleft, img.alignright, img.centered, div.wp-caption img { + border: 1px solid #b1b3b5; +} + +.alignright { + float: right; + } + +.alignleft { + float: left; + } +.wp-caption-text { + text-align: center; +} +@media (max-width:640px) { + img.alignright, img.alignleft { + width: 70% !important; + display: block; + margin-left: auto; + margin-right: auto; + float: none; + text-align: center; + } + div.wp-caption.alignright, div.wp-caption.alignleft { + width: 90% !important; + margin-left: auto; + margin-right: auto; + float: none; + text-align: center; + } + div.wp-caption.alignright, div.wp-caption.alignleft { + width: 100%; + } +} +/* End Images */ + +/* google map */ +#map-canvas *, #map-canvas *:before, #map-canvas *:after { + -moz-box-sizing: content-box!important; + -webkit-box-sizing: content-box!important; + box-sizing: content-box!important; + } + #map-canvas img { + max-width: none; + } + #map-canvas label { + width: auto; + display: inline; + } +/* end google map*/ diff --git a/footer.php b/footer.php index f75b59c..b3a060e 100644 --- a/footer.php +++ b/footer.php @@ -1,6 +1,6 @@
- +
@@ -55,7 +55,7 @@
- +
@@ -65,10 +65,10 @@ - + - + \ No newline at end of file diff --git a/front-page.php b/front-page.php index 41f313f..c387fd7 100644 --- a/front-page.php +++ b/front-page.php @@ -10,7 +10,7 @@
-
+

Helping You Build With Confidence Since 1915

@@ -25,19 +25,31 @@
- -

Our Latest Design

-

Uptatiorrum ratatet quoditias as consequo vendipitis et acea illabor as dolo oditi quat venim asi aesto.

+ __('Block One', 'text-domain'), + 'type' => 'editor', + 'apply_filters' => true + )); + ?>
- -

New at Preston Feather

-

Uptatiorrum ratatet quoditias as consequo vendipitis et acea illabor as dolo oditi quat venim asi aesto.

+ __('Block Two', 'text-domain'), + 'type' => 'editor', + 'apply_filters' => true + )); + ?>
- -

Seasonal Tips

-

Uptatiorrum ratatet quoditias as consequo vendipitis et acea illabor as dolo oditi quat venim asi aesto.

+ __('Block Three', 'text-domain'), + 'type' => 'editor', + 'apply_filters' => true + )); + ?>
@@ -85,7 +97,9 @@ foreach($lastposts as $post) : setup_postdata($post); ?>

Four Building & Design Center Locations to Serve You

- +
\ No newline at end of file diff --git a/functions.php b/functions.php index 2483b50..6268212 100755 --- a/functions.php +++ b/functions.php @@ -49,4 +49,19 @@ function glm_offcanvas_menu() add_theme_support('post-thumbnails'); set_post_thumbnail_size(120, 100, true); +function preston_feather_scripts() +{ + if(is_front_page()) { + wp_enqueue_script( + 'cycle_script', + get_template_directory_uri() . '/js/jquery.cycle2.min.js', + 'jquery', + '1.0', + true + ); + } + +} + +add_action('wp_enqueue_scripts', 'preston_feather_scripts'); ?> \ No newline at end of file diff --git a/header.php b/header.php index 3379c48..ad35a6f 100644 --- a/header.php +++ b/header.php @@ -2,11 +2,12 @@ - Preston Feather Building Center - - + <?php wp_title(); ?> + + +
@@ -16,9 +17,9 @@