Completed
Push — master ( 409d21...32c778 )
by
unknown
12:55
created
includes/modules/wps_installer/templates/backend/step_one.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if (!defined('ABSPATH')) exit;
2 2
 ?>
3
-<h4><?php _e( 'Those informations will be used into invoice and to display your contact informations', 'wpshop'); ?></h4>
3
+<h4><?php _e('Those informations will be used into invoice and to display your contact informations', 'wpshop'); ?></h4>
4 4
 <?php
5
-	do_settings_sections( 'wpshop_company_info' );
5
+	do_settings_sections('wpshop_company_info');
6 6
 ?>
7 7
 
8 8
 <table class="form-table" >
9 9
 	<tr>
10
-		<th><?php _e( 'The logo for emails and invoices', 'wpshop'); ?></th>
10
+		<th><?php _e('The logo for emails and invoices', 'wpshop'); ?></th>
11 11
 		<td><?php wpshop_general_options::wpshop_logo_field(); ?></td>
12 12
 	</tr>
13 13
 </table>
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,6 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if ( !defined( 'ABSPATH' ) ) {
2
+	exit;
3
+}
2 4
 ?>
3 5
 <h4><?php _e( 'Those informations will be used into invoice and to display your contact informations', 'wpshop'); ?></h4>
4 6
 <?php
Please login to merge, or discard this patch.
includes/modules/wps_installer/templates/backend/welcome.php 2 patches
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,38 +1,38 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if (!defined('ABSPATH')) exit;
2 2
 ?>
3 3
 <!-- <div id="welcome-panel" class="welcome-panel wps-welcome-panel" >
4 4
 	<input id="wps_installer_welcome_close_nonce" type="hidden" value="<?php echo wp_create_nonce("wps-installer-welcome-panel-close"); ?>" name="wps_installer_welcome_close_nonce">
5
-	<a class="welcome-panel-close wps-welcome-panel-close" href="<?php echo admin_url( 'admin.php?page=wpshop_dashboard?welcome=0' ); ?>"><?php _e( 'Close', 'wpshop'); ?></a>
5
+	<a class="welcome-panel-close wps-welcome-panel-close" href="<?php echo admin_url('admin.php?page=wpshop_dashboard?welcome=0'); ?>"><?php _e('Close', 'wpshop'); ?></a>
6 6
 
7 7
 	<div class="welcome-panel-content">
8
-		<h3><?php _e( 'Welcome to WPShop', 'wpshop'); ?></h3>
9
-		<p class="about-description"><?php _e( 'You will find some useful links in order to start using WPShop', 'wpshop'); ?></p>
8
+		<h3><?php _e('Welcome to WPShop', 'wpshop'); ?></h3>
9
+		<p class="about-description"><?php _e('You will find some useful links in order to start using WPShop', 'wpshop'); ?></p>
10 10
 
11 11
 		<div class="welcome-panel-column-container">
12 12
 			<div class="welcome-panel-column">
13
-				<h4><?php _e( 'Have fun with WPShop !', 'wpshop'); ?></h4>
14
-				<a href="<?php echo admin_url( 'options-general.php?page=wpshop_option' ); ?>" class="button button-primary button-hero"><?php _e( 'Configure your shop', 'wpshop'); ?></a>
13
+				<h4><?php _e('Have fun with WPShop !', 'wpshop'); ?></h4>
14
+				<a href="<?php echo admin_url('options-general.php?page=wpshop_option'); ?>" class="button button-primary button-hero"><?php _e('Configure your shop', 'wpshop'); ?></a>
15 15
 			</div>
16 16
 			<div class="welcome-panel-column">
17
-				<h4><?php _e( 'Next step', 'wpshop'); ?></h4>
17
+				<h4><?php _e('Next step', 'wpshop'); ?></h4>
18 18
 				<ul>
19
-					<?php if ( 0 >= $nb_products ) : ?>
20
-						<li><div class="dashicons dashicons-welcome-write-blog"></div><a href="<?php echo admin_url( 'post-new.php?post_type=' . WPSHOP_NEWTYPE_IDENTIFIER_PRODUCT ); ?>" ><?php _e( 'Create your first product', 'wpshop');?></a></li>
19
+					<?php if (0 >= $nb_products) : ?>
20
+						<li><div class="dashicons dashicons-welcome-write-blog"></div><a href="<?php echo admin_url('post-new.php?post_type=' . WPSHOP_NEWTYPE_IDENTIFIER_PRODUCT); ?>" ><?php _e('Create your first product', 'wpshop'); ?></a></li>
21 21
 					<?php endif; ?>
22 22
 
23
-					<?php if ( ( "sale" == $shop_type ) && $no_payment_mode_configurated ) : ?>
24
-						<li><div class="dashicons dashicons-admin-generic"></div><a href="<?php echo admin_url('options-general.php?page='.WPSHOP_URL_SLUG_OPTION.'#wpshop_payments_option'); ?>" ><?php _e( 'Configure a payment method', 'wpshop');?></a></li>
23
+					<?php if (("sale" == $shop_type) && $no_payment_mode_configurated) : ?>
24
+						<li><div class="dashicons dashicons-admin-generic"></div><a href="<?php echo admin_url('options-general.php?page=' . WPSHOP_URL_SLUG_OPTION . '#wpshop_payments_option'); ?>" ><?php _e('Configure a payment method', 'wpshop'); ?></a></li>
25 25
 					<?php endif; ?>
26 26
 
27
-					<li><div class="dashicons dashicons-email-alt"></div><a href="<?php echo admin_url('edit.php?post_type=wpshop_shop_message'); ?>" ><?php _e( 'Configure emails', 'wpshop');?></a></li>
27
+					<li><div class="dashicons dashicons-email-alt"></div><a href="<?php echo admin_url('edit.php?post_type=wpshop_shop_message'); ?>" ><?php _e('Configure emails', 'wpshop'); ?></a></li>
28 28
 				</ul>
29 29
 			</div>
30 30
 			<div class="welcome-panel-column">
31
-				<h4><?php _e( 'Go further', 'wpshop'); ?></h4>
31
+				<h4><?php _e('Go further', 'wpshop'); ?></h4>
32 32
 				<ul>
33
-					<li><div class="dashicons dashicons-welcome-view-site"></div><a href="<?php echo get_permalink( get_option( 'wpshop_product_page_id' ) ); ?>" ><?php _e( 'View your shop', 'wpshop');?></a></li>
34
-					<li><div class="dashicons dashicons-book-alt"></div><?php printf( __( 'More about WPShop %s or %s', 'wpshop'), sprintf( __( 'with %sonline documentation%s', 'wpshop'), '<a target="_blank" href="http://www.wpshop.fr/documentations/presentation-wpshop/" >', '</a>'), sprintf( __( 'on %sthe forum%s', 'wpshop'), '<a target="_blank" href="http://forums.eoxia.com/forum/wpshop" >', '</a>') ); ?></li>
35
-					<li><div class="dashicons dashicons-admin-plugins"></div><?php printf( __( 'Extend WPShop functionnalities with %saddons%s', 'wpshop'), '<a target="_blank" href="http://www.wpshop.fr/shop-theme/" >', '</a>'); ?></li>
33
+					<li><div class="dashicons dashicons-welcome-view-site"></div><a href="<?php echo get_permalink(get_option('wpshop_product_page_id')); ?>" ><?php _e('View your shop', 'wpshop'); ?></a></li>
34
+					<li><div class="dashicons dashicons-book-alt"></div><?php printf(__('More about WPShop %s or %s', 'wpshop'), sprintf(__('with %sonline documentation%s', 'wpshop'), '<a target="_blank" href="http://www.wpshop.fr/documentations/presentation-wpshop/" >', '</a>'), sprintf(__('on %sthe forum%s', 'wpshop'), '<a target="_blank" href="http://forums.eoxia.com/forum/wpshop" >', '</a>')); ?></li>
35
+					<li><div class="dashicons dashicons-admin-plugins"></div><?php printf(__('Extend WPShop functionnalities with %saddons%s', 'wpshop'), '<a target="_blank" href="http://www.wpshop.fr/shop-theme/" >', '</a>'); ?></li>
36 36
 				</ul>
37 37
 			</div>
38 38
 		</div>
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,6 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if ( !defined( 'ABSPATH' ) ) {
2
+	exit;
3
+}
2 4
 ?>
3 5
 <!-- <div id="welcome-panel" class="welcome-panel wps-welcome-panel" >
4 6
 	<input id="wps_installer_welcome_close_nonce" type="hidden" value="<?php echo wp_create_nonce("wps-installer-welcome-panel-close"); ?>" name="wps_installer_welcome_close_nonce">
Please login to merge, or discard this patch.
includes/modules/wps_installer/templates/backend/about-credits.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if (!defined('ABSPATH')) exit;
2 2
 ?>
3
-<p class="about-description"><?php _e( 'WPShop is mainly maintained by a french web-agency based in Montpellier, south of France.', 'wps_installer'); ?></p>
4
-<a href="http://www.eoxia.com" target="_eoxia_website" class="wps-installer-eoxia-link" ><img src="<?php echo WPS_INSTALLER_URL . WPS_INSTALLER_DIR . '/assets/medias/logo_eoxia.png'; ?>" alt="<?php _e( 'Go on eoxia website', 'wpshop'); ?>" title="<?php _e( 'Go on eoxia website', 'wpshop'); ?>" /></a>
5 3
\ No newline at end of file
4
+<p class="about-description"><?php _e('WPShop is mainly maintained by a french web-agency based in Montpellier, south of France.', 'wps_installer'); ?></p>
5
+<a href="http://www.eoxia.com" target="_eoxia_website" class="wps-installer-eoxia-link" ><img src="<?php echo WPS_INSTALLER_URL . WPS_INSTALLER_DIR . '/assets/medias/logo_eoxia.png'; ?>" alt="<?php _e('Go on eoxia website', 'wpshop'); ?>" title="<?php _e('Go on eoxia website', 'wpshop'); ?>" /></a>
6 6
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,6 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if ( !defined( 'ABSPATH' ) ) {
2
+	exit;
3
+}
2 4
 ?>
3 5
 <p class="about-description"><?php _e( 'WPShop is mainly maintained by a french web-agency based in Montpellier, south of France.', 'wps_installer'); ?></p>
4 6
 <a href="http://www.eoxia.com" target="_eoxia_website" class="wps-installer-eoxia-link" ><img src="<?php echo WPS_INSTALLER_URL . WPS_INSTALLER_DIR . '/assets/medias/logo_eoxia.png'; ?>" alt="<?php _e( 'Go on eoxia website', 'wpshop'); ?>" title="<?php _e( 'Go on eoxia website', 'wpshop'); ?>" /></a>
5 7
\ No newline at end of file
Please login to merge, or discard this patch.
includes/modules/wps_installer/templates/backend/notice.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if (!defined('ABSPATH')) exit;
2 2
 ?>
3 3
 <div class="updated wpshop_admin_notice wpshop_install_notice" id="wpshop_install_notice" >
4 4
 	<h3><?php
5
-		if ( 1 != $this->current_installation_step ) {
6
-			_e( 'You start to configure your shop, but there are still missing parameters', 'wpshop');
5
+		if (1 != $this->current_installation_step) {
6
+			_e('You start to configure your shop, but there are still missing parameters', 'wpshop');
7 7
 		}
8 8
 		else {
9
-			_e( 'Your shop is now installed. You will need some configuration before using it completely', 'wpshop');
9
+			_e('Your shop is now installed. You will need some configuration before using it completely', 'wpshop');
10 10
 		}
11 11
 	?></h3>
12
-	<a href="<?php echo admin_url( 'admin.php?page=wps-installer&amp;installation_state=initialized' ); ?>" class="button-primary wpshop-install-button" ><?php ( 1 != $this->current_installation_step ) ? _e( 'Continue configuration', 'wpshop') : _e( 'Configure your shop', 'wpshop'); ?></a>
13
-	<a href="<?php echo admin_url( 'admin.php?page=wpshop_about&amp;installation_state=ignored' ); ?>" ><?php _e( 'Install without settings', 'wpshop'); ?></a>
12
+	<a href="<?php echo admin_url('admin.php?page=wps-installer&amp;installation_state=initialized'); ?>" class="button-primary wpshop-install-button" ><?php (1 != $this->current_installation_step) ? _e('Continue configuration', 'wpshop') : _e('Configure your shop', 'wpshop'); ?></a>
13
+	<a href="<?php echo admin_url('admin.php?page=wpshop_about&amp;installation_state=ignored'); ?>" ><?php _e('Install without settings', 'wpshop'); ?></a>
14 14
 </div>
Please login to merge, or discard this patch.
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,11 +1,12 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if ( !defined( 'ABSPATH' ) ) {
2
+	exit;
3
+}
2 4
 ?>
3 5
 <div class="updated wpshop_admin_notice wpshop_install_notice" id="wpshop_install_notice" >
4 6
 	<h3><?php
5 7
 		if ( 1 != $this->current_installation_step ) {
6 8
 			_e( 'You start to configure your shop, but there are still missing parameters', 'wpshop');
7
-		}
8
-		else {
9
+		} else {
9 10
 			_e( 'Your shop is now installed. You will need some configuration before using it completely', 'wpshop');
10 11
 		}
11 12
 	?></h3>
Please login to merge, or discard this patch.
includes/modules/wps_installer/templates/backend/step_two.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,20 +1,20 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if (!defined('ABSPATH')) exit;
2 2
 ?>
3 3
 <table class="form-table" >
4 4
 	<tr>
5
-		<th><?php _e( 'Shop type', 'wpshop' ); ?></th>
5
+		<th><?php _e('Shop type', 'wpshop'); ?></th>
6 6
 		<td><?php wpshop_general_options::wpshop_shop_type(); ?></td>
7 7
 	</tr>
8 8
 	<tr>
9
-		<th><?php _e( 'Price piloting for the shop', 'wpshop' ); ?></th>
9
+		<th><?php _e('Price piloting for the shop', 'wpshop'); ?></th>
10 10
 		<td><?php wpshop_general_options::wpshop_shop_price_piloting_field(); ?></td>
11 11
 	</tr>
12 12
 	<tr>
13
-		<td colspan="2" ><label><input type="checkbox" name="wps-installer-data-insertion" value="yes" checked="checked" disabled="disabled" /><?php _e( 'Create necessary datas for wpshop (emails, pages)', 'wpshop'); ?></label></td>
13
+		<td colspan="2" ><label><input type="checkbox" name="wps-installer-data-insertion" value="yes" checked="checked" disabled="disabled" /><?php _e('Create necessary datas for wpshop (emails, pages)', 'wpshop'); ?></label></td>
14 14
 	</tr>
15 15
 	<!--
16 16
 	<tr>
17
-		<td colspan="2" ><label><input type="checkbox" name="wps-installer-data-insertion" value="yes" /><?php _e( 'Create sample datas (products)', 'wpshop'); ?></label></td>
17
+		<td colspan="2" ><label><input type="checkbox" name="wps-installer-data-insertion" value="yes" /><?php _e('Create sample datas (products)', 'wpshop'); ?></label></td>
18 18
 	</tr>
19 19
 	 -->
20 20
 </table>
21 21
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,6 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if ( !defined( 'ABSPATH' ) ) {
2
+	exit;
3
+}
2 4
 ?>
3 5
 <table class="form-table" >
4 6
 	<tr>
Please login to merge, or discard this patch.
includes/modules/wps_installer/templates/backend/installer.php 2 patches
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,35 +1,35 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if (!defined('ABSPATH')) exit;
2 2
 ?>
3 3
 <div class="wpshop_full_page_tabs">
4
-	<h1><span class="wps-shop-icon" ></span><?php _e( 'Welcome on wpshop', 'wpshop'); ?></h1>
5
-	<h2><?php _e( 'Before you start to use WPShop you will need to configure some parameters', 'wpshop'); ?></h2>
4
+	<h1><span class="wps-shop-icon" ></span><?php _e('Welcome on wpshop', 'wpshop'); ?></h1>
5
+	<h2><?php _e('Before you start to use WPShop you will need to configure some parameters', 'wpshop'); ?></h2>
6 6
 	<div class="wpshop_admin_box">
7 7
 		<div class="wps-gridwrapper3-marged">
8 8
 		<?php
9 9
 			$step_finished = false;
10
-			foreach( $steps as $step_id => $step) :
10
+			foreach ($steps as $step_id => $step) :
11 11
 				$step_id += 1;
12
-				$step_class = ( $current_step == $step_id ) ? 'wps-checkout-step-current' : ( ( $current_step > $step_id) ? 'wps-checkout-step-finished' : 'wps-checkout-step' ) ;
13
-				$step_finished = ( ( $current_step > $step_id) ? true : false ) ;
14
-				require( wpshop_tools::get_template_part( WPS_INSTALLER_DIR, WPSINSTALLER_TPL_DIR, "backend", "step_indicator" ) );
12
+				$step_class = ($current_step == $step_id) ? 'wps-checkout-step-current' : (($current_step > $step_id) ? 'wps-checkout-step-finished' : 'wps-checkout-step');
13
+				$step_finished = (($current_step > $step_id) ? true : false);
14
+				require(wpshop_tools::get_template_part(WPS_INSTALLER_DIR, WPSINSTALLER_TPL_DIR, "backend", "step_indicator"));
15 15
 			endforeach;
16 16
 		?>
17 17
 		</div><!-- .wps-gridwrapper4-marged -->
18 18
 
19 19
 		<div class="wps-installer-step-container wps-installer-step-container-<?php echo $current_step; ?>" >
20
-		<?php if ( $current_step < count( $steps ) ) : ?>
21
-			<form action="<?php echo admin_url( 'admin.php?page=wps-installer&amp;wps-installation-step=' . ( $current_step + 1 ) ); ?>" method="post" id="wps_installer_form" enctype="multipart/form-data" >
20
+		<?php if ($current_step < count($steps)) : ?>
21
+			<form action="<?php echo admin_url('admin.php?page=wps-installer&amp;wps-installation-step=' . ($current_step + 1)); ?>" method="post" id="wps_installer_form" enctype="multipart/form-data" >
22 22
 				<input type="hidden" name="action" value="wps-installation" />
23 23
 				<div class="wps-installer-step-content wps-installer-step-content-<?php echo $current_step; ?>" >
24 24
 					<?php echo $current_step_output; ?>
25 25
 				</div>
26 26
 
27
-				<button class="button button-primary alignright" ><?php ( 2 == $current_step ) ? _e( 'Create my shop', 'wpshop') : _e( 'Next step', 'wpshop'); ?></button>
27
+				<button class="button button-primary alignright" ><?php (2 == $current_step) ? _e('Create my shop', 'wpshop') : _e('Next step', 'wpshop'); ?></button>
28 28
 				<span class="spinner" ></span>
29
-				<!-- <button class="button button-secondary alignright" ><?php _e( 'Ignore this step', 'wpshop'); ?></button>  -->
29
+				<!-- <button class="button button-secondary alignright" ><?php _e('Ignore this step', 'wpshop'); ?></button>  -->
30 30
 			</form><!-- #wps_installer_form -->
31 31
 		<?php else: ?>
32
-			<?php _e( 'Main informations have been setted up.', 'wpshop'); ?>
32
+			<?php _e('Main informations have been setted up.', 'wpshop'); ?>
33 33
 		<?php endif; ?>
34 34
 		</div><!-- .wps-installer-step-container -->
35 35
 	</div><!-- .wpshop_full_page_tabs -->
Please login to merge, or discard this patch.
Braces   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,6 @@  discard block
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if ( !defined( 'ABSPATH' ) ) {
2
+	exit;
3
+}
2 4
 ?>
3 5
 <div class="wpshop_full_page_tabs">
4 6
 	<h1><span class="wps-shop-icon" ></span><?php _e( 'Welcome on wpshop', 'wpshop'); ?></h1>
@@ -28,8 +30,11 @@  discard block
 block discarded – undo
28 30
 				<span class="spinner" ></span>
29 31
 				<!-- <button class="button button-secondary alignright" ><?php _e( 'Ignore this step', 'wpshop'); ?></button>  -->
30 32
 			</form><!-- #wps_installer_form -->
31
-		<?php else: ?>
32
-			<?php _e( 'Main informations have been setted up.', 'wpshop'); ?>
33
+		<?php else {
34
+	: ?>
35
+			<?php _e( 'Main informations have been setted up.', 'wpshop');
36
+}
37
+?>
33 38
 		<?php endif; ?>
34 39
 		</div><!-- .wps-installer-step-container -->
35 40
 	</div><!-- .wpshop_full_page_tabs -->
Please login to merge, or discard this patch.
includes/modules/wps_installer/templates/backend/about-introduction.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,6 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if ( !defined( 'ABSPATH' ) ) {
2
+	exit;
3
+}
2 4
 ?>
3 5
 <div class="changelog" >
4 6
 
Please login to merge, or discard this patch.
Spacing   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -1,62 +1,62 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if (!defined('ABSPATH')) exit;
2 2
 ?>
3 3
 <div class="changelog" >
4 4
 
5 5
 	<div class="feature-section changelog three-col">
6 6
 		<div class="col">
7
-			<img src="<?php echo WPS_INSTALLER_URL . WPS_INSTALLER_DIR . '/assets/medias/paiement.jpg'; ?>" alt="<?php _e( 'Payment methods', 'wpshop'); ?>" title="<?php _e( 'Payment methods', 'wpshop'); ?>" />
8
-			<h3><?php _e( 'Payment methods', 'wpshop'); ?></h3>
9
-			<p><?php printf( __( 'When installing WPShop you will have included by default, checks and paypal payment gateway. However there are more %spayment method%s developped for WPShop. If you are interested by a non existant payment method. You can contact us on our %sforum%s', 'wpshop'), '<a href="http://www.wpshop.fr/boutique/extensions/paiement/" target="_wps_about_extra">', '</a>', '<a href="http://forums.eoxia.com/" target="_eoxia_form">', '</a>' ); ?></p>
10
-			<a href="<?php echo admin_url( 'options-general.php?page=wpshop_option#wpshop_payments_option' ); ?>" class="button button-large button-primary"><?php _e( 'Manage payment methods', 'wpshop'); ?></a>
7
+			<img src="<?php echo WPS_INSTALLER_URL . WPS_INSTALLER_DIR . '/assets/medias/paiement.jpg'; ?>" alt="<?php _e('Payment methods', 'wpshop'); ?>" title="<?php _e('Payment methods', 'wpshop'); ?>" />
8
+			<h3><?php _e('Payment methods', 'wpshop'); ?></h3>
9
+			<p><?php printf(__('When installing WPShop you will have included by default, checks and paypal payment gateway. However there are more %spayment method%s developped for WPShop. If you are interested by a non existant payment method. You can contact us on our %sforum%s', 'wpshop'), '<a href="http://www.wpshop.fr/boutique/extensions/paiement/" target="_wps_about_extra">', '</a>', '<a href="http://forums.eoxia.com/" target="_eoxia_form">', '</a>'); ?></p>
10
+			<a href="<?php echo admin_url('options-general.php?page=wpshop_option#wpshop_payments_option'); ?>" class="button button-large button-primary"><?php _e('Manage payment methods', 'wpshop'); ?></a>
11 11
 		</div>
12 12
 		<div class="col">
13
-			<img src="<?php echo WPS_INSTALLER_URL . WPS_INSTALLER_DIR . '/assets/medias/livraison.jpg'; ?>" alt="<?php _e( 'Shipping methods', 'wpshop'); ?>" title="<?php _e( 'Shipping methods', 'wpshop'); ?>" />
14
-			<h3><?php _e( 'Shipping methods', 'wpshop'); ?></h3>
15
-			<p><?php printf( __( 'By default you have one shipping method available into WPShop. You can create as much as you want using %ssettings interface%s. You will also find on our %swebsite%s additionnals shipping methods. You can contact us on our %sforum%s', 'wpshop'), '<a href="' . admin_url( 'options-general.php?page=wpshop_option#wpshop_shipping_option' ) . '" target="_wps_settings_interface" >', '</a>', '<a href="http://www.wpshop.fr/shop-theme/" target="_wps_about_extra" >', '</a>',  '<a href="http://forums.eoxia.com/" target="_eoxia_form">', '</a>' ); ?></p>
16
-			<a href="<?php echo admin_url( 'options-general.php?page=wpshop_option#wpshop_shipping_option' ); ?>" class="button button-large button-primary"><?php _e( 'Manage shipping methods', 'wpshop'); ?></a>
13
+			<img src="<?php echo WPS_INSTALLER_URL . WPS_INSTALLER_DIR . '/assets/medias/livraison.jpg'; ?>" alt="<?php _e('Shipping methods', 'wpshop'); ?>" title="<?php _e('Shipping methods', 'wpshop'); ?>" />
14
+			<h3><?php _e('Shipping methods', 'wpshop'); ?></h3>
15
+			<p><?php printf(__('By default you have one shipping method available into WPShop. You can create as much as you want using %ssettings interface%s. You will also find on our %swebsite%s additionnals shipping methods. You can contact us on our %sforum%s', 'wpshop'), '<a href="' . admin_url('options-general.php?page=wpshop_option#wpshop_shipping_option') . '" target="_wps_settings_interface" >', '</a>', '<a href="http://www.wpshop.fr/shop-theme/" target="_wps_about_extra" >', '</a>', '<a href="http://forums.eoxia.com/" target="_eoxia_form">', '</a>'); ?></p>
16
+			<a href="<?php echo admin_url('options-general.php?page=wpshop_option#wpshop_shipping_option'); ?>" class="button button-large button-primary"><?php _e('Manage shipping methods', 'wpshop'); ?></a>
17 17
 		</div>
18 18
 		<div class="col last-feature">
19
-			<img src="<?php echo WPS_INSTALLER_URL . WPS_INSTALLER_DIR . '/assets/medias/produit.jpg'; ?>" alt="<?php _e( 'Create products', 'wpshop'); ?>" title="<?php _e( 'Create products', 'wpshop'); ?>" />
20
-			<h3><?php _e( 'Create products', 'wpshop'); ?></h3>
21
-			<p><?php _e( 'With WPshop plugin you can now create your product catalog on WordPress and market them. A catalog and clear product information, easy to create and fully customizable through shortcodes.', 'wpshop'); ?></p>
22
-			<a href="<?php echo admin_url( 'edit.php?post_type=wpshop_product' ); ?>" class="button button-large button-primary wpshop-about-btn-create-products"><?php _e( 'Create products', 'wpshop'); ?></a>
19
+			<img src="<?php echo WPS_INSTALLER_URL . WPS_INSTALLER_DIR . '/assets/medias/produit.jpg'; ?>" alt="<?php _e('Create products', 'wpshop'); ?>" title="<?php _e('Create products', 'wpshop'); ?>" />
20
+			<h3><?php _e('Create products', 'wpshop'); ?></h3>
21
+			<p><?php _e('With WPshop plugin you can now create your product catalog on WordPress and market them. A catalog and clear product information, easy to create and fully customizable through shortcodes.', 'wpshop'); ?></p>
22
+			<a href="<?php echo admin_url('edit.php?post_type=wpshop_product'); ?>" class="button button-large button-primary wpshop-about-btn-create-products"><?php _e('Create products', 'wpshop'); ?></a>
23 23
 		</div>
24 24
 	</div>
25 25
 
26 26
 	<div class="feature-section col three-col">
27 27
 		<div class="col">
28
-			<img src="<?php echo WPS_INSTALLER_URL . WPS_INSTALLER_DIR . '/assets/medias/commande.jpg'; ?>" alt="<?php _e( 'Manage orders', 'wpshop'); ?>" title="<?php _e( 'Manage orders', 'wpshop'); ?>" />
29
-			<h3><?php _e( 'Manage orders', 'wpshop'); ?></h3>
30
-			<p><?php _e( 'You can manage all your orders and stay in touch with your customers. The dashboard controls will allow you to quickly view your most visited pages , static of your orders ...', 'wpshop'); ?></p>
31
-			<a href="<?php echo admin_url( 'edit.php?post_type=' . WPSHOP_NEWTYPE_IDENTIFIER_ORDER ); ?>" class="button button-large button-primary"><?php _e( 'Manage orders', 'wpshop'); ?></a>
28
+			<img src="<?php echo WPS_INSTALLER_URL . WPS_INSTALLER_DIR . '/assets/medias/commande.jpg'; ?>" alt="<?php _e('Manage orders', 'wpshop'); ?>" title="<?php _e('Manage orders', 'wpshop'); ?>" />
29
+			<h3><?php _e('Manage orders', 'wpshop'); ?></h3>
30
+			<p><?php _e('You can manage all your orders and stay in touch with your customers. The dashboard controls will allow you to quickly view your most visited pages , static of your orders ...', 'wpshop'); ?></p>
31
+			<a href="<?php echo admin_url('edit.php?post_type=' . WPSHOP_NEWTYPE_IDENTIFIER_ORDER); ?>" class="button button-large button-primary"><?php _e('Manage orders', 'wpshop'); ?></a>
32 32
 		</div>
33 33
 		<div class="col">
34
-			<img src="<?php echo WPS_INSTALLER_URL . WPS_INSTALLER_DIR . '/assets/medias/reglage-boutique.jpg'; ?>" alt="<?php _e( 'Configure my shop', 'wpshop'); ?>" title="<?php _e( 'Configure my shop', 'wpshop'); ?>" />
35
-			<h3><?php _e( 'Configure my shop', 'wpshop'); ?></h3>
36
-			<p><?php printf( __( 'We update WPShop in order to improve speed, accessibility and mobile usage. Go on %smain settings interface%s in order to configure your new shop, payment gateways or shipping methods', 'wpshop'), '<a href="' . admin_url( 'options-general.php?page=wpshop_option' ) . '" target="_wps_settings_interface" >', '</a>' ); ?></p>
37
-			<a href="<?php echo admin_url( 'options-general.php?page=wpshop_option' ); ?>" class="button button-large button-primary"><?php _e( 'Configure my shop', 'wpshop'); ?></a>
34
+			<img src="<?php echo WPS_INSTALLER_URL . WPS_INSTALLER_DIR . '/assets/medias/reglage-boutique.jpg'; ?>" alt="<?php _e('Configure my shop', 'wpshop'); ?>" title="<?php _e('Configure my shop', 'wpshop'); ?>" />
35
+			<h3><?php _e('Configure my shop', 'wpshop'); ?></h3>
36
+			<p><?php printf(__('We update WPShop in order to improve speed, accessibility and mobile usage. Go on %smain settings interface%s in order to configure your new shop, payment gateways or shipping methods', 'wpshop'), '<a href="' . admin_url('options-general.php?page=wpshop_option') . '" target="_wps_settings_interface" >', '</a>'); ?></p>
37
+			<a href="<?php echo admin_url('options-general.php?page=wpshop_option'); ?>" class="button button-large button-primary"><?php _e('Configure my shop', 'wpshop'); ?></a>
38 38
 		</div>
39 39
 		<div class="col last-feature">
40
-			<img src="<?php echo WPS_INSTALLER_URL . WPS_INSTALLER_DIR . '/assets/medias/contenu.jpg'; ?>" alt="<?php _e( 'Full content customization', 'wpshop'); ?>" title="<?php _e( 'Full content customization', 'wpshop'); ?>" />
41
-			<h3><?php _e( 'Full content customization', 'wpshop'); ?></h3>
42
-			<p><?php printf( __( 'You can design all you %stransactionnal emails%s, change the different %spage layout%s (as cart page, checkout page, and so on)', 'wpshop'), '<a href="' . admin_url( 'edit.php?post_type=wpshop_shop_message' ) . '" target="_wps_settings_interface" >', '</a>', '<a href="' . admin_url( 'edit.php?post_type=page' ) . '" target="_wps_settings_interface" >', '</a>' ); ?></p>
40
+			<img src="<?php echo WPS_INSTALLER_URL . WPS_INSTALLER_DIR . '/assets/medias/contenu.jpg'; ?>" alt="<?php _e('Full content customization', 'wpshop'); ?>" title="<?php _e('Full content customization', 'wpshop'); ?>" />
41
+			<h3><?php _e('Full content customization', 'wpshop'); ?></h3>
42
+			<p><?php printf(__('You can design all you %stransactionnal emails%s, change the different %spage layout%s (as cart page, checkout page, and so on)', 'wpshop'), '<a href="' . admin_url('edit.php?post_type=wpshop_shop_message') . '" target="_wps_settings_interface" >', '</a>', '<a href="' . admin_url('edit.php?post_type=page') . '" target="_wps_settings_interface" >', '</a>'); ?></p>
43 43
 		</div>
44 44
 	</div>
45 45
 
46
-	<h2 class="about-headline-callout"><?php _e( 'Extend default WPShop functionnalities', 'wpshop'); ?></h2>
46
+	<h2 class="about-headline-callout"><?php _e('Extend default WPShop functionnalities', 'wpshop'); ?></h2>
47 47
 	<div class="feature-section col two-col">
48 48
 		<div class="col">
49
-			<h3><?php _e( 'External addons', 'wpshop'); ?></h3>
50
-			<p><?php printf( __( 'Need a theme? or a payment gateway? or a shipping addons? Anythong else? Check %sour website%s in order to find the addons for WPShop that you need. If you don\'t find it please contact us through the forum with the link below.', 'wpshop'), '<a href="http://www.wpshop.fr/shop-theme/" >', '</a>' ); ?></p>
49
+			<h3><?php _e('External addons', 'wpshop'); ?></h3>
50
+			<p><?php printf(__('Need a theme? or a payment gateway? or a shipping addons? Anythong else? Check %sour website%s in order to find the addons for WPShop that you need. If you don\'t find it please contact us through the forum with the link below.', 'wpshop'), '<a href="http://www.wpshop.fr/shop-theme/" >', '</a>'); ?></p>
51 51
 		</div>
52 52
 		<div class="col last-feature">
53
-			<h3><?php _e( 'Custom hooks', 'wpshop'); ?></h3>
54
-			<p><?php printf( __( 'We inserted some custom hook through WPShop code. That will give you some possibilities to add functionnalities when it is already planned.', 'wpshop') ); ?></p>
53
+			<h3><?php _e('Custom hooks', 'wpshop'); ?></h3>
54
+			<p><?php printf(__('We inserted some custom hook through WPShop code. That will give you some possibilities to add functionnalities when it is already planned.', 'wpshop')); ?></p>
55 55
 		</div>
56 56
 	</div>
57 57
 
58
-	<h3 class="about-headline-callout"><?php printf( __( 'A question ? A comment ? A need ? Join us on %sWPShop forum%s', 'wpshop'), '<a href="http://forums.eoxia.com/login" taget="_wpshop_forums" >', '</a>' ); ?></h3>
58
+	<h3 class="about-headline-callout"><?php printf(__('A question ? A comment ? A need ? Join us on %sWPShop forum%s', 'wpshop'), '<a href="http://forums.eoxia.com/login" taget="_wpshop_forums" >', '</a>'); ?></h3>
59 59
 
60 60
 	<hr>
61
-	<div class="return-to-dashboard"><a href="<?php echo admin_url( 'admin.php?page=wpshop_dashboard' ); ?>"><?php _e( 'Go to your shop dashboard', 'wpshop'); ?></a></div>
61
+	<div class="return-to-dashboard"><a href="<?php echo admin_url('admin.php?page=wpshop_dashboard'); ?>"><?php _e('Go to your shop dashboard', 'wpshop'); ?></a></div>
62 62
 </div>
Please login to merge, or discard this patch.
includes/modules/wps_installer/templates/backend/step_indicator.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if (!defined('ABSPATH')) exit;
2 2
 ?>
3 3
 <div class="<?php echo $step_class; ?>">
4
-	<?php if( $step_finished ) : ?>
5
-		<a href="<?php echo admin_url( 'admin.php?page=wps-installer&amp;wps-installation-step=' . $step_id ); ?>"><i class="wps-circlerounded"><?php echo _e( $step_id, 'wpshop'); ?></i><span><?php echo _e( $step, 'wpshop'); ?></span></a>
4
+	<?php if ($step_finished) : ?>
5
+		<a href="<?php echo admin_url('admin.php?page=wps-installer&amp;wps-installation-step=' . $step_id); ?>"><i class="wps-circlerounded"><?php echo _e($step_id, 'wpshop'); ?></i><span><?php echo _e($step, 'wpshop'); ?></span></a>
6 6
 	<?php else : ?>
7
-		<i class="wps-circlerounded"><?php _e( $step_id, 'wpshop'); ?></i><span><?php _e( $step, 'wpshop'); ?></span>
7
+		<i class="wps-circlerounded"><?php _e($step_id, 'wpshop'); ?></i><span><?php _e($step, 'wpshop'); ?></span>
8 8
 	<?php endif ?>
9 9
 </div>
10 10
 
Please login to merge, or discard this patch.
Braces   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,10 +1,15 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if ( !defined( 'ABSPATH' ) ) {
2
+	exit;
3
+}
2 4
 ?>
3 5
 <div class="<?php echo $step_class; ?>">
4 6
 	<?php if( $step_finished ) : ?>
5 7
 		<a href="<?php echo admin_url( 'admin.php?page=wps-installer&amp;wps-installation-step=' . $step_id ); ?>"><i class="wps-circlerounded"><?php echo _e( $step_id, 'wpshop'); ?></i><span><?php echo _e( $step, 'wpshop'); ?></span></a>
6
-	<?php else : ?>
7
-		<i class="wps-circlerounded"><?php _e( $step_id, 'wpshop'); ?></i><span><?php _e( $step, 'wpshop'); ?></span>
8
+	<?php else {
9
+	: ?>
10
+		<i class="wps-circlerounded"><?php _e( $step_id, 'wpshop');
11
+}
12
+?></i><span><?php _e( $step, 'wpshop'); ?></span>
8 13
 	<?php endif ?>
9 14
 </div>
10 15
 
Please login to merge, or discard this patch.
includes/modules/wps_customer/controller/wp_list_custom_groups.class.php 3 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 		 * to keep hidden, and a list of columns that are sortable. Each of these
235 235
 		 * can be defined in another method (as we've done here) before being
236 236
 		 * used to build the value for our _column_headers property.
237
-		*/
237
+		 */
238 238
 		$columns = $this->get_columns();
239 239
 		$hidden = array();
240 240
 		$sortable = $this->get_sortable_columns();
@@ -244,13 +244,13 @@  discard block
 block discarded – undo
244 244
 		 * headers. The $this->_column_headers property takes an array which contains
245 245
 		 * 3 other arrays. One for all columns, one for hidden columns, and one
246 246
 		 * for sortable columns.
247
-		*/
247
+		 */
248 248
 		$this->_column_headers = array($columns, $hidden, $sortable);
249 249
 
250 250
 		/**
251 251
 		 * Optional. You can handle your bulk actions however you see fit. In this
252 252
 		 * case, we'll handle them within our package just to keep things clean.
253
-		*/
253
+		 */
254 254
 		$this->process_bulk_action();
255 255
 
256 256
 		/**
@@ -261,14 +261,14 @@  discard block
 block discarded – undo
261 261
 		 * our data. In a real-world implementation, you will probably want to
262 262
 		 * use sort and pagination data to build a custom query instead, as you'll
263 263
 		 * be able to use your precisely-queried data immediately.
264
-		*/
264
+		 */
265 265
 		// $data = ;
266 266
 
267 267
 		/**
268 268
 		 * REQUIRED for pagination. Let's figure out what page the user is currently
269 269
 		 * looking at. We'll need this later, so you should always include it in
270 270
 		 * your own package classes.
271
-		*/
271
+		 */
272 272
 		$current_page = $this->get_pagenum();
273 273
 
274 274
 		/**
@@ -276,20 +276,20 @@  discard block
 block discarded – undo
276 276
 		 * In real-world use, this would be the total number of items in your database,
277 277
 		 * without filtering. We'll need this later, so you should always include it
278 278
 		 * in your own package classes.
279
-		*/
279
+		 */
280 280
 		$total_items = count($data);
281 281
 
282 282
 		/**
283 283
 		 * The WP_List_Table class does not handle pagination for us, so we need
284 284
 		 * to ensure that the data is trimmed to only the current page. We can use
285 285
 		 * array_slice() to
286
-		*/
286
+		 */
287 287
 		$data = array_slice($data,(($current_page-1)*$per_page),$per_page);
288 288
 
289 289
 		/**
290 290
 		 * REQUIRED. Now we can add our *sorted* data to the items property, where
291 291
 		 * it can be used by the rest of the class.
292
-		*/
292
+		 */
293 293
 		$this->items = $data;
294 294
 
295 295
 		/*	REQUIRED. We also have to register our pagination options & calculations.	*/
Please login to merge, or discard this patch.
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -1,34 +1,34 @@  discard block
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if (!defined('ABSPATH')) exit;
2 2
 
3 3
 /*	Check if file is include. No direct access possible with file url	*/
4
-if ( !defined( 'WPSHOP_VERSION' ) ) {
5
-	die( __('Access is not allowed by this way', 'wpshop') );
4
+if (!defined('WPSHOP_VERSION')) {
5
+	die(__('Access is not allowed by this way', 'wpshop'));
6 6
 }
7 7
 
8 8
 
9
-if(!class_exists('WP_List_Table')){
10
-	require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' );
9
+if (!class_exists('WP_List_Table')) {
10
+	require_once(ABSPATH . 'wp-admin/includes/class-wp-list-table.php');
11 11
 }
12 12
 /**
13 13
  * Define the different method to manage groups listing with wordpress methods
14 14
  * @package wpshop
15 15
  * @subpackage librairies
16 16
  */
17
-class wpshop_groups_custom_List_table extends WP_List_Table{
17
+class wpshop_groups_custom_List_table extends WP_List_Table {
18 18
 
19 19
 	/** ************************************************************************
20 20
 	 * REQUIRED. Set up a constructor that references the parent constructor. We
21 21
 	 * use the parent reference to set some default configs.
22 22
 	 ***************************************************************************/
23
-	function __construct(){
23
+	function __construct() {
24 24
 		global $status, $page;
25 25
 
26 26
 		//Set parent defaults
27
-		parent::__construct( array(
28
-			'singular'  => __('group\'s', 'wpshop'),    //singular name of the listed records
29
-			'plural'    => __('groups\'', 'wpshop'),    //plural name of the listed records
27
+		parent::__construct(array(
28
+			'singular'  => __('group\'s', 'wpshop'), //singular name of the listed records
29
+			'plural'    => __('groups\'', 'wpshop'), //plural name of the listed records
30 30
 			'ajax'     => true       //does this table support ajax?
31
-		) );
31
+		));
32 32
 	}
33 33
 
34 34
 
@@ -45,9 +45,9 @@  discard block
 block discarded – undo
45 45
 	 * @see WP_List_Table::::single_row_columns()
46 46
 	 * @return array An associative array containing column information: 'slugs'=>'Visible Titles'
47 47
 	 **************************************************************************/
48
-	function get_columns(){
48
+	function get_columns() {
49 49
 		$columns = array(
50
-			'cb'       => '',//'<input type="checkbox" />', //Render a checkbox instead of text
50
+			'cb'       => '', //'<input type="checkbox" />', //Render a checkbox instead of text
51 51
 			'name'    => __('Name', 'wpshop'),
52 52
 			'description'    => __('Description', 'wpshop')
53 53
 		);
@@ -75,10 +75,10 @@  discard block
 block discarded – undo
75 75
 	 * @param array $column_name The name/slug of the column to be processed
76 76
 	 * @return string Text or HTML to be placed inside the column <td>
77 77
 	 **************************************************************************/
78
-	function column_default($item, $column_name){
79
-		switch($column_name){
78
+	function column_default($item, $column_name) {
79
+		switch ($column_name) {
80 80
 			default:
81
-				return print_r($item,true); //Show the whole array for troubleshooting purposes
81
+				return print_r($item, true); //Show the whole array for troubleshooting purposes
82 82
 		}
83 83
 	}
84 84
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 	 * @param array $item A singular item (one full row's worth of data)
99 99
 	 * @return string Text to be placed inside the column <td> (movie title only)
100 100
 	 **************************************************************************/
101
-	function column_description($item){
101
+	function column_description($item) {
102 102
 		return $item['description'];
103 103
 	}
104 104
 	/** ************************************************************************
@@ -117,21 +117,21 @@  discard block
 block discarded – undo
117 117
 	 * @param array $item A singular item (one full row's worth of data)
118 118
 	 * @return string Text to be placed inside the column <td> (movie title only)
119 119
 	 **************************************************************************/
120
-	function column_name($item){
120
+	function column_name($item) {
121 121
 
122
-		$link_format = admin_url('admin.php').'?page=%s&amp;action=%s&amp;code=%s';
123
-		$default_action='edit';
124
-		$default_action_text=__('Edit', 'wpshop');
122
+		$link_format = admin_url('admin.php') . '?page=%s&amp;action=%s&amp;code=%s';
123
+		$default_action = 'edit';
124
+		$default_action_text = __('Edit', 'wpshop');
125 125
 
126 126
 		//Build row actions
127 127
 		$actions = array(
128
-			'edit'     => sprintf('<a href="'.$link_format.'">'.$default_action_text.'</a>', WPSHOP_NEWTYPE_IDENTIFIER_GROUP, $default_action, $item['code'])
128
+			'edit'     => sprintf('<a href="' . $link_format . '">' . $default_action_text . '</a>', WPSHOP_NEWTYPE_IDENTIFIER_GROUP, $default_action, $item['code'])
129 129
 		);
130
-		$actions['delete'] = sprintf('<a href="'.$link_format.'">'.__('Delete', 'wpshop').'</a>', WPSHOP_NEWTYPE_IDENTIFIER_GROUP, 'delete', $item['code']);
130
+		$actions['delete'] = sprintf('<a href="' . $link_format . '">' . __('Delete', 'wpshop') . '</a>', WPSHOP_NEWTYPE_IDENTIFIER_GROUP, 'delete', $item['code']);
131 131
 
132 132
 		//Return the title contents
133 133
 		return sprintf('%1$s%2$s',
134
-			/*$1%s*/ sprintf('<a href="'.$link_format.'">'.__($item['name'], 'wpshop').'</a>', WPSHOP_NEWTYPE_IDENTIFIER_GROUP, $default_action, $item['code']),
134
+			/*$1%s*/ sprintf('<a href="' . $link_format . '">' . __($item['name'], 'wpshop') . '</a>', WPSHOP_NEWTYPE_IDENTIFIER_GROUP, $default_action, $item['code']),
135 135
 			/*$3%s*/ $this->row_actions($actions)
136 136
 		);
137 137
 	}
@@ -144,11 +144,11 @@  discard block
 block discarded – undo
144 144
 	 * @param array $item A singular item (one full row's worth of data)
145 145
 	 * @return string Text to be placed inside the column <td> (movie title only)
146 146
 	 **************************************************************************/
147
-	function column_cb($item){
147
+	function column_cb($item) {
148 148
 		return '';
149 149
 		return sprintf(
150 150
 			'<input type="checkbox" name="%1$s[]" value="%2$s" />',
151
-			/*$1%s*/ $this->_args['singular'],  //Let's simply repurpose the table's singular label ("movie")
151
+			/*$1%s*/ $this->_args['singular'], //Let's simply repurpose the table's singular label ("movie")
152 152
 			/*$2%s*/ $item['id']             //The value of the checkbox should be the record's id
153 153
 		);
154 154
 	}
@@ -169,8 +169,8 @@  discard block
 block discarded – undo
169 169
 	 **************************************************************************/
170 170
 	function get_sortable_columns() {
171 171
 		$sortable_columns = array(
172
-			'name'    => array('frontend_label',true),    //true means its already sorted
173
-			'status'  => array('status',true)
172
+			'name'    => array('frontend_label', true), //true means its already sorted
173
+			'status'  => array('status', true)
174 174
 		);
175 175
 		return $sortable_columns;
176 176
 	}
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
 	 **************************************************************************/
206 206
 	function process_bulk_action() {
207 207
 		//Detect when a bulk action is being triggered...
208
-		if( 'delete'===$this->current_action() ) {
208
+		if ('delete' === $this->current_action()) {
209 209
 			wp_die('Items deleted (or they would be if we had items to delete)!');
210 210
 		}
211 211
 	}
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
 		 * to ensure that the data is trimmed to only the current page. We can use
285 285
 		 * array_slice() to
286 286
 		*/
287
-		$data = array_slice($data,(($current_page-1)*$per_page),$per_page);
287
+		$data = array_slice($data, (($current_page - 1) * $per_page), $per_page);
288 288
 
289 289
 		/**
290 290
 		 * REQUIRED. Now we can add our *sorted* data to the items property, where
@@ -293,10 +293,10 @@  discard block
 block discarded – undo
293 293
 		$this->items = $data;
294 294
 
295 295
 		/*	REQUIRED. We also have to register our pagination options & calculations.	*/
296
-		$this->set_pagination_args( array(
297
-			'total_items' => $total_items,               		//WE have to calculate the total number of items
298
-			'per_page'    => $per_page,                 		//WE have to determine how many items to show on a page
299
-			'total_pages' => ceil($total_items/$per_page)   //WE have to calculate the total number of pages
300
-		) );
296
+		$this->set_pagination_args(array(
297
+			'total_items' => $total_items, //WE have to calculate the total number of items
298
+			'per_page'    => $per_page, //WE have to determine how many items to show on a page
299
+			'total_pages' => ceil($total_items / $per_page)   //WE have to calculate the total number of pages
300
+		));
301 301
 	}
302 302
 }
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,6 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if ( !defined( 'ABSPATH' ) ) {
2
+	exit;
3
+}
2 4
 
3 5
 /*	Check if file is include. No direct access possible with file url	*/
4 6
 if ( !defined( 'WPSHOP_VERSION' ) ) {
Please login to merge, or discard this patch.