@@ -12,17 +12,17 @@ discard block |
||
12 | 12 | |
13 | 13 | <?php |
14 | 14 | $format = get_post_format(); |
15 | - if ( false === $format ) { |
|
15 | + if (false === $format) { |
|
16 | 16 | $format = 'standard'; |
17 | 17 | } |
18 | 18 | $format_link = get_post_format_link($format); |
19 | 19 | $format = lsx_translate_format_to_fontawesome($format); |
20 | 20 | ?> |
21 | 21 | |
22 | - <?php if ( ! is_single() ) { ?> |
|
22 | + <?php if ( ! is_single()) { ?> |
|
23 | 23 | <header class="entry-header"> |
24 | 24 | <h1 class="entry-title"> |
25 | - <?php if ( has_post_thumbnail() ) { ?> |
|
25 | + <?php if (has_post_thumbnail()) { ?> |
|
26 | 26 | <a href="<?php echo esc_url($format_link) ?>" class="format-link has-thumb fa fa-<?php echo $format ?>"></a> |
27 | 27 | <?php } else { ?> |
28 | 28 | <a href="<?php echo esc_url($format_link) ?>" class="format-link fa fa-<?php echo $format ?>"></a> |
@@ -39,37 +39,37 @@ discard block |
||
39 | 39 | |
40 | 40 | <div class="entry-content"> |
41 | 41 | <?php |
42 | - if ( ! is_singular() ) { |
|
42 | + if ( ! is_singular()) { |
|
43 | 43 | the_excerpt(); |
44 | 44 | } else { |
45 | 45 | the_content(); |
46 | 46 | |
47 | - wp_link_pages( array( |
|
47 | + wp_link_pages(array( |
|
48 | 48 | 'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">', |
49 | 49 | 'after' => '</div></div>', |
50 | 50 | 'link_before' => '<span>', |
51 | 51 | 'link_after' => '</span>' |
52 | - ) ); |
|
52 | + )); |
|
53 | 53 | } ?> |
54 | 54 | </div><!-- .entry-content --> |
55 | 55 | |
56 | 56 | <footer class="footer-meta"> |
57 | - <?php if ( has_tag() || ( function_exists( 'sharing_display' ) || class_exists( 'Jetpack_Likes' ) ) ) : ?> |
|
57 | + <?php if (has_tag() || (function_exists('sharing_display') || class_exists('Jetpack_Likes'))) : ?> |
|
58 | 58 | <div class="post-tags-wrapper"> |
59 | - <?php if ( has_tag() ) : ?> |
|
59 | + <?php if (has_tag()) : ?> |
|
60 | 60 | <div class="post-tags"> |
61 | - <span><?php _e('Tagged as:','lsx'); ?></span> <?php echo get_the_tag_list(''); ?> |
|
61 | + <span><?php _e('Tagged as:', 'lsx'); ?></span> <?php echo get_the_tag_list(''); ?> |
|
62 | 62 | </div> |
63 | 63 | <?php endif ?> |
64 | 64 | |
65 | 65 | <?php |
66 | - if ( function_exists( 'sharing_display' ) ) { |
|
67 | - sharing_display( '', true ); |
|
66 | + if (function_exists('sharing_display')) { |
|
67 | + sharing_display('', true); |
|
68 | 68 | } |
69 | 69 | |
70 | - if ( class_exists( 'Jetpack_Likes' ) ) { |
|
70 | + if (class_exists('Jetpack_Likes')) { |
|
71 | 71 | $custom_likes = new Jetpack_Likes; |
72 | - echo $custom_likes->post_likes( '' ); |
|
72 | + echo $custom_likes->post_likes(''); |
|
73 | 73 | } |
74 | 74 | ?> |
75 | 75 | </div> |
@@ -77,8 +77,8 @@ discard block |
||
77 | 77 | |
78 | 78 | <?php |
79 | 79 | // If comments are open or we have at least one comment, load up the comment template |
80 | - if ( comments_open() || '0' != get_comments_number() ) : ?> |
|
81 | - <a class="comments-link post-meta-link" data-toggle="collapse" href="#comments-collapse"><strong><?php echo get_comments_number() ?></strong> <?php _e('Comments','lsx'); ?> <span class="fa fa-chevron-down"></span></a> |
|
80 | + if (comments_open() || '0' != get_comments_number()) : ?> |
|
81 | + <a class="comments-link post-meta-link" data-toggle="collapse" href="#comments-collapse"><strong><?php echo get_comments_number() ?></strong> <?php _e('Comments', 'lsx'); ?> <span class="fa fa-chevron-down"></span></a> |
|
82 | 82 | |
83 | 83 | <div class="collapse" id="comments-collapse"> |
84 | 84 | <?php |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | <?php endif; ?> |
89 | 89 | </footer><!-- .footer-meta --> |
90 | 90 | |
91 | - <?php edit_post_link( __( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?> |
|
91 | + <?php edit_post_link(__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?> |
|
92 | 92 | |
93 | 93 | <?php lsx_portfolio_related_posts(); ?> |
94 | 94 |
@@ -3,33 +3,33 @@ |
||
3 | 3 | <head> |
4 | 4 | <meta charset="utf-8"> |
5 | 5 | <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"> |
6 | - <link href="http<?php if(is_ssl()){ echo 's'; } ?>://fonts.googleapis.com/css?family=Merriweather:400,400italic,700,700italic|Open+Sans:400,700,400italic,700italic" rel="stylesheet" type="text/css"> |
|
7 | - <?php do_action( 'amp_post_template_head', $this ); ?> |
|
6 | + <link href="http<?php if (is_ssl()) { echo 's'; } ?>://fonts.googleapis.com/css?family=Merriweather:400,400italic,700,700italic|Open+Sans:400,700,400italic,700italic" rel="stylesheet" type="text/css"> |
|
7 | + <?php do_action('amp_post_template_head', $this); ?> |
|
8 | 8 | |
9 | 9 | <style amp-custom> |
10 | - <?php $this->load_parts( array( 'style' ) ); ?> |
|
11 | - <?php do_action( 'amp_post_template_css', $this ); ?> |
|
10 | + <?php $this->load_parts(array('style')); ?> |
|
11 | + <?php do_action('amp_post_template_css', $this); ?> |
|
12 | 12 | </style> |
13 | 13 | </head> |
14 | 14 | <body> |
15 | 15 | <nav class="amp-wp-title-bar"> |
16 | 16 | <div> |
17 | - <a href="<?php echo esc_url( $this->get( 'home_url' ) ); ?>"> |
|
18 | - <?php $site_icon_url = $this->get( 'site_icon_url' ); ?> |
|
19 | - <?php if ( $site_icon_url ) : ?> |
|
20 | - <amp-img src="<?php echo esc_url( $site_icon_url ); ?>" width="32" height="32" class="amp-wp-site-icon"></amp-img> |
|
17 | + <a href="<?php echo esc_url($this->get('home_url')); ?>"> |
|
18 | + <?php $site_icon_url = $this->get('site_icon_url'); ?> |
|
19 | + <?php if ($site_icon_url) : ?> |
|
20 | + <amp-img src="<?php echo esc_url($site_icon_url); ?>" width="32" height="32" class="amp-wp-site-icon"></amp-img> |
|
21 | 21 | <?php endif; ?> |
22 | - <?php echo esc_html( $this->get( 'blog_name' ) ); ?> |
|
22 | + <?php echo esc_html($this->get('blog_name')); ?> |
|
23 | 23 | </a> |
24 | 24 | </div> |
25 | 25 | </nav> |
26 | 26 | <div class="amp-wp-content"> |
27 | - <h1 class="amp-wp-title"><?php echo esc_html( $this->get( 'post_title' ) ); ?></h1> |
|
27 | + <h1 class="amp-wp-title"><?php echo esc_html($this->get('post_title')); ?></h1> |
|
28 | 28 | <ul class="amp-wp-meta"> |
29 | - <?php $this->load_parts( apply_filters( 'amp_post_template_meta_parts', array( 'meta-author', 'meta-time', 'meta-taxonomy' ) ) ); ?> |
|
29 | + <?php $this->load_parts(apply_filters('amp_post_template_meta_parts', array('meta-author', 'meta-time', 'meta-taxonomy'))); ?> |
|
30 | 30 | </ul> |
31 | - <?php echo $this->get( 'post_amp_content' ); // amphtml content; no kses ?> |
|
31 | + <?php echo $this->get('post_amp_content'); // amphtml content; no kses ?> |
|
32 | 32 | </div> |
33 | -<?php do_action( 'amp_post_template_footer', $this ); ?> |
|
33 | +<?php do_action('amp_post_template_footer', $this); ?> |
|
34 | 34 | </body> |
35 | 35 | </html> |
@@ -3,33 +3,33 @@ |
||
3 | 3 | <head> |
4 | 4 | <meta charset="utf-8"> |
5 | 5 | <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"> |
6 | - <link href="http<?php if(is_ssl()){ echo 's'; } ?>://fonts.googleapis.com/css?family=Merriweather:400,400italic,700,700italic|Open+Sans:400,700,400italic,700italic" rel="stylesheet" type="text/css"> |
|
7 | - <?php do_action( 'amp_post_template_head', $this ); ?> |
|
6 | + <link href="http<?php if (is_ssl()) { echo 's'; } ?>://fonts.googleapis.com/css?family=Merriweather:400,400italic,700,700italic|Open+Sans:400,700,400italic,700italic" rel="stylesheet" type="text/css"> |
|
7 | + <?php do_action('amp_post_template_head', $this); ?> |
|
8 | 8 | |
9 | 9 | <style amp-custom> |
10 | - <?php $this->load_parts( array( 'style' ) ); ?> |
|
11 | - <?php do_action( 'amp_post_template_css', $this ); ?> |
|
10 | + <?php $this->load_parts(array('style')); ?> |
|
11 | + <?php do_action('amp_post_template_css', $this); ?> |
|
12 | 12 | </style> |
13 | 13 | </head> |
14 | 14 | <body> |
15 | 15 | <nav class="amp-wp-title-bar"> |
16 | 16 | <div> |
17 | - <a href="<?php echo esc_url( $this->get( 'home_url' ) ); ?>"> |
|
18 | - <?php $site_icon_url = $this->get( 'site_icon_url' ); ?> |
|
19 | - <?php if ( $site_icon_url ) : ?> |
|
20 | - <amp-img src="<?php echo esc_url( $site_icon_url ); ?>" width="32" height="32" class="amp-wp-site-icon"></amp-img> |
|
17 | + <a href="<?php echo esc_url($this->get('home_url')); ?>"> |
|
18 | + <?php $site_icon_url = $this->get('site_icon_url'); ?> |
|
19 | + <?php if ($site_icon_url) : ?> |
|
20 | + <amp-img src="<?php echo esc_url($site_icon_url); ?>" width="32" height="32" class="amp-wp-site-icon"></amp-img> |
|
21 | 21 | <?php endif; ?> |
22 | - <?php echo esc_html( $this->get( 'blog_name' ) ); ?> |
|
22 | + <?php echo esc_html($this->get('blog_name')); ?> |
|
23 | 23 | </a> |
24 | 24 | </div> |
25 | 25 | </nav> |
26 | 26 | <div class="amp-wp-content"> |
27 | - <h1 class="amp-wp-title"><?php echo esc_html( $this->get( 'post_title' ) ); ?></h1> |
|
27 | + <h1 class="amp-wp-title"><?php echo esc_html($this->get('post_title')); ?></h1> |
|
28 | 28 | <ul class="amp-wp-meta"> |
29 | - <?php $this->load_parts( apply_filters( 'amp_post_template_meta_parts', array( 'meta-author', 'meta-time', 'meta-taxonomy' ) ) ); ?> |
|
29 | + <?php $this->load_parts(apply_filters('amp_post_template_meta_parts', array('meta-author', 'meta-time', 'meta-taxonomy'))); ?> |
|
30 | 30 | </ul> |
31 | - <?php echo $this->get( 'post_amp_content' ); // amphtml content; no kses ?> |
|
31 | + <?php echo $this->get('post_amp_content'); // amphtml content; no kses ?> |
|
32 | 32 | </div> |
33 | -<?php do_action( 'amp_post_template_footer', $this ); ?> |
|
33 | +<?php do_action('amp_post_template_footer', $this); ?> |
|
34 | 34 | </body> |
35 | 35 | </html> |
@@ -3,33 +3,33 @@ |
||
3 | 3 | <head> |
4 | 4 | <meta charset="utf-8"> |
5 | 5 | <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"> |
6 | - <link href="http<?php if(is_ssl()){ echo 's'; } ?>://fonts.googleapis.com/css?family=Merriweather:400,400italic,700,700italic|Open+Sans:400,700,400italic,700italic" rel="stylesheet" type="text/css"> |
|
7 | - <?php do_action( 'amp_post_template_head', $this ); ?> |
|
6 | + <link href="http<?php if (is_ssl()) { echo 's'; } ?>://fonts.googleapis.com/css?family=Merriweather:400,400italic,700,700italic|Open+Sans:400,700,400italic,700italic" rel="stylesheet" type="text/css"> |
|
7 | + <?php do_action('amp_post_template_head', $this); ?> |
|
8 | 8 | |
9 | 9 | <style amp-custom> |
10 | - <?php $this->load_parts( array( 'style' ) ); ?> |
|
11 | - <?php do_action( 'amp_post_template_css', $this ); ?> |
|
10 | + <?php $this->load_parts(array('style')); ?> |
|
11 | + <?php do_action('amp_post_template_css', $this); ?> |
|
12 | 12 | </style> |
13 | 13 | </head> |
14 | 14 | <body> |
15 | 15 | <nav class="amp-wp-title-bar"> |
16 | 16 | <div> |
17 | - <a href="<?php echo esc_url( $this->get( 'home_url' ) ); ?>"> |
|
18 | - <?php $site_icon_url = $this->get( 'site_icon_url' ); ?> |
|
19 | - <?php if ( $site_icon_url ) : ?> |
|
20 | - <amp-img src="<?php echo esc_url( $site_icon_url ); ?>" width="32" height="32" class="amp-wp-site-icon"></amp-img> |
|
17 | + <a href="<?php echo esc_url($this->get('home_url')); ?>"> |
|
18 | + <?php $site_icon_url = $this->get('site_icon_url'); ?> |
|
19 | + <?php if ($site_icon_url) : ?> |
|
20 | + <amp-img src="<?php echo esc_url($site_icon_url); ?>" width="32" height="32" class="amp-wp-site-icon"></amp-img> |
|
21 | 21 | <?php endif; ?> |
22 | - <?php echo esc_html( $this->get( 'blog_name' ) ); ?> |
|
22 | + <?php echo esc_html($this->get('blog_name')); ?> |
|
23 | 23 | </a> |
24 | 24 | </div> |
25 | 25 | </nav> |
26 | 26 | <div class="amp-wp-content"> |
27 | - <h1 class="amp-wp-title"><?php echo esc_html( $this->get( 'post_title' ) ); ?></h1> |
|
27 | + <h1 class="amp-wp-title"><?php echo esc_html($this->get('post_title')); ?></h1> |
|
28 | 28 | <ul class="amp-wp-meta"> |
29 | - <?php $this->load_parts( apply_filters( 'amp_post_template_meta_parts', array( 'meta-author', 'meta-time', 'meta-taxonomy' ) ) ); ?> |
|
29 | + <?php $this->load_parts(apply_filters('amp_post_template_meta_parts', array('meta-author', 'meta-time', 'meta-taxonomy'))); ?> |
|
30 | 30 | </ul> |
31 | - <?php echo $this->get( 'post_amp_content' ); // amphtml content; no kses ?> |
|
31 | + <?php echo $this->get('post_amp_content'); // amphtml content; no kses ?> |
|
32 | 32 | </div> |
33 | -<?php do_action( 'amp_post_template_footer', $this ); ?> |
|
33 | +<?php do_action('amp_post_template_footer', $this); ?> |
|
34 | 34 | </body> |
35 | 35 | </html> |
@@ -17,9 +17,9 @@ discard block |
||
17 | 17 | |
18 | 18 | <?php lsx_content_top(); ?> |
19 | 19 | |
20 | - <?php while ( have_posts() ) : the_post(); ?> |
|
20 | + <?php while (have_posts()) : the_post(); ?> |
|
21 | 21 | |
22 | - <?php get_template_part( 'content', get_post_type() ); ?> |
|
22 | + <?php get_template_part('content', get_post_type()); ?> |
|
23 | 23 | |
24 | 24 | <?php endwhile; // end of the loop. ?> |
25 | 25 | |
@@ -35,6 +35,6 @@ discard block |
||
35 | 35 | <?php lsx_content_wrap_after(); ?> |
36 | 36 | |
37 | 37 | <?php get_sidebar(); ?> |
38 | -<?php get_sidebar( 'alt' ); ?> |
|
38 | +<?php get_sidebar('alt'); ?> |
|
39 | 39 | |
40 | 40 | <?php get_footer(); |
41 | 41 | \ No newline at end of file |
@@ -69,8 +69,8 @@ |
||
69 | 69 | add_filter( 'woocommerce_enqueue_styles', '__return_empty_array' ); |
70 | 70 | |
71 | 71 | function lsx_woocommerce_styles() { |
72 | - wp_enqueue_style( 'woocommerce-layout', get_template_directory_uri() . '/css/woocommerce-layout.css', array(), WC_VERSION, 'all' ); |
|
73 | - wp_enqueue_style( 'woocommerce-smallscreen', get_template_directory_uri() . '/css/woocommerce-smallscreen.css', array( 'woocommerce-layout' ), WC_VERSION, 'only screen and (max-width: 767px)' ); |
|
74 | - wp_enqueue_style( 'woocommerce-general', get_template_directory_uri() . '/css/woocommerce.css', array(), WC_VERSION, 'all' ); |
|
72 | + wp_enqueue_style( 'woocommerce-layout', get_template_directory_uri() . '/css/woocommerce-layout.css', array(), WC_VERSION, 'all' ); |
|
73 | + wp_enqueue_style( 'woocommerce-smallscreen', get_template_directory_uri() . '/css/woocommerce-smallscreen.css', array( 'woocommerce-layout' ), WC_VERSION, 'only screen and (max-width: 767px)' ); |
|
74 | + wp_enqueue_style( 'woocommerce-general', get_template_directory_uri() . '/css/woocommerce.css', array(), WC_VERSION, 'all' ); |
|
75 | 75 | } |
76 | 76 | add_action( 'wp_enqueue_scripts', 'lsx_woocommerce_styles' ); |
77 | 77 | \ No newline at end of file |
@@ -9,8 +9,8 @@ discard block |
||
9 | 9 | /* |
10 | 10 | * Hooks |
11 | 11 | */ |
12 | -remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10); |
|
13 | -remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10); |
|
12 | +remove_action('woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10); |
|
13 | +remove_action('woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10); |
|
14 | 14 | |
15 | 15 | add_action('woocommerce_before_main_content', 'lsx_woocommerce_before_content', 10); |
16 | 16 | add_action('woocommerce_after_main_content', 'lsx_woocommerce_after_content', 10); |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | * @subpackage woocommerce |
26 | 26 | * @category layout |
27 | 27 | */ |
28 | -function lsx_woocommerce_before_content(){ ?> |
|
28 | +function lsx_woocommerce_before_content() { ?> |
|
29 | 29 | <?php lsx_content_wrap_before(); ?> |
30 | 30 | |
31 | 31 | <div id="primary" class="content-area <?php echo lsx_main_class(); ?>"> |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | * @subpackage woocommerce |
44 | 44 | * @category layout |
45 | 45 | */ |
46 | -function lsx_woocommerce_after_content(){ ?> |
|
46 | +function lsx_woocommerce_after_content() { ?> |
|
47 | 47 | <?php lsx_content_bottom(); ?> |
48 | 48 | |
49 | 49 | </main><!-- #main --> |
@@ -66,11 +66,11 @@ discard block |
||
66 | 66 | * @subpackage woocommerce |
67 | 67 | * @category styles |
68 | 68 | */ |
69 | -add_filter( 'woocommerce_enqueue_styles', '__return_empty_array' ); |
|
69 | +add_filter('woocommerce_enqueue_styles', '__return_empty_array'); |
|
70 | 70 | |
71 | 71 | function lsx_woocommerce_styles() { |
72 | - wp_enqueue_style( 'woocommerce-layout', get_template_directory_uri() . '/css/woocommerce-layout.css', array(), WC_VERSION, 'all' ); |
|
73 | - wp_enqueue_style( 'woocommerce-smallscreen', get_template_directory_uri() . '/css/woocommerce-smallscreen.css', array( 'woocommerce-layout' ), WC_VERSION, 'only screen and (max-width: 767px)' ); |
|
74 | - wp_enqueue_style( 'woocommerce-general', get_template_directory_uri() . '/css/woocommerce.css', array(), WC_VERSION, 'all' ); |
|
72 | + wp_enqueue_style('woocommerce-layout', get_template_directory_uri() . '/css/woocommerce-layout.css', array(), WC_VERSION, 'all'); |
|
73 | + wp_enqueue_style('woocommerce-smallscreen', get_template_directory_uri() . '/css/woocommerce-smallscreen.css', array('woocommerce-layout'), WC_VERSION, 'only screen and (max-width: 767px)'); |
|
74 | + wp_enqueue_style('woocommerce-general', get_template_directory_uri() . '/css/woocommerce.css', array(), WC_VERSION, 'all'); |
|
75 | 75 | } |
76 | -add_action( 'wp_enqueue_scripts', 'lsx_woocommerce_styles' ); |
|
77 | 76 | \ No newline at end of file |
77 | +add_action('wp_enqueue_scripts', 'lsx_woocommerce_styles'); |
|
78 | 78 | \ No newline at end of file |