|
69 | 69 | if ( ! function_exists( 'stuff_setup' ) ) :
|
70 | 70 | function stuff_setup(){
|
71 | 71 |
|
72 |
| - add_theme_support( 'custom-header' ); |
| 72 | + // Custom Header |
| 73 | + add_theme_support( 'custom-header', array( |
| 74 | + 'default-text-color' => '#000', |
| 75 | + 'width' => 1920, |
| 76 | + 'height' => 180, |
| 77 | + 'flex-width' => true, |
| 78 | + 'flex-height' => true, |
| 79 | + ) |
| 80 | + ); |
| 81 | + |
| 82 | + // Custom Background |
73 | 83 | add_theme_support( "custom-background" );
|
74 | 84 |
|
75 | 85 | // Add default posts and comments RSS feed links to head.
|
@@ -152,41 +162,43 @@ function stuff_setup(){
|
152 | 162 | function stuff_enqueue_styles_scripts(){
|
153 | 163 |
|
154 | 164 | //add style
|
155 |
| - wp_enqueue_style( 'animate', STUFF_CSS . 'animate.css', array() ); |
156 |
| - wp_enqueue_style( 'icomoon', STUFF_CSS . 'icomoon.css', array() ); |
157 |
| - wp_enqueue_style( 'bootstrap', STUFF_CSS . 'bootstrap.css', array() ); |
158 |
| - wp_enqueue_style( 'magnific-popup', STUFF_CSS . 'magnific-popup.css', array() ); |
159 |
| - wp_enqueue_style( 'flexslider', STUFF_CSS . 'flexslider.css', array() ); |
160 |
| - wp_enqueue_style( 'owl-carousel', STUFF_CSS . 'owl.carousel.min.css', array() ); |
161 |
| - wp_enqueue_style( 'owl-theme', STUFF_CSS . 'owl.theme.default.min.css', array() ); |
162 |
| - wp_enqueue_style( 'theme-css', STUFF_CSS . 'style.css', array() ); |
163 | 165 | $googleFontOption = array(
|
164 | 166 | 'family' => 'Roboto:300,400,700',
|
165 | 167 | );
|
166 |
| - wp_enqueue_style( 'google_fonts', add_query_arg( $googleFontOption, "//fonts.googleapis.com/css" ), array(), null ); |
| 168 | + wp_enqueue_style( 'google_fonts', add_query_arg( $googleFontOption, "//fonts.googleapis.com/css" ) ); |
| 169 | + |
| 170 | + wp_enqueue_style( 'animate', STUFF_CSS . 'animate.css' ); |
| 171 | + wp_enqueue_style( 'icomoon', STUFF_CSS . 'icomoon.css' ); |
| 172 | + wp_enqueue_style( 'bootstrap', STUFF_CSS . 'bootstrap.css' ); |
| 173 | + wp_enqueue_style( 'magnific-popup', STUFF_CSS . 'magnific-popup.css' ); |
| 174 | + wp_enqueue_style( 'flexslider', STUFF_CSS . 'flexslider.css' ); |
| 175 | + wp_enqueue_style( 'owl-carousel', STUFF_CSS . 'owl.carousel.min.css' ); |
| 176 | + wp_enqueue_style( 'owl-theme', STUFF_CSS . 'owl.theme.default.min.css' ); |
| 177 | + wp_enqueue_style( 'theme-css', STUFF_CSS . 'style.css' ); |
| 178 | + |
167 | 179 | wp_enqueue_style('stuff',get_stylesheet_uri());
|
168 | 180 |
|
169 | 181 | //add script
|
170 |
| - wp_enqueue_script('modernizr',STUFF_JS.'modernizr-2.6.2.min.js',array('jquery'),false,false); |
171 |
| - wp_enqueue_script('respond',STUFF_JS.'respond.min.js',array('jquery'),false,false); |
172 |
| - wp_enqueue_script('jquery-easing',STUFF_JS.'jquery.easing.1.3.js',array('jquery'),false,true); |
173 |
| - wp_enqueue_script('bootstrap-js',STUFF_JS.'bootstrap.min.js',array('jquery'),false,true); |
174 |
| - wp_enqueue_script('jquery-waypoints',STUFF_JS.'jquery.waypoints.min.js',array('jquery'),false,true); |
175 |
| - wp_enqueue_script('jquery-flexslider',STUFF_JS.'jquery.flexslider-min.js',array('jquery'),false,true); |
176 |
| - wp_enqueue_script('owl-carousel-js',STUFF_JS.'owl.carousel.min.js',array('jquery'),false,true); |
177 |
| - wp_enqueue_script('jquery-magnific-js',STUFF_JS.'jquery.magnific-popup.min.js',array('jquery'),false,true); |
178 |
| - wp_enqueue_script('magnific-popup-options',STUFF_JS.'magnific-popup-options.js',array('jquery'),false,true); |
179 |
| - wp_enqueue_script('instagram-feed',STUFF_JS.'jquery.instagramFeed.min.js',array('jquery'),false,true); |
180 |
| - wp_enqueue_script('stuff-main',STUFF_JS.'main.js',array('jquery'),false,true); |
| 182 | + wp_enqueue_script('modernizr',STUFF_JS.'modernizr-2.6.2.min.js',array('jquery'), '2.6.2', false); |
| 183 | + wp_enqueue_script('respond',STUFF_JS.'respond.min.js',array('jquery'), '1.4.2', false); |
| 184 | + wp_enqueue_script('jquery-easing',STUFF_JS.'jquery.easing.1.3.js',array('jquery'), '1.3', true); |
| 185 | + wp_enqueue_script('bootstrap-js',STUFF_JS.'bootstrap.min.js',array('jquery'), '3.3.5',true); |
| 186 | + wp_enqueue_script('jquery-waypoints',STUFF_JS.'jquery.waypoints.min.js',array('jquery'), '4.0.0', true); |
| 187 | + wp_enqueue_script('jquery-flexslider',STUFF_JS.'jquery.flexslider-min.js',array('jquery'), '2.6.0', true); |
| 188 | + wp_enqueue_script('owl-carousel-js',STUFF_JS.'owl.carousel.min.js',array('jquery'), '2.0.6', true); |
| 189 | + wp_enqueue_script('jquery-magnific-js',STUFF_JS.'jquery.magnific-popup.min.js',array('jquery'), '0.9.9', true); |
| 190 | + wp_enqueue_script('magnific-popup-options',STUFF_JS.'magnific-popup-options.js',array('jquery'), '0.9.9',true); |
| 191 | + wp_enqueue_script('instagram-feed',STUFF_JS.'jquery.instagramFeed.min.js',array('jquery'), '1.0.0', true); |
| 192 | + wp_enqueue_script('stuff-main',STUFF_JS.'main.js',array('jquery'), '1.0.0', true); |
181 | 193 |
|
182 | 194 | $string = '';
|
183 | 195 | $api = get_theme_mod( 'stuff_google_api_key', 'AIzaSyCefOgb1ZWqYtj7raVSmN4PL2WkTrc-KyA' );
|
184 | 196 | if ( ! empty( $api ) ) {
|
185 | 197 | $string = '?key=' . $api;
|
186 | 198 | }
|
187 | 199 |
|
188 |
| - wp_enqueue_script( 'googlemaps', '//maps.googleapis.com/maps/api/js' . $string, array(), false, true ); |
189 |
| - wp_enqueue_script('map-function',STUFF_JS.'google_map.js',array('jquery'),false,true); |
| 200 | + wp_enqueue_script( 'googlemaps', '//maps.googleapis.com/maps/api/js' . $string, array(), '1.0.0', true ); |
| 201 | + wp_enqueue_script( 'map-function', STUFF_JS.'google_map.js', array('jquery'), '1.0.0', true); |
190 | 202 |
|
191 | 203 | //reply comments
|
192 | 204 | if ( is_singular() && comments_open() && get_option('thread_comments') ) {
|
@@ -216,6 +228,7 @@ function stuff_logo(){
|
216 | 228 | else{
|
217 | 229 | ?>
|
218 | 230 | <div id="colorlib-logo"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo('name')?></a></div>
|
| 231 | + <span class="header_tagline"><?php echo esc_html( get_bloginfo('description') ) ?></span> |
219 | 232 | <?php
|
220 | 233 | }
|
221 | 234 | }
|
|
0 commit comments