@@ -22,9 +22,9 @@ |
||
22 | 22 | |
23 | 23 | <?php lsx_content_top(); ?> |
24 | 24 | |
25 | - <?php while ( have_posts() ) : the_post(); ?> |
|
25 | + <?php while (have_posts()) : the_post(); ?> |
|
26 | 26 | |
27 | - <?php get_template_part( 'content', get_post_type() ); ?> |
|
27 | + <?php get_template_part('content', get_post_type()); ?> |
|
28 | 28 | |
29 | 29 | <?php endwhile; // end of the loop. ?> |
30 | 30 |
@@ -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 |
@@ -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 _e( 'Nothing Found', 'lsx' ); ?></h1> |
|
13 | + <h1 class="page-title"><?php _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 printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'lsx' ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p> |
|
19 | + <p><?php printf(__('Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'lsx'), esc_url(admin_url('post-new.php'))); ?></p> |
|
20 | 20 | |
21 | - <?php elseif ( is_search() ) : ?> |
|
21 | + <?php elseif (is_search()) : ?> |
|
22 | 22 | |
23 | - <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'lsx' ); ?></p> |
|
23 | + <p><?php _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 _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lsx' ); ?></p> |
|
28 | + <p><?php _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; ?> |
@@ -1,17 +1,17 @@ discard block |
||
1 | 1 | <?php |
2 | - if ( isset( $GLOBALS['comment_depth'] ) ) { |
|
3 | - $depth = intval( $GLOBALS['comment_depth'] ); |
|
2 | + if (isset($GLOBALS['comment_depth'])) { |
|
3 | + $depth = intval($GLOBALS['comment_depth']); |
|
4 | 4 | } else { |
5 | 5 | $depth = 1; |
6 | 6 | } |
7 | 7 | |
8 | - $max_depth = intval( get_option( 'thread_comments_depth' ) ); |
|
8 | + $max_depth = intval(get_option('thread_comments_depth')); |
|
9 | 9 | ?> |
10 | 10 | |
11 | 11 | <?php echo get_avatar($comment, '64'); ?> |
12 | 12 | <div class="media-body"> |
13 | 13 | <h4 class="media-heading"><?php echo get_comment_author_link(); ?></h4> |
14 | - <time datetime="<?php echo comment_date('c'); ?>"><a href="<?php echo esc_url(get_comment_link($comment->comment_ID)); ?>"><?php printf(__('%1$s on %2$s', 'lsx'), get_comment_date(), get_comment_time()); ?></a></time> |
|
14 | + <time datetime="<?php echo comment_date('c'); ?>"><a href="<?php echo esc_url(get_comment_link($comment->comment_ID)); ?>"><?php printf(__('%1$s on %2$s', 'lsx'), get_comment_date(), get_comment_time()); ?></a></time> |
|
15 | 15 | <?php edit_comment_link(__('(Edit)', 'lsx'), '', ''); ?> |
16 | 16 | |
17 | 17 | <?php if ($comment->comment_approved == '0') : ?> |
@@ -21,4 +21,4 @@ discard block |
||
21 | 21 | <?php endif; ?> |
22 | 22 | |
23 | 23 | <?php comment_text(); ?> |
24 | -<?php comment_reply_link( array( 'depth' => $depth, 'max_depth' => $max_depth ) ); |
|
25 | 24 | \ No newline at end of file |
25 | +<?php comment_reply_link(array('depth' => $depth, 'max_depth' => $max_depth)); |
|
26 | 26 | \ No newline at end of file |
@@ -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 |
@@ -7,11 +7,11 @@ |
||
7 | 7 | |
8 | 8 | |
9 | 9 | //This is to help the customizer function better |
10 | -$style=''; |
|
11 | -if(is_customize_preview()){ |
|
12 | - $search_form = get_theme_mod( 'lsx_header_search', 0 ); |
|
13 | - if(!$search_form){ |
|
14 | - $style='style="display:none;"'; |
|
10 | +$style = ''; |
|
11 | +if (is_customize_preview()) { |
|
12 | + $search_form = get_theme_mod('lsx_header_search', 0); |
|
13 | + if ( ! $search_form) { |
|
14 | + $style = 'style="display:none;"'; |
|
15 | 15 | } |
16 | 16 | } |
17 | 17 |
@@ -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( __( '© %1$s %2$s All Rights Reserved.', 'lsx' ), 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(__('© %1$s %2$s All Rights Reserved.', 'lsx'), 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( __( '© %1$s %2$s All Rights Reserved.', 'lsx' ), date_i18n( 'Y' ), 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(__('© %1$s %2$s All Rights Reserved.', 'lsx'), date_i18n('Y'), 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 } ?> |
@@ -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 $custom_likes->post_likes( '' ); |
|
45 | + echo $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 |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | </nav> |
44 | 44 | <?php endif; ?> |
45 | 45 | |
46 | -<?php if (!comments_open() && !is_page() && post_type_supports(get_post_type(), 'comments')) : ?> |
|
46 | +<?php if ( ! comments_open() && ! is_page() && post_type_supports(get_post_type(), 'comments')) : ?> |
|
47 | 47 | <div class="alert alert-warning"> |
48 | 48 | <?php _e('Comments are closed.', 'lsx'); ?> |
49 | 49 | </div> |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | |
55 | 55 | <?php endif; ?> |
56 | 56 | |
57 | -<?php if (!have_comments() && !comments_open() && !is_page() && post_type_supports(get_post_type(), 'comments')) : ?> |
|
57 | +<?php if ( ! have_comments() && ! comments_open() && ! is_page() && post_type_supports(get_post_type(), 'comments')) : ?> |
|
58 | 58 | <section id="comments"> |
59 | 59 | <div class="alert alert-warning"> |
60 | 60 | <?php _e('Comments are closed.', 'lsx'); ?> |
@@ -67,24 +67,24 @@ discard block |
||
67 | 67 | |
68 | 68 | <?php |
69 | 69 | $commenter = wp_get_current_commenter(); |
70 | - $req = get_option( 'require_name_email' ); |
|
71 | - $aria_req = ( $req ? " aria-required='true'" : '' ); |
|
72 | - $html_req = ( $req ? " required='required'" : '' ); |
|
70 | + $req = get_option('require_name_email'); |
|
71 | + $aria_req = ($req ? " aria-required='true'" : ''); |
|
72 | + $html_req = ($req ? " required='required'" : ''); |
|
73 | 73 | |
74 | 74 | $comment_form_args = array( |
75 | - '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>', |
|
75 | + '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>', |
|
76 | 76 | |
77 | 77 | 'fields' => array( |
78 | - 'author' => '<p class="comment-form-author"><label for="author">'. __( 'Name', 'lsx' ) .'</label> ' . |
|
79 | - ( $req ? '<span class="required">*</span>' : '' ) . |
|
80 | - '<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>', |
|
78 | + 'author' => '<p class="comment-form-author"><label for="author">' . __('Name', 'lsx') . '</label> ' . |
|
79 | + ($req ? '<span class="required">*</span>' : '') . |
|
80 | + '<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>', |
|
81 | 81 | |
82 | - 'email' => '<p class="comment-form-email"><label for="email">'. __( 'Email', 'lsx' ) .'</label> ' . |
|
83 | - ( $req ? '<span class="required">*</span>' : '' ) . |
|
84 | - '<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>', |
|
82 | + 'email' => '<p class="comment-form-email"><label for="email">' . __('Email', 'lsx') . '</label> ' . |
|
83 | + ($req ? '<span class="required">*</span>' : '') . |
|
84 | + '<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>', |
|
85 | 85 | |
86 | - 'url' => '<p class="comment-form-url"><label for="url">'. __( 'Website', 'lsx' ) .'</label>' . |
|
87 | - '<input class="form-control" placeholder="'. __( 'Website', 'lsx' ) .'" id="url" name="url" type="text" value="'. esc_attr( $commenter['comment_author_url'] ) .'" size="30"></p>' |
|
86 | + 'url' => '<p class="comment-form-url"><label for="url">' . __('Website', 'lsx') . '</label>' . |
|
87 | + '<input class="form-control" placeholder="' . __('Website', 'lsx') . '" id="url" name="url" type="text" value="' . esc_attr($commenter['comment_author_url']) . '" size="30"></p>' |
|
88 | 88 | ) |
89 | 89 | ); |
90 | 90 | ?> |