@@ -1,46 +1,46 @@ discard block |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
2 | -if($orders) : |
|
3 | - $payment_status = unserialize( WPSHOP_ORDER_STATUS ); |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | +if ($orders) : |
|
3 | + $payment_status = unserialize(WPSHOP_ORDER_STATUS); |
|
4 | 4 | ?> |
5 | 5 | <div class="wps-table"> |
6 | 6 | <div class="wps-table-header wps-table-row"> |
7 | - <div class="wps-table-cell"><?php _e( 'Date', 'wpshop'); ?></div> |
|
8 | - <div class="wps-table-cell"><?php _e( 'Customer', 'wpshop'); ?></div> |
|
9 | - <div class="wps-table-cell"><?php _e( 'Total', 'wpshop'); ?></div> |
|
10 | - <div class="wps-table-cell"><?php _e( 'Status', 'wpshop'); ?></div> |
|
11 | - <div class="wps-table-cell"><?php _e( 'Details', 'wpshop'); ?></div> |
|
12 | - <div class="wps-table-cell"><?php _e( 'Invoice', 'wpshop'); ?></div> |
|
13 | - <div class="wps-table-cell"><?php _e( 'Shipping Slip', 'wpshop'); ?></div> |
|
7 | + <div class="wps-table-cell"><?php _e('Date', 'wpshop'); ?></div> |
|
8 | + <div class="wps-table-cell"><?php _e('Customer', 'wpshop'); ?></div> |
|
9 | + <div class="wps-table-cell"><?php _e('Total', 'wpshop'); ?></div> |
|
10 | + <div class="wps-table-cell"><?php _e('Status', 'wpshop'); ?></div> |
|
11 | + <div class="wps-table-cell"><?php _e('Details', 'wpshop'); ?></div> |
|
12 | + <div class="wps-table-cell"><?php _e('Invoice', 'wpshop'); ?></div> |
|
13 | + <div class="wps-table-cell"><?php _e('Shipping Slip', 'wpshop'); ?></div> |
|
14 | 14 | </div> |
15 | - <?php foreach( $orders as $order ) : |
|
16 | - $order_meta = get_post_meta( $order->ID, '_order_postmeta', true ); |
|
17 | - $order_info = get_post_meta( $order->ID, '_order_info', true ); |
|
18 | - if ( !empty($order_meta) ) : |
|
15 | + <?php foreach ($orders as $order) : |
|
16 | + $order_meta = get_post_meta($order->ID, '_order_postmeta', true); |
|
17 | + $order_info = get_post_meta($order->ID, '_order_info', true); |
|
18 | + if (!empty($order_meta)) : |
|
19 | 19 | ?> |
20 | 20 | <div class="wps-table-content wps-table-row"> |
21 | - <div class="wps-table-cell"><?php echo ( !empty($order_meta['order_date']) ) ? mysql2date('d F Y', $order_meta['order_date'], true) : ''; ?></div> |
|
22 | - <div class="wps-table-cell"><?php echo ( !empty($order_info) && !empty($order_info['billing']) && !empty($order_info['billing']['address']) && !empty($order_info['billing']['address']['address_last_name']) && !empty($order_info['billing']['address']['address_first_name']) ) ? $order_info['billing']['address']['address_first_name'].' '.$order_info['billing']['address']['address_last_name'] : ''; ?></div> |
|
23 | - <div class="wps-table-cell"><?php echo ( !empty($order_meta['order_grand_total']) ) ? number_format( $order_meta['order_grand_total'], 2, '.', '' ).' '.wpshop_tools::wpshop_get_currency( false ) : ''; ?></div> |
|
24 | - <div class="wps-table-cell wps_dashboard_<?php echo $order_meta['order_status']; ?>"><?php _e($payment_status[ $order_meta['order_status'] ], 'wpshop' ) ?></div> |
|
25 | - <div class="wps-table-cell"><a href="<?php echo admin_url('/post.php?post=' .$order->ID. '&action=edit'); ?>" role="button" class="wps-bton-first-mini-rounded"><?php _e( 'See', 'wpshop' ); ?></a></div> |
|
21 | + <div class="wps-table-cell"><?php echo (!empty($order_meta['order_date'])) ? mysql2date('d F Y', $order_meta['order_date'], true) : ''; ?></div> |
|
22 | + <div class="wps-table-cell"><?php echo (!empty($order_info) && !empty($order_info['billing']) && !empty($order_info['billing']['address']) && !empty($order_info['billing']['address']['address_last_name']) && !empty($order_info['billing']['address']['address_first_name'])) ? $order_info['billing']['address']['address_first_name'] . ' ' . $order_info['billing']['address']['address_last_name'] : ''; ?></div> |
|
23 | + <div class="wps-table-cell"><?php echo (!empty($order_meta['order_grand_total'])) ? number_format($order_meta['order_grand_total'], 2, '.', '') . ' ' . wpshop_tools::wpshop_get_currency(false) : ''; ?></div> |
|
24 | + <div class="wps-table-cell wps_dashboard_<?php echo $order_meta['order_status']; ?>"><?php _e($payment_status[$order_meta['order_status']], 'wpshop') ?></div> |
|
25 | + <div class="wps-table-cell"><a href="<?php echo admin_url('/post.php?post=' . $order->ID . '&action=edit'); ?>" role="button" class="wps-bton-first-mini-rounded"><?php _e('See', 'wpshop'); ?></a></div> |
|
26 | 26 | <div class="wps-table-cell"> |
27 | 27 | <?php |
28 | 28 | $invoice_ref = ''; |
29 | - if ( !empty($order_meta['order_invoice_ref']) ) { |
|
29 | + if (!empty($order_meta['order_invoice_ref'])) { |
|
30 | 30 | $invoice_ref = $order_meta['order_invoice_ref']; |
31 | 31 | } |
32 | - if ( !empty($invoice_ref) ) { |
|
33 | - if( !empty($order_meta) && !empty($order_meta['order_payment']) && !empty($order_meta['order_payment']['received']) ) { |
|
34 | - $invoice_ref = $order_meta['order_payment']['received'][ count($order_meta['order_payment']['received']) - 1 ]['invoice_ref']; |
|
32 | + if (!empty($invoice_ref)) { |
|
33 | + if (!empty($order_meta) && !empty($order_meta['order_payment']) && !empty($order_meta['order_payment']['received'])) { |
|
34 | + $invoice_ref = $order_meta['order_payment']['received'][count($order_meta['order_payment']['received']) - 1]['invoice_ref']; |
|
35 | 35 | } |
36 | 36 | } |
37 | - if ( ( $order_meta['order_status'] == 'partially_paid' || $order_meta['order_status'] == 'completed' || $order_meta['order_status'] == 'shipped' ) && !empty($invoice_ref) ) : ?> |
|
38 | - <a href="<?php echo WPSHOP_TEMPLATES_URL; ?>invoice.php?order_id=<?php echo $order->ID; ?>&mode=pdf" role="button" class="wps-bton-second-mini-rounded"><?php _e( 'Download', 'wpshop' ); ?></a> |
|
37 | + if (($order_meta['order_status'] == 'partially_paid' || $order_meta['order_status'] == 'completed' || $order_meta['order_status'] == 'shipped') && !empty($invoice_ref)) : ?> |
|
38 | + <a href="<?php echo WPSHOP_TEMPLATES_URL; ?>invoice.php?order_id=<?php echo $order->ID; ?>&mode=pdf" role="button" class="wps-bton-second-mini-rounded"><?php _e('Download', 'wpshop'); ?></a> |
|
39 | 39 | <?php endif; ?> |
40 | 40 | </div> |
41 | 41 | <div class="wps-table-cell"> |
42 | - <?php if ( $order_meta['order_status'] == 'shipped' ) : ?> |
|
43 | - <a href="<?php echo WPSHOP_TEMPLATES_URL; ?>invoice.php?order_id=<?php echo $order->ID; ?>&bon_colisage=ok&mode=pdf" role="button" class="wps-bton-third-mini-rounded"><?php _e( 'Download', 'wpshop' ); ?></a> |
|
42 | + <?php if ($order_meta['order_status'] == 'shipped') : ?> |
|
43 | + <a href="<?php echo WPSHOP_TEMPLATES_URL; ?>invoice.php?order_id=<?php echo $order->ID; ?>&bon_colisage=ok&mode=pdf" role="button" class="wps-bton-third-mini-rounded"><?php _e('Download', 'wpshop'); ?></a> |
|
44 | 44 | <?php endif; ?> |
45 | 45 | </div> |
46 | 46 | |
@@ -49,5 +49,5 @@ discard block |
||
49 | 49 | <?php endforeach; ?> |
50 | 50 | </div> |
51 | 51 | <?php else : ?> |
52 | -<div class="wps-alert-info"><?php _e( 'No orders has been created on your shop', 'wpshop'); ?></div> |
|
52 | +<div class="wps-alert-info"><?php _e('No orders has been created on your shop', 'wpshop'); ?></div> |
|
53 | 53 | <?php endif; ?> |
54 | 54 | \ No newline at end of file |
@@ -1,4 +1,6 @@ discard block |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | if($orders) : |
3 | 5 | $payment_status = unserialize( WPSHOP_ORDER_STATUS ); |
4 | 6 | ?> |
@@ -48,6 +50,9 @@ discard block |
||
48 | 50 | <?php endif; ?> |
49 | 51 | <?php endforeach; ?> |
50 | 52 | </div> |
51 | -<?php else : ?> |
|
52 | -<div class="wps-alert-info"><?php _e( 'No orders has been created on your shop', 'wpshop'); ?></div> |
|
53 | +<?php else { |
|
54 | + : ?> |
|
55 | +<div class="wps-alert-info"><?php _e( 'No orders has been created on your shop', 'wpshop'); |
|
56 | +} |
|
57 | +?></div> |
|
53 | 58 | <?php endif; ?> |
54 | 59 | \ No newline at end of file |
@@ -1,7 +1,7 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | 2 | ?> |
3 | 3 | <div> |
4 | - <div class="wps-h6"><?php echo $videos_items[ $rand_element ]->title; ?></div> |
|
5 | - <div><center><iframe width="400" height="290" src="<?php echo $videos_items[ $rand_element ]->embed_link; ?>" frameborder="0" allowfullscreen></iframe></center></div> |
|
6 | - <div><?php echo $videos_items[ $rand_element ]->description; ?></div> |
|
4 | + <div class="wps-h6"><?php echo $videos_items[$rand_element]->title; ?></div> |
|
5 | + <div><center><iframe width="400" height="290" src="<?php echo $videos_items[$rand_element]->embed_link; ?>" frameborder="0" allowfullscreen></iframe></center></div> |
|
6 | + <div><?php echo $videos_items[$rand_element]->description; ?></div> |
|
7 | 7 | </div> |
8 | 8 | \ No newline at end of file |
@@ -1,4 +1,6 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | /** |
3 | 5 | * Fichier de définition du modèle des taxinomies / File for term model definition |
4 | 6 | * |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | 2 | /** |
3 | 3 | * Module bootstrap file |
4 | 4 | * @author Development team <[email protected]> |
@@ -13,13 +13,13 @@ discard block |
||
13 | 13 | |
14 | 14 | /** Template Global vars **/ |
15 | 15 | DEFINE('WPS_DASHBOARD_DIR', basename(dirname(__FILE__))); |
16 | -DEFINE('WPS_DASHBOARD_PATH_TO_MODULE', str_replace( str_replace( "\\", "/", WP_PLUGIN_DIR ), "", str_replace( "\\", "/", plugin_dir_path( __FILE__ ) ) ) ); |
|
17 | -DEFINE('WPS_DASHBOARD_PATH', str_replace( "\\", "/", str_replace( WPS_DASHBOARD_DIR, "", dirname( __FILE__ ) ) ) ); |
|
18 | -DEFINE('WPS_DASHBOARD_URL', str_replace( str_replace( "\\", "/", ABSPATH), site_url() . '/', WPS_DASHBOARD_PATH ) ); |
|
16 | +DEFINE('WPS_DASHBOARD_PATH_TO_MODULE', str_replace(str_replace("\\", "/", WP_PLUGIN_DIR), "", str_replace("\\", "/", plugin_dir_path(__FILE__)))); |
|
17 | +DEFINE('WPS_DASHBOARD_PATH', str_replace("\\", "/", str_replace(WPS_DASHBOARD_DIR, "", dirname(__FILE__)))); |
|
18 | +DEFINE('WPS_DASHBOARD_URL', str_replace(str_replace("\\", "/", ABSPATH), site_url() . '/', WPS_DASHBOARD_PATH)); |
|
19 | 19 | |
20 | -include( WPS_DASHBOARD_PATH . WPS_DASHBOARD_DIR . '/config/config.php' ); |
|
20 | +include(WPS_DASHBOARD_PATH . WPS_DASHBOARD_DIR . '/config/config.php'); |
|
21 | 21 | |
22 | -include( WPS_DASHBOARD_PATH . WPS_DASHBOARD_DIR . '/controller/wps_dashboard_ctr.php' ); |
|
22 | +include(WPS_DASHBOARD_PATH . WPS_DASHBOARD_DIR . '/controller/wps_dashboard_ctr.php'); |
|
23 | 23 | |
24 | 24 | global $wps_dashboard_ctr; |
25 | 25 | $wps_dashboard_ctr = new wps_dashboard_ctr(); |
@@ -1,4 +1,6 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | /** |
3 | 5 | * Fichier de définition du modèle des taxinomies / File for term model definition |
4 | 6 | * |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | 2 | /** |
3 | 3 | * Module bootstrap file |
4 | 4 | * @author Development team <[email protected]> |
@@ -13,17 +13,17 @@ discard block |
||
13 | 13 | |
14 | 14 | /** Template Global vars **/ |
15 | 15 | DEFINE('WPS_INSTALLER_DIR', basename(dirname(__FILE__))); |
16 | -DEFINE('WPS_INSTALLER_PATH_TO_MODULE', str_replace( str_replace( "\\", "/", WP_PLUGIN_DIR ), "", str_replace( "\\", "/", plugin_dir_path( __FILE__ ) ) ) ); |
|
17 | -DEFINE('WPS_INSTALLER_PATH', str_replace( "\\", "/", str_replace( WPS_INSTALLER_DIR, "", dirname( __FILE__ ) ) ) ); |
|
18 | -DEFINE('WPS_INSTALLER_URL', str_replace( str_replace( "\\", "/", ABSPATH), site_url() . '/', WPS_INSTALLER_PATH ) ); |
|
16 | +DEFINE('WPS_INSTALLER_PATH_TO_MODULE', str_replace(str_replace("\\", "/", WP_PLUGIN_DIR), "", str_replace("\\", "/", plugin_dir_path(__FILE__)))); |
|
17 | +DEFINE('WPS_INSTALLER_PATH', str_replace("\\", "/", str_replace(WPS_INSTALLER_DIR, "", dirname(__FILE__)))); |
|
18 | +DEFINE('WPS_INSTALLER_URL', str_replace(str_replace("\\", "/", ABSPATH), site_url() . '/', WPS_INSTALLER_PATH)); |
|
19 | 19 | |
20 | -load_plugin_textdomain( 'wps_installer', false, dirname(plugin_basename(__FILE__)).'/languages/'); |
|
20 | +load_plugin_textdomain('wps_installer', false, dirname(plugin_basename(__FILE__)) . '/languages/'); |
|
21 | 21 | |
22 | -include( WPS_INSTALLER_PATH . WPS_INSTALLER_DIR . '/config/config.php' ); |
|
22 | +include(WPS_INSTALLER_PATH . WPS_INSTALLER_DIR . '/config/config.php'); |
|
23 | 23 | |
24 | -include( WPS_INSTALLER_PATH . WPS_INSTALLER_DIR . '/controller/wps_installer_ctr.php' ); |
|
25 | -include( WPS_INSTALLER_PATH . WPS_INSTALLER_DIR . '/model/wps_installer_model.php' ); |
|
24 | +include(WPS_INSTALLER_PATH . WPS_INSTALLER_DIR . '/controller/wps_installer_ctr.php'); |
|
25 | +include(WPS_INSTALLER_PATH . WPS_INSTALLER_DIR . '/model/wps_installer_model.php'); |
|
26 | 26 | |
27 | -$wps_installer_ctr = new wps_installer_ctr(); |
|
27 | +$wps_installer_ctr = new wps_installer_ctr(); |
|
28 | 28 | |
29 | 29 | ?> |
@@ -1,4 +1,6 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | /** |
3 | 5 | * Fichier de définition du modèle des taxinomies / File for term model definition |
4 | 6 | * |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | 2 | /** |
3 | 3 | * Main plugin configuration file |
4 | 4 | * |
@@ -9,14 +9,14 @@ discard block |
||
9 | 9 | */ |
10 | 10 | |
11 | 11 | /** Define librairies directory */ |
12 | -DEFINE( 'WPSINSTALLER_LIBS_DIR', plugin_dir_path( __FILE__ ) . '/' . WPS_INSTALLER_DIR . '/'); |
|
12 | +DEFINE('WPSINSTALLER_LIBS_DIR', plugin_dir_path(__FILE__) . '/' . WPS_INSTALLER_DIR . '/'); |
|
13 | 13 | |
14 | 14 | /** Define template directory */ |
15 | -DEFINE( 'WPSINSTALLER_TPL_DIR', WPS_INSTALLER_PATH . WPS_INSTALLER_DIR . '/templates/'); |
|
16 | -DEFINE( 'WPSINSTALLER_TPL_URL', WPS_INSTALLER_URL . WPS_INSTALLER_DIR . '/templates/'); |
|
15 | +DEFINE('WPSINSTALLER_TPL_DIR', WPS_INSTALLER_PATH . WPS_INSTALLER_DIR . '/templates/'); |
|
16 | +DEFINE('WPSINSTALLER_TPL_URL', WPS_INSTALLER_URL . WPS_INSTALLER_DIR . '/templates/'); |
|
17 | 17 | |
18 | -$installation_step = array( __( 'Your society informations', 'wpshop'), __( 'Shop type', 'wpshop'), __( 'Have fun', 'wpshop') ); |
|
19 | -DEFINE( 'WPSINSTALLER_STEPS', serialize( $installation_step ) ); |
|
20 | -DEFINE( 'WPSINSTALLER_STEPS_COUNT', count( $installation_step ) ); |
|
18 | +$installation_step = array(__('Your society informations', 'wpshop'), __('Shop type', 'wpshop'), __('Have fun', 'wpshop')); |
|
19 | +DEFINE('WPSINSTALLER_STEPS', serialize($installation_step)); |
|
20 | +DEFINE('WPSINSTALLER_STEPS_COUNT', count($installation_step)); |
|
21 | 21 | |
22 | 22 | ?> |
@@ -1,4 +1,6 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | /** |
3 | 5 | * Fichier de définition du modèle des taxinomies / File for term model definition |
4 | 6 | * |
@@ -1,13 +1,13 @@ |
||
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> |
@@ -1,4 +1,6 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | /** |
3 | 5 | * Fichier de définition du modèle des taxinomies / File for term model definition |
4 | 6 | * |
@@ -1,38 +1,38 @@ |
||
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> |
@@ -1,4 +1,6 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | /** |
3 | 5 | * Fichier de définition du modèle des taxinomies / File for term model definition |
4 | 6 | * |
@@ -1,4 +1,4 @@ |
||
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 |
@@ -1,3 +1,5 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | ?> |
3 | 5 | <p><?php echo $content; ?></p> |
4 | 6 | \ No newline at end of file |
@@ -1,14 +1,14 @@ |
||
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&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&installation_state=ignored' ); ?>" ><?php _e( 'Install without settings', 'wpshop'); ?></a> |
|
12 | + <a href="<?php echo admin_url('admin.php?page=wps-installer&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&installation_state=ignored'); ?>" ><?php _e('Install without settings', 'wpshop'); ?></a> |
|
14 | 14 | </div> |
@@ -1,4 +1,6 @@ discard block |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | /** |
3 | 5 | * Fichier de gestion du modèle des taxinomies / File for term model management |
4 | 6 | * |
@@ -113,8 +115,7 @@ discard block |
||
113 | 115 | } |
114 | 116 | |
115 | 117 | return $object; |
116 | - } |
|
117 | - else { |
|
118 | + } else { |
|
118 | 119 | /** |
119 | 120 | * @todo return error when creation does not work |
120 | 121 | */ |