@@ -15,27 +15,27 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | function lighthouse_jetpack_setup() { |
| 17 | 17 | // Add theme support for Infinite Scroll. |
| 18 | - add_theme_support( 'infinite-scroll', array( |
|
| 18 | + add_theme_support('infinite-scroll', array( |
|
| 19 | 19 | 'container' => 'main', |
| 20 | 20 | 'render' => 'lighthouse_infinite_scroll_render', |
| 21 | 21 | 'footer' => 'page', |
| 22 | - ) ); |
|
| 22 | + )); |
|
| 23 | 23 | |
| 24 | 24 | // Add theme support for Responsive Videos. |
| 25 | - add_theme_support( 'jetpack-responsive-videos' ); |
|
| 25 | + add_theme_support('jetpack-responsive-videos'); |
|
| 26 | 26 | } |
| 27 | -add_action( 'after_setup_theme', 'lighthouse_jetpack_setup' ); |
|
| 27 | +add_action('after_setup_theme', 'lighthouse_jetpack_setup'); |
|
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * Custom render function for Infinite Scroll. |
| 31 | 31 | */ |
| 32 | 32 | function lighthouse_infinite_scroll_render() { |
| 33 | - while ( have_posts() ) { |
|
| 33 | + while (have_posts()) { |
|
| 34 | 34 | the_post(); |
| 35 | - if ( is_search() ) : |
|
| 36 | - get_template_part( 'template-parts/content', 'search' ); |
|
| 35 | + if (is_search()) : |
|
| 36 | + get_template_part('template-parts/content', 'search'); |
|
| 37 | 37 | else : |
| 38 | - get_template_part( 'template-parts/content', get_post_format() ); |
|
| 38 | + get_template_part('template-parts/content', get_post_format()); |
|
| 39 | 39 | endif; |
| 40 | 40 | } |
| 41 | 41 | } |
@@ -21,18 +21,18 @@ discard block |
||
| 21 | 21 | * @uses lighthouse_header_style() |
| 22 | 22 | */ |
| 23 | 23 | function lighthouse_custom_header_setup() { |
| 24 | - add_theme_support( 'custom-header', apply_filters( 'lighthouse_custom_header_args', array( |
|
| 24 | + add_theme_support('custom-header', apply_filters('lighthouse_custom_header_args', array( |
|
| 25 | 25 | 'default-image' => '', |
| 26 | 26 | 'default-text-color' => '000000', |
| 27 | 27 | 'width' => 1000, |
| 28 | 28 | 'height' => 250, |
| 29 | 29 | 'flex-height' => true, |
| 30 | 30 | 'wp-head-callback' => 'lighthouse_header_style', |
| 31 | - ) ) ); |
|
| 31 | + ))); |
|
| 32 | 32 | } |
| 33 | -add_action( 'after_setup_theme', 'lighthouse_custom_header_setup' ); |
|
| 33 | +add_action('after_setup_theme', 'lighthouse_custom_header_setup'); |
|
| 34 | 34 | |
| 35 | -if ( ! function_exists( 'lighthouse_header_style' ) ) : |
|
| 35 | +if ( ! function_exists('lighthouse_header_style')) : |
|
| 36 | 36 | /** |
| 37 | 37 | * Styles the header image and text displayed on the blog. |
| 38 | 38 | * |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | * If no custom options for text are set, let's bail. |
| 46 | 46 | * get_header_textcolor() options: Any hex value, 'blank' to hide text. Default: HEADER_TEXTCOLOR. |
| 47 | 47 | */ |
| 48 | - if ( HEADER_TEXTCOLOR === $header_text_color ) { |
|
| 48 | + if (HEADER_TEXTCOLOR === $header_text_color) { |
|
| 49 | 49 | return; |
| 50 | 50 | } |
| 51 | 51 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | <style type="text/css"> |
| 55 | 55 | <?php |
| 56 | 56 | // Has the text been hidden? |
| 57 | - if ( ! display_header_text() ) : |
|
| 57 | + if ( ! display_header_text()) : |
|
| 58 | 58 | ?> |
| 59 | 59 | .site-title, |
| 60 | 60 | .site-description { |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | ?> |
| 68 | 68 | .site-title a, |
| 69 | 69 | .site-description { |
| 70 | - color: #<?php echo esc_attr( $header_text_color ); ?>; |
|
| 70 | + color: #<?php echo esc_attr($header_text_color); ?>; |
|
| 71 | 71 | } |
| 72 | 72 | <?php endif; ?> |
| 73 | 73 | </style> |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | <div class="container"> |
| 10 | 10 | <div class="row"> |
| 11 | 11 | <main id="main" class="site-main" role="main"> |
| 12 | - <?php while ( have_posts() ) : the_post(); ?> |
|
| 12 | + <?php while (have_posts()) : the_post(); ?> |
|
| 13 | 13 | <section class="home-content"> |
| 14 | 14 | <?php the_content(); ?> |
| 15 | 15 | </section> |
@@ -18,12 +18,12 @@ |
||
| 18 | 18 | <div class="row"> |
| 19 | 19 | <main id="main" class="site-main" role="main"> |
| 20 | 20 | <?php |
| 21 | - while ( have_posts() ) : the_post(); |
|
| 21 | + while (have_posts()) : the_post(); |
|
| 22 | 22 | |
| 23 | - get_template_part( 'template-parts/content', 'page' ); |
|
| 23 | + get_template_part('template-parts/content', 'page'); |
|
| 24 | 24 | |
| 25 | 25 | // If comments are open or we have at least one comment, load up the comment template. |
| 26 | - if ( comments_open() || get_comments_number() ) : |
|
| 26 | + if (comments_open() || get_comments_number()) : |
|
| 27 | 27 | comments_template(); |
| 28 | 28 | endif; |
| 29 | 29 | |
@@ -24,9 +24,9 @@ discard block |
||
| 24 | 24 | <main id="main" class="site-main" role="main"> |
| 25 | 25 | |
| 26 | 26 | <?php |
| 27 | - while ( have_posts() ) : the_post(); |
|
| 27 | + while (have_posts()) : the_post(); |
|
| 28 | 28 | |
| 29 | - $thumb_feature = wp_get_attachment_image_src( get_post_thumbnail_id(), 'lighthouse_feature_img'); |
|
| 29 | + $thumb_feature = wp_get_attachment_image_src(get_post_thumbnail_id(), 'lighthouse_feature_img'); |
|
| 30 | 30 | $url_feature = $thumb_feature[0]; |
| 31 | 31 | ?> |
| 32 | 32 | |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | </div> |
| 36 | 36 | |
| 37 | 37 | <?php |
| 38 | - get_template_part( 'template-parts/content', get_post_format() ); |
|
| 38 | + get_template_part('template-parts/content', get_post_format()); |
|
| 39 | 39 | |
| 40 | 40 | //the_post_navigation(); |
| 41 | 41 | |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | |
| 63 | 63 | <div class="thumbnail thumbnail-hover"> |
| 64 | 64 | <?php |
| 65 | - $thumb_post = wp_get_attachment_image_src( get_post_thumbnail_id(), 'lighthouse_related_post'); |
|
| 65 | + $thumb_post = wp_get_attachment_image_src(get_post_thumbnail_id(), 'lighthouse_related_post'); |
|
| 66 | 66 | $url_post = $thumb_post[0]; |
| 67 | 67 | ?> |
| 68 | 68 | <img class="img-responsive" src="<?php echo $url_post; ?>"> |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | |
| 85 | 85 | </div> |
| 86 | 86 | <div class="col-md-3 sidebar" role="complementary"> |
| 87 | - <?php dynamic_sidebar( 'blog_widgets' ); ?> |
|
| 87 | + <?php dynamic_sidebar('blog_widgets'); ?> |
|
| 88 | 88 | </div> |
| 89 | 89 | </div><!-- .row --> |
| 90 | 90 | </div><!-- #primary --> |
@@ -12,17 +12,17 @@ discard block |
||
| 12 | 12 | ?><!DOCTYPE html> |
| 13 | 13 | <html <?php language_attributes(); ?>> |
| 14 | 14 | <head> |
| 15 | - <meta charset="<?php bloginfo( 'charset' ); ?>"> |
|
| 15 | + <meta charset="<?php bloginfo('charset'); ?>"> |
|
| 16 | 16 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 17 | 17 | <link rel="profile" href="http://gmpg.org/xfn/11"> |
| 18 | - <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> |
|
| 18 | + <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>"> |
|
| 19 | 19 | |
| 20 | 20 | <?php wp_head(); ?> |
| 21 | 21 | </head> |
| 22 | 22 | |
| 23 | 23 | <body <?php body_class(); ?>> |
| 24 | 24 | <div id="page" class="site"> |
| 25 | - <a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'lighthouse' ); ?></a> |
|
| 25 | + <a class="skip-link screen-reader-text" href="#content"><?php esc_html_e('Skip to content', 'lighthouse'); ?></a> |
|
| 26 | 26 | |
| 27 | 27 | <header id="masthead" class="site-header panel-top panel-fixed" role="banner"> |
| 28 | 28 | <div class="container"> |
@@ -37,13 +37,13 @@ discard block |
||
| 37 | 37 | </div> |
| 38 | 38 | <div class="col-md-6 top-search hidden-xs hidden-sm"> |
| 39 | 39 | |
| 40 | - <form role="search" method="get" action="<?php echo esc_url( home_url( '/' ) ); ?>"> |
|
| 40 | + <form role="search" method="get" action="<?php echo esc_url(home_url('/')); ?>"> |
|
| 41 | 41 | <div class="search-wrap"> |
| 42 | - <label class="screen-reader-text" for="s"><?php _e( 'Search for:', 'presentation' ); ?></label> |
|
| 42 | + <label class="screen-reader-text" for="s"><?php _e('Search for:', 'presentation'); ?></label> |
|
| 43 | 43 | <button type="submit"> |
| 44 | 44 | <i class="fa fa-search"></i> |
| 45 | 45 | </button> |
| 46 | - <input type="search" placeholder="<?php echo esc_attr( 'Search', 'presentation' ); ?>" name="s" value="<?php echo esc_attr( get_search_query() ); ?>" /> |
|
| 46 | + <input type="search" placeholder="<?php echo esc_attr('Search', 'presentation'); ?>" name="s" value="<?php echo esc_attr(get_search_query()); ?>" /> |
|
| 47 | 47 | </div> |
| 48 | 48 | </form> |
| 49 | 49 | |
@@ -57,8 +57,8 @@ discard block |
||
| 57 | 57 | </div> |
| 58 | 58 | </div> |
| 59 | 59 | <div class="col-sm-12 col-md-2 col-lg-2 header-center-area"> |
| 60 | - <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"> |
|
| 61 | - <img src="<?php echo( get_header_image() ); ?>" alt="<?php echo( get_bloginfo( 'title' ) ); ?>" /> |
|
| 60 | + <a href="<?php echo esc_url(home_url('/')); ?>" rel="home"> |
|
| 61 | + <img src="<?php echo(get_header_image()); ?>" alt="<?php echo(get_bloginfo('title')); ?>" /> |
|
| 62 | 62 | </a> |
| 63 | 63 | |
| 64 | 64 | <div class="iv-module live-search"> |
@@ -71,9 +71,9 @@ discard block |
||
| 71 | 71 | <div class="container"> |
| 72 | 72 | <div class="row"> |
| 73 | 73 | <div class="col-md-12"> |
| 74 | - <form method="get" action="<?php echo esc_url( home_url( '/' ) );?>"> |
|
| 75 | - <label for="s"><?php _e('Type & hit enter to search', 'ivan_domain');?></label> |
|
| 76 | - <input type="search" name="s" id="s" placeholder="<?php echo esc_attr__('Type & hit enter to search', 'lighthouse');?>" /> |
|
| 74 | + <form method="get" action="<?php echo esc_url(home_url('/')); ?>"> |
|
| 75 | + <label for="s"><?php _e('Type & hit enter to search', 'ivan_domain'); ?></label> |
|
| 76 | + <input type="search" name="s" id="s" placeholder="<?php echo esc_attr__('Type & hit enter to search', 'lighthouse'); ?>" /> |
|
| 77 | 77 | <a class="submit-form" href="#"><i class="fa fa-search"></i></a> |
| 78 | 78 | <div class="clearfix"></div> |
| 79 | 79 | </form> |
@@ -100,9 +100,9 @@ discard block |
||
| 100 | 100 | <div class="container"> |
| 101 | 101 | <div class="row"> |
| 102 | 102 | <div class="col-md-12"> |
| 103 | - <form method="get" action="<?php echo esc_url( home_url( '/' ) );?>"> |
|
| 104 | - <label for="s"><?php _e('Type & hit enter', 'ivan_domain');?></label> |
|
| 105 | - <input type="search" name="s" id="s" placeholder="<?php echo esc_attr__('Type & hit enter', 'lighthouse');?>" /> |
|
| 103 | + <form method="get" action="<?php echo esc_url(home_url('/')); ?>"> |
|
| 104 | + <label for="s"><?php _e('Type & hit enter', 'ivan_domain'); ?></label> |
|
| 105 | + <input type="search" name="s" id="s" placeholder="<?php echo esc_attr__('Type & hit enter', 'lighthouse'); ?>" /> |
|
| 106 | 106 | <a class="submit-form" href="#"><i class="fa fa-search"></i></a> |
| 107 | 107 | <div class="clearfix"></div> |
| 108 | 108 | </form> |
@@ -11,9 +11,9 @@ |
||
| 11 | 11 | |
| 12 | 12 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
| 13 | 13 | <header class="entry-header"> |
| 14 | - <?php the_title( sprintf( '<h3 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h3>' ); ?> |
|
| 14 | + <?php the_title(sprintf('<h3 class="entry-title"><a href="%s" rel="bookmark">', esc_url(get_permalink())), '</a></h3>'); ?> |
|
| 15 | 15 | |
| 16 | - <?php if ( 'post' === get_post_type() ) : ?> |
|
| 16 | + <?php if ('post' === get_post_type()) : ?> |
|
| 17 | 17 | <div class="entry-meta"> |
| 18 | 18 | <?php lighthouse_posted_on(); ?> |
| 19 | 19 | </div><!-- .entry-meta --> |
@@ -22,15 +22,15 @@ discard block |
||
| 22 | 22 | <div class="col-md-9 content-listing"> |
| 23 | 23 | <main id="main" class="site-main search-results" role="main"> |
| 24 | 24 | |
| 25 | - <?php query_posts($query_string . '&showposts=99'); |
|
| 26 | - if ( have_posts() ) : ?> |
|
| 25 | + <?php query_posts($query_string.'&showposts=99'); |
|
| 26 | + if (have_posts()) : ?> |
|
| 27 | 27 | |
| 28 | 28 | <header class="page-header"> |
| 29 | 29 | <div class="search-inner-page"> |
| 30 | - <form role="search" method="get" action="<?php echo esc_url( home_url( '/' ) ); ?>"> |
|
| 30 | + <form role="search" method="get" action="<?php echo esc_url(home_url('/')); ?>"> |
|
| 31 | 31 | <div class="search-wrap"> |
| 32 | - <label class="screen-reader-text" for="s"><?php _e( 'Search for:', 'presentation' ); ?></label> |
|
| 33 | - <input type="search" placeholder="<?php echo esc_attr( 'Search', 'presentation' ); ?>" name="s" value="<?php echo esc_attr( get_search_query() ); ?>" autocomplete="off"/> |
|
| 32 | + <label class="screen-reader-text" for="s"><?php _e('Search for:', 'presentation'); ?></label> |
|
| 33 | + <input type="search" placeholder="<?php echo esc_attr('Search', 'presentation'); ?>" name="s" value="<?php echo esc_attr(get_search_query()); ?>" autocomplete="off"/> |
|
| 34 | 34 | <button type="submit"> |
| 35 | 35 | Search |
| 36 | 36 | </button> |
@@ -38,20 +38,20 @@ discard block |
||
| 38 | 38 | </form> |
| 39 | 39 | </div> |
| 40 | 40 | |
| 41 | - <h1 class="page-title"><?php printf( esc_html__( 'Search Results for: %s', 'lighthouse' ), '<span>“' . get_search_query() . '”</span>' ); ?></h1> |
|
| 41 | + <h1 class="page-title"><?php printf(esc_html__('Search Results for: %s', 'lighthouse'), '<span>“'.get_search_query().'”</span>'); ?></h1> |
|
| 42 | 42 | |
| 43 | 43 | </header><!-- .page-header --> |
| 44 | 44 | |
| 45 | 45 | <?php |
| 46 | 46 | /* Start the Loop */ |
| 47 | - while ( have_posts() ) : the_post(); |
|
| 47 | + while (have_posts()) : the_post(); |
|
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | 50 | * Run the loop for the search to output the results. |
| 51 | 51 | * If you want to overload this in a child theme then include a file |
| 52 | 52 | * called content-search.php and that will be used instead. |
| 53 | 53 | */ |
| 54 | - get_template_part( 'template-parts/content', 'search' ); |
|
| 54 | + get_template_part('template-parts/content', 'search'); |
|
| 55 | 55 | |
| 56 | 56 | endwhile; |
| 57 | 57 | |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | |
| 60 | 60 | else : |
| 61 | 61 | |
| 62 | - get_template_part( 'template-parts/content', 'none' ); |
|
| 62 | + get_template_part('template-parts/content', 'none'); |
|
| 63 | 63 | |
| 64 | 64 | endif; ?> |
| 65 | 65 | </main><!-- #main --> |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | </div> |
| 70 | 70 | </div><!-- .blog-listing --> |
| 71 | 71 | <div class="col-md-3 sidebar" role="complementary"> |
| 72 | - <?php dynamic_sidebar( 'blog_widgets' ); ?> |
|
| 72 | + <?php dynamic_sidebar('blog_widgets'); ?> |
|
| 73 | 73 | </div> |
| 74 | 74 | </div><!-- .row --> |
| 75 | 75 | </div><!-- #primary --> |
@@ -17,10 +17,10 @@ discard block |
||
| 17 | 17 | <div class="footer-normal"> |
| 18 | 18 | <div class="container"> |
| 19 | 19 | <div class="row widget"> |
| 20 | - <div class="col-sm-6 col-md-3 widget-col widget-col-1"><?php dynamic_sidebar( 'footer_widgets_1' ); ?></div> |
|
| 21 | - <div class="col-sm-6 col-md-3 widget-col widget-col-2"><?php dynamic_sidebar( 'footer_widgets_2' ); ?></div> |
|
| 22 | - <div class="col-sm-6 col-md-3 widget-col widget-col-3"><?php dynamic_sidebar( 'footer_widgets_3' ); ?></div> |
|
| 23 | - <div class="col-sm-6 col-md-3 widget-col widget-col-4"><?php dynamic_sidebar( 'footer_widgets_4' ); ?></div> |
|
| 20 | + <div class="col-sm-6 col-md-3 widget-col widget-col-1"><?php dynamic_sidebar('footer_widgets_1'); ?></div> |
|
| 21 | + <div class="col-sm-6 col-md-3 widget-col widget-col-2"><?php dynamic_sidebar('footer_widgets_2'); ?></div> |
|
| 22 | + <div class="col-sm-6 col-md-3 widget-col widget-col-3"><?php dynamic_sidebar('footer_widgets_3'); ?></div> |
|
| 23 | + <div class="col-sm-6 col-md-3 widget-col widget-col-4"><?php dynamic_sidebar('footer_widgets_4'); ?></div> |
|
| 24 | 24 | </div> |
| 25 | 25 | </div> |
| 26 | 26 | </div> |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | </script> |
| 76 | 76 | |
| 77 | 77 | |
| 78 | -<?php if( !is_single() ) : ?> |
|
| 78 | +<?php if ( ! is_single()) : ?> |
|
| 79 | 79 | <!-- BEGIN LivePerson Monitor. --> |
| 80 | 80 | <script type="text/javascript"> window.lpTag=window.lpTag||{};if(typeof window.lpTag._tagCount==='undefined'){window.lpTag={site:'18438131'||'',section:lpTag.section||'',autoStart:lpTag.autoStart===false?false:true,ovr:lpTag.ovr||{},_v:'1.5.1',_tagCount:1,protocol:location.protocol,events:{bind:function(app,ev,fn){lpTag.defer(function(){lpTag.events.bind(app,ev,fn);},0);},trigger:function(app,ev,json){lpTag.defer(function(){lpTag.events.trigger(app,ev,json);},1);}},defer:function(fn,fnType){if(fnType==0){this._defB=this._defB||[];this._defB.push(fn);}else if(fnType==1){this._defT=this._defT||[];this._defT.push(fn);}else{this._defL=this._defL||[];this._defL.push(fn);}},load:function(src,chr,id){var t=this;setTimeout(function(){t._load(src,chr,id);},0);},_load:function(src,chr,id){var url=src;if(!src){url=this.protocol+'//'+((this.ovr&&this.ovr.domain)?this.ovr.domain:'lptag.liveperson.net')+'/tag/tag.js?site='+this.site;}var s=document.createElement('script');s.setAttribute('charset',chr?chr:'UTF-8');if(id){s.setAttribute('id',id);}s.setAttribute('src',url);document.getElementsByTagName('head').item(0).appendChild(s);},init:function(){this._timing=this._timing||{};this._timing.start=(new Date()).getTime();var that=this;if(window.attachEvent){window.attachEvent('onload',function(){that._domReady('domReady');});}else{window.addEventListener('DOMContentLoaded',function(){that._domReady('contReady');},false);window.addEventListener('load',function(){that._domReady('domReady');},false);}if(typeof(window._lptStop)=='undefined'){this.load();}},start:function(){this.autoStart=true;},_domReady:function(n){if(!this.isDom){this.isDom=true;this.events.trigger('LPT','DOM_READY',{t:n});}this._timing[n]=(new Date()).getTime();},vars:lpTag.vars||[],dbs:lpTag.dbs||[],ctn:lpTag.ctn||[],sdes:lpTag.sdes||[],ev:lpTag.ev||[]};lpTag.init();}else{window.lpTag._tagCount+=1;} </script> |
| 81 | 81 | <!-- END LivePerson Monitor. --> |