@@ -36,11 +36,14 @@ discard block |
||
36 | 36 | |
37 | 37 | <?php lsx_paging_nav(); ?> |
38 | 38 | |
39 | - <?php else : ?> |
|
39 | + <?php else { |
|
40 | + : ?> |
|
40 | 41 | |
41 | 42 | <section class="no-results not-found"> |
42 | 43 | <header class="page-header"> |
43 | - <h1 class="page-title"><?php _e( 'Nothing Found', 'lsx' ); ?></h1> |
|
44 | + <h1 class="page-title"><?php _e( 'Nothing Found', 'lsx' ); |
|
45 | +} |
|
46 | +?></h1> |
|
44 | 47 | </header><!-- .page-header --> |
45 | 48 | |
46 | 49 | <div class="page-content"> |
@@ -48,9 +51,12 @@ discard block |
||
48 | 51 | |
49 | 52 | <p><?php printf( __( 'Ready to publish your first project? <a href="%1$s">Get started here</a>.', 'lsx' ), esc_url( admin_url( 'post-new.php?post_type=jetpack-portfolio' ) ) ); ?></p> |
50 | 53 | |
51 | - <?php else : ?> |
|
54 | + <?php else { |
|
55 | + : ?> |
|
52 | 56 | |
53 | - <p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lsx' ); ?></p> |
|
57 | + <p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lsx' ); |
|
58 | +} |
|
59 | +?></p> |
|
54 | 60 | <?php get_search_form(); ?> |
55 | 61 | |
56 | 62 | <?php endif; ?> |
@@ -47,9 +47,12 @@ |
||
47 | 47 | |
48 | 48 | <?php lsx_paging_nav(); ?> |
49 | 49 | |
50 | - <?php else : ?> |
|
50 | + <?php else { |
|
51 | + : ?> |
|
51 | 52 | |
52 | - <?php get_template_part( 'content', 'none' ); ?> |
|
53 | + <?php get_template_part( 'content', 'none' ); |
|
54 | +} |
|
55 | +?> |
|
53 | 56 | |
54 | 57 | <?php endif; ?> |
55 | 58 |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | |
23 | 23 | if('posts' == $show_on_front && is_home()){ |
24 | 24 | $sidebar = 'home'; |
25 | - }else{ |
|
25 | + } else{ |
|
26 | 26 | $sidebar = 'sidebar-1'; |
27 | 27 | } |
28 | 28 | } |
@@ -38,9 +38,12 @@ discard block |
||
38 | 38 | |
39 | 39 | <div id="secondary" class="widget-area <?php echo esc_attr(lsx_sidebar_class()); ?>" role="complementary"> |
40 | 40 | |
41 | - <?php else : ?> |
|
41 | + <?php else { |
|
42 | + : ?> |
|
42 | 43 | |
43 | - <div id="secondary" class="widget-area <?php echo esc_attr(lsx_sidebar_class()); ?>" role="complementary"> |
|
44 | + <div id="secondary" class="widget-area <?php echo esc_attr(lsx_sidebar_class()); |
|
45 | +} |
|
46 | +?>" role="complementary"> |
|
44 | 47 | |
45 | 48 | <?php endif ; ?> |
46 | 49 |
@@ -12,7 +12,7 @@ |
||
12 | 12 | $layout = get_theme_mod('lsx_layout','2cr'); |
13 | 13 | if('posts' == $show_on_front && is_home()){ |
14 | 14 | $sidebar = 'home'; |
15 | - }else{ |
|
15 | + } else{ |
|
16 | 16 | $sidebar = 'sidebar-1'; |
17 | 17 | } |
18 | 18 |
@@ -33,8 +33,10 @@ discard block |
||
33 | 33 | $paged = get_query_var( 'paged' ); |
34 | 34 | elseif ( get_query_var( 'page' ) ) : |
35 | 35 | $paged = get_query_var( 'page' ); |
36 | - else : |
|
36 | + else { |
|
37 | + : |
|
37 | 38 | $paged = 1; |
39 | + } |
|
38 | 40 | endif; |
39 | 41 | |
40 | 42 | $args = array( |
@@ -59,11 +61,14 @@ discard block |
||
59 | 61 | </div> |
60 | 62 | </div><!-- .portfolio-wrapper --> |
61 | 63 | |
62 | - <?php else : ?> |
|
64 | + <?php else { |
|
65 | + : ?> |
|
63 | 66 | |
64 | 67 | <section class="no-results not-found"> |
65 | 68 | <header class="page-header"> |
66 | - <h1 class="page-title"><?php _e( 'Nothing Found', 'lsx' ); ?></h1> |
|
69 | + <h1 class="page-title"><?php _e( 'Nothing Found', 'lsx' ); |
|
70 | +} |
|
71 | +?></h1> |
|
67 | 72 | </header><!-- .page-header --> |
68 | 73 | |
69 | 74 | <div class="page-content"> |
@@ -71,9 +76,12 @@ discard block |
||
71 | 76 | |
72 | 77 | <p><?php printf( __( 'Ready to publish your first project? <a href="%1$s">Get started here</a>.', 'lsx' ), esc_url( admin_url( 'post-new.php?post_type=jetpack-portfolio' ) ) ); ?></p> |
73 | 78 | |
74 | - <?php else : ?> |
|
79 | + <?php else { |
|
80 | + : ?> |
|
75 | 81 | |
76 | - <p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lsx' ); ?></p> |
|
82 | + <p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lsx' ); |
|
83 | +} |
|
84 | +?></p> |
|
77 | 85 | <?php get_search_form(); ?> |
78 | 86 | |
79 | 87 | <?php endif; ?> |
@@ -36,9 +36,12 @@ |
||
36 | 36 | |
37 | 37 | <?php lsx_paging_nav(); ?> |
38 | 38 | |
39 | - <?php else : ?> |
|
39 | + <?php else { |
|
40 | + : ?> |
|
40 | 41 | |
41 | - <?php lsx_get_template_part( 'content', 'none' ); ?> |
|
42 | + <?php lsx_get_template_part( 'content', 'none' ); |
|
43 | +} |
|
44 | +?> |
|
42 | 45 | |
43 | 46 | <?php endif; $lsx_archive = 0; ?> |
44 | 47 |
@@ -4,7 +4,10 @@ |
||
4 | 4 | * |
5 | 5 | * @package lsx |
6 | 6 | */ |
7 | -if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly |
|
7 | +if ( ! defined( 'ABSPATH' ) ) { |
|
8 | + return; |
|
9 | +} |
|
10 | +// Exit if accessed directly |
|
8 | 11 | |
9 | 12 | define('LSX_VERSION', '1.7.3'); |
10 | 13 |
@@ -40,9 +40,12 @@ |
||
40 | 40 | |
41 | 41 | <?php lsx_paging_nav(); ?> |
42 | 42 | |
43 | - <?php else : ?> |
|
43 | + <?php else { |
|
44 | + : ?> |
|
44 | 45 | |
45 | - <?php get_template_part( 'content', 'none' ); ?> |
|
46 | + <?php get_template_part( 'content', 'none' ); |
|
47 | +} |
|
48 | +?> |
|
46 | 49 | |
47 | 50 | <?php endif; ?> |
48 | 51 |
@@ -44,9 +44,12 @@ |
||
44 | 44 | |
45 | 45 | <?php lsx_paging_nav(); ?> |
46 | 46 | |
47 | - <?php else : ?> |
|
47 | + <?php else { |
|
48 | + : ?> |
|
48 | 49 | |
49 | - <?php get_template_part( 'content', 'none' ); ?> |
|
50 | + <?php get_template_part( 'content', 'none' ); |
|
51 | +} |
|
52 | +?> |
|
50 | 53 | |
51 | 54 | <?php endif; ?> |
52 | 55 |