@@ -24,11 +24,11 @@ discard block |
||
24 | 24 | * $lsx_supports[] = 'body'; |
25 | 25 | */ |
26 | 26 | function lsx_body_top() { |
27 | - do_action( 'lsx_body_top' ); |
|
27 | + do_action('lsx_body_top'); |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | function lsx_body_bottom() { |
31 | - do_action( 'lsx_body_bottom' ); |
|
31 | + do_action('lsx_body_bottom'); |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | /** |
@@ -37,11 +37,11 @@ discard block |
||
37 | 37 | * $lsx_supports[] = 'head'; |
38 | 38 | */ |
39 | 39 | function lsx_head_top() { |
40 | - do_action( 'lsx_head_top' ); |
|
40 | + do_action('lsx_head_top'); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | function lsx_head_bottom() { |
44 | - do_action( 'lsx_head_bottom' ); |
|
44 | + do_action('lsx_head_bottom'); |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | /** |
@@ -50,27 +50,27 @@ discard block |
||
50 | 50 | * $lsx_supports[] = 'header'; |
51 | 51 | */ |
52 | 52 | function lsx_header_before() { |
53 | - do_action( 'lsx_header_before' ); |
|
53 | + do_action('lsx_header_before'); |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | function lsx_header_after() { |
57 | - do_action( 'lsx_header_after' ); |
|
57 | + do_action('lsx_header_after'); |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | function lsx_header_top() { |
61 | - do_action( 'lsx_header_top' ); |
|
61 | + do_action('lsx_header_top'); |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | function lsx_header_bottom() { |
65 | - do_action( 'lsx_header_bottom' ); |
|
65 | + do_action('lsx_header_bottom'); |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | function lsx_nav_before() { |
69 | - do_action( 'lsx_nav_before' ); |
|
69 | + do_action('lsx_nav_before'); |
|
70 | 70 | } |
71 | 71 | |
72 | 72 | function lsx_nav_after() { |
73 | - do_action( 'lsx_nav_after' ); |
|
73 | + do_action('lsx_nav_after'); |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | /** |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | */ |
81 | 81 | |
82 | 82 | function lsx_banner_content() { |
83 | - do_action( 'lsx_banner_content' ); |
|
83 | + do_action('lsx_banner_content'); |
|
84 | 84 | } |
85 | 85 | |
86 | 86 | /** |
@@ -89,39 +89,39 @@ discard block |
||
89 | 89 | * $lsx_supports[] = 'content'; |
90 | 90 | */ |
91 | 91 | function lsx_content_wrap_before() { |
92 | - do_action( 'lsx_content_wrap_before' ); |
|
92 | + do_action('lsx_content_wrap_before'); |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | function lsx_content_wrap_after() { |
96 | - do_action( 'lsx_content_wrap_after' ); |
|
96 | + do_action('lsx_content_wrap_after'); |
|
97 | 97 | } |
98 | 98 | |
99 | 99 | function lsx_content_before() { |
100 | - do_action( 'lsx_content_before' ); |
|
100 | + do_action('lsx_content_before'); |
|
101 | 101 | } |
102 | 102 | |
103 | 103 | function lsx_content_after() { |
104 | - do_action( 'lsx_content_after' ); |
|
104 | + do_action('lsx_content_after'); |
|
105 | 105 | } |
106 | 106 | |
107 | 107 | function lsx_content_top() { |
108 | - do_action( 'lsx_content_top' ); |
|
108 | + do_action('lsx_content_top'); |
|
109 | 109 | } |
110 | 110 | |
111 | 111 | function lsx_content_bottom() { |
112 | - do_action( 'lsx_content_bottom' ); |
|
112 | + do_action('lsx_content_bottom'); |
|
113 | 113 | } |
114 | 114 | |
115 | 115 | function lsx_content_post_meta() { |
116 | - do_action( 'lsx_content_post_meta' ); |
|
116 | + do_action('lsx_content_post_meta'); |
|
117 | 117 | } |
118 | 118 | |
119 | 119 | function lsx_content_post_tags() { |
120 | - do_action( 'lsx_content_post_tags' ); |
|
120 | + do_action('lsx_content_post_tags'); |
|
121 | 121 | } |
122 | 122 | |
123 | -function lsx_content_sharing(){ |
|
124 | - do_action( 'lsx_content_sharing' ); |
|
123 | +function lsx_content_sharing() { |
|
124 | + do_action('lsx_content_sharing'); |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | /** |
@@ -130,19 +130,19 @@ discard block |
||
130 | 130 | * $lsx_supports[] = 'entry'; |
131 | 131 | */ |
132 | 132 | function lsx_entry_before() { |
133 | - do_action( 'lsx_entry_before' ); |
|
133 | + do_action('lsx_entry_before'); |
|
134 | 134 | } |
135 | 135 | |
136 | 136 | function lsx_entry_after() { |
137 | - do_action( 'lsx_entry_after' ); |
|
137 | + do_action('lsx_entry_after'); |
|
138 | 138 | } |
139 | 139 | |
140 | 140 | function lsx_entry_top() { |
141 | - do_action( 'lsx_entry_top' ); |
|
141 | + do_action('lsx_entry_top'); |
|
142 | 142 | } |
143 | 143 | |
144 | 144 | function lsx_entry_bottom() { |
145 | - do_action( 'lsx_entry_bottom' ); |
|
145 | + do_action('lsx_entry_bottom'); |
|
146 | 146 | } |
147 | 147 | |
148 | 148 | /** |
@@ -151,11 +151,11 @@ discard block |
||
151 | 151 | * $lsx_supports[] = 'comments'; |
152 | 152 | */ |
153 | 153 | function lsx_comments_before() { |
154 | - do_action( 'lsx_comments_before' ); |
|
154 | + do_action('lsx_comments_before'); |
|
155 | 155 | } |
156 | 156 | |
157 | 157 | function lsx_comments_after() { |
158 | - do_action( 'lsx_comments_after' ); |
|
158 | + do_action('lsx_comments_after'); |
|
159 | 159 | } |
160 | 160 | |
161 | 161 | /** |
@@ -164,19 +164,19 @@ discard block |
||
164 | 164 | * $lsx_supports[] = 'sidebar'; |
165 | 165 | */ |
166 | 166 | function lsx_sidebars_before() { |
167 | - do_action( 'lsx_sidebars_before' ); |
|
167 | + do_action('lsx_sidebars_before'); |
|
168 | 168 | } |
169 | 169 | |
170 | 170 | function lsx_sidebars_after() { |
171 | - do_action( 'lsx_sidebars_after' ); |
|
171 | + do_action('lsx_sidebars_after'); |
|
172 | 172 | } |
173 | 173 | |
174 | 174 | function lsx_sidebar_top() { |
175 | - do_action( 'lsx_sidebar_top' ); |
|
175 | + do_action('lsx_sidebar_top'); |
|
176 | 176 | } |
177 | 177 | |
178 | 178 | function lsx_sidebar_bottom() { |
179 | - do_action( 'lsx_sidebar_bottom' ); |
|
179 | + do_action('lsx_sidebar_bottom'); |
|
180 | 180 | } |
181 | 181 | |
182 | 182 | /** |
@@ -185,17 +185,17 @@ discard block |
||
185 | 185 | * $lsx_supports[] = 'footer'; |
186 | 186 | */ |
187 | 187 | function lsx_footer_before() { |
188 | - do_action( 'lsx_footer_before' ); |
|
188 | + do_action('lsx_footer_before'); |
|
189 | 189 | } |
190 | 190 | |
191 | 191 | function lsx_footer_after() { |
192 | - do_action( 'lsx_footer_after' ); |
|
192 | + do_action('lsx_footer_after'); |
|
193 | 193 | } |
194 | 194 | |
195 | 195 | function lsx_footer_top() { |
196 | - do_action( 'lsx_footer_top' ); |
|
196 | + do_action('lsx_footer_top'); |
|
197 | 197 | } |
198 | 198 | |
199 | 199 | function lsx_footer_bottom() { |
200 | - do_action( 'lsx_footer_bottom' ); |
|
200 | + do_action('lsx_footer_bottom'); |
|
201 | 201 | } |
202 | 202 | \ No newline at end of file |
@@ -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() || class_exists('LSX_Sharing') || ( function_exists( 'sharing_display' ) || class_exists( 'Jetpack_Likes' ) ) ) : ?> |
|
57 | + <?php if (has_tag() || class_exists('LSX_Sharing') || (function_exists('sharing_display') || class_exists('Jetpack_Likes'))) : ?> |
|
58 | 58 | <div class="post-tags-wrapper"> |
59 | 59 | <?php lsx_content_post_tags(); ?> |
60 | 60 | |
61 | 61 | <?php |
62 | - if ( function_exists( 'sharing_display' ) ) { |
|
63 | - sharing_display( '', true ); |
|
62 | + if (function_exists('sharing_display')) { |
|
63 | + sharing_display('', true); |
|
64 | 64 | } |
65 | 65 | |
66 | - if ( class_exists( 'Jetpack_Likes' ) ) { |
|
66 | + if (class_exists('Jetpack_Likes')) { |
|
67 | 67 | $custom_likes = new Jetpack_Likes; |
68 | - echo wp_kses_post( $custom_likes->post_likes( '' ) ); |
|
68 | + echo wp_kses_post($custom_likes->post_likes('')); |
|
69 | 69 | } |
70 | 70 | ?> |
71 | 71 | |
72 | - <?php if(class_exists('LSX_Sharing')){ |
|
72 | + <?php if (class_exists('LSX_Sharing')) { |
|
73 | 73 | lsx_content_sharing(); |
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( esc_html__( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?> |
|
91 | + <?php edit_post_link(esc_html__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?> |
|
92 | 92 | |
93 | 93 | <?php lsx_entry_bottom(); ?> |
94 | 94 |
@@ -71,7 +71,7 @@ |
||
71 | 71 | |
72 | 72 | <?php if(class_exists('LSX_Sharing')){ |
73 | 73 | lsx_content_sharing(); |
74 | - }?> |
|
74 | + }?> |
|
75 | 75 | </div> |
76 | 76 | <?php endif ?> |
77 | 77 |
@@ -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() || class_exists('LSX_Sharing') || ( function_exists( 'sharing_display' ) || class_exists( 'Jetpack_Likes' ) ) ) : ?> |
|
57 | + <?php if (has_tag() || class_exists('LSX_Sharing') || (function_exists('sharing_display') || class_exists('Jetpack_Likes'))) : ?> |
|
58 | 58 | <div class="post-tags-wrapper"> |
59 | 59 | <?php lsx_content_post_tags(); ?> |
60 | 60 | |
61 | 61 | <?php |
62 | - if ( function_exists( 'sharing_display' ) ) { |
|
63 | - sharing_display( '', true ); |
|
62 | + if (function_exists('sharing_display')) { |
|
63 | + sharing_display('', true); |
|
64 | 64 | } |
65 | 65 | |
66 | - if ( class_exists( 'Jetpack_Likes' ) ) { |
|
66 | + if (class_exists('Jetpack_Likes')) { |
|
67 | 67 | $custom_likes = new Jetpack_Likes; |
68 | - echo wp_kses_post( $custom_likes->post_likes( '' ) ); |
|
68 | + echo wp_kses_post($custom_likes->post_likes('')); |
|
69 | 69 | } |
70 | 70 | ?> |
71 | 71 | |
72 | - <?php if(class_exists('LSX_Sharing')){ |
|
72 | + <?php if (class_exists('LSX_Sharing')) { |
|
73 | 73 | lsx_content_sharing(); |
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( esc_html__( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?> |
|
91 | + <?php edit_post_link(esc_html__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?> |
|
92 | 92 | |
93 | 93 | <?php lsx_entry_bottom(); ?> |
94 | 94 |