@@ -1,24 +1,24 @@ |
||
| 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(esc_html__('%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(esc_html__('%1$s on %2$s', 'lsx'), get_comment_date(), get_comment_time()); ?></a></time> |
|
| 15 | 15 | <?php edit_comment_link(esc_html__('(Edit)', 'lsx'), '', ''); ?> |
| 16 | 16 | |
| 17 | - <?php if ( '0' == $comment->comment_approved ) : ?> |
|
| 17 | + <?php if ('0' == $comment->comment_approved) : ?> |
|
| 18 | 18 | <div class="alert alert-info"> |
| 19 | 19 | <?php esc_html_e('Your comment is awaiting moderation.', 'lsx'); ?> |
| 20 | 20 | </div> |
| 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 |
@@ -243,14 +243,13 @@ discard block |
||
| 243 | 243 | |
| 244 | 244 | $meta_value = get_post_meta( $post_id, $meta_key, true ); |
| 245 | 245 | |
| 246 | - if ( $new_meta_value && '' == $meta_value ) |
|
| 247 | - add_post_meta( $post_id, $meta_key, $new_meta_value, true ); |
|
| 248 | - |
|
| 249 | - elseif ( $new_meta_value && $new_meta_value != $meta_value ) |
|
| 250 | - update_post_meta( $post_id, $meta_key, $new_meta_value ); |
|
| 251 | - |
|
| 252 | - elseif ( '' == $new_meta_value && $meta_value ) |
|
| 253 | - delete_post_meta( $post_id, $meta_key, $meta_value ); |
|
| 246 | + if ( $new_meta_value && '' == $meta_value ) { |
|
| 247 | + add_post_meta( $post_id, $meta_key, $new_meta_value, true ); |
|
| 248 | + } elseif ( $new_meta_value && $new_meta_value != $meta_value ) { |
|
| 249 | + update_post_meta( $post_id, $meta_key, $new_meta_value ); |
|
| 250 | + } elseif ( '' == $new_meta_value && $meta_value ) { |
|
| 251 | + delete_post_meta( $post_id, $meta_key, $meta_value ); |
|
| 252 | + } |
|
| 254 | 253 | } |
| 255 | 254 | } |
| 256 | 255 | |
@@ -402,7 +401,7 @@ discard block |
||
| 402 | 401 | |
| 403 | 402 | if('jetpack-portfolio' == get_post_type()){ |
| 404 | 403 | get_template_part( 'content', 'portfolio' ); |
| 405 | - }else{ |
|
| 404 | + } else{ |
|
| 406 | 405 | get_template_part( 'content', get_post_type() ); |
| 407 | 406 | } |
| 408 | 407 | } |
@@ -19,8 +19,8 @@ discard block |
||
| 19 | 19 | */ |
| 20 | 20 | function lsx_allowed_related_post_types($allowed_post_types) { |
| 21 | 21 | $allowed_post_types[] = 'jetpack-portfolio'; |
| 22 | - foreach($allowed_post_types as $key => $value){ |
|
| 23 | - if('page' == $value){ |
|
| 22 | + foreach ($allowed_post_types as $key => $value) { |
|
| 23 | + if ('page' == $value) { |
|
| 24 | 24 | unset($allowed_post_types[$key]); |
| 25 | 25 | } |
| 26 | 26 | } |
@@ -35,12 +35,12 @@ discard block |
||
| 35 | 35 | * @category site-logo |
| 36 | 36 | */ |
| 37 | 37 | |
| 38 | -function lsx_site_logo_title_tag( $html) { |
|
| 38 | +function lsx_site_logo_title_tag($html) { |
|
| 39 | 39 | |
| 40 | - $html = str_replace('<a', '<a title="'.get_bloginfo('name').'" ', $html); |
|
| 40 | + $html = str_replace('<a', '<a title="' . get_bloginfo('name') . '" ', $html); |
|
| 41 | 41 | return $html; |
| 42 | 42 | } |
| 43 | -add_filter( 'jetpack_the_site_logo', 'lsx_site_logo_title_tag'); |
|
| 43 | +add_filter('jetpack_the_site_logo', 'lsx_site_logo_title_tag'); |
|
| 44 | 44 | |
| 45 | 45 | |
| 46 | 46 | /* |
@@ -54,19 +54,19 @@ discard block |
||
| 54 | 54 | * @subpackage jetpack |
| 55 | 55 | * @category portfolio |
| 56 | 56 | */ |
| 57 | -function lsx_portfolio_infinite_scroll(){ |
|
| 58 | - global $_wp_theme_features,$wp_query; |
|
| 57 | +function lsx_portfolio_infinite_scroll() { |
|
| 58 | + global $_wp_theme_features, $wp_query; |
|
| 59 | 59 | |
| 60 | - if(is_post_type_archive('jetpack-portfolio') || is_tax('jetpack-portfolio-type') || is_tax('jetpack-portfolio-tag')){ |
|
| 60 | + if (is_post_type_archive('jetpack-portfolio') || is_tax('jetpack-portfolio-type') || is_tax('jetpack-portfolio-tag')) { |
|
| 61 | 61 | |
| 62 | - if(class_exists('The_Neverending_Home_Page')){ |
|
| 62 | + if (class_exists('The_Neverending_Home_Page')) { |
|
| 63 | 63 | $_wp_theme_features['infinite-scroll'][0]['container'] = 'portfolio-infinite-scroll-wrapper'; |
| 64 | 64 | $_wp_theme_features['infinite-scroll'][0]['posts_per_page'] = 99; |
| 65 | 65 | } |
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | } |
| 69 | -add_action('wp_head','lsx_portfolio_infinite_scroll',1000); |
|
| 69 | +add_action('wp_head', 'lsx_portfolio_infinite_scroll', 1000); |
|
| 70 | 70 | |
| 71 | 71 | /** |
| 72 | 72 | * Disables the infinite scroll on the portfolio archive |
@@ -75,13 +75,13 @@ discard block |
||
| 75 | 75 | * @subpackage jetpack |
| 76 | 76 | * @category portfolio |
| 77 | 77 | */ |
| 78 | -function lsx_portfolio_infinite_scroll_disable($supported){ |
|
| 79 | - if(is_post_type_archive('jetpack-portfolio')){ |
|
| 78 | +function lsx_portfolio_infinite_scroll_disable($supported) { |
|
| 79 | + if (is_post_type_archive('jetpack-portfolio')) { |
|
| 80 | 80 | $supported = false; |
| 81 | 81 | } |
| 82 | 82 | return $supported; |
| 83 | 83 | } |
| 84 | -add_filter( 'infinite_scroll_archive_supported', 'lsx_portfolio_infinite_scroll_disable', 1, 10 ); |
|
| 84 | +add_filter('infinite_scroll_archive_supported', 'lsx_portfolio_infinite_scroll_disable', 1, 10); |
|
| 85 | 85 | |
| 86 | 86 | /** |
| 87 | 87 | * Set the Portfolio to 9 posts per page |
@@ -90,14 +90,14 @@ discard block |
||
| 90 | 90 | * @subpackage jetpack |
| 91 | 91 | * @category portfolio |
| 92 | 92 | */ |
| 93 | -function lsx_portfolio_archive_pagination( $query ) { |
|
| 94 | - if(!is_admin()){ |
|
| 95 | - if ( $query->is_post_type_archive(array('jetpack-portfolio')) && $query->is_main_query() && class_exists('The_Neverending_Home_Page')) { |
|
| 96 | - $query->set( 'posts_per_page', -1 ); |
|
| 93 | +function lsx_portfolio_archive_pagination($query) { |
|
| 94 | + if ( ! is_admin()) { |
|
| 95 | + if ($query->is_post_type_archive(array('jetpack-portfolio')) && $query->is_main_query() && class_exists('The_Neverending_Home_Page')) { |
|
| 96 | + $query->set('posts_per_page', -1); |
|
| 97 | 97 | } |
| 98 | 98 | } |
| 99 | 99 | } |
| 100 | -add_action( 'pre_get_posts', 'lsx_portfolio_archive_pagination' , 100 ); |
|
| 100 | +add_action('pre_get_posts', 'lsx_portfolio_archive_pagination', 100); |
|
| 101 | 101 | |
| 102 | 102 | /** |
| 103 | 103 | * Remove the related posts from below the content area. |
@@ -107,13 +107,13 @@ discard block |
||
| 107 | 107 | * @category portfolio |
| 108 | 108 | */ |
| 109 | 109 | function lsx_remove_portfolio_related_posts() { |
| 110 | - if ( is_single() && 'jetpack-portfolio' == get_post_type() && class_exists( 'Jetpack_RelatedPosts' ) ) { |
|
| 110 | + if (is_single() && 'jetpack-portfolio' == get_post_type() && class_exists('Jetpack_RelatedPosts')) { |
|
| 111 | 111 | $jprp = Jetpack_RelatedPosts::init(); |
| 112 | - $callback = array( $jprp, 'filter_add_target_to_dom' ); |
|
| 113 | - remove_filter( 'the_content', $callback, 40 ); |
|
| 112 | + $callback = array($jprp, 'filter_add_target_to_dom'); |
|
| 113 | + remove_filter('the_content', $callback, 40); |
|
| 114 | 114 | } |
| 115 | 115 | } |
| 116 | -add_filter( 'wp', 'lsx_remove_portfolio_related_posts', 20 ); |
|
| 116 | +add_filter('wp', 'lsx_remove_portfolio_related_posts', 20); |
|
| 117 | 117 | |
| 118 | 118 | /** |
| 119 | 119 | * Remove the related posts from below the content area. |
@@ -123,13 +123,13 @@ discard block |
||
| 123 | 123 | * @category portfolio |
| 124 | 124 | */ |
| 125 | 125 | function lsx_remove_single_related_posts() { |
| 126 | - if ( is_single() && class_exists( 'Jetpack_RelatedPosts' ) ) { |
|
| 126 | + if (is_single() && class_exists('Jetpack_RelatedPosts')) { |
|
| 127 | 127 | $jprp = Jetpack_RelatedPosts::init(); |
| 128 | - $callback = array( $jprp, 'filter_add_target_to_dom' ); |
|
| 129 | - remove_filter( 'the_content', $callback, 40 ); |
|
| 128 | + $callback = array($jprp, 'filter_add_target_to_dom'); |
|
| 129 | + remove_filter('the_content', $callback, 40); |
|
| 130 | 130 | } |
| 131 | 131 | } |
| 132 | -add_filter( 'wp', 'lsx_remove_single_related_posts', 20 ); |
|
| 132 | +add_filter('wp', 'lsx_remove_single_related_posts', 20); |
|
| 133 | 133 | |
| 134 | 134 | /** |
| 135 | 135 | * A template tag to call the Portfolios Related posts |
@@ -138,8 +138,8 @@ discard block |
||
| 138 | 138 | * @subpackage jetpack |
| 139 | 139 | * @category portfolio |
| 140 | 140 | */ |
| 141 | -function lsx_portfolio_related_posts(){ |
|
| 142 | - if(class_exists('Jetpack_RelatedPosts')){ ?> |
|
| 141 | +function lsx_portfolio_related_posts() { |
|
| 142 | + if (class_exists('Jetpack_RelatedPosts')) { ?> |
|
| 143 | 143 | <div class="row"> |
| 144 | 144 | <div class="col-md-12"> |
| 145 | 145 | <?php echo do_shortcode('[jetpack-related-posts]'); ?> |
@@ -156,16 +156,16 @@ discard block |
||
| 156 | 156 | * @category portfolio |
| 157 | 157 | */ |
| 158 | 158 | function lsx_portfolio_remove_share() { |
| 159 | - if ( ( is_single() && 'jetpack-portfolio' == get_post_type() ) || is_page_template( 'page-templates/template-portfolio.php' ) ) { |
|
| 160 | - remove_filter( 'the_content', 'sharing_display',19 ); |
|
| 161 | - remove_filter( 'the_excerpt', 'sharing_display',19 ); |
|
| 159 | + if ((is_single() && 'jetpack-portfolio' == get_post_type()) || is_page_template('page-templates/template-portfolio.php')) { |
|
| 160 | + remove_filter('the_content', 'sharing_display', 19); |
|
| 161 | + remove_filter('the_excerpt', 'sharing_display', 19); |
|
| 162 | 162 | |
| 163 | - if ( class_exists( 'Jetpack_Likes' ) ) { |
|
| 164 | - remove_filter( 'the_content', array( Jetpack_Likes::init(), 'post_likes' ), 30, 1 ); |
|
| 163 | + if (class_exists('Jetpack_Likes')) { |
|
| 164 | + remove_filter('the_content', array(Jetpack_Likes::init(), 'post_likes'), 30, 1); |
|
| 165 | 165 | } |
| 166 | 166 | } |
| 167 | 167 | } |
| 168 | -add_action( 'loop_start', 'lsx_portfolio_remove_share' ); |
|
| 168 | +add_action('loop_start', 'lsx_portfolio_remove_share'); |
|
| 169 | 169 | |
| 170 | 170 | /** |
| 171 | 171 | * Remove the sharing from single |
@@ -175,16 +175,16 @@ discard block |
||
| 175 | 175 | * @category post |
| 176 | 176 | */ |
| 177 | 177 | function lsx_single_remove_share() { |
| 178 | - if ( is_single() ) { |
|
| 179 | - remove_filter( 'the_content', 'sharing_display',19 ); |
|
| 180 | - remove_filter( 'the_excerpt', 'sharing_display',19 ); |
|
| 178 | + if (is_single()) { |
|
| 179 | + remove_filter('the_content', 'sharing_display', 19); |
|
| 180 | + remove_filter('the_excerpt', 'sharing_display', 19); |
|
| 181 | 181 | |
| 182 | - if ( class_exists( 'Jetpack_Likes' ) ) { |
|
| 183 | - remove_filter( 'the_content', array( Jetpack_Likes::init(), 'post_likes' ), 30, 1 ); |
|
| 182 | + if (class_exists('Jetpack_Likes')) { |
|
| 183 | + remove_filter('the_content', array(Jetpack_Likes::init(), 'post_likes'), 30, 1); |
|
| 184 | 184 | } |
| 185 | 185 | } |
| 186 | 186 | } |
| 187 | -add_action( 'loop_start', 'lsx_single_remove_share' ); |
|
| 187 | +add_action('loop_start', 'lsx_single_remove_share'); |
|
| 188 | 188 | |
| 189 | 189 | /** |
| 190 | 190 | * Redirect the template archive to our one |
@@ -193,18 +193,18 @@ discard block |
||
| 193 | 193 | * @subpackage jetpack |
| 194 | 194 | * @category portfolio |
| 195 | 195 | */ |
| 196 | -function lsx_portfolio_taxonomy_template( $template ) { |
|
| 196 | +function lsx_portfolio_taxonomy_template($template) { |
|
| 197 | 197 | |
| 198 | - if ( is_tax(array('jetpack-portfolio-type','jetpack-portfolio-tag')) ) { |
|
| 199 | - $new_template = locate_template( array( 'archive-jetpack-portfolio.php' ) ); |
|
| 200 | - if ( '' != $new_template ) { |
|
| 201 | - return $new_template ; |
|
| 198 | + if (is_tax(array('jetpack-portfolio-type', 'jetpack-portfolio-tag'))) { |
|
| 199 | + $new_template = locate_template(array('archive-jetpack-portfolio.php')); |
|
| 200 | + if ('' != $new_template) { |
|
| 201 | + return $new_template; |
|
| 202 | 202 | } |
| 203 | 203 | } |
| 204 | 204 | |
| 205 | 205 | return $template; |
| 206 | 206 | } |
| 207 | -add_filter( 'template_include', 'lsx_portfolio_taxonomy_template', 99 ); |
|
| 207 | +add_filter('template_include', 'lsx_portfolio_taxonomy_template', 99); |
|
| 208 | 208 | |
| 209 | 209 | |
| 210 | 210 | /** |
@@ -214,43 +214,43 @@ discard block |
||
| 214 | 214 | * @subpackage jetpack |
| 215 | 215 | * @category portfolio |
| 216 | 216 | */ |
| 217 | -add_action( 'add_meta_boxes', 'lsx_add_portfolio_post_meta_boxes' ); |
|
| 218 | -add_action( 'save_post', 'lsx_save_portfolio_post_meta', 100, 2 ); |
|
| 217 | +add_action('add_meta_boxes', 'lsx_add_portfolio_post_meta_boxes'); |
|
| 218 | +add_action('save_post', 'lsx_save_portfolio_post_meta', 100, 2); |
|
| 219 | 219 | |
| 220 | -function lsx_save_portfolio_post_meta( $post_id, $post ) { |
|
| 221 | - if ( 'jetpack-portfolio' != $post->post_type ) { |
|
| 220 | +function lsx_save_portfolio_post_meta($post_id, $post) { |
|
| 221 | + if ('jetpack-portfolio' != $post->post_type) { |
|
| 222 | 222 | return; |
| 223 | 223 | } |
| 224 | 224 | |
| 225 | - if ( ! isset( $_POST['lsx-website'] ) && ! isset( $_POST['lsx-client'] ) ) { |
|
| 225 | + if ( ! isset($_POST['lsx-website']) && ! isset($_POST['lsx-client'])) { |
|
| 226 | 226 | return; |
| 227 | 227 | } |
| 228 | 228 | |
| 229 | - $post_type = get_post_type_object( $post->post_type ); |
|
| 229 | + $post_type = get_post_type_object($post->post_type); |
|
| 230 | 230 | |
| 231 | - if ( ! current_user_can( $post_type->cap->edit_post, $post_id ) ) { |
|
| 231 | + if ( ! current_user_can($post_type->cap->edit_post, $post_id)) { |
|
| 232 | 232 | return; |
| 233 | 233 | } |
| 234 | 234 | |
| 235 | - check_admin_referer( 'lsx_save_portfolio', '_lsx_client_nonce' ); |
|
| 236 | - check_admin_referer( 'lsx_save_portfolio', '_lsx_website_nonce' ); |
|
| 235 | + check_admin_referer('lsx_save_portfolio', '_lsx_client_nonce'); |
|
| 236 | + check_admin_referer('lsx_save_portfolio', '_lsx_website_nonce'); |
|
| 237 | 237 | |
| 238 | - $meta_keys = array('lsx-website','lsx-client'); |
|
| 238 | + $meta_keys = array('lsx-website', 'lsx-client'); |
|
| 239 | 239 | |
| 240 | - foreach($meta_keys as $meta_key){ |
|
| 241 | - $new_meta_value = sanitize_text_field( wp_unslash( $_POST[$meta_key] ) ); |
|
| 242 | - $new_meta_value = ! empty( $new_meta_value ) ? $new_meta_value : ''; |
|
| 240 | + foreach ($meta_keys as $meta_key) { |
|
| 241 | + $new_meta_value = sanitize_text_field(wp_unslash($_POST[$meta_key])); |
|
| 242 | + $new_meta_value = ! empty($new_meta_value) ? $new_meta_value : ''; |
|
| 243 | 243 | |
| 244 | - $meta_value = get_post_meta( $post_id, $meta_key, true ); |
|
| 244 | + $meta_value = get_post_meta($post_id, $meta_key, true); |
|
| 245 | 245 | |
| 246 | - if ( $new_meta_value && '' == $meta_value ) |
|
| 247 | - add_post_meta( $post_id, $meta_key, $new_meta_value, true ); |
|
| 246 | + if ($new_meta_value && '' == $meta_value) |
|
| 247 | + add_post_meta($post_id, $meta_key, $new_meta_value, true); |
|
| 248 | 248 | |
| 249 | - elseif ( $new_meta_value && $new_meta_value != $meta_value ) |
|
| 250 | - update_post_meta( $post_id, $meta_key, $new_meta_value ); |
|
| 249 | + elseif ($new_meta_value && $new_meta_value != $meta_value) |
|
| 250 | + update_post_meta($post_id, $meta_key, $new_meta_value); |
|
| 251 | 251 | |
| 252 | - elseif ( '' == $new_meta_value && $meta_value ) |
|
| 253 | - delete_post_meta( $post_id, $meta_key, $meta_value ); |
|
| 252 | + elseif ('' == $new_meta_value && $meta_value) |
|
| 253 | + delete_post_meta($post_id, $meta_key, $meta_value); |
|
| 254 | 254 | } |
| 255 | 255 | } |
| 256 | 256 | |
@@ -258,7 +258,7 @@ discard block |
||
| 258 | 258 | |
| 259 | 259 | add_meta_box( |
| 260 | 260 | 'lsx_client_meta_box', |
| 261 | - esc_html__( 'Client', 'lsx' ), |
|
| 261 | + esc_html__('Client', 'lsx'), |
|
| 262 | 262 | 'lsx_client_meta_box', |
| 263 | 263 | 'jetpack-portfolio', |
| 264 | 264 | 'side', |
@@ -267,7 +267,7 @@ discard block |
||
| 267 | 267 | |
| 268 | 268 | add_meta_box( |
| 269 | 269 | 'lsx_website_meta_box', |
| 270 | - esc_html__( 'Website', 'lsx' ), |
|
| 270 | + esc_html__('Website', 'lsx'), |
|
| 271 | 271 | 'lsx_website_meta_box', |
| 272 | 272 | 'jetpack-portfolio', |
| 273 | 273 | 'side', |
@@ -275,25 +275,25 @@ discard block |
||
| 275 | 275 | ); |
| 276 | 276 | } |
| 277 | 277 | |
| 278 | -function lsx_client_meta_box( $object, $box ) { ?> |
|
| 278 | +function lsx_client_meta_box($object, $box) { ?> |
|
| 279 | 279 | |
| 280 | - <?php wp_nonce_field( 'lsx_save_portfolio', '_lsx_client_nonce' ); ?> |
|
| 280 | + <?php wp_nonce_field('lsx_save_portfolio', '_lsx_client_nonce'); ?> |
|
| 281 | 281 | |
| 282 | 282 | <p> |
| 283 | - <input class="widefat" type="text" name="lsx-client" id="lsx-client" value="<?php echo esc_attr( get_post_meta( $object->ID, 'lsx-client', true ) ); ?>" size="30" /> |
|
| 283 | + <input class="widefat" type="text" name="lsx-client" id="lsx-client" value="<?php echo esc_attr(get_post_meta($object->ID, 'lsx-client', true)); ?>" size="30" /> |
|
| 284 | 284 | <br /><br /> |
| 285 | - <label for="lsx-client"><?php esc_html_e( 'Enter the name of the project client', 'lsx' ); ?></label> |
|
| 285 | + <label for="lsx-client"><?php esc_html_e('Enter the name of the project client', 'lsx'); ?></label> |
|
| 286 | 286 | </p> |
| 287 | 287 | <?php } |
| 288 | 288 | |
| 289 | -function lsx_website_meta_box( $object, $box ) { ?> |
|
| 289 | +function lsx_website_meta_box($object, $box) { ?> |
|
| 290 | 290 | |
| 291 | - <?php wp_nonce_field( 'lsx_save_portfolio', '_lsx_website_nonce' ); ?> |
|
| 291 | + <?php wp_nonce_field('lsx_save_portfolio', '_lsx_website_nonce'); ?> |
|
| 292 | 292 | |
| 293 | 293 | <p> |
| 294 | - <input class="widefat" type="text" name="lsx-website" id="lsx-website" value="<?php echo esc_attr( get_post_meta( $object->ID, 'lsx-website', true ) ); ?>" size="30" /> |
|
| 294 | + <input class="widefat" type="text" name="lsx-website" id="lsx-website" value="<?php echo esc_attr(get_post_meta($object->ID, 'lsx-website', true)); ?>" size="30" /> |
|
| 295 | 295 | <br /><br /> |
| 296 | - <label for="lsx-website"><?php esc_html_e( 'Enter the URL of the project website', 'lsx' ); ?></label> |
|
| 296 | + <label for="lsx-website"><?php esc_html_e('Enter the URL of the project website', 'lsx'); ?></label> |
|
| 297 | 297 | </p> |
| 298 | 298 | <?php } |
| 299 | 299 | |
@@ -306,18 +306,18 @@ discard block |
||
| 306 | 306 | * @category portfolio |
| 307 | 307 | */ |
| 308 | 308 | |
| 309 | -function lsx_portfolio_sorter(){ ?> |
|
| 309 | +function lsx_portfolio_sorter() { ?> |
|
| 310 | 310 | <ul id="filterNav" class="clearfix"> |
| 311 | - <li class="allBtn"><a href="#" data-filter="*" class="selected"><?php esc_html_e( 'All', 'lsx' ); ?></a></li> |
|
| 311 | + <li class="allBtn"><a href="#" data-filter="*" class="selected"><?php esc_html_e('All', 'lsx'); ?></a></li> |
|
| 312 | 312 | <?php |
| 313 | 313 | $types = get_terms('jetpack-portfolio-type'); |
| 314 | 314 | |
| 315 | - if(is_array($types)){ |
|
| 315 | + if (is_array($types)) { |
|
| 316 | 316 | foreach ($types as $type) { |
| 317 | - $content = '<li><a href="#" data-filter=".'.$type->slug.'">'; |
|
| 317 | + $content = '<li><a href="#" data-filter=".' . $type->slug . '">'; |
|
| 318 | 318 | $content .= $type->name; |
| 319 | 319 | $content .= '</a></li>'; |
| 320 | - echo wp_kses_post( $content ); |
|
| 320 | + echo wp_kses_post($content); |
|
| 321 | 321 | echo "\n"; |
| 322 | 322 | } |
| 323 | 323 | }?> |
@@ -332,18 +332,18 @@ discard block |
||
| 332 | 332 | * @category portfolio |
| 333 | 333 | */ |
| 334 | 334 | |
| 335 | -function lsx_portfolio_naviagtion_labels($labels){ |
|
| 335 | +function lsx_portfolio_naviagtion_labels($labels) { |
|
| 336 | 336 | |
| 337 | - if(is_post_type_archive('jetpack-portfolio')){ |
|
| 337 | + if (is_post_type_archive('jetpack-portfolio')) { |
|
| 338 | 338 | $labels = array( |
| 339 | - 'next' => '<span class="meta-nav">←</span> '.esc_html__( 'Older', 'lsx' ), |
|
| 340 | - 'previous' => esc_html__( 'Newer', 'lsx' ).' <span class="meta-nav">→</span>', |
|
| 341 | - 'title' => esc_html__( 'Portfolio navigation', 'lsx' ) |
|
| 339 | + 'next' => '<span class="meta-nav">←</span> ' . esc_html__('Older', 'lsx'), |
|
| 340 | + 'previous' => esc_html__('Newer', 'lsx') . ' <span class="meta-nav">→</span>', |
|
| 341 | + 'title' => esc_html__('Portfolio navigation', 'lsx') |
|
| 342 | 342 | ); |
| 343 | 343 | } |
| 344 | 344 | return $labels; |
| 345 | 345 | } |
| 346 | -add_filter('lsx_post_navigation_labels','lsx_portfolio_naviagtion_labels',1,10); |
|
| 346 | +add_filter('lsx_post_navigation_labels', 'lsx_portfolio_naviagtion_labels', 1, 10); |
|
| 347 | 347 | |
| 348 | 348 | |
| 349 | 349 | /* |
@@ -357,11 +357,11 @@ discard block |
||
| 357 | 357 | * @subpackage jetpack |
| 358 | 358 | * @category related-posts |
| 359 | 359 | */ |
| 360 | -function lsx_remove_related_post_context(){ |
|
| 361 | - add_filter( 'jetpack_relatedposts_filter_post_context', '__return_empty_string' ); |
|
| 362 | - add_filter( 'rest_api_allowed_post_types', 'lsx_allowed_related_post_types' ); |
|
| 360 | +function lsx_remove_related_post_context() { |
|
| 361 | + add_filter('jetpack_relatedposts_filter_post_context', '__return_empty_string'); |
|
| 362 | + add_filter('rest_api_allowed_post_types', 'lsx_allowed_related_post_types'); |
|
| 363 | 363 | } |
| 364 | -add_action('init','lsx_remove_related_post_context',20); |
|
| 364 | +add_action('init', 'lsx_remove_related_post_context', 20); |
|
| 365 | 365 | |
| 366 | 366 | |
| 367 | 367 | /* |
@@ -378,13 +378,13 @@ discard block |
||
| 378 | 378 | $infinite_scroll_args = array( |
| 379 | 379 | 'container' => 'main', |
| 380 | 380 | 'type' => 'click', |
| 381 | - 'posts_per_page' => get_option('posts_per_page',10), |
|
| 381 | + 'posts_per_page' => get_option('posts_per_page', 10), |
|
| 382 | 382 | 'render' => 'lsx_infinite_scroll_render' |
| 383 | 383 | ); |
| 384 | 384 | |
| 385 | - add_theme_support( 'infinite-scroll', $infinite_scroll_args ); |
|
| 385 | + add_theme_support('infinite-scroll', $infinite_scroll_args); |
|
| 386 | 386 | } |
| 387 | -add_action( 'after_setup_theme', 'lsx_jetpack_infinite_scroll_after_setup' ); |
|
| 387 | +add_action('after_setup_theme', 'lsx_jetpack_infinite_scroll_after_setup'); |
|
| 388 | 388 | |
| 389 | 389 | /** |
| 390 | 390 | * Set the code to be rendered on for calling posts, |
@@ -397,13 +397,13 @@ discard block |
||
| 397 | 397 | function lsx_infinite_scroll_render() { |
| 398 | 398 | global $wp_query; |
| 399 | 399 | |
| 400 | - while(have_posts()){ |
|
| 400 | + while (have_posts()) { |
|
| 401 | 401 | the_post(); |
| 402 | 402 | |
| 403 | - if('jetpack-portfolio' == get_post_type()){ |
|
| 404 | - get_template_part( 'content', 'portfolio' ); |
|
| 405 | - }else{ |
|
| 406 | - get_template_part( 'content', get_post_type() ); |
|
| 403 | + if ('jetpack-portfolio' == get_post_type()) { |
|
| 404 | + get_template_part('content', 'portfolio'); |
|
| 405 | + } else { |
|
| 406 | + get_template_part('content', get_post_type()); |
|
| 407 | 407 | } |
| 408 | 408 | } |
| 409 | 409 | } |
@@ -415,8 +415,8 @@ discard block |
||
| 415 | 415 | * @subpackage jetpack |
| 416 | 416 | * @category related posts |
| 417 | 417 | */ |
| 418 | -function lsx_related_posts_headline( $headline ) { |
|
| 419 | - $headline = sprintf( '<h3 class="jp-relatedposts-headline"><em>%s</em></h3>', esc_html__( 'Related Posts', 'lsx' ) ); |
|
| 418 | +function lsx_related_posts_headline($headline) { |
|
| 419 | + $headline = sprintf('<h3 class="jp-relatedposts-headline"><em>%s</em></h3>', esc_html__('Related Posts', 'lsx')); |
|
| 420 | 420 | return $headline; |
| 421 | 421 | } |
| 422 | -add_filter( 'jetpack_relatedposts_filter_headline', 'lsx_related_posts_headline' ); |
|
| 422 | +add_filter('jetpack_relatedposts_filter_headline', 'lsx_related_posts_headline'); |
|
@@ -123,11 +123,11 @@ discard block |
||
| 123 | 123 | * @category portfolio |
| 124 | 124 | */ |
| 125 | 125 | function lsx_remove_single_related_posts() { |
| 126 | - if ( is_single() && class_exists( 'Jetpack_RelatedPosts' ) ) { |
|
| 127 | - $jprp = Jetpack_RelatedPosts::init(); |
|
| 128 | - $callback = array( $jprp, 'filter_add_target_to_dom' ); |
|
| 129 | - remove_filter( 'the_content', $callback, 40 ); |
|
| 130 | - } |
|
| 126 | + if ( is_single() && class_exists( 'Jetpack_RelatedPosts' ) ) { |
|
| 127 | + $jprp = Jetpack_RelatedPosts::init(); |
|
| 128 | + $callback = array( $jprp, 'filter_add_target_to_dom' ); |
|
| 129 | + remove_filter( 'the_content', $callback, 40 ); |
|
| 130 | + } |
|
| 131 | 131 | } |
| 132 | 132 | add_filter( 'wp', 'lsx_remove_single_related_posts', 20 ); |
| 133 | 133 | |
@@ -315,7 +315,7 @@ discard block |
||
| 315 | 315 | if(is_array($types)){ |
| 316 | 316 | foreach ($types as $type) { |
| 317 | 317 | $content = '<li><a href="#" data-filter=".'.$type->slug.'">'; |
| 318 | - $content .= $type->name; |
|
| 318 | + $content .= $type->name; |
|
| 319 | 319 | $content .= '</a></li>'; |
| 320 | 320 | echo wp_kses_post( $content ); |
| 321 | 321 | echo "\n"; |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | |
| 20 | 20 | function lsx_events_styles() { |
| 21 | - wp_enqueue_style( 'events', get_template_directory_uri() . '/css/the-events-calendar.css', array(), LSX_VERSION ); |
|
| 21 | + wp_enqueue_style( 'events', get_template_directory_uri() . '/css/the-events-calendar.css', array(), LSX_VERSION ); |
|
| 22 | 22 | } |
| 23 | 23 | add_action( 'wp_enqueue_scripts', 'lsx_events_styles' ); |
| 24 | 24 | |
@@ -18,9 +18,9 @@ discard block |
||
| 18 | 18 | */ |
| 19 | 19 | |
| 20 | 20 | function lsx_events_styles() { |
| 21 | - wp_enqueue_style( 'events', get_template_directory_uri() . '/css/the-events-calendar.css', array(), LSX_VERSION ); |
|
| 21 | + wp_enqueue_style('events', get_template_directory_uri() . '/css/the-events-calendar.css', array(), LSX_VERSION); |
|
| 22 | 22 | } |
| 23 | -add_action( 'wp_enqueue_scripts', 'lsx_events_styles' ); |
|
| 23 | +add_action('wp_enqueue_scripts', 'lsx_events_styles'); |
|
| 24 | 24 | |
| 25 | 25 | |
| 26 | 26 | /** |
@@ -32,41 +32,41 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | function lsx_tribe_breadcrumbs($output) { |
| 34 | 34 | global $wp_query; |
| 35 | - if( (isset($wp_query->tribe_is_event) && true === $wp_query->tribe_is_event) || (isset($wp_query->query_vars['post_type']) && !is_array($wp_query->query_vars['post_type']) && 'tribe_venue' === $wp_query->query_vars['post_type'])){ |
|
| 36 | - if(function_exists('woocommerce_breadcrumb')){ |
|
| 35 | + if ((isset($wp_query->tribe_is_event) && true === $wp_query->tribe_is_event) || (isset($wp_query->query_vars['post_type']) && ! is_array($wp_query->query_vars['post_type']) && 'tribe_venue' === $wp_query->query_vars['post_type'])) { |
|
| 36 | + if (function_exists('woocommerce_breadcrumb')) { |
|
| 37 | 37 | $closing_div = '</nav>'; |
| 38 | 38 | |
| 39 | - if( is_single()) { |
|
| 40 | - $output = str_replace('Page','<a href="'.get_post_type_archive_link( 'tribe_events' ).'">'.esc_html__('Events','lsx').'</a>',$output); |
|
| 41 | - if(isset($wp_query->query_vars['eventDisplay']) && 'all' === $wp_query->query_vars['eventDisplay']){ |
|
| 42 | - $output = str_replace($closing_div,get_the_title($wp_query->query_vars['post_parent']).$closing_div,$output); |
|
| 43 | - }else{ |
|
| 39 | + if (is_single()) { |
|
| 40 | + $output = str_replace('Page', '<a href="' . get_post_type_archive_link('tribe_events') . '">' . esc_html__('Events', 'lsx') . '</a>', $output); |
|
| 41 | + if (isset($wp_query->query_vars['eventDisplay']) && 'all' === $wp_query->query_vars['eventDisplay']) { |
|
| 42 | + $output = str_replace($closing_div, get_the_title($wp_query->query_vars['post_parent']) . $closing_div, $output); |
|
| 43 | + } else { |
|
| 44 | 44 | $single_event = get_queried_object(); |
| 45 | - $output = str_replace($closing_div,apply_filters('the_title',$single_event->post_title).$closing_div,$output); |
|
| 45 | + $output = str_replace($closing_div, apply_filters('the_title', $single_event->post_title) . $closing_div, $output); |
|
| 46 | 46 | } |
| 47 | - }elseif( is_tax()) { |
|
| 47 | + }elseif (is_tax()) { |
|
| 48 | 48 | $tax_event = get_queried_object(); |
| 49 | - $output = str_replace('Page','<a href="'.get_post_type_archive_link( 'tribe_events' ).'">'.esc_html__('Events','lsx').'</a>',$output); |
|
| 50 | - $output = str_replace($closing_div,' / '.apply_filters('the_title',$tax_event->name).$closing_div,$output); |
|
| 51 | - }else{ |
|
| 52 | - $output = str_replace('Page',esc_html__('Events','lsx'),$output); |
|
| 49 | + $output = str_replace('Page', '<a href="' . get_post_type_archive_link('tribe_events') . '">' . esc_html__('Events', 'lsx') . '</a>', $output); |
|
| 50 | + $output = str_replace($closing_div, ' / ' . apply_filters('the_title', $tax_event->name) . $closing_div, $output); |
|
| 51 | + } else { |
|
| 52 | + $output = str_replace('Page', esc_html__('Events', 'lsx'), $output); |
|
| 53 | 53 | } |
| 54 | - }elseif(function_exists('yoast_breadcrumb')){ |
|
| 54 | + }elseif (function_exists('yoast_breadcrumb')) { |
|
| 55 | 55 | $closing_div = '</div>'; |
| 56 | - $last_breadcrumb = '<span class="breadcrumb_last">'.esc_html__('Events','lsx').'</span>'; |
|
| 56 | + $last_breadcrumb = '<span class="breadcrumb_last">' . esc_html__('Events', 'lsx') . '</span>'; |
|
| 57 | 57 | |
| 58 | - if( is_single()) { |
|
| 58 | + if (is_single()) { |
|
| 59 | 59 | $single_event = get_queried_object(); |
| 60 | - $output = str_replace($closing_div,'<a href="'.get_post_type_archive_link( 'tribe_events' ).'">'.esc_html__('Events','lsx').'</a> / '.apply_filters('the_title',$single_event->post_title),$output); |
|
| 61 | - }elseif( is_tax()) { |
|
| 60 | + $output = str_replace($closing_div, '<a href="' . get_post_type_archive_link('tribe_events') . '">' . esc_html__('Events', 'lsx') . '</a> / ' . apply_filters('the_title', $single_event->post_title), $output); |
|
| 61 | + }elseif (is_tax()) { |
|
| 62 | 62 | $tax_event = get_queried_object(); |
| 63 | - $output = str_replace($last_breadcrumb,'<a href="'.get_post_type_archive_link( 'tribe_events' ).'">'.esc_html__('Events','lsx').'</a> / '.apply_filters('the_title',$tax_event->name),$output); |
|
| 63 | + $output = str_replace($last_breadcrumb, '<a href="' . get_post_type_archive_link('tribe_events') . '">' . esc_html__('Events', 'lsx') . '</a> / ' . apply_filters('the_title', $tax_event->name), $output); |
|
| 64 | 64 | |
| 65 | - }else{ |
|
| 66 | - $output = str_replace('Page',esc_html__('Events','lsx'),$output); |
|
| 65 | + } else { |
|
| 66 | + $output = str_replace('Page', esc_html__('Events', 'lsx'), $output); |
|
| 67 | 67 | } |
| 68 | 68 | } |
| 69 | 69 | } |
| 70 | 70 | return $output; |
| 71 | 71 | } |
| 72 | -add_filter( 'lsx_breadcrumbs', 'lsx_tribe_breadcrumbs',1,10 ); |
|
| 73 | 72 | \ No newline at end of file |
| 73 | +add_filter('lsx_breadcrumbs', 'lsx_tribe_breadcrumbs', 1, 10); |
|
| 74 | 74 | \ No newline at end of file |
@@ -40,29 +40,29 @@ |
||
| 40 | 40 | $output = str_replace('Page','<a href="'.get_post_type_archive_link( 'tribe_events' ).'">'.esc_html__('Events','lsx').'</a>',$output); |
| 41 | 41 | if(isset($wp_query->query_vars['eventDisplay']) && 'all' === $wp_query->query_vars['eventDisplay']){ |
| 42 | 42 | $output = str_replace($closing_div,get_the_title($wp_query->query_vars['post_parent']).$closing_div,$output); |
| 43 | - }else{ |
|
| 43 | + } else{ |
|
| 44 | 44 | $single_event = get_queried_object(); |
| 45 | 45 | $output = str_replace($closing_div,apply_filters('the_title',$single_event->post_title).$closing_div,$output); |
| 46 | 46 | } |
| 47 | - }elseif( is_tax()) { |
|
| 47 | + } elseif( is_tax()) { |
|
| 48 | 48 | $tax_event = get_queried_object(); |
| 49 | 49 | $output = str_replace('Page','<a href="'.get_post_type_archive_link( 'tribe_events' ).'">'.esc_html__('Events','lsx').'</a>',$output); |
| 50 | 50 | $output = str_replace($closing_div,' / '.apply_filters('the_title',$tax_event->name).$closing_div,$output); |
| 51 | - }else{ |
|
| 51 | + } else{ |
|
| 52 | 52 | $output = str_replace('Page',esc_html__('Events','lsx'),$output); |
| 53 | 53 | } |
| 54 | - }elseif(function_exists('yoast_breadcrumb')){ |
|
| 54 | + } elseif(function_exists('yoast_breadcrumb')){ |
|
| 55 | 55 | $closing_div = '</div>'; |
| 56 | 56 | $last_breadcrumb = '<span class="breadcrumb_last">'.esc_html__('Events','lsx').'</span>'; |
| 57 | 57 | |
| 58 | 58 | if( is_single()) { |
| 59 | 59 | $single_event = get_queried_object(); |
| 60 | 60 | $output = str_replace($closing_div,'<a href="'.get_post_type_archive_link( 'tribe_events' ).'">'.esc_html__('Events','lsx').'</a> / '.apply_filters('the_title',$single_event->post_title),$output); |
| 61 | - }elseif( is_tax()) { |
|
| 61 | + } elseif( is_tax()) { |
|
| 62 | 62 | $tax_event = get_queried_object(); |
| 63 | 63 | $output = str_replace($last_breadcrumb,'<a href="'.get_post_type_archive_link( 'tribe_events' ).'">'.esc_html__('Events','lsx').'</a> / '.apply_filters('the_title',$tax_event->name),$output); |
| 64 | 64 | |
| 65 | - }else{ |
|
| 65 | + } else{ |
|
| 66 | 66 | $output = str_replace('Page',esc_html__('Events','lsx'),$output); |
| 67 | 67 | } |
| 68 | 68 | } |
@@ -14,6 +14,6 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | 16 | function lsx_wp_job_manager_styles() { |
| 17 | - wp_enqueue_style( 'wp_job_manager', get_template_directory_uri() . '/css/wp-job-manager.css', array(), LSX_VERSION ); |
|
| 17 | + wp_enqueue_style( 'wp_job_manager', get_template_directory_uri() . '/css/wp-job-manager.css', array(), LSX_VERSION ); |
|
| 18 | 18 | } |
| 19 | 19 | add_action( 'wp_enqueue_scripts', 'lsx_wp_job_manager_styles' ); |
| 20 | 20 | \ No newline at end of file |
@@ -14,6 +14,6 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | 16 | function lsx_wp_job_manager_styles() { |
| 17 | - wp_enqueue_style( 'wp_job_manager', get_template_directory_uri() . '/css/wp-job-manager.css', array(), LSX_VERSION ); |
|
| 17 | + wp_enqueue_style('wp_job_manager', get_template_directory_uri() . '/css/wp-job-manager.css', array(), LSX_VERSION); |
|
| 18 | 18 | } |
| 19 | -add_action( 'wp_enqueue_scripts', 'lsx_wp_job_manager_styles' ); |
|
| 20 | 19 | \ No newline at end of file |
| 20 | +add_action('wp_enqueue_scripts', 'lsx_wp_job_manager_styles'); |
|
| 21 | 21 | \ 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(), LSX_VERSION, 'all' ); |
|
| 73 | - wp_enqueue_style( 'woocommerce-smallscreen', get_template_directory_uri() . '/css/woocommerce-smallscreen.css', array( 'woocommerce-layout' ), LSX_VERSION, 'only screen and (max-width: 767px)' ); |
|
| 74 | - wp_enqueue_style( 'woocommerce-general', get_template_directory_uri() . '/css/woocommerce.css', array(), LSX_VERSION, 'all' ); |
|
| 72 | + wp_enqueue_style( 'woocommerce-layout', get_template_directory_uri() . '/css/woocommerce-layout.css', array(), LSX_VERSION, 'all' ); |
|
| 73 | + wp_enqueue_style( 'woocommerce-smallscreen', get_template_directory_uri() . '/css/woocommerce-smallscreen.css', array( 'woocommerce-layout' ), LSX_VERSION, 'only screen and (max-width: 767px)' ); |
|
| 74 | + wp_enqueue_style( 'woocommerce-general', get_template_directory_uri() . '/css/woocommerce.css', array(), LSX_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,10 +25,10 @@ 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 | - <div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>"> |
|
| 31 | + <div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>"> |
|
| 32 | 32 | |
| 33 | 33 | <?php lsx_content_before(); ?> |
| 34 | 34 | |
@@ -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(), LSX_VERSION, 'all' ); |
|
| 73 | - wp_enqueue_style( 'woocommerce-smallscreen', get_template_directory_uri() . '/css/woocommerce-smallscreen.css', array( 'woocommerce-layout' ), LSX_VERSION, 'only screen and (max-width: 767px)' ); |
|
| 74 | - wp_enqueue_style( 'woocommerce-general', get_template_directory_uri() . '/css/woocommerce.css', array(), LSX_VERSION, 'all' ); |
|
| 72 | + wp_enqueue_style('woocommerce-layout', get_template_directory_uri() . '/css/woocommerce-layout.css', array(), LSX_VERSION, 'all'); |
|
| 73 | + wp_enqueue_style('woocommerce-smallscreen', get_template_directory_uri() . '/css/woocommerce-smallscreen.css', array('woocommerce-layout'), LSX_VERSION, 'only screen and (max-width: 767px)'); |
|
| 74 | + wp_enqueue_style('woocommerce-general', get_template_directory_uri() . '/css/woocommerce.css', array(), LSX_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 |
@@ -1,12 +1,12 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly |
|
| 2 | +if ( ! defined('ABSPATH')) return; // Exit if accessed directly |
|
| 3 | 3 | |
| 4 | 4 | /** |
| 5 | 5 | * Customize Swatch Control Class |
| 6 | 6 | * |
| 7 | 7 | * @since 1.0.0 |
| 8 | 8 | */ |
| 9 | -if( !class_exists( 'WP_Customize_Control' ) ){ |
|
| 9 | +if ( ! class_exists('WP_Customize_Control')) { |
|
| 10 | 10 | return; |
| 11 | 11 | } |
| 12 | 12 | class LSX_Customize_Layout_Control extends WP_Customize_Control { |
@@ -38,9 +38,9 @@ discard block |
||
| 38 | 38 | * @param string $id |
| 39 | 39 | * @param array $args |
| 40 | 40 | */ |
| 41 | - public function __construct( $manager, $id, $args = array() ) { |
|
| 42 | - parent::__construct( $manager, $id, $args ); |
|
| 43 | - if( !empty( $args['choices'] ) ){ |
|
| 41 | + public function __construct($manager, $id, $args = array()) { |
|
| 42 | + parent::__construct($manager, $id, $args); |
|
| 43 | + if ( ! empty($args['choices'])) { |
|
| 44 | 44 | $this->layouts = $args['choices']; |
| 45 | 45 | } |
| 46 | 46 | } |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | */ |
| 53 | 53 | public function enqueue() { |
| 54 | 54 | // |
| 55 | - wp_enqueue_script( 'lsx-layout-control', get_template_directory_uri() .'/js/customizer-layout.js', array('jquery'), LSX_VERSION, true ); |
|
| 55 | + wp_enqueue_script('lsx-layout-control', get_template_directory_uri() . '/js/customizer-layout.js', array('jquery'), LSX_VERSION, true); |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | /** |
@@ -62,30 +62,30 @@ discard block |
||
| 62 | 62 | */ |
| 63 | 63 | public function render_content() { |
| 64 | 64 | |
| 65 | - $post_id = 'customize-control-' . str_replace( '[', '-', str_replace( ']', '', $this->id ) ); |
|
| 65 | + $post_id = 'customize-control-' . str_replace('[', '-', str_replace(']', '', $this->id)); |
|
| 66 | 66 | $class = 'customize-control customize-control-' . $this->type; |
| 67 | 67 | $value = $this->value(); |
| 68 | 68 | |
| 69 | 69 | ?> |
| 70 | 70 | <label> |
| 71 | - <?php if ( ! empty( $this->label ) ) { ?> |
|
| 72 | - <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span> |
|
| 71 | + <?php if ( ! empty($this->label)) { ?> |
|
| 72 | + <span class="customize-control-title"><?php echo esc_html($this->label); ?></span> |
|
| 73 | 73 | <?php } |
| 74 | - if ( ! empty( $this->description ) ) { ?> |
|
| 75 | - <span class="description customize-control-description"><?php echo esc_html( $this->description ); ?></span> |
|
| 74 | + if ( ! empty($this->description)) { ?> |
|
| 75 | + <span class="description customize-control-description"><?php echo esc_html($this->description); ?></span> |
|
| 76 | 76 | <?php } ?> |
| 77 | 77 | <div class="layouts-selector"> |
| 78 | 78 | <?php |
| 79 | - foreach( $this->layouts as $layout ){ |
|
| 79 | + foreach ($this->layouts as $layout) { |
|
| 80 | 80 | $sel = 'border: 1px solid transparent;'; |
| 81 | - if( $value == $layout ){ |
|
| 81 | + if ($value == $layout) { |
|
| 82 | 82 | $sel = 'border: 1px solid rgb(43, 166, 203);'; |
| 83 | 83 | } |
| 84 | - echo '<img class="layout-button" style="padding:2px;'. esc_attr( $sel ) .'" src="' . esc_attr( get_template_directory_uri() ) .'/img/' . esc_attr( $layout ) . '.png" data-option="' . esc_attr( $layout ) . '">'; |
|
| 84 | + echo '<img class="layout-button" style="padding:2px;' . esc_attr($sel) . '" src="' . esc_attr(get_template_directory_uri()) . '/img/' . esc_attr($layout) . '.png" data-option="' . esc_attr($layout) . '">'; |
|
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | ?> |
| 88 | - <input <?php $this->link(); ?> class="selected-layout <?php echo esc_attr( $class ); ?>" id="<?php echo esc_attr( $post_id ); ?>" type="hidden" value="<?php echo esc_attr( $value ); ?>" <?php $this->input_attrs(); ?>> |
|
| 88 | + <input <?php $this->link(); ?> class="selected-layout <?php echo esc_attr($class); ?>" id="<?php echo esc_attr($post_id); ?>" type="hidden" value="<?php echo esc_attr($value); ?>" <?php $this->input_attrs(); ?>> |
|
| 89 | 89 | </div> |
| 90 | 90 | </label> |
| 91 | 91 | <?php |
@@ -1,5 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly |
|
| 2 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 3 | + return; |
|
| 4 | +} |
|
| 5 | +// Exit if accessed directly |
|
| 3 | 6 | |
| 4 | 7 | /** |
| 5 | 8 | * Customize Swatch Control Class |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly |
|
| 2 | +if ( ! defined('ABSPATH')) return; // Exit if accessed directly |
|
| 3 | 3 | |
| 4 | 4 | /** |
| 5 | 5 | * Enqueue scripts and styles. |
@@ -14,8 +14,8 @@ discard block |
||
| 14 | 14 | |
| 15 | 15 | wp_enqueue_style('lsx_main', get_template_directory_uri() . '/css/app.css', array(), LSX_VERSION); |
| 16 | 16 | |
| 17 | - if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { |
|
| 18 | - wp_enqueue_script( 'comment-reply' ); |
|
| 17 | + if (is_singular() && comments_open() && get_option('thread_comments')) { |
|
| 18 | + wp_enqueue_script('comment-reply'); |
|
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | wp_enqueue_script('bootstrap', get_template_directory_uri() . '/js/vendor/bootstrap.min.js', array('jquery'), LSX_VERSION, false); |
@@ -26,38 +26,38 @@ discard block |
||
| 26 | 26 | wp_enqueue_script('picturefill', get_template_directory_uri() . '/js/vendor/picturefill.min.js', array(), LSX_VERSION, false); |
| 27 | 27 | |
| 28 | 28 | wp_enqueue_script('masonry'); |
| 29 | - wp_enqueue_script('imagesLoaded', get_template_directory_uri().'/js/vendor/imagesloaded.pkgd.min.js', array('jquery','masonry'), LSX_VERSION); |
|
| 30 | - if(defined('WP_DEBUG') && true === WP_DEBUG){ |
|
| 29 | + wp_enqueue_script('imagesLoaded', get_template_directory_uri() . '/js/vendor/imagesloaded.pkgd.min.js', array('jquery', 'masonry'), LSX_VERSION); |
|
| 30 | + if (defined('WP_DEBUG') && true === WP_DEBUG) { |
|
| 31 | 31 | wp_enqueue_script('lsx_script', get_template_directory_uri() . '/js/lsx-script.js', array('masonry'), LSX_VERSION, false); |
| 32 | - }else{ |
|
| 32 | + } else { |
|
| 33 | 33 | wp_enqueue_script('lsx_script', get_template_directory_uri() . '/js/lsx-script.min.js', array('masonry'), LSX_VERSION, false); |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | //Set some parameters that we can use in the JS |
| 37 | 37 | $is_portfolio = false; |
| 38 | - if(is_post_type_archive('jetpack-portfolio') || is_tax('jetpack-portfolio-type') || is_tax('jetpack-portfolio-tag') || is_page_template('page-templates/template-portfolio.php')){ |
|
| 38 | + if (is_post_type_archive('jetpack-portfolio') || is_tax('jetpack-portfolio-type') || is_tax('jetpack-portfolio-tag') || is_page_template('page-templates/template-portfolio.php')) { |
|
| 39 | 39 | $is_portfolio = true; |
| 40 | 40 | } |
| 41 | 41 | $param_array = array( |
| 42 | 42 | 'is_portfolio' => $is_portfolio |
| 43 | 43 | ); |
| 44 | 44 | //Set the columns for the archives |
| 45 | - $param_array['columns'] = apply_filters('lsx_archive_column_number',3); |
|
| 46 | - wp_localize_script( 'lsx_script', 'lsx_params', $param_array ); |
|
| 45 | + $param_array['columns'] = apply_filters('lsx_archive_column_number', 3); |
|
| 46 | + wp_localize_script('lsx_script', 'lsx_params', $param_array); |
|
| 47 | 47 | |
| 48 | 48 | |
| 49 | - wp_enqueue_style( 'fontawesome', get_template_directory_uri() . '/css/font-awesome.min.css', array(), LSX_VERSION ); |
|
| 49 | + wp_enqueue_style('fontawesome', get_template_directory_uri() . '/css/font-awesome.min.css', array(), LSX_VERSION); |
|
| 50 | 50 | |
| 51 | 51 | |
| 52 | - if(is_child_theme() && file_exists(get_stylesheet_directory() . '/custom.css')) { |
|
| 53 | - wp_enqueue_style( 'child-css', get_stylesheet_directory_uri() . '/custom.css', array(), LSX_VERSION ); |
|
| 52 | + if (is_child_theme() && file_exists(get_stylesheet_directory() . '/custom.css')) { |
|
| 53 | + wp_enqueue_style('child-css', get_stylesheet_directory_uri() . '/custom.css', array(), LSX_VERSION); |
|
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | wp_enqueue_style('medium-break', get_template_directory_uri() . '/css/medium-nav-break.css', array(), LSX_VERSION); |
| 57 | 57 | |
| 58 | 58 | |
| 59 | - $font = get_theme_mod('lsx_font','raleway_open_sans'); |
|
| 60 | - switch($font){ |
|
| 59 | + $font = get_theme_mod('lsx_font', 'raleway_open_sans'); |
|
| 60 | + switch ($font) { |
|
| 61 | 61 | case 'raleway_open_sans': |
| 62 | 62 | $header_font_location = 'Raleway'; |
| 63 | 63 | $body_font_location = 'Open+Sans'; |
@@ -86,18 +86,18 @@ discard block |
||
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | $http_var = 'http'; |
| 89 | - if(is_ssl()){ $http_var .= 's'; } |
|
| 89 | + if (is_ssl()) { $http_var .= 's'; } |
|
| 90 | 90 | |
| 91 | 91 | //Call the Google Fonts and then Enque them. |
| 92 | - wp_register_style('lsx-header-font', $http_var.'://fonts.googleapis.com/css?family='.$header_font_location); |
|
| 93 | - wp_register_style('lsx-body-font', $http_var.'://fonts.googleapis.com/css?family='.$body_font_location); |
|
| 94 | - wp_enqueue_style( 'lsx-header-font' ); |
|
| 95 | - wp_enqueue_style( 'lsx-body-font' ); |
|
| 92 | + wp_register_style('lsx-header-font', $http_var . '://fonts.googleapis.com/css?family=' . $header_font_location); |
|
| 93 | + wp_register_style('lsx-body-font', $http_var . '://fonts.googleapis.com/css?family=' . $body_font_location); |
|
| 94 | + wp_enqueue_style('lsx-header-font'); |
|
| 95 | + wp_enqueue_style('lsx-body-font'); |
|
| 96 | 96 | |
| 97 | - wp_enqueue_style('lsx_font_scheme', esc_url( get_template_directory_uri() . '/css/'.$font.'.css' ), array(), LSX_VERSION); |
|
| 97 | + wp_enqueue_style('lsx_font_scheme', esc_url(get_template_directory_uri() . '/css/' . $font . '.css'), array(), LSX_VERSION); |
|
| 98 | 98 | |
| 99 | 99 | } |
| 100 | -add_action( 'wp_enqueue_scripts', 'lsx_scripts' ); |
|
| 100 | +add_action('wp_enqueue_scripts', 'lsx_scripts'); |
|
| 101 | 101 | |
| 102 | 102 | /** |
| 103 | 103 | * Defer JavaScript |
@@ -105,14 +105,14 @@ discard block |
||
| 105 | 105 | * @package lsx |
| 106 | 106 | * @subpackage scripts |
| 107 | 107 | */ |
| 108 | -function lsx_scripts_defer_parsing( $url ) { |
|
| 109 | - if ( ! ( is_admin() ) ) { |
|
| 110 | - if ( FALSE === strpos( $url, '.js' ) ) return $url; |
|
| 111 | - if ( strpos( $url, 'jquery.js' ) ) return $url; |
|
| 112 | - if ( strpos( $url, ' defer ' ) ) return $url; |
|
| 108 | +function lsx_scripts_defer_parsing($url) { |
|
| 109 | + if ( ! (is_admin())) { |
|
| 110 | + if (FALSE === strpos($url, '.js')) return $url; |
|
| 111 | + if (strpos($url, 'jquery.js')) return $url; |
|
| 112 | + if (strpos($url, ' defer ')) return $url; |
|
| 113 | 113 | return "$url' defer onload='"; |
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | return $url; |
| 117 | 117 | } |
| 118 | -add_filter( 'clean_url', 'lsx_scripts_defer_parsing', 11, 1 ); |
|
| 118 | +add_filter('clean_url', 'lsx_scripts_defer_parsing', 11, 1); |
|
@@ -1,5 +1,8 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly |
|
| 2 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 3 | + return; |
|
| 4 | +} |
|
| 5 | +// Exit if accessed directly |
|
| 3 | 6 | |
| 4 | 7 | /** |
| 5 | 8 | * Enqueue scripts and styles. |
@@ -29,7 +32,7 @@ discard block |
||
| 29 | 32 | wp_enqueue_script('imagesLoaded', get_template_directory_uri().'/js/vendor/imagesloaded.pkgd.min.js', array('jquery','masonry'), LSX_VERSION); |
| 30 | 33 | if(defined('WP_DEBUG') && true === WP_DEBUG){ |
| 31 | 34 | wp_enqueue_script('lsx_script', get_template_directory_uri() . '/js/lsx-script.js', array('masonry'), LSX_VERSION, false); |
| 32 | - }else{ |
|
| 35 | + } else{ |
|
| 33 | 36 | wp_enqueue_script('lsx_script', get_template_directory_uri() . '/js/lsx-script.min.js', array('masonry'), LSX_VERSION, false); |
| 34 | 37 | } |
| 35 | 38 | |
@@ -107,9 +110,15 @@ discard block |
||
| 107 | 110 | */ |
| 108 | 111 | function lsx_scripts_defer_parsing( $url ) { |
| 109 | 112 | if ( ! ( is_admin() ) ) { |
| 110 | - if ( FALSE === strpos( $url, '.js' ) ) return $url; |
|
| 111 | - if ( strpos( $url, 'jquery.js' ) ) return $url; |
|
| 112 | - if ( strpos( $url, ' defer ' ) ) return $url; |
|
| 113 | + if ( FALSE === strpos( $url, '.js' ) ) { |
|
| 114 | + return $url; |
|
| 115 | + } |
|
| 116 | + if ( strpos( $url, 'jquery.js' ) ) { |
|
| 117 | + return $url; |
|
| 118 | + } |
|
| 119 | + if ( strpos( $url, ' defer ' ) ) { |
|
| 120 | + return $url; |
|
| 121 | + } |
|
| 113 | 122 | return "$url' defer onload='"; |
| 114 | 123 | } |
| 115 | 124 | |
@@ -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="'. esc_html__( '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="' . esc_html__('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">'. esc_html__( 'Name', 'lsx' ) .'</label> ' . |
|
| 84 | - ( $req ? '<span class="required">*</span>' : '' ) . |
|
| 85 | - '<input class="form-control" placeholder="'. esc_html__( '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">' . esc_html__('Name', 'lsx') . '</label> ' . |
|
| 84 | + ($req ? '<span class="required">*</span>' : '') . |
|
| 85 | + '<input class="form-control" placeholder="' . esc_html__('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">'. esc_html__( 'Email', 'lsx' ) .'</label> ' . |
|
| 88 | - ( $req ? '<span class="required">*</span>' : '' ) . |
|
| 89 | - '<input class="form-control" placeholder="'. esc_html__( '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">' . esc_html__('Email', 'lsx') . '</label> ' . |
|
| 88 | + ($req ? '<span class="required">*</span>' : '') . |
|
| 89 | + '<input class="form-control" placeholder="' . esc_html__('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">'. esc_html__( 'Website', 'lsx' ) .'</label>' . |
|
| 92 | - '<input class="form-control" placeholder="'. esc_html__( '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">' . esc_html__('Website', 'lsx') . '</label>' . |
|
| 92 | + '<input class="form-control" placeholder="' . esc_html__('Website', 'lsx') . '" id="url" name="url" type="text" value="' . esc_attr($commenter['comment_author_url']) . '" size="30"></p>' |
|
| 93 | 93 | ) |
| 94 | 94 | ); |
| 95 | 95 | ?> |
@@ -16,15 +16,15 @@ |
||
| 16 | 16 | <?php |
| 17 | 17 | the_content(); |
| 18 | 18 | |
| 19 | - wp_link_pages( array( |
|
| 19 | + wp_link_pages(array( |
|
| 20 | 20 | 'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">', |
| 21 | 21 | 'after' => '</div></div>', |
| 22 | 22 | 'link_before' => '<span>', |
| 23 | 23 | 'link_after' => '</span>' |
| 24 | - ) ); |
|
| 24 | + )); |
|
| 25 | 25 | ?> |
| 26 | 26 | </div><!-- .entry-content --> |
| 27 | - <?php edit_post_link( esc_html__( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?> |
|
| 27 | + <?php edit_post_link(esc_html__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?> |
|
| 28 | 28 | |
| 29 | 29 | <?php lsx_entry_bottom(); ?> |
| 30 | 30 | |