@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | * @package lsx |
8 | 8 | */ |
9 | 9 | ?> |
10 | -<?php if ( !is_singular('landing-page') ) { ?> |
|
10 | +<?php if ( ! is_singular('landing-page')) { ?> |
|
11 | 11 | |
12 | 12 | </div><!-- .content --> |
13 | 13 | </div><!-- wrap --> |
@@ -21,12 +21,12 @@ discard block |
||
21 | 21 | <div class="footer-menu"> |
22 | 22 | <?php |
23 | 23 | |
24 | - if(!is_user_logged_in()){ |
|
25 | - if(has_nav_menu('footer-menu')){ |
|
24 | + if ( ! is_user_logged_in()) { |
|
25 | + if (has_nav_menu('footer-menu')) { |
|
26 | 26 | wp_nav_menu(array('theme_location' => 'footer-menu')); |
27 | 27 | } |
28 | - }else{ |
|
29 | - if(has_nav_menu('footer_logged_in')){ |
|
28 | + } else { |
|
29 | + if (has_nav_menu('footer_logged_in')) { |
|
30 | 30 | wp_nav_menu(array('theme_location' => 'footer_logged_in')); |
31 | 31 | } |
32 | 32 | } |
@@ -41,26 +41,26 @@ discard block |
||
41 | 41 | |
42 | 42 | <?php lsx_footer_top(); ?> |
43 | 43 | |
44 | - <p class="credit <?php if ( has_nav_menu( 'social' ) || has_nav_menu( 'footer' ) ) { ?>credit-float<?php } ?>"><?php printf( esc_html__( '© %1$s %2$s All Rights Reserved.', 'lsx' ), esc_html( date_i18n( 'Y' ) ), get_bloginfo( 'name' ) ); ?></p> |
|
45 | - <?php if ( has_nav_menu( 'social' ) ) { ?> |
|
44 | + <p class="credit <?php if (has_nav_menu('social') || has_nav_menu('footer')) { ?>credit-float<?php } ?>"><?php printf(esc_html__('© %1$s %2$s All Rights Reserved.', 'lsx'), esc_html(date_i18n('Y')), get_bloginfo('name')); ?></p> |
|
45 | + <?php if (has_nav_menu('social')) { ?> |
|
46 | 46 | <nav id="social-navigation" class="social-navigation"> |
47 | 47 | <?php |
48 | 48 | // Social links navigation menu. |
49 | - wp_nav_menu( array( |
|
49 | + wp_nav_menu(array( |
|
50 | 50 | 'theme_location' => 'social', |
51 | 51 | 'depth' => 1, |
52 | - ) ); |
|
52 | + )); |
|
53 | 53 | ?> |
54 | 54 | </nav><!-- .social-navigation --> |
55 | 55 | <?php } ?> |
56 | - <?php if ( has_nav_menu( 'footer' ) ) { ?> |
|
56 | + <?php if (has_nav_menu('footer')) { ?> |
|
57 | 57 | <nav id="footer-navigation" class="footer-navigation"> |
58 | 58 | <?php |
59 | 59 | // Footer links navigation menu. |
60 | - wp_nav_menu( array( |
|
60 | + wp_nav_menu(array( |
|
61 | 61 | 'theme_location' => 'footer', |
62 | 62 | 'depth' => 1, |
63 | - ) ); |
|
63 | + )); |
|
64 | 64 | ?> |
65 | 65 | </nav><!-- .footer-navigation --> |
66 | 66 | <?php } ?> |
@@ -87,15 +87,15 @@ discard block |
||
87 | 87 | |
88 | 88 | <?php lsx_footer_top(); ?> |
89 | 89 | |
90 | - <p class="credit <?php if ( has_nav_menu( 'social' ) ) { ?>credit-float<?php } ?>"><?php printf( esc_html__( '© %1$s %2$s All Rights Reserved.', 'lsx' ), esc_html( date_i18n( 'Y' ) ), esc_html( get_bloginfo( 'name' ) ) ); ?></p> |
|
91 | - <?php if ( has_nav_menu( 'social' ) ) { ?> |
|
90 | + <p class="credit <?php if (has_nav_menu('social')) { ?>credit-float<?php } ?>"><?php printf(esc_html__('© %1$s %2$s All Rights Reserved.', 'lsx'), esc_html(date_i18n('Y')), esc_html(get_bloginfo('name'))); ?></p> |
|
91 | + <?php if (has_nav_menu('social')) { ?> |
|
92 | 92 | <nav id="social-navigation" class="social-navigation" role="navigation"> |
93 | 93 | <?php |
94 | 94 | // Social links navigation menu. |
95 | - wp_nav_menu( array( |
|
95 | + wp_nav_menu(array( |
|
96 | 96 | 'theme_location' => 'social', |
97 | 97 | 'depth' => 1, |
98 | - ) ); |
|
98 | + )); |
|
99 | 99 | ?> |
100 | 100 | </nav><!-- .social-navigation --> |
101 | 101 | <?php } ?> |
@@ -12,16 +12,16 @@ discard block |
||
12 | 12 | <html <?php language_attributes(); ?>> |
13 | 13 | <head> |
14 | 14 | <?php lsx_head_top(); ?> |
15 | -<meta charset="<?php bloginfo( 'charset' ); ?>"> |
|
15 | +<meta charset="<?php bloginfo('charset'); ?>"> |
|
16 | 16 | <link rel="profile" href="http://gmpg.org/xfn/11"> |
17 | -<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> |
|
17 | +<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>"> |
|
18 | 18 | <?php lsx_head_bottom(); ?> |
19 | 19 | <?php wp_head(); ?> |
20 | 20 | </head> |
21 | -<body <?php body_class( 'lsx' ); ?>> |
|
21 | +<body <?php body_class('lsx'); ?>> |
|
22 | 22 | <?php lsx_body_top(); ?> |
23 | 23 | |
24 | -<?php if ( !is_singular('landing-page') ) { ?> |
|
24 | +<?php if ( ! is_singular('landing-page')) { ?> |
|
25 | 25 | |
26 | 26 | <?php lsx_header_before(); ?> |
27 | 27 | <header class="<?php lsx_header_classes(); ?>"> |
@@ -57,17 +57,17 @@ discard block |
||
57 | 57 | </div> |
58 | 58 | |
59 | 59 | <div class="header-links"> |
60 | - <strong><?php esc_html_e( 'Get your Tourism Establishment Online', 'lsx' ); ?></strong> |
|
60 | + <strong><?php esc_html_e('Get your Tourism Establishment Online', 'lsx'); ?></strong> |
|
61 | 61 | |
62 | 62 | <?php |
63 | - if(is_singular('landing-page')){ |
|
64 | - $email_address = get_post_meta(get_the_ID(),'email_address',true); |
|
65 | - if(false === $email_address){ |
|
63 | + if (is_singular('landing-page')) { |
|
64 | + $email_address = get_post_meta(get_the_ID(), 'email_address', true); |
|
65 | + if (false === $email_address) { |
|
66 | 66 | $email_address = '[email protected]'; |
67 | 67 | } |
68 | 68 | } ?> |
69 | 69 | |
70 | - <span class="email-address"><?php esc_html_e( 'Questions? Email Us: ', 'lsx' ); ?><a href="mailto:<?php echo esc_attr( $email_address ); ?>"><?php echo esc_html( $email_address ); ?></a></span> |
|
70 | + <span class="email-address"><?php esc_html_e('Questions? Email Us: ', 'lsx'); ?><a href="mailto:<?php echo esc_attr($email_address); ?>"><?php echo esc_html($email_address); ?></a></span> |
|
71 | 71 | </div> |
72 | 72 | </div> |
73 | 73 |
@@ -18,17 +18,17 @@ discard block |
||
18 | 18 | <div class="col-sm-12"> |
19 | 19 | <div class="entry-content"> |
20 | 20 | |
21 | - <?php if ( ! is_singular() ) { |
|
21 | + <?php if ( ! is_singular()) { |
|
22 | 22 | the_excerpt(); |
23 | 23 | } else { |
24 | 24 | the_content(); |
25 | 25 | |
26 | - wp_link_pages( array( |
|
26 | + wp_link_pages(array( |
|
27 | 27 | 'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">', |
28 | 28 | 'after' => '</div></div>', |
29 | 29 | 'link_before' => '<span>', |
30 | 30 | 'link_after' => '</span>' |
31 | - ) ); |
|
31 | + )); |
|
32 | 32 | } ?> |
33 | 33 | |
34 | 34 | <?php lsx_portfolio_gallery(); ?> |
@@ -36,13 +36,13 @@ discard block |
||
36 | 36 | <?php lsx_post_nav(); ?> |
37 | 37 | |
38 | 38 | <?php |
39 | - if ( function_exists( 'sharing_display' ) ) { |
|
40 | - sharing_display( '', true ); |
|
39 | + if (function_exists('sharing_display')) { |
|
40 | + sharing_display('', true); |
|
41 | 41 | } |
42 | 42 | |
43 | - if ( class_exists( 'Jetpack_Likes' ) ) { |
|
43 | + if (class_exists('Jetpack_Likes')) { |
|
44 | 44 | $custom_likes = new Jetpack_Likes; |
45 | - echo wp_kses_post( $custom_likes->post_likes( '' ) ); |
|
45 | + echo wp_kses_post($custom_likes->post_likes('')); |
|
46 | 46 | } |
47 | 47 | ?> |
48 | 48 | |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | </div> |
54 | 54 | </div> |
55 | 55 | |
56 | - <?php edit_post_link( __( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?> |
|
56 | + <?php edit_post_link(__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?> |
|
57 | 57 | |
58 | 58 | <?php lsx_entry_bottom(); ?> |
59 | 59 |
@@ -10,22 +10,22 @@ |
||
10 | 10 | |
11 | 11 | <section class="no-results not-found"> |
12 | 12 | <header class="page-header"> |
13 | - <h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'lsx' ); ?></h1> |
|
13 | + <h1 class="page-title"><?php esc_html_e('Nothing Found', 'lsx'); ?></h1> |
|
14 | 14 | </header><!-- .page-header --> |
15 | 15 | |
16 | 16 | <div class="page-content"> |
17 | - <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?> |
|
17 | + <?php if (is_home() && current_user_can('publish_posts')) : ?> |
|
18 | 18 | |
19 | - <p><?php esc_html_e( 'Ready to publish your first post?', 'lsx' ); ?> <a href="<?php echo esc_url( admin_url( 'post-new.php' ) ) ?>"><?php esc_html_e( 'Get started here', 'lsx' ); ?></a></p> |
|
19 | + <p><?php esc_html_e('Ready to publish your first post?', 'lsx'); ?> <a href="<?php echo esc_url(admin_url('post-new.php')) ?>"><?php esc_html_e('Get started here', 'lsx'); ?></a></p> |
|
20 | 20 | |
21 | - <?php elseif ( is_search() ) : ?> |
|
21 | + <?php elseif (is_search()) : ?> |
|
22 | 22 | |
23 | - <p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'lsx' ); ?></p> |
|
23 | + <p><?php esc_html_e('Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'lsx'); ?></p> |
|
24 | 24 | <?php get_search_form(); ?> |
25 | 25 | |
26 | 26 | <?php else : ?> |
27 | 27 | |
28 | - <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lsx' ); ?></p> |
|
28 | + <p><?php esc_html_e('It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lsx'); ?></p> |
|
29 | 29 | <?php get_search_form(); ?> |
30 | 30 | |
31 | 31 | <?php endif; ?> |
@@ -23,9 +23,12 @@ |
||
23 | 23 | <p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'lsx' ); ?></p> |
24 | 24 | <?php get_search_form(); ?> |
25 | 25 | |
26 | - <?php else : ?> |
|
26 | + <?php else { |
|
27 | + : ?> |
|
27 | 28 | |
28 | - <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lsx' ); ?></p> |
|
29 | + <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lsx' ); |
|
30 | +} |
|
31 | +?></p> |
|
29 | 32 | <?php get_search_form(); ?> |
30 | 33 | |
31 | 34 | <?php endif; ?> |
@@ -12,20 +12,20 @@ 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() ) { ?> |
|
26 | - <a href="<?php echo esc_url($format_link) ?>" class="format-link has-thumb fa fa-<?php echo esc_attr( $format ) ?>"></a> |
|
25 | + <?php if (has_post_thumbnail()) { ?> |
|
26 | + <a href="<?php echo esc_url($format_link) ?>" class="format-link has-thumb fa fa-<?php echo esc_attr($format) ?>"></a> |
|
27 | 27 | <?php } else { ?> |
28 | - <a href="<?php echo esc_url($format_link) ?>" class="format-link fa fa-<?php echo esc_attr( $format ) ?>"></a> |
|
28 | + <a href="<?php echo esc_url($format_link) ?>" class="format-link fa fa-<?php echo esc_attr($format) ?>"></a> |
|
29 | 29 | <?php } ?> |
30 | 30 | |
31 | 31 | <span><?php the_title(); ?></span> |
@@ -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 esc_html_e('Tagged as:','lsx'); ?></span> <?php echo get_the_tag_list(''); ?> |
|
61 | + <span><?php esc_html_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 wp_kses_post( $custom_likes->post_likes( '' ) ); |
|
72 | + echo wp_kses_post($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 esc_html( get_comments_number() ) ?></strong> <?php esc_html_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 esc_html(get_comments_number()) ?></strong> <?php esc_html_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 |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | <h3> |
28 | 28 | <?php |
29 | 29 | $count = get_comments_number(); |
30 | - printf( esc_html( _n( 'One Response to “%2$s”', '%1$s Responses to “%2$s”', $count, 'lsx' ) ), esc_html( number_format_i18n( $count ) ), get_the_title() ); |
|
30 | + printf(esc_html(_n('One Response to “%2$s”', '%1$s Responses to “%2$s”', $count, 'lsx')), esc_html(number_format_i18n($count)), get_the_title()); |
|
31 | 31 | ?> |
32 | 32 | </h3> |
33 | 33 | |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | </nav> |
49 | 49 | <?php endif; ?> |
50 | 50 | |
51 | -<?php if (!comments_open() && !is_page() && post_type_supports(get_post_type(), 'comments')) : ?> |
|
51 | +<?php if ( ! comments_open() && ! is_page() && post_type_supports(get_post_type(), 'comments')) : ?> |
|
52 | 52 | <div class="alert alert-warning"> |
53 | 53 | <?php esc_html_e('Comments are closed.', 'lsx'); ?> |
54 | 54 | </div> |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | |
60 | 60 | <?php endif; ?> |
61 | 61 | |
62 | -<?php if (!have_comments() && !comments_open() && !is_page() && post_type_supports(get_post_type(), 'comments')) : ?> |
|
62 | +<?php if ( ! have_comments() && ! comments_open() && ! is_page() && post_type_supports(get_post_type(), 'comments')) : ?> |
|
63 | 63 | <section id="comments"> |
64 | 64 | <div class="alert alert-warning"> |
65 | 65 | <?php esc_html_e('Comments are closed.', 'lsx'); ?> |
@@ -72,24 +72,24 @@ discard block |
||
72 | 72 | |
73 | 73 | <?php |
74 | 74 | $commenter = wp_get_current_commenter(); |
75 | - $req = get_option( 'require_name_email' ); |
|
76 | - $aria_req = ( $req ? " aria-required='true'" : '' ); |
|
77 | - $html_req = ( $req ? " required='required'" : '' ); |
|
75 | + $req = get_option('require_name_email'); |
|
76 | + $aria_req = ($req ? " aria-required='true'" : ''); |
|
77 | + $html_req = ($req ? " required='required'" : ''); |
|
78 | 78 | |
79 | 79 | $comment_form_args = array( |
80 | - 'comment_field' => '<p class="comment-form-comment"><textarea placeholder="'. __( 'Comment', 'lsx' ) .'" id="comment" class="form-control" name="comment" cols="45" rows="8"'. $aria_req . $html_req .'></textarea></p>', |
|
80 | + 'comment_field' => '<p class="comment-form-comment"><textarea placeholder="' . __('Comment', 'lsx') . '" id="comment" class="form-control" name="comment" cols="45" rows="8"' . $aria_req . $html_req . '></textarea></p>', |
|
81 | 81 | |
82 | 82 | 'fields' => array( |
83 | - 'author' => '<p class="comment-form-author"><label for="author">'. __( 'Name', 'lsx' ) .'</label> ' . |
|
84 | - ( $req ? '<span class="required">*</span>' : '' ) . |
|
85 | - '<input class="form-control" placeholder="'. __( 'Name', 'lsx' ) .'" id="author" name="author" type="text" value="'. esc_attr( $commenter['comment_author'] ) .'" size="30"'. $aria_req . $html_req .'></p>', |
|
83 | + 'author' => '<p class="comment-form-author"><label for="author">' . __('Name', 'lsx') . '</label> ' . |
|
84 | + ($req ? '<span class="required">*</span>' : '') . |
|
85 | + '<input class="form-control" placeholder="' . __('Name', 'lsx') . '" id="author" name="author" type="text" value="' . esc_attr($commenter['comment_author']) . '" size="30"' . $aria_req . $html_req . '></p>', |
|
86 | 86 | |
87 | - 'email' => '<p class="comment-form-email"><label for="email">'. __( 'Email', 'lsx' ) .'</label> ' . |
|
88 | - ( $req ? '<span class="required">*</span>' : '' ) . |
|
89 | - '<input class="form-control" placeholder="'. __( 'Email', 'lsx' ) .'" id="email" name="email" type="text" value="'. esc_attr( $commenter['comment_author_email'] ) .'" size="30"' . $aria_req . $html_req . '></p>', |
|
87 | + 'email' => '<p class="comment-form-email"><label for="email">' . __('Email', 'lsx') . '</label> ' . |
|
88 | + ($req ? '<span class="required">*</span>' : '') . |
|
89 | + '<input class="form-control" placeholder="' . __('Email', 'lsx') . '" id="email" name="email" type="text" value="' . esc_attr($commenter['comment_author_email']) . '" size="30"' . $aria_req . $html_req . '></p>', |
|
90 | 90 | |
91 | - 'url' => '<p class="comment-form-url"><label for="url">'. __( 'Website', 'lsx' ) .'</label>' . |
|
92 | - '<input class="form-control" placeholder="'. __( 'Website', 'lsx' ) .'" id="url" name="url" type="text" value="'. esc_attr( $commenter['comment_author_url'] ) .'" size="30"></p>' |
|
91 | + 'url' => '<p class="comment-form-url"><label for="url">' . __('Website', 'lsx') . '</label>' . |
|
92 | + '<input class="form-control" placeholder="' . __('Website', 'lsx') . '" id="url" name="url" type="text" value="' . esc_attr($commenter['comment_author_url']) . '" size="30"></p>' |
|
93 | 93 | ) |
94 | 94 | ); |
95 | 95 | ?> |
@@ -12,20 +12,20 @@ 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() ) { ?> |
|
26 | - <a href="<?php echo esc_url($format_link) ?>" class="format-link has-thumb fa fa-<?php echo esc_attr( $format ) ?>"></a> |
|
25 | + <?php if (has_post_thumbnail()) { ?> |
|
26 | + <a href="<?php echo esc_url($format_link) ?>" class="format-link has-thumb fa fa-<?php echo esc_attr($format) ?>"></a> |
|
27 | 27 | <?php } else { ?> |
28 | - <a href="<?php echo esc_url($format_link) ?>" class="format-link fa fa-<?php echo esc_attr( $format ) ?>"></a> |
|
28 | + <a href="<?php echo esc_url($format_link) ?>" class="format-link fa fa-<?php echo esc_attr($format) ?>"></a> |
|
29 | 29 | <?php } ?> |
30 | 30 | |
31 | 31 | <span><?php the_title(); ?></span> |
@@ -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 esc_html_e('Tagged as:','lsx'); ?></span> <?php echo get_the_tag_list(''); ?> |
|
61 | + <span><?php esc_html_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 wp_kses_post( $custom_likes->post_likes( '' ) ); |
|
72 | + echo wp_kses_post($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 esc_html( get_comments_number() ) ?></strong> <?php esc_html_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 esc_html(get_comments_number()) ?></strong> <?php esc_html_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 |
@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | <?php lsx_entry_before(); ?> |
8 | 8 | |
9 | 9 | <?php |
10 | - if ( has_post_thumbnail() ) { |
|
10 | + if (has_post_thumbnail()) { |
|
11 | 11 | $thumb_class = 'has-thumb'; |
12 | 12 | } else { |
13 | 13 | $thumb_class = 'no-thumb'; |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | <?php lsx_entry_top(); ?> |
19 | 19 | |
20 | 20 | <header class="entry-header"> |
21 | - <?php if ( has_post_thumbnail() ) { ?> |
|
21 | + <?php if (has_post_thumbnail()) { ?> |
|
22 | 22 | <div class="entry-image"> |
23 | 23 | <a class="thumbnail" href="<?php the_permalink(); ?>"> |
24 | 24 | <?php lsx_thumbnail('lsx-single-thumbnail'); ?> |
@@ -28,35 +28,35 @@ discard block |
||
28 | 28 | |
29 | 29 | <?php |
30 | 30 | $format = get_post_format(); |
31 | - if ( false === $format ) { |
|
31 | + if (false === $format) { |
|
32 | 32 | $format = 'standard'; |
33 | - $show_on_front = get_option('show_on_front','posts'); |
|
34 | - if('page' == $show_on_front){ |
|
33 | + $show_on_front = get_option('show_on_front', 'posts'); |
|
34 | + if ('page' == $show_on_front) { |
|
35 | 35 | $archive_link = get_permalink(get_option('page_for_posts')); |
36 | - }else{ |
|
36 | + } else { |
|
37 | 37 | $archive_link = home_url(); |
38 | 38 | } |
39 | - }else{ |
|
39 | + } else { |
|
40 | 40 | $archive_link = get_post_format_link($format); |
41 | 41 | } |
42 | 42 | $format = lsx_translate_format_to_fontawesome($format); |
43 | 43 | ?> |
44 | 44 | |
45 | 45 | <h1 class="entry-title"> |
46 | - <?php if ( has_post_thumbnail() ) { ?> |
|
47 | - <a href="<?php echo esc_url($archive_link) ?>" class="format-link has-thumb fa fa-<?php echo esc_attr( $format ) ?>"></a> |
|
46 | + <?php if (has_post_thumbnail()) { ?> |
|
47 | + <a href="<?php echo esc_url($archive_link) ?>" class="format-link has-thumb fa fa-<?php echo esc_attr($format) ?>"></a> |
|
48 | 48 | <?php } else { ?> |
49 | - <a href="<?php echo esc_url($archive_link) ?>" class="format-link fa fa-<?php echo esc_attr( $format ) ?>"></a> |
|
49 | + <a href="<?php echo esc_url($archive_link) ?>" class="format-link fa fa-<?php echo esc_attr($format) ?>"></a> |
|
50 | 50 | <?php } ?> |
51 | 51 | |
52 | - <?php if ( has_post_format( array('link') ) ) { ?> |
|
53 | - <a href="<?php echo esc_url( lsx_get_my_url() ); ?>" rel="bookmark"><?php the_title(); ?> <span class="fa fa-external-link"></span></a> |
|
52 | + <?php if (has_post_format(array('link'))) { ?> |
|
53 | + <a href="<?php echo esc_url(lsx_get_my_url()); ?>" rel="bookmark"><?php the_title(); ?> <span class="fa fa-external-link"></span></a> |
|
54 | 54 | <?php } else { ?> |
55 | 55 | <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a> |
56 | 56 | <?php } ?> |
57 | 57 | |
58 | - <?php if ( is_sticky() ) { ?> |
|
59 | - <span class="label label-default label-sticky"><?php esc_html_e('Featured','lsx'); ?></span> |
|
58 | + <?php if (is_sticky()) { ?> |
|
59 | + <span class="label label-default label-sticky"><?php esc_html_e('Featured', 'lsx'); ?></span> |
|
60 | 60 | <?php } ?> |
61 | 61 | </h1> |
62 | 62 | |
@@ -65,41 +65,41 @@ discard block |
||
65 | 65 | </div><!-- .entry-meta --> |
66 | 66 | </header><!-- .entry-header --> |
67 | 67 | |
68 | - <?php if ( !is_singular() && !has_post_format( array('video', 'audio', 'quote', 'link') ) ) : // Only display Excerpts for Search and Archives ?> |
|
68 | + <?php if ( ! is_singular() && ! has_post_format(array('video', 'audio', 'quote', 'link'))) : // Only display Excerpts for Search and Archives ?> |
|
69 | 69 | <div class="entry-summary"> |
70 | 70 | <?php the_excerpt(); ?> |
71 | 71 | </div><!-- .entry-summary --> |
72 | - <?php elseif ( has_post_format( array('link') ) ) : ?> |
|
72 | + <?php elseif (has_post_format(array('link'))) : ?> |
|
73 | 73 | |
74 | 74 | <?php else : ?> |
75 | 75 | <div class="entry-content"> |
76 | 76 | <?php |
77 | 77 | the_content(); |
78 | 78 | |
79 | - wp_link_pages( array( |
|
79 | + wp_link_pages(array( |
|
80 | 80 | 'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">', |
81 | 81 | 'after' => '</div></div>', |
82 | 82 | 'link_before' => '<span>', |
83 | 83 | 'link_after' => '</span>' |
84 | - ) ); |
|
84 | + )); |
|
85 | 85 | ?> |
86 | 86 | </div><!-- .entry-content --> |
87 | 87 | <?php endif; ?> |
88 | 88 | |
89 | - <?php if ( has_tag() || ( comments_open() && ! empty( get_comments_number() ) ) ) : ?> |
|
89 | + <?php if (has_tag() || (comments_open() && ! empty(get_comments_number()))) : ?> |
|
90 | 90 | <div class="post-tags-wrapper"> |
91 | - <?php if ( has_tag() ) : ?> |
|
91 | + <?php if (has_tag()) : ?> |
|
92 | 92 | <div class="post-tags"> |
93 | - <span><?php esc_html_e('Tagged as:','lsx'); ?></span> <?php echo get_the_tag_list(''); ?> |
|
93 | + <span><?php esc_html_e('Tagged as:', 'lsx'); ?></span> <?php echo get_the_tag_list(''); ?> |
|
94 | 94 | </div> |
95 | 95 | <?php endif ?> |
96 | 96 | |
97 | - <?php if ( comments_open() && ! empty( get_comments_number() ) ) : ?> |
|
97 | + <?php if (comments_open() && ! empty(get_comments_number())) : ?> |
|
98 | 98 | <div class="post-comments"> |
99 | 99 | <a href="<?php the_permalink() ?>#comments"> |
100 | 100 | <?php |
101 | 101 | $count = get_comments_number(); |
102 | - printf( esc_html( _n( 'One Comment', '%1$s Comments', $count, 'lsx' ) ), esc_html( number_format_i18n( $count ) ) ); |
|
102 | + printf(esc_html(_n('One Comment', '%1$s Comments', $count, 'lsx')), esc_html(number_format_i18n($count))); |
|
103 | 103 | ?> |
104 | 104 | </a> |
105 | 105 | </div> |
@@ -112,9 +112,9 @@ discard block |
||
112 | 112 | |
113 | 113 | <div class="clearfix"></div> |
114 | 114 | |
115 | - <?php edit_post_link( __( 'Edit', 'lsx' ), '<span class="edit-link">', '</span>' ); ?> |
|
115 | + <?php edit_post_link(__('Edit', 'lsx'), '<span class="edit-link">', '</span>'); ?> |
|
116 | 116 | |
117 | - <?php if ( !is_singular() && !is_single() ) { // Display full-width divider on Archives ?> |
|
117 | + <?php if ( ! is_singular() && ! is_single()) { // Display full-width divider on Archives ?> |
|
118 | 118 | <div class="lsx-breaker"></div> |
119 | 119 | <?php } ?> |
120 | 120 | </article><!-- #post-## --> |