Completed
Push — master ( bef6ca...7e2933 )
by Fernando
03:32
created
content-portfolio-single.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -18,17 +18,17 @@  discard block
 block discarded – undo
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
 block discarded – undo
36 36
 				<?php lsx_post_nav(); ?>	
37 37
 				
38 38
 				<?php  
39
-					if ( function_exists( 'sharing_display' ) ) {
40
-						sharing_display( '', true );
39
+					if (function_exists('sharing_display')) {
40
+						sharing_display('', true);
41 41
 					}
42 42
 					
43
-					if ( class_exists( 'Jetpack_Likes' ) ) {
43
+					if (class_exists('Jetpack_Likes')) {
44 44
 						$custom_likes = new Jetpack_Likes;
45
-						echo wp_kses_post( $custom_likes->post_likes( '' ) );
45
+						echo wp_kses_post($custom_likes->post_likes(''));
46 46
 					}
47 47
 				?>
48 48
 				
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 		</div>
54 54
 	</div>
55 55
 		
56
-	<?php edit_post_link( esc_html__( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?>
56
+	<?php edit_post_link(esc_html__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?>
57 57
 	
58 58
 	<?php lsx_entry_bottom(); ?>
59 59
 
Please login to merge, or discard this patch.
content-post.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -12,20 +12,20 @@  discard block
 block discarded – undo
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,33 +39,33 @@  discard block
 block discarded – undo
39 39
 
40 40
 	<div class="entry-content">
41 41
 		<?php
42
-		if ( ! is_singular() ) {
42
+		if ( ! is_singular()) {
43 43
 			the_excerpt();
44 44
 		} else {
45 45
 			the_content();
46 46
 
47
-			wp_link_pages( array(
47
+			wp_link_pages(array(
48 48
 				'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
49 49
 				'after' => '</div></div>',
50 50
 				'link_before' => '<span>',
51 51
 				'link_after' => '</span>'
52
-			) );
52
+			));
53 53
 		} ?>
54 54
 	</div><!-- .entry-content -->
55 55
 
56 56
 	<footer class="footer-meta">
57
-		<?php if ( has_tag() || ( function_exists( 'sharing_display' ) || class_exists( 'Jetpack_Likes' ) ) ) : ?>
57
+		<?php if (has_tag() || (function_exists('sharing_display') || class_exists('Jetpack_Likes'))) : ?>
58 58
 			<div class="post-tags-wrapper">
59 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
 			</div>
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
 
74 74
 		<?php
75 75
 			// If comments are open or we have at least one comment, load up the comment template
76
-			if ( comments_open() || '0' != get_comments_number() ) : ?>
77
-				<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>
76
+			if (comments_open() || '0' != get_comments_number()) : ?>
77
+				<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>
78 78
 
79 79
 				<div class="collapse" id="comments-collapse">
80 80
 					<?php 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 		<?php endif; ?>
85 85
 	</footer><!-- .footer-meta -->
86 86
 	
87
-	<?php edit_post_link( esc_html__( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?>
87
+	<?php edit_post_link(esc_html__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?>
88 88
 
89 89
 	<?php lsx_entry_bottom(); ?>
90 90
 
Please login to merge, or discard this patch.
inc/welcome.php 2 patches
Spacing   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
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
-if ( ! function_exists( 'lsx_activation_admin_notice' ) ) :
5
+if ( ! function_exists('lsx_activation_admin_notice')) :
6 6
 	/**
7 7
 	 * Adds an admin notice upon successful activation.
8 8
 	 *
@@ -12,15 +12,15 @@  discard block
 block discarded – undo
12 12
 	function lsx_activation_admin_notice() {
13 13
 		global $pagenow;
14 14
 
15
-		if ( is_admin() && 'themes.php' == $pagenow && isset( $_GET['activated'] ) ) {
16
-			add_action( 'admin_notices', 'lsx_welcome_admin_notice', 99 );
15
+		if (is_admin() && 'themes.php' == $pagenow && isset($_GET['activated'])) {
16
+			add_action('admin_notices', 'lsx_welcome_admin_notice', 99);
17 17
 		}
18 18
 	}
19 19
 endif; // lsx_activation_admin_notice
20
-add_action( 'load-themes.php', 'lsx_activation_admin_notice' );
20
+add_action('load-themes.php', 'lsx_activation_admin_notice');
21 21
 
22 22
 
23
-if ( ! function_exists( 'lsx_welcome_admin_notice' ) ) :
23
+if ( ! function_exists('lsx_welcome_admin_notice')) :
24 24
 	/**
25 25
 	 * Display an admin notice linking to the welcome screen.
26 26
 	 *
@@ -30,15 +30,15 @@  discard block
 block discarded – undo
30 30
 	function lsx_welcome_admin_notice() {
31 31
 		?>
32 32
 			<div class="updated notice is-dismissible">
33
-				<p><?php echo sprintf( esc_html__( 'Thanks for choosing LSX! You can read hints and tips on how get the most out of your new theme on the %1$swelcome screen%2$s.', 'lsx' ), '<a href="' . esc_url( admin_url( 'themes.php?page=lsx-welcome' ) ) . '">', '</a>' ); ?></p>
34
-				<p><a href="<?php echo esc_url( admin_url( 'themes.php?page=lsx-welcome' ) ); ?>" class="button" style="text-decoration: none;"><?php esc_attr_e( 'Get started with LSX', 'lsx' ); ?></a></p>
33
+				<p><?php echo sprintf(esc_html__('Thanks for choosing LSX! You can read hints and tips on how get the most out of your new theme on the %1$swelcome screen%2$s.', 'lsx'), '<a href="' . esc_url(admin_url('themes.php?page=lsx-welcome')) . '">', '</a>'); ?></p>
34
+				<p><a href="<?php echo esc_url(admin_url('themes.php?page=lsx-welcome')); ?>" class="button" style="text-decoration: none;"><?php esc_attr_e('Get started with LSX', 'lsx'); ?></a></p>
35 35
 			</div>
36 36
 		<?php
37 37
 	}
38 38
 endif; // lsx_welcome_admin_notice
39 39
 
40 40
 
41
-if ( ! function_exists( 'lsx_welcome_style' ) ) :
41
+if ( ! function_exists('lsx_welcome_style')) :
42 42
 	/**
43 43
 	 * Load welcome screen css.
44 44
 	 *
@@ -46,16 +46,16 @@  discard block
 block discarded – undo
46 46
 	 * @since 1.8.0
47 47
 	 * @package lsx
48 48
 	 */
49
-	function lsx_welcome_style( $hook_suffix ) {
50
-		if ( 'appearance_page_lsx-welcome' == $hook_suffix ) {
51
-			wp_enqueue_style( 'lsx-welcome-screen', get_template_directory_uri() . '/css/admin/welcome-screen/welcome.css', array(), LSX_VERSION );
49
+	function lsx_welcome_style($hook_suffix) {
50
+		if ('appearance_page_lsx-welcome' == $hook_suffix) {
51
+			wp_enqueue_style('lsx-welcome-screen', get_template_directory_uri() . '/css/admin/welcome-screen/welcome.css', array(), LSX_VERSION);
52 52
 		}
53 53
 	}
54 54
 endif; // lsx_welcome_style
55
-add_action( 'admin_enqueue_scripts', 'lsx_welcome_style' );
55
+add_action('admin_enqueue_scripts', 'lsx_welcome_style');
56 56
 
57 57
 
58
-if ( ! function_exists( 'lsx_welcome_register_menu' ) ) :
58
+if ( ! function_exists('lsx_welcome_register_menu')) :
59 59
 	/**
60 60
 	 * Creates the dashboard page.
61 61
 	 *
@@ -63,13 +63,13 @@  discard block
 block discarded – undo
63 63
 	 * @package lsx
64 64
 	 */
65 65
 	function lsx_welcome_register_menu() {
66
-		add_theme_page( 'LSX', 'LSX', 'activate_plugins', 'lsx-welcome', 'lsx_welcome_screen' );
66
+		add_theme_page('LSX', 'LSX', 'activate_plugins', 'lsx-welcome', 'lsx_welcome_screen');
67 67
 	}
68 68
 endif; // lsx_welcome_register_menu
69
-add_action( 'admin_menu', 'lsx_welcome_register_menu' );
69
+add_action('admin_menu', 'lsx_welcome_register_menu');
70 70
 
71 71
 
72
-if ( ! function_exists( 'lsx_welcome_screen' ) ) :
72
+if ( ! function_exists('lsx_welcome_screen')) :
73 73
 	/**
74 74
 	 * The welcome screen.
75 75
 	 *
@@ -77,9 +77,9 @@  discard block
 block discarded – undo
77 77
 	 * @package lsx
78 78
 	 */
79 79
 	function lsx_welcome_screen() {
80
-		require_once( ABSPATH . 'wp-load.php' );
81
-		require_once( ABSPATH . 'wp-admin/admin.php' );
82
-		require_once( ABSPATH . 'wp-admin/admin-header.php' );
80
+		require_once(ABSPATH . 'wp-load.php');
81
+		require_once(ABSPATH . 'wp-admin/admin.php');
82
+		require_once(ABSPATH . 'wp-admin/admin-header.php');
83 83
 		?>
84 84
 		<div class="wrap about-wrap">
85 85
 			<?php
@@ -90,14 +90,14 @@  discard block
 block discarded – undo
90 90
 			 * @hooked lsx_welcome_enhance - 20
91 91
 			 * @hooked lsx_welcome_footer  - 30
92 92
 			 */
93
-			do_action( 'lsx_welcome' ); ?>
93
+			do_action('lsx_welcome'); ?>
94 94
 		</div>
95 95
 		<?php
96 96
 	}
97 97
 endif; // lsx_welcome_screen
98 98
 
99 99
 
100
-if ( ! function_exists( 'lsx_welcome_header' ) ) :
100
+if ( ! function_exists('lsx_welcome_header')) :
101 101
 	/**
102 102
 	 * Welcome screen intro
103 103
 	 *
@@ -105,13 +105,13 @@  discard block
 block discarded – undo
105 105
 	 * @package lsx
106 106
 	 */
107 107
 	function lsx_welcome_header() {
108
-		require_once( get_template_directory() . '/inc/admin/welcome-screen/component-header.php' );
108
+		require_once(get_template_directory() . '/inc/admin/welcome-screen/component-header.php');
109 109
 	}
110 110
 endif; // lsx_welcome_header
111
-add_action( 'lsx_welcome', 'lsx_welcome_header', 10 );
111
+add_action('lsx_welcome', 'lsx_welcome_header', 10);
112 112
 
113 113
 
114
-if ( ! function_exists( 'lsx_welcome_enhance' ) ) :
114
+if ( ! function_exists('lsx_welcome_enhance')) :
115 115
 	/**
116 116
 	 * Welcome screen enhance section
117 117
 	 *
@@ -119,13 +119,13 @@  discard block
 block discarded – undo
119 119
 	 * @package lsx
120 120
 	 */
121 121
 	function lsx_welcome_enhance() {
122
-		require_once( get_template_directory() . '/inc/admin/welcome-screen/component-enhance.php' );
122
+		require_once(get_template_directory() . '/inc/admin/welcome-screen/component-enhance.php');
123 123
 	}
124 124
 endif; // lsx_welcome_enhance
125
-add_action( 'lsx_welcome', 'lsx_welcome_enhance', 20 );
125
+add_action('lsx_welcome', 'lsx_welcome_enhance', 20);
126 126
 
127 127
 
128
-if ( ! function_exists( 'lsx_welcome_footer' ) ) :
128
+if ( ! function_exists('lsx_welcome_footer')) :
129 129
 	/**
130 130
 	 * Welcome screen contribute section
131 131
 	 *
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 	 * @package lsx
134 134
 	 */
135 135
 	function lsx_welcome_footer() {
136
-		require_once( get_template_directory() . '/inc/admin/welcome-screen/component-footer.php' );
136
+		require_once(get_template_directory() . '/inc/admin/welcome-screen/component-footer.php');
137 137
 	}
138 138
 endif; // lsx_welcome_footer
139
-add_action( 'lsx_welcome', 'lsx_welcome_footer', 30 );
139
+add_action('lsx_welcome', 'lsx_welcome_footer', 30);
Please login to merge, or discard this patch.
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,8 @@
 block discarded – undo
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
 if ( ! function_exists( 'lsx_activation_admin_notice' ) ) :
Please login to merge, or discard this patch.
inc/admin/welcome-screen/component-header.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -9,47 +9,47 @@  discard block
 block discarded – undo
9 9
 
10 10
 <div class="row">
11 11
 	<div class="col-md-6">
12
-		<h1><?php echo esc_html__( 'LSX', 'lsx' ) . ' <sup class="version">' . esc_attr( LSX_VERSION ) . '</sup>'; ?></h1>
12
+		<h1><?php echo esc_html__('LSX', 'lsx') . ' <sup class="version">' . esc_attr(LSX_VERSION) . '</sup>'; ?></h1>
13 13
 	</div>
14 14
 
15 15
 	<div class="col-md-6">
16
-		<p class="review"><?php echo sprintf( esc_html__( '%1$sEnjoying LSX?%2$s Why not %3$sleave a review%4$s on WordPress.org? We\'re looking foward to all our users\' feedback!', 'lsx' ), '<strong>', '</strong>', '<a href="https://wordpress.org/themes/lsx" target="_blank">', '</a>' ); ?></p>
16
+		<p class="review"><?php echo sprintf(esc_html__('%1$sEnjoying LSX?%2$s Why not %3$sleave a review%4$s on WordPress.org? We\'re looking foward to all our users\' feedback!', 'lsx'), '<strong>', '</strong>', '<a href="https://wordpress.org/themes/lsx" target="_blank">', '</a>'); ?></p>
17 17
 	</div>
18 18
 </div>
19 19
 
20 20
 <div class="row">
21 21
 	<div class="col-md-6">
22 22
 		<div class="box enrich">
23
-			<h2><?php esc_html_e( 'Built to enrich your WordPress experience', 'lsx' ); ?></h2>
24
-			<p><?php esc_html_e( 'Whether you\'re using LSX for your personal blog, as the platform for a powerful WooCommerce store or as the foundation for your own child-theme, you\'ll find it\'s the perfect fit for WordPress.', 'lsx' ); ?></p>
23
+			<h2><?php esc_html_e('Built to enrich your WordPress experience', 'lsx'); ?></h2>
24
+			<p><?php esc_html_e('Whether you\'re using LSX for your personal blog, as the platform for a powerful WooCommerce store or as the foundation for your own child-theme, you\'ll find it\'s the perfect fit for WordPress.', 'lsx'); ?></p>
25 25
 		</div>
26 26
 	</div>
27 27
 
28 28
 	<div class="col-md-6">
29 29
 		<div class="box news">
30
-			<h2><?php esc_html_e( 'LSX News &amp; Documentation', 'lsx' ); ?></h2>
30
+			<h2><?php esc_html_e('LSX News &amp; Documentation', 'lsx'); ?></h2>
31 31
 
32 32
 			<div class="row">
33 33
 				<div class="col-md-6 news">
34
-					<h3><?php esc_html_e( 'Recent News', 'lsx' ); ?></h3>
34
+					<h3><?php esc_html_e('Recent News', 'lsx'); ?></h3>
35 35
 					
36 36
 					<ul>
37 37
 						<?php
38
-							$rss = fetch_feed( 'https://www.lsdev.biz/lsx/feed/' );
38
+							$rss = fetch_feed('https://www.lsdev.biz/lsx/feed/');
39 39
 							$rss_items = array();
40 40
 
41
-							if ( ! is_wp_error( $rss ) ) {
42
-								$maxitems 	= $rss->get_item_quantity( 3 );
43
-								$rss_items 	= $rss->get_items( 0, $maxitems );
41
+							if ( ! is_wp_error($rss)) {
42
+								$maxitems = $rss->get_item_quantity(3);
43
+								$rss_items = $rss->get_items(0, $maxitems);
44 44
 							}
45 45
 
46
-							foreach ( $rss_items as $item ) : ?>
46
+							foreach ($rss_items as $item) : ?>
47 47
 								<li>
48
-									<a href="<?php echo esc_url( $item->get_permalink() ); ?>" target="_blank">
49
-										<?php echo esc_html( $item->get_title() ); ?>
48
+									<a href="<?php echo esc_url($item->get_permalink()); ?>" target="_blank">
49
+										<?php echo esc_html($item->get_title()); ?>
50 50
 									</a>
51 51
 								</li>
52
-								<span class="date"><?php echo esc_attr( $item->get_date( 'j F Y' ) ); ?></span>
52
+								<span class="date"><?php echo esc_attr($item->get_date('j F Y')); ?></span>
53 53
 							<?php
54 54
 							endforeach;
55 55
 						?>
@@ -57,11 +57,11 @@  discard block
 block discarded – undo
57 57
 				</div>
58 58
 
59 59
 				<div class="col-md-6 docs">
60
-					<h3><?php esc_html_e( 'Documentation', 'lsx' ); ?></h3>
60
+					<h3><?php esc_html_e('Documentation', 'lsx'); ?></h3>
61 61
 					
62 62
 					<ul>
63 63
 						<li>
64
-							<a href="https://www.lsdev.biz/documentation/lsx/" target="_blank"><?php esc_html_e( 'Installation &amp; configuration', 'lsx' ); ?></a>
64
+							<a href="https://www.lsdev.biz/documentation/lsx/" target="_blank"><?php esc_html_e('Installation &amp; configuration', 'lsx'); ?></a>
65 65
 						</li>
66 66
 					</ul>
67 67
 				</div>
Please login to merge, or discard this patch.
inc/admin/welcome-screen/component-footer.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -10,12 +10,12 @@  discard block
 block discarded – undo
10 10
 <div class="row">
11 11
 	<div class="col-md-4">
12 12
 		<div class="box customise">
13
-			<h2><?php esc_html_e( 'Theme Customizer', 'lsx' ); ?> - <span class="price">$59.00</span></h2>
14
-			<p><?php esc_html_e( 'You\'ve installed LSX, so now why not make it all yours? Whether it\'s a small CSS tweak or changing the entire layout of pages, posts or archives, please make use of the Theme Customizer plugin. Click below to install and get custom!', 'lsx' ); ?></p>
13
+			<h2><?php esc_html_e('Theme Customizer', 'lsx'); ?> - <span class="price">$59.00</span></h2>
14
+			<p><?php esc_html_e('You\'ve installed LSX, so now why not make it all yours? Whether it\'s a small CSS tweak or changing the entire layout of pages, posts or archives, please make use of the Theme Customizer plugin. Click below to install and get custom!', 'lsx'); ?></p>
15 15
 
16 16
 			<div class="more-button">
17 17
 				<a href="https://www.lsdev.biz/product/lsx-theme-customizer/" target="_blank" class="button button-primary">
18
-					<?php esc_html_e( 'Theme Customizer', 'lsx' ); ?>
18
+					<?php esc_html_e('Theme Customizer', 'lsx'); ?>
19 19
 				</a>
20 20
 			</div>
21 21
 		</div>
@@ -23,12 +23,12 @@  discard block
 block discarded – undo
23 23
 
24 24
 	<div class="col-md-4">
25 25
 		<div class="box support">
26
-			<h2><?php esc_html_e( 'Get support', 'lsx' ); ?></h2>
27
-			<p><?php printf( esc_html__( 'You\'ll find information on how to use and customize the LSX theme in our %1$sdocumentation%2$s section. However, please do %3$scontact us%4$s for support should you still find yourself unable to achieve your needs.', 'lsx' ), '<a href="https://www.lsdev.biz/documentation/lsx/" target="_blank">', '</a>', '<a href="https://www.lsdev.biz/contact-us/" target="_blank">', '</a>' ); ?></p>
26
+			<h2><?php esc_html_e('Get support', 'lsx'); ?></h2>
27
+			<p><?php printf(esc_html__('You\'ll find information on how to use and customize the LSX theme in our %1$sdocumentation%2$s section. However, please do %3$scontact us%4$s for support should you still find yourself unable to achieve your needs.', 'lsx'), '<a href="https://www.lsdev.biz/documentation/lsx/" target="_blank">', '</a>', '<a href="https://www.lsdev.biz/contact-us/" target="_blank">', '</a>'); ?></p>
28 28
 
29 29
 			<div class="more-button">
30 30
 				<a href="https://www.lsdev.biz/contact-us/" target="_blank" class="button button-primary">
31
-					<?php esc_html_e( 'Get in touch', 'lsx' ); ?>
31
+					<?php esc_html_e('Get in touch', 'lsx'); ?>
32 32
 				</a>
33 33
 			</div>
34 34
 		</div>
@@ -36,12 +36,12 @@  discard block
 block discarded – undo
36 36
 
37 37
 	<div class="col-md-4">
38 38
 		<div class="box suggest">
39
-			<h2><?php esc_html_e( 'Suggest a feature', 'lsx' ); ?></h2>
40
-			<p><?php printf( esc_html__( 'If you\'d like to suggest a feature for inclusion in upcoming releases of the LSX theme, please don\'t hesitate to %1$scontact us%2$s directly. We\'re always on the lookout for fresh ideas to help make LSX even better.', 'lsx' ), '<a href="https://www.lsdev.biz/contact-us/" target="_blank">', '</a>' ); ?></p>
39
+			<h2><?php esc_html_e('Suggest a feature', 'lsx'); ?></h2>
40
+			<p><?php printf(esc_html__('If you\'d like to suggest a feature for inclusion in upcoming releases of the LSX theme, please don\'t hesitate to %1$scontact us%2$s directly. We\'re always on the lookout for fresh ideas to help make LSX even better.', 'lsx'), '<a href="https://www.lsdev.biz/contact-us/" target="_blank">', '</a>'); ?></p>
41 41
 
42 42
 			<div class="more-button">
43 43
 				<a href="https://www.lsdev.biz/contact-us/" target="_blank" class="button button-primary">
44
-					<?php esc_html_e( 'Submit a request', 'lsx' ); ?>
44
+					<?php esc_html_e('Submit a request', 'lsx'); ?>
45 45
 				</a>
46 46
 			</div>
47 47
 		</div>
Please login to merge, or discard this patch.
inc/admin/welcome-screen/component-enhance.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -10,28 +10,28 @@  discard block
 block discarded – undo
10 10
 <div class="row">
11 11
 	<div class="col-md-12">
12 12
 		<div class="box enhance">
13
-			<h2><?php esc_html_e( 'Enhance LSX', 'lsx' ); ?></h2>
14
-			<p><?php esc_html_e( 'Take a look at our range of extensions that add to the already rich functionality of the LSX WordPress theme..', 'lsx' ); ?></p>
13
+			<h2><?php esc_html_e('Enhance LSX', 'lsx'); ?></h2>
14
+			<p><?php esc_html_e('Take a look at our range of extensions that add to the already rich functionality of the LSX WordPress theme..', 'lsx'); ?></p>
15 15
 
16 16
 			<div class="row">
17 17
 				<div class="col-md-4">
18 18
 					<div class="box-clean">
19
-						<a href="https://www.lsdev.biz/product/lsx-currencies/" target="_blank"><?php esc_html_e( 'Currencies', 'lsx' ); ?> - <span class="price">$59.00</span></a>
20
-						<p><?php esc_html_e( 'The LSX Currencies extension adds currency selection functionality to sites, allowing users to view your products in whatever currencies you choose to sell in.', 'lsx' ); ?></p>
19
+						<a href="https://www.lsdev.biz/product/lsx-currencies/" target="_blank"><?php esc_html_e('Currencies', 'lsx'); ?> - <span class="price">$59.00</span></a>
20
+						<p><?php esc_html_e('The LSX Currencies extension adds currency selection functionality to sites, allowing users to view your products in whatever currencies you choose to sell in.', 'lsx'); ?></p>
21 21
 					</div>
22 22
 				</div>
23 23
 
24 24
 				<div class="col-md-4">
25 25
 					<div class="box-clean">
26
-						<a href="https://www.lsdev.biz/product/lsx-banners/" target="_blank"><?php esc_html_e( 'Banners', 'lsx' ); ?> - <span class="price">$49.00</span></a>
27
-						<p><?php esc_html_e( 'The LSX Banners extension adds advanced banner configuration options to your WordPress site running LSX theme.', 'lsx' ); ?></p>
26
+						<a href="https://www.lsdev.biz/product/lsx-banners/" target="_blank"><?php esc_html_e('Banners', 'lsx'); ?> - <span class="price">$49.00</span></a>
27
+						<p><?php esc_html_e('The LSX Banners extension adds advanced banner configuration options to your WordPress site running LSX theme.', 'lsx'); ?></p>
28 28
 					</div>
29 29
 				</div>
30 30
 
31 31
 				<div class="col-md-4">
32 32
 					<div class="box-clean">
33
-						<a href="https://www.lsdev.biz/product/lsx-currencies/" target="_blank"><?php esc_html_e( 'Testimonials', 'lsx' ); ?> - <span class="price">$29.00</span></a>
34
-						<p><?php esc_html_e( 'The LSX Testimonials extension adds the "Testimonials" post type, which you can display front-and-centre on your site.', 'lsx' ); ?></p>
33
+						<a href="https://www.lsdev.biz/product/lsx-currencies/" target="_blank"><?php esc_html_e('Testimonials', 'lsx'); ?> - <span class="price">$29.00</span></a>
34
+						<p><?php esc_html_e('The LSX Testimonials extension adds the "Testimonials" post type, which you can display front-and-centre on your site.', 'lsx'); ?></p>
35 35
 					</div>
36 36
 				</div>
37 37
 			</div>
@@ -39,22 +39,22 @@  discard block
 block discarded – undo
39 39
 			<div class="row">
40 40
 				<div class="col-md-4">
41 41
 					<div class="box-clean">
42
-						<a href="https://www.lsdev.biz/product/lsx-team/" target="_blank"><?php esc_html_e( 'Team', 'lsx' ); ?> - <span class="price">$29.00</span></a>
43
-						<p><?php esc_html_e( 'The LSX Team Extension provides a custom post type that allows you to easily show off the people that make up your business.', 'lsx' ); ?></p>
42
+						<a href="https://www.lsdev.biz/product/lsx-team/" target="_blank"><?php esc_html_e('Team', 'lsx'); ?> - <span class="price">$29.00</span></a>
43
+						<p><?php esc_html_e('The LSX Team Extension provides a custom post type that allows you to easily show off the people that make up your business.', 'lsx'); ?></p>
44 44
 					</div>
45 45
 				</div>
46 46
 
47 47
 				<div class="col-md-4">
48 48
 					<div class="box-clean">
49
-						<a href="https://www.lsdev.biz/product/lsx-mega-menus/" target="_blank"><?php esc_html_e( 'Mega Menus', 'lsx' ); ?> - <span class="price">$39.00</span></a>
50
-						<p><?php esc_html_e( 'Create custom, full-width dropdown menus that contain images, widgets and more that seamlessly tie into your LSX WordPress site.', 'lsx' ); ?></p>
49
+						<a href="https://www.lsdev.biz/product/lsx-mega-menus/" target="_blank"><?php esc_html_e('Mega Menus', 'lsx'); ?> - <span class="price">$39.00</span></a>
50
+						<p><?php esc_html_e('Create custom, full-width dropdown menus that contain images, widgets and more that seamlessly tie into your LSX WordPress site.', 'lsx'); ?></p>
51 51
 					</div>
52 52
 				</div>
53 53
 
54 54
 				<div class="col-md-4">
55 55
 					<div class="box-clean">
56
-						<a href="https://www.lsdev.biz/product/lsx-login/" target="_blank"><?php esc_html_e( 'Login', 'lsx' ); ?> - <span class="price">$59.00</span></a>
57
-						<p><?php esc_html_e( 'The LSX Login extension allows users to log into a dashboard and then see configurable content based on which users can access which content.', 'lsx' ); ?></p>
56
+						<a href="https://www.lsdev.biz/product/lsx-login/" target="_blank"><?php esc_html_e('Login', 'lsx'); ?> - <span class="price">$59.00</span></a>
57
+						<p><?php esc_html_e('The LSX Login extension allows users to log into a dashboard and then see configurable content based on which users can access which content.', 'lsx'); ?></p>
58 58
 					</div>
59 59
 				</div>
60 60
 			</div>
Please login to merge, or discard this patch.
inc/sensei.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
  * @category styles
126 126
  */
127 127
 function lsx_sensei_styles() {
128
-    wp_enqueue_style( 'sensei', get_template_directory_uri() . '/css/sensei.css', array(), LSX_VERSION );
128
+	wp_enqueue_style( 'sensei', get_template_directory_uri() . '/css/sensei.css', array(), LSX_VERSION );
129 129
 }
130 130
 add_action( 'wp_enqueue_scripts', 'lsx_sensei_styles' );
131 131
 
Please login to merge, or discard this patch.
Spacing   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -12,26 +12,26 @@  discard block
 block discarded – undo
12 12
  * Hooks
13 13
  */
14 14
 
15
-remove_action( 'sensei_before_main_content', array( $woothemes_sensei->frontend, 'sensei_output_content_wrapper' ), 10 );
16
-remove_action( 'sensei_after_main_content', array( $woothemes_sensei->frontend, 'sensei_output_content_wrapper_end' ), 10 );
15
+remove_action('sensei_before_main_content', array($woothemes_sensei->frontend, 'sensei_output_content_wrapper'), 10);
16
+remove_action('sensei_after_main_content', array($woothemes_sensei->frontend, 'sensei_output_content_wrapper_end'), 10);
17 17
 
18 18
 add_action('sensei_before_main_content', 'lsx_sensei_before_content', 10);
19 19
 add_action('sensei_after_main_content', 'lsx_sensei_after_content', 10);
20 20
 
21 21
 //Switching the course filters and the headers around
22
-remove_action('sensei_archive_before_course_loop', array( 'Sensei_Course', 'archive_header' ), 10, 0 );
23
-remove_action ( 'sensei_archive_before_course_loop' , array( 'Sensei_Course', 'course_archive_sorting' ) );
24
-remove_action ( 'sensei_archive_before_course_loop' , array( 'Sensei_Course', 'course_archive_filters' ) );
25
-add_action('sensei_archive_before_course_loop', array( 'Sensei_Course', 'archive_header' ), 11, 0 );
26
-add_action ( 'sensei_archive_before_course_loop' , array( 'Sensei_Course', 'course_archive_sorting' ),12 );
27
-add_action ( 'sensei_archive_before_course_loop' , array( 'Sensei_Course', 'course_archive_filters' ),12 );
22
+remove_action('sensei_archive_before_course_loop', array('Sensei_Course', 'archive_header'), 10, 0);
23
+remove_action('sensei_archive_before_course_loop', array('Sensei_Course', 'course_archive_sorting'));
24
+remove_action('sensei_archive_before_course_loop', array('Sensei_Course', 'course_archive_filters'));
25
+add_action('sensei_archive_before_course_loop', array('Sensei_Course', 'archive_header'), 11, 0);
26
+add_action('sensei_archive_before_course_loop', array('Sensei_Course', 'course_archive_sorting'), 12);
27
+add_action('sensei_archive_before_course_loop', array('Sensei_Course', 'course_archive_filters'), 12);
28 28
 
29 29
 // Moving course image up in DOM
30
-remove_action('sensei_course_content_inside_before', array( Sensei()->course, 'course_image' ) ,10, 1 );
31
-add_action('sensei_course_content_inside_before', array( Sensei()->course, 'course_image' ) ,1, 1 );
30
+remove_action('sensei_course_content_inside_before', array(Sensei()->course, 'course_image'), 10, 1);
31
+add_action('sensei_course_content_inside_before', array(Sensei()->course, 'course_image'), 1, 1);
32 32
 
33
-remove_action( 'sensei_single_course_content_inside_before', array( Sensei()->course , 'course_image'), 20 );
34
-add_action( 'sensei_single_course_content_inside_before', array( Sensei()->course , 'course_image'), 12 );
33
+remove_action('sensei_single_course_content_inside_before', array(Sensei()->course, 'course_image'), 20);
34
+add_action('sensei_single_course_content_inside_before', array(Sensei()->course, 'course_image'), 12);
35 35
 
36 36
 /**
37 37
  * Adds the top and primary divs for the layout.
@@ -39,22 +39,22 @@  discard block
 block discarded – undo
39 39
  * @subpackage sensei
40 40
  * @category 	layout
41 41
  */
42
-function lsx_sensei_wp_head(){
42
+function lsx_sensei_wp_head() {
43 43
 
44
-	$layout = get_theme_mod('lsx_layout','2cr');
45
-	$layout = apply_filters( 'lsx_layout', $layout );
44
+	$layout = get_theme_mod('lsx_layout', '2cr');
45
+	$layout = apply_filters('lsx_layout', $layout);
46 46
 
47
-	if('1c' === $layout && is_post_type_archive(array('course','lesson'))) {
48
-		add_action('sensei_archive_before_course_loop', 'lsx_breadcrumbs', 11 );
47
+	if ('1c' === $layout && is_post_type_archive(array('course', 'lesson'))) {
48
+		add_action('sensei_archive_before_course_loop', 'lsx_breadcrumbs', 11);
49 49
 	}
50 50
 	
51
-	if('1c' === $layout && is_tax(array('module','course-category'))) {
51
+	if ('1c' === $layout && is_tax(array('module', 'course-category'))) {
52 52
 		remove_action('lsx_content_top', 'lsx_breadcrumbs');
53
-		add_action( 'sensei_loop_course_before', 'lsx_breadcrumbs', 80 , 1 );
53
+		add_action('sensei_loop_course_before', 'lsx_breadcrumbs', 80, 1);
54 54
 		
55
-		if(is_tax('module')){
56
-			remove_action( 'sensei_content_lesson_inside_before', array( 'Sensei_Lesson', 'the_lesson_meta' ), 20 );
57
-			add_action( 'sensei_content_lesson_inside_before', array( 'Sensei_Lesson', 'the_lesson_meta' ), 40 );
55
+		if (is_tax('module')) {
56
+			remove_action('sensei_content_lesson_inside_before', array('Sensei_Lesson', 'the_lesson_meta'), 20);
57
+			add_action('sensei_content_lesson_inside_before', array('Sensei_Lesson', 'the_lesson_meta'), 40);
58 58
 			
59 59
 			remove_action('sensei_content_lesson_inside_before', array('Sensei_Core_Modules', 'module_archive_description'), 11);
60 60
 		}
@@ -73,10 +73,10 @@  discard block
 block discarded – undo
73 73
  * @subpackage sensei
74 74
  * @category 	layout
75 75
  */
76
-function lsx_sensei_before_content(){ ?>
76
+function lsx_sensei_before_content() { ?>
77 77
 	<?php lsx_content_wrap_before(); ?>
78 78
 
79
-	<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
79
+	<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
80 80
 
81 81
 		<?php lsx_content_before(); ?>
82 82
 
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
  * @subpackage sensei
93 93
  * @category 	layout
94 94
  */
95
-function lsx_sensei_after_content(){ ?>
95
+function lsx_sensei_after_content() { ?>
96 96
 		<?php lsx_content_bottom(); ?>
97 97
 
98 98
 		</main><!-- #main -->
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
  * @subpackage sensei
117 117
  * @category redirect
118 118
  */
119
-add_filter( 'sensei_disable_styles', '__return_true' );
119
+add_filter('sensei_disable_styles', '__return_true');
120 120
 
121 121
 /**
122 122
  * Includes the sensei specific styles.
@@ -125,9 +125,9 @@  discard block
 block discarded – undo
125 125
  * @category styles
126 126
  */
127 127
 function lsx_sensei_styles() {
128
-    wp_enqueue_style( 'sensei', get_template_directory_uri() . '/css/sensei.css', array(), LSX_VERSION );
128
+    wp_enqueue_style('sensei', get_template_directory_uri() . '/css/sensei.css', array(), LSX_VERSION);
129 129
 }
130
-add_action( 'wp_enqueue_scripts', 'lsx_sensei_styles' );
130
+add_action('wp_enqueue_scripts', 'lsx_sensei_styles');
131 131
 
132 132
 /**
133 133
  * Redirects Lessons Archive to Courses Overview
@@ -135,13 +135,13 @@  discard block
 block discarded – undo
135 135
  * @subpackage woocommerce
136 136
  * @category 	styles
137 137
  */
138
-function lsx_sensei_redirect_to_home( $query ){
139
-	if ( ! is_admin() && is_post_type_archive( 'lesson' ) && $query->is_main_query() ) {
140
-		wp_redirect( home_url() . '/courses-overview' );
138
+function lsx_sensei_redirect_to_home($query) {
139
+	if ( ! is_admin() && is_post_type_archive('lesson') && $query->is_main_query()) {
140
+		wp_redirect(home_url() . '/courses-overview');
141 141
 		exit;
142 142
 	}
143 143
 }
144
-add_action( 'parse_query', 'lsx_sensei_redirect_to_home' );
144
+add_action('parse_query', 'lsx_sensei_redirect_to_home');
145 145
 
146 146
 /**
147 147
  * Filters the archive title
@@ -149,10 +149,10 @@  discard block
 block discarded – undo
149 149
  * @subpackage woocommerce
150 150
  * @category 	styles
151 151
  */
152
-function lsx_sensei_category_title( $html,$term_id ){
153
-	$html = str_replace('h2','h1',$html);
154
-	$html = str_replace('sensei-category-title','archive-title',$html);
152
+function lsx_sensei_category_title($html, $term_id) {
153
+	$html = str_replace('h2', 'h1', $html);
154
+	$html = str_replace('sensei-category-title', 'archive-title', $html);
155 155
 	
156
-	return '<header class="archive-header">'.$html.'</header>';
156
+	return '<header class="archive-header">' . $html . '</header>';
157 157
 }
158
-add_filter( 'course_category_title', 'lsx_sensei_category_title',1,10 );
159 158
\ No newline at end of file
159
+add_filter('course_category_title', 'lsx_sensei_category_title', 1, 10);
160 160
\ No newline at end of file
Please login to merge, or discard this patch.
content.php 2 patches
Spacing   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -7,21 +7,21 @@  discard block
 block discarded – undo
7 7
 <?php lsx_entry_before(); ?>
8 8
 
9 9
 <?php 
10
-	if ( has_post_thumbnail() ) { 
10
+	if (has_post_thumbnail()) { 
11 11
 		$thumb_class = 'has-thumb';
12 12
 	} else {
13 13
 		$thumb_class = 'no-thumb';
14 14
 	}
15 15
 
16
-	$grid_layout_enabled = ( ! is_singular() && apply_filters( 'lsx_blog_grid_layout', false ) );
16
+	$grid_layout_enabled = ( ! is_singular() && apply_filters('lsx_blog_grid_layout', false));
17 17
 	$image_src           = '';
18 18
 	$image_class         = '';
19 19
 
20
-	if ( true === $grid_layout_enabled ) {
21
-		$thumbnail_id = get_post_thumbnail_id( get_the_ID() );
22
-		$image_arr    = wp_get_attachment_image_src( $thumbnail_id, 'lsx-single-thumbnail' );
20
+	if (true === $grid_layout_enabled) {
21
+		$thumbnail_id = get_post_thumbnail_id(get_the_ID());
22
+		$image_arr    = wp_get_attachment_image_src($thumbnail_id, 'lsx-single-thumbnail');
23 23
 
24
-		if ( is_array( $image_arr ) ) {
24
+		if (is_array($image_arr)) {
25 25
 			$image_src = $image_arr[0];
26 26
 		}
27 27
 
@@ -29,24 +29,24 @@  discard block
 block discarded – undo
29 29
 	}
30 30
 ?>
31 31
 
32
-<article id="post-<?php the_ID(); ?>" <?php post_class( $thumb_class ); ?>>
32
+<article id="post-<?php the_ID(); ?>" <?php post_class($thumb_class); ?>>
33 33
 	<?php lsx_entry_top(); ?>
34 34
 
35
-	<?php if ( true === $grid_layout_enabled ) { ?>
35
+	<?php if (true === $grid_layout_enabled) { ?>
36 36
 		<div class="entry-grid-layout">
37 37
 	<?php } ?>
38 38
 
39
-	<?php if ( has_post_thumbnail() && true === $grid_layout_enabled ) { ?>
39
+	<?php if (has_post_thumbnail() && true === $grid_layout_enabled) { ?>
40 40
 		<div class="entry-grid-layout-content entry-grid-layout-content-67">
41 41
 	<?php } ?>
42 42
 
43
-	<?php if ( ! has_post_thumbnail() && true === $grid_layout_enabled ) { ?>
43
+	<?php if ( ! has_post_thumbnail() && true === $grid_layout_enabled) { ?>
44 44
 		<div class="entry-grid-layout-content entry-grid-layout-content-100">
45 45
 	<?php } ?>
46 46
 
47 47
 	<header class="entry-header">
48
-		<?php if ( has_post_thumbnail() ) { ?>
49
-			<div class="entry-image <?php echo esc_attr( $image_class ); ?>">
48
+		<?php if (has_post_thumbnail()) { ?>
49
+			<div class="entry-image <?php echo esc_attr($image_class); ?>">
50 50
 				<a class="thumbnail" href="<?php the_permalink(); ?>">
51 51
 					 <?php lsx_thumbnail('lsx-single-thumbnail'); ?>
52 52
 				</a>
@@ -55,35 +55,35 @@  discard block
 block discarded – undo
55 55
 
56 56
 		<?php 
57 57
 			$format = get_post_format();
58
-			if ( false === $format ) {
58
+			if (false === $format) {
59 59
 				$format = 'standard';
60
-				$show_on_front = get_option('show_on_front','posts');
61
-				if('page' == $show_on_front){
60
+				$show_on_front = get_option('show_on_front', 'posts');
61
+				if ('page' == $show_on_front) {
62 62
 					$archive_link = get_permalink(get_option('page_for_posts'));
63
-				}else{
63
+				} else {
64 64
 					$archive_link = home_url();
65 65
 				}
66
-			}else{
66
+			} else {
67 67
 				$archive_link = get_post_format_link($format);
68 68
 			}
69 69
 			$format = lsx_translate_format_to_fontawesome($format);
70 70
 		?>
71 71
 
72 72
 		<h1 class="entry-title">
73
-			<?php if ( has_post_thumbnail() ) { ?>
74
-				<a href="<?php echo esc_url($archive_link) ?>" class="format-link has-thumb fa fa-<?php echo esc_attr( $format ) ?>"></a>
73
+			<?php if (has_post_thumbnail()) { ?>
74
+				<a href="<?php echo esc_url($archive_link) ?>" class="format-link has-thumb fa fa-<?php echo esc_attr($format) ?>"></a>
75 75
 			<?php } else { ?>
76
-				<a href="<?php echo esc_url($archive_link) ?>" class="format-link fa fa-<?php echo esc_attr( $format ) ?>"></a>
76
+				<a href="<?php echo esc_url($archive_link) ?>" class="format-link fa fa-<?php echo esc_attr($format) ?>"></a>
77 77
 			<?php } ?>
78 78
 
79
-			<?php if ( has_post_format( array('link') ) ) { ?>
80
-				<a href="<?php echo esc_url( lsx_get_my_url() ); ?>" rel="bookmark"><?php the_title(); ?> <span class="fa fa-external-link"></span></a>
79
+			<?php if (has_post_format(array('link'))) { ?>
80
+				<a href="<?php echo esc_url(lsx_get_my_url()); ?>" rel="bookmark"><?php the_title(); ?> <span class="fa fa-external-link"></span></a>
81 81
 			<?php } else { ?>
82 82
 				<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
83 83
 			<?php } ?>
84 84
 
85
-			<?php if ( is_sticky() ) { ?>
86
-				<span class="label label-default label-sticky"><?php esc_html_e('Featured','lsx'); ?></span>
85
+			<?php if (is_sticky()) { ?>
86
+				<span class="label label-default label-sticky"><?php esc_html_e('Featured', 'lsx'); ?></span>
87 87
 			<?php } ?>
88 88
 		</h1>
89 89
 
@@ -92,13 +92,13 @@  discard block
 block discarded – undo
92 92
 		</div><!-- .entry-meta -->
93 93
 	</header><!-- .entry-header -->	
94 94
 
95
-	<?php if ( !is_singular() && !has_post_format( array('video', 'audio', 'quote', 'link') ) && ! apply_filters( 'lsx_blog_force_content_on_list', false ) ) : // Only display Excerpts for Search and Archives ?>
95
+	<?php if ( ! is_singular() && ! has_post_format(array('video', 'audio', 'quote', 'link')) && ! apply_filters('lsx_blog_force_content_on_list', false)) : // Only display Excerpts for Search and Archives ?>
96 96
 		<div class="entry-summary"> 
97 97
 			<?php the_excerpt(); ?>
98 98
 		</div><!-- .entry-summary -->
99
-	<?php elseif ( has_post_format( array('link') ) ) : ?>
99
+	<?php elseif (has_post_format(array('link'))) : ?>
100 100
 
101
-	<?php elseif ( apply_filters( 'lsx_blog_force_content_on_list', false ) ) : ?>
101
+	<?php elseif (apply_filters('lsx_blog_force_content_on_list', false)) : ?>
102 102
 		<div class="entry-content">
103 103
 			<?php the_content(); ?>
104 104
 		</div><!-- .entry-content -->
@@ -107,44 +107,44 @@  discard block
 block discarded – undo
107 107
 			<?php
108 108
 				the_content();
109 109
 
110
-				wp_link_pages( array(
110
+				wp_link_pages(array(
111 111
 					'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
112 112
 					'after' => '</div></div>',
113 113
 					'link_before' => '<span>',
114 114
 					'link_after' => '</span>'
115
-				) );
115
+				));
116 116
 			?>
117 117
 		</div><!-- .entry-content -->
118 118
 	<?php endif; ?>
119 119
 
120
-	<?php if ( true === $grid_layout_enabled ) { ?>
120
+	<?php if (true === $grid_layout_enabled) { ?>
121 121
 		</div>
122 122
 	<?php } ?>
123 123
 	
124
-	<?php if ( has_post_thumbnail() && true === $grid_layout_enabled ) { ?>
124
+	<?php if (has_post_thumbnail() && true === $grid_layout_enabled) { ?>
125 125
 		<div class="entry-image hidden-xs">
126
-			<a class="thumbnail" href="<?php the_permalink(); ?>" style="background-image:url(<?php echo esc_url( $image_src ); ?>);">
127
-				<?php lsx_thumbnail( 'lsx-single-thumbnail' ); ?>
126
+			<a class="thumbnail" href="<?php the_permalink(); ?>" style="background-image:url(<?php echo esc_url($image_src); ?>);">
127
+				<?php lsx_thumbnail('lsx-single-thumbnail'); ?>
128 128
 			</a>
129 129
 		</div>
130 130
 	<?php } ?>
131 131
 
132
-	<?php if ( true === $grid_layout_enabled ) { ?>
132
+	<?php if (true === $grid_layout_enabled) { ?>
133 133
 		</div>
134 134
 	<?php } ?>
135 135
 	
136 136
 	<div class="clearfix"></div>
137 137
 	
138
-	<?php if ( has_tag() || ( comments_open() && ! empty( get_comments_number() ) ) ) : ?>
138
+	<?php if (has_tag() || (comments_open() && ! empty(get_comments_number()))) : ?>
139 139
 		<div class="post-tags-wrapper">
140 140
 			<?php lsx_content_post_tags(); ?>
141 141
 			
142
-			<?php if ( comments_open() && 0 != get_comments_number() ) : ?>
142
+			<?php if (comments_open() && 0 != get_comments_number()) : ?>
143 143
 				<div class="post-comments">
144 144
 					<a href="<?php the_permalink() ?>#comments">
145 145
 						<?php
146 146
 							$count = get_comments_number();
147
-							printf( esc_html( _n( 'One Comment', '%1$s Comments', $count, 'lsx' ) ), esc_html( number_format_i18n( $count ) ) );
147
+							printf(esc_html(_n('One Comment', '%1$s Comments', $count, 'lsx')), esc_html(number_format_i18n($count)));
148 148
 						?>
149 149
 					</a>
150 150
 				</div>
@@ -156,9 +156,9 @@  discard block
 block discarded – undo
156 156
 
157 157
 	<div class="clearfix"></div>
158 158
 
159
-	<?php edit_post_link( esc_html__( 'Edit', 'lsx' ), '<span class="edit-link">', '</span>' ); ?>
159
+	<?php edit_post_link(esc_html__('Edit', 'lsx'), '<span class="edit-link">', '</span>'); ?>
160 160
 
161
-	<?php if ( !is_singular() && !is_single() ) { // Display full-width divider on Archives ?>
161
+	<?php if ( ! is_singular() && ! is_single()) { // Display full-width divider on Archives ?>
162 162
 		<div class="lsx-breaker"></div>
163 163
 	<?php } ?>
164 164
 </article><!-- #post-## -->
Please login to merge, or discard this patch.
Braces   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,10 +60,10 @@  discard block
 block discarded – undo
60 60
 				$show_on_front = get_option('show_on_front','posts');
61 61
 				if('page' == $show_on_front){
62 62
 					$archive_link = get_permalink(get_option('page_for_posts'));
63
-				}else{
63
+				} else{
64 64
 					$archive_link = home_url();
65 65
 				}
66
-			}else{
66
+			} else{
67 67
 				$archive_link = get_post_format_link($format);
68 68
 			}
69 69
 			$format = lsx_translate_format_to_fontawesome($format);
@@ -102,10 +102,12 @@  discard block
 block discarded – undo
102 102
 		<div class="entry-content">
103 103
 			<?php the_content(); ?>
104 104
 		</div><!-- .entry-content -->
105
-	<?php else : ?>
105
+	<?php else {
106
+	: ?>
106 107
 		<div class="entry-content">
107 108
 			<?php
108 109
 				the_content();
110
+}
109 111
 
110 112
 				wp_link_pages( array(
111 113
 					'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
Please login to merge, or discard this patch.
single.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 
10 10
 	<?php lsx_content_wrap_before(); ?>
11 11
 
12
-	<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
12
+	<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
13 13
 
14 14
 		<?php lsx_content_before(); ?>
15 15
 		
@@ -17,9 +17,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.