@@ -1,7 +1,7 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
2 | -if ( !empty( $address_meta ) && !empty( $address_meta[ '_wpshop_address_metadata' ] ) && !empty( $address_meta[ '_wpshop_address_metadata' ][ 0 ] ) ) : ?> |
|
3 | - <?php $address = unserialize( $address_meta[ '_wpshop_address_metadata' ][ 0 ] ); ?> |
|
4 | - <?php echo wps_address::display_an_address( $address, $post_id ); ?> |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | +if (!empty($address_meta) && !empty($address_meta['_wpshop_address_metadata']) && !empty($address_meta['_wpshop_address_metadata'][0])) : ?> |
|
3 | + <?php $address = unserialize($address_meta['_wpshop_address_metadata'][0]); ?> |
|
4 | + <?php echo wps_address::display_an_address($address, $post_id); ?> |
|
5 | 5 | <?php else: ?> |
6 | - <div class="wps-alert-info"><?php _e( 'This address has no informations', 'wpshop'); ?></div> |
|
6 | + <div class="wps-alert-info"><?php _e('This address has no informations', 'wpshop'); ?></div> |
|
7 | 7 | <?php endif; ?> |
8 | 8 | \ No newline at end of file |
@@ -1,7 +1,12 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | if ( !empty( $address_meta ) && !empty( $address_meta[ '_wpshop_address_metadata' ] ) && !empty( $address_meta[ '_wpshop_address_metadata' ][ 0 ] ) ) : ?> |
3 | 5 | <?php $address = unserialize( $address_meta[ '_wpshop_address_metadata' ][ 0 ] ); ?> |
4 | 6 | <?php echo wps_address::display_an_address( $address, $post_id ); ?> |
5 | -<?php else: ?> |
|
6 | - <div class="wps-alert-info"><?php _e( 'This address has no informations', 'wpshop'); ?></div> |
|
7 | +<?php else { |
|
8 | + : ?> |
|
9 | + <div class="wps-alert-info"><?php _e( 'This address has no informations', 'wpshop'); |
|
10 | +} |
|
11 | +?></div> |
|
7 | 12 | <?php endif; ?> |
8 | 13 | \ No newline at end of file |
@@ -1,4 +1,4 @@ |
||
1 | -<a href="<?php echo admin_url( 'post.php?post=' . $post_id . '&action=edit' ); ?>" ><?php echo $post_id; ?></a> |
|
1 | +<a href="<?php echo admin_url('post.php?post=' . $post_id . '&action=edit'); ?>" ><?php echo $post_id; ?></a> |
|
2 | 2 | <div class="row-actions" > |
3 | - <a href="<?php echo admin_url( 'post.php?post=' . $post_id . '&action=edit' ); ?>" ><?php _e( 'Edit' ); ?></a> |
|
3 | + <a href="<?php echo admin_url('post.php?post=' . $post_id . '&action=edit'); ?>" ><?php _e('Edit'); ?></a> |
|
4 | 4 | </div> |
5 | 5 | \ No newline at end of file |
@@ -1,7 +1,7 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
2 | - if ( !empty( $address_meta ) && !empty( $address_meta[ '_wpshop_address_attribute_set_id' ] ) && !empty( $address_meta[ '_wpshop_address_attribute_set_id' ][ 0 ] ) ) : ?> |
|
3 | - <?php $address_attribute_set = wpshop_attributes_set::getElement( $address_meta[ '_wpshop_address_attribute_set_id' ][ 0 ], "'valid','deleted'" ); ?> |
|
4 | - <a target="_wps_attribute_set_edition_page" href="<?php echo admin_url( 'admin.php?page=wpshop_attribute_group&action=edit&id=' . $address_attribute_set->id ); ?>" ><?php echo $address_attribute_set->name; ?></a> |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | + if (!empty($address_meta) && !empty($address_meta['_wpshop_address_attribute_set_id']) && !empty($address_meta['_wpshop_address_attribute_set_id'][0])) : ?> |
|
3 | + <?php $address_attribute_set = wpshop_attributes_set::getElement($address_meta['_wpshop_address_attribute_set_id'][0], "'valid','deleted'"); ?> |
|
4 | + <a target="_wps_attribute_set_edition_page" href="<?php echo admin_url('admin.php?page=wpshop_attribute_group&action=edit&id=' . $address_attribute_set->id); ?>" ><?php echo $address_attribute_set->name; ?></a> |
|
5 | 5 | <?php else: ?> |
6 | - <div class="wps-alert-info"><?php _e( 'No type setted for address', 'wpshop'); ?></div> |
|
6 | + <div class="wps-alert-info"><?php _e('No type setted for address', 'wpshop'); ?></div> |
|
7 | 7 | <?php endif; ?> |
8 | 8 | \ No newline at end of file |
@@ -1,7 +1,12 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | if ( !empty( $address_meta ) && !empty( $address_meta[ '_wpshop_address_attribute_set_id' ] ) && !empty( $address_meta[ '_wpshop_address_attribute_set_id' ][ 0 ] ) ) : ?> |
3 | 5 | <?php $address_attribute_set = wpshop_attributes_set::getElement( $address_meta[ '_wpshop_address_attribute_set_id' ][ 0 ], "'valid','deleted'" ); ?> |
4 | 6 | <a target="_wps_attribute_set_edition_page" href="<?php echo admin_url( 'admin.php?page=wpshop_attribute_group&action=edit&id=' . $address_attribute_set->id ); ?>" ><?php echo $address_attribute_set->name; ?></a> |
5 | -<?php else: ?> |
|
6 | - <div class="wps-alert-info"><?php _e( 'No type setted for address', 'wpshop'); ?></div> |
|
7 | +<?php else { |
|
8 | + : ?> |
|
9 | + <div class="wps-alert-info"><?php _e( 'No type setted for address', 'wpshop'); |
|
10 | +} |
|
11 | +?></div> |
|
7 | 12 | <?php endif; ?> |
8 | 13 | \ No newline at end of file |
@@ -1,3 +1,3 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | 2 | echo $element_main_infos; |
3 | -?> ( <a target="_wps_address_parent_edition_page" href="<?php echo admin_url( 'post.php?post=' . $address_associated_element->parent_id . '&action=edit' ); ?>" ><?php _e( 'Edit element', 'wpshop' ); ?></a> ) |
|
4 | 3 | \ No newline at end of file |
4 | +?> ( <a target="_wps_address_parent_edition_page" href="<?php echo admin_url('post.php?post=' . $address_associated_element->parent_id . '&action=edit'); ?>" ><?php _e('Edit element', 'wpshop'); ?></a> ) |
|
5 | 5 | \ 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 | echo $element_main_infos; |
3 | 5 | ?> ( <a target="_wps_address_parent_edition_page" href="<?php echo admin_url( 'post.php?post=' . $address_associated_element->parent_id . '&action=edit' ); ?>" ><?php _e( 'Edit element', 'wpshop' ); ?></a> ) |
4 | 6 | \ No newline at end of file |
@@ -1,15 +1,15 @@ discard block |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; if ( empty($address_id) ) : ?> |
|
2 | -<div class="wps-address-item-header wps-address-creation-header"><?php _e( 'New address', 'wpeo_geoloc' ); ?></div> |
|
1 | +<?php if (!defined('ABSPATH')) exit; if (empty($address_id)) : ?> |
|
2 | +<div class="wps-address-item-header wps-address-creation-header"><?php _e('New address', 'wpeo_geoloc'); ?></div> |
|
3 | 3 | <div class="wps-address-item-content"> |
4 | 4 | <?php endif; ?> |
5 | - <form data-nonce="<?php echo wp_create_nonce( 'wps_address_display_an_address' ); ?>" action="<?php echo admin_url( "admin-ajax.php" ); ?>" method="POST" class="wps-address-form" > |
|
5 | + <form data-nonce="<?php echo wp_create_nonce('wps_address_display_an_address'); ?>" action="<?php echo admin_url("admin-ajax.php"); ?>" method="POST" class="wps-address-form" > |
|
6 | 6 | <input type="hidden" value="wps-address-save-address" name="action" /> |
7 | 7 | <input type="hidden" value="<?php echo $post_ID; ?>" name="post_ID" /> |
8 | - <?php echo self::display_form_fields( $address_type_id, $address_id ); ?> |
|
9 | - <button ><?php _e( 'Save address', 'wpeo_geoloc' ); ?></button> |
|
10 | - <button data-nonce="<?php echo wp_create_nonce( 'wps_address_display_an_address' ); ?>" type="reset" ><?php _e( 'Cancel', 'wpeo_geoloc' ); ?></button> |
|
8 | + <?php echo self::display_form_fields($address_type_id, $address_id); ?> |
|
9 | + <button ><?php _e('Save address', 'wpeo_geoloc'); ?></button> |
|
10 | + <button data-nonce="<?php echo wp_create_nonce('wps_address_display_an_address'); ?>" type="reset" ><?php _e('Cancel', 'wpeo_geoloc'); ?></button> |
|
11 | 11 | </form> |
12 | -<?php if ( empty($address_id) ) : ?> |
|
12 | +<?php if (empty($address_id)) : ?> |
|
13 | 13 | </div> |
14 | 14 | <?php endif; ?> |
15 | 15 | |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | success: function( responseText, statusText, xhr, $form ){ |
26 | 26 | if ( responseText[ 0 ] ) { |
27 | 27 | if ( 0 != <?php echo $address_id; ?> ) { |
28 | - $form.closest( "div.wps-address-item-content" ).children( "#wps-overlay-load" ).html( '<div class="wps-alert wps-alert-success" ><?php _e( 'Address saved', 'wpeo_geoloc' ); ?></div>' ); |
|
28 | + $form.closest( "div.wps-address-item-content" ).children( "#wps-overlay-load" ).html( '<div class="wps-alert wps-alert-success" ><?php _e('Address saved', 'wpeo_geoloc'); ?></div>' ); |
|
29 | 29 | var data = { |
30 | 30 | action: "wps-address-display-an-address", |
31 | 31 | _wpnonce: $form.data( "nonce" ), |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | }, "1000"); |
37 | 37 | } |
38 | 38 | else { |
39 | - $form.closest( "div.wps-address-item-content" ).children( "#wps-overlay-load" ).html( '<div class="wps-alert wps-alert-success" ><?php _e( 'Address saved', 'wpeo_geoloc' ); ?></div>' ); |
|
39 | + $form.closest( "div.wps-address-item-content" ).children( "#wps-overlay-load" ).html( '<div class="wps-alert wps-alert-success" ><?php _e('Address saved', 'wpeo_geoloc'); ?></div>' ); |
|
40 | 40 | wps_address_load_addresses_list( <?php echo $post_ID; ?> ); |
41 | 41 | } |
42 | 42 | } |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | /** Add listener when user click on form cancel button */ |
55 | 55 | jQuery( ".wps-address-form button[type=reset]" ).click(function( e ){ |
56 | 56 | e.preventDefault(); |
57 | - if ( confirm( wps_address_convert_html_accent( "<?php _e( 'Are you sure you want to cancel?', 'wpeo_geoloc' ); ?>" ) ) ) { |
|
57 | + if ( confirm( wps_address_convert_html_accent( "<?php _e('Are you sure you want to cancel?', 'wpeo_geoloc'); ?>" ) ) ) { |
|
58 | 58 | if ( 0 != <?php echo $address_id; ?> ) { |
59 | 59 | jQuery( this ).closest( "div.wps-address-list-container" ).append( '<div id="wps-overlay" class="wps-overlay-background" ></div><div id="wps-overlay-load" ><img src="' + thickboxL10n.loadingAnimation + '" /></div>' ); |
60 | 60 | var data = { |
@@ -1,4 +1,7 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; if ( empty($address_id) ) : ?> |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
4 | +if ( empty($address_id) ) : ?> |
|
2 | 5 | <div class="wps-address-item-header wps-address-creation-header"><?php _e( 'New address', 'wpeo_geoloc' ); ?></div> |
3 | 6 | <div class="wps-address-item-content"> |
4 | 7 | <?php endif; ?> |
@@ -1,17 +1,17 @@ |
||
1 | -<form action="<?php echo admin_url( 'admin-ajax.php' ) ?>" method="POST" id="wps-address-type-chooser-form" > |
|
1 | +<form action="<?php echo admin_url('admin-ajax.php') ?>" method="POST" id="wps-address-type-chooser-form" > |
|
2 | 2 | <input type="hidden" name="action" value="wps-address-edition-form-load" /> |
3 | - <?php wp_nonce_field( 'wps_address_edition_form_load' ); ?> |
|
3 | + <?php wp_nonce_field('wps_address_edition_form_load'); ?> |
|
4 | 4 | <input type="hidden" name="element_id" value="0" /> |
5 | 5 | <input type="hidden" name="post_id" value="<?php echo $post_ID; ?>" /> |
6 | 6 | <select name="wpeogeo-address-type-chosen-for-creation" > |
7 | - <?php foreach ( $attached_addresses as $address_type_id ) : ?> |
|
7 | + <?php foreach ($attached_addresses as $address_type_id) : ?> |
|
8 | 8 | <?php |
9 | 9 | $query = $wpdb->prepare("SELECT name FROM " . WPSHOP_DBT_ATTRIBUTE_SET . " WHERE id = %d", $address_type_id); |
10 | 10 | ?> |
11 | - <option value="<?php echo $address_type_id; ?>" ><?php echo $wpdb->get_var( $query ); ?></option> |
|
11 | + <option value="<?php echo $address_type_id; ?>" ><?php echo $wpdb->get_var($query); ?></option> |
|
12 | 12 | <?php endforeach; ?> |
13 | 13 | </select> |
14 | - <button ><?php _e( 'Continue', 'wpeo_geoloc' ); ?></button> |
|
14 | + <button ><?php _e('Continue', 'wpeo_geoloc'); ?></button> |
|
15 | 15 | </form> |
16 | 16 | <script type="text/javascript" > |
17 | 17 | jq_wpeogeoloc( document ).ready( function(){ |
@@ -1,7 +1,7 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | 2 | ?> |
3 | -<div class="wps-address-list-container" data-nonce="<?php echo wp_create_nonce( 'display_addresses_list' ); ?>" > |
|
4 | - <?php require( wpshop_tools::get_template_part( WPS_ADDRESS_DIR, WPS_LOCALISATION_TEMPLATES_MAIN_DIR, "backend", "addresses" ) ); ?> |
|
3 | +<div class="wps-address-list-container" data-nonce="<?php echo wp_create_nonce('display_addresses_list'); ?>" > |
|
4 | + <?php require(wpshop_tools::get_template_part(WPS_ADDRESS_DIR, WPS_LOCALISATION_TEMPLATES_MAIN_DIR, "backend", "addresses")); ?> |
|
5 | 5 | </div> |
6 | -<a href="#" data-nonce="<?php echo wp_create_nonce( 'display_address_adding_form' ); ?>" class="alignright wps-address-icon-black wps-address-icon-add" id="wps-address-add-for-<?php echo $post->ID; ?>" ></a> |
|
6 | +<a href="#" data-nonce="<?php echo wp_create_nonce('display_address_adding_form'); ?>" class="alignright wps-address-icon-black wps-address-icon-add" id="wps-address-add-for-<?php echo $post->ID; ?>" ></a> |
|
7 | 7 | <div class="clear" ></div> |
@@ -1,4 +1,6 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | ?> |
3 | 5 | <div class="wps-address-list-container" data-nonce="<?php echo wp_create_nonce( 'display_addresses_list' ); ?>" > |
4 | 6 | <?php require( wpshop_tools::get_template_part( WPS_ADDRESS_DIR, WPS_LOCALISATION_TEMPLATES_MAIN_DIR, "backend", "addresses" ) ); ?> |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; ?> |
|
1 | +<?php if (!defined('ABSPATH')) exit; ?> |
|
2 | 2 | |
3 | 3 | <div id="shortcode-tabs" class="wpshop_tabs wpshop_full_page_tabs wpshop_shortcode_tabs" > |
4 | 4 | <ul> |
@@ -11,78 +11,78 @@ discard block |
||
11 | 11 | |
12 | 12 | <div id="products"> |
13 | 13 | <div class="wpshop_admin_box wpshop_admin_box_shortcode wpshop_admin_box_shortcode_product" > |
14 | - <h3><?php _e('Simple product','wpshop'); ?></h3> |
|
14 | + <h3><?php _e('Simple product', 'wpshop'); ?></h3> |
|
15 | 15 | <?php self::output_shortcode('simple_product'); ?> |
16 | - <h3><?php _e( 'Product title', 'wpshop' ); ?></h3> |
|
17 | - <?php self::output_shortcode( 'wpshop_product_title' ); ?> |
|
18 | - <h3><?php _e( 'Product content', 'wpshop' ); ?></h3> |
|
19 | - <?php self::output_shortcode( 'wpshop_product_content' ); ?> |
|
20 | - <h3><?php _e( 'Product thumbnail', 'wpshop' ); ?></h3> |
|
21 | - <?php self::output_shortcode( 'wpshop_product_thumbnail' ); ?> |
|
22 | - <h3><?php _e('Products listing','wpshop'); ?></h3> |
|
16 | + <h3><?php _e('Product title', 'wpshop'); ?></h3> |
|
17 | + <?php self::output_shortcode('wpshop_product_title'); ?> |
|
18 | + <h3><?php _e('Product content', 'wpshop'); ?></h3> |
|
19 | + <?php self::output_shortcode('wpshop_product_content'); ?> |
|
20 | + <h3><?php _e('Product thumbnail', 'wpshop'); ?></h3> |
|
21 | + <?php self::output_shortcode('wpshop_product_thumbnail'); ?> |
|
22 | + <h3><?php _e('Products listing', 'wpshop'); ?></h3> |
|
23 | 23 | <?php self::output_shortcode('product_listing'); ?> |
24 | - <h3><?php _e('Products listing specific','wpshop'); ?></h3> |
|
24 | + <h3><?php _e('Products listing specific', 'wpshop'); ?></h3> |
|
25 | 25 | <?php self::output_shortcode('product_listing_specific'); ?> |
26 | - <h3><?php _e('Products listing by attributes','wpshop'); ?></h3> |
|
26 | + <h3><?php _e('Products listing by attributes', 'wpshop'); ?></h3> |
|
27 | 27 | <?php self::output_shortcode('product_by_attribute'); ?> |
28 | - <h3><?php _e( 'Related products', 'wpshop'); ?></h3> |
|
28 | + <h3><?php _e('Related products', 'wpshop'); ?></h3> |
|
29 | 29 | <?php self::output_shortcode('related_products'); ?> |
30 | 30 | </div> |
31 | 31 | </div> |
32 | 32 | |
33 | 33 | <div id="category"> |
34 | 34 | <div class="wpshop_admin_box wpshop_admin_box_shortcode wpshop_admin_box_shortcode_category" > |
35 | - <h3><?php _e('Simple category','wpshop'); ?></h3> |
|
35 | + <h3><?php _e('Simple category', 'wpshop'); ?></h3> |
|
36 | 36 | <?php self::output_shortcode('simple_category'); ?> |
37 | 37 | </div> |
38 | 38 | </div> |
39 | 39 | |
40 | 40 | <div id="attributs"> |
41 | 41 | <div class="wpshop_admin_box wpshop_admin_box_shortcode wpshop_admin_box_shortcode_attributes" > |
42 | - <h3><?php _e('Simple attribute','wpshop'); ?></h3> |
|
42 | + <h3><?php _e('Simple attribute', 'wpshop'); ?></h3> |
|
43 | 43 | <?php self::output_shortcode('simple_attribute'); ?> |
44 | - <h3><?php _e('Attributes set','wpshop'); ?></h3> |
|
44 | + <h3><?php _e('Attributes set', 'wpshop'); ?></h3> |
|
45 | 45 | <?php self::output_shortcode('attributes_set'); ?> |
46 | 46 | </div> |
47 | 47 | </div> |
48 | 48 | |
49 | 49 | <div id="widgets"> |
50 | 50 | <div class="wpshop_admin_box wpshop_admin_box_shortcode wpshop_admin_box_shortcode_widget wpshop_admin_box_shortcode_widget_cart" > |
51 | - <h3><?php _e('Cart','wpshop'); ?></h3> |
|
51 | + <h3><?php _e('Cart', 'wpshop'); ?></h3> |
|
52 | 52 | <?php self::output_shortcode('widget_cart_full'); ?> |
53 | 53 | <?php self::output_shortcode('widget_cart_mini'); ?> |
54 | 54 | <?php self::output_shortcode('wpshop_button_add_to_cart'); ?> |
55 | 55 | </div> |
56 | 56 | <div class="wpshop_admin_box wpshop_admin_box_shortcode wpshop_admin_box_shortcode_widget wpshop_admin_box_shortcode_widget_checkout" > |
57 | - <h3><?php _e('Checkout','wpshop'); ?></h3> |
|
57 | + <h3><?php _e('Checkout', 'wpshop'); ?></h3> |
|
58 | 58 | <?php self::output_shortcode('widget_checkout'); ?> |
59 | 59 | </div> |
60 | 60 | <div class="wpshop_admin_box wpshop_admin_box_shortcode wpshop_admin_box_shortcode_widget wpshop_admin_box_shortcode_widget_customer_account" > |
61 | - <h3><?php _e('Account','wpshop'); ?></h3> |
|
61 | + <h3><?php _e('Account', 'wpshop'); ?></h3> |
|
62 | 62 | <?php self::output_shortcode('widget_account'); ?> |
63 | 63 | </div> |
64 | 64 | <div class="wpshop_admin_box wpshop_admin_box_shortcode wpshop_admin_box_shortcode_widget wpshop_admin_box_shortcode_widget_shop" > |
65 | - <h3><?php _e('Shop','wpshop'); ?></h3> |
|
65 | + <h3><?php _e('Shop', 'wpshop'); ?></h3> |
|
66 | 66 | <?php self::output_shortcode('widget_shop'); ?> |
67 | 67 | </div> |
68 | 68 | <div class="wpshop_admin_box wpshop_admin_box_shortcode wpshop_admin_box_shortcode_widget wpshop_admin_box_shortcode_custom_search" > |
69 | - <h3><?php _e('Custom search','wpshop'); ?></h3> |
|
69 | + <h3><?php _e('Custom search', 'wpshop'); ?></h3> |
|
70 | 70 | <?php self::output_shortcode('widget_custom_search'); ?> |
71 | 71 | </div> |
72 | 72 | <div class="wpshop_admin_box wpshop_admin_box_shortcode wpshop_admin_box_shortcode_widget wpshop_admin_box_shortcode_custom_search" > |
73 | - <h3><?php _e('Filter Search','wpshop'); ?></h3> |
|
73 | + <h3><?php _e('Filter Search', 'wpshop'); ?></h3> |
|
74 | 74 | <?php self::output_shortcode('widget_filter_search'); ?> |
75 | - <a href="http://www.wpshop.fr/documentations/la-recherche-par-filtre/" target="_blank"><?php _e( 'Read the filter search tutorial', 'wpshop'); ?></a> |
|
75 | + <a href="http://www.wpshop.fr/documentations/la-recherche-par-filtre/" target="_blank"><?php _e('Read the filter search tutorial', 'wpshop'); ?></a> |
|
76 | 76 | </div> |
77 | 77 | <div class="wpshop_admin_box wpshop_admin_box_shortcode wpshop_admin_box_shortcode_widget wpshop_admin_box_shortcode_custom_search" > |
78 | - <h3><?php _e('Breadcrumb WPShop','wpshop'); ?></h3> |
|
78 | + <h3><?php _e('Breadcrumb WPShop', 'wpshop'); ?></h3> |
|
79 | 79 | <?php self::output_shortcode('widget_wps_breadcrumb'); ?> |
80 | 80 | </div> |
81 | 81 | </div> |
82 | 82 | |
83 | 83 | <div id="customs_emails"> |
84 | 84 | <div class="wpshop_admin_box wpshop_admin_box_shortcode wpshop_admin_box_shortcode_emails" > |
85 | - <h3><?php _e('Available tags for emails cutomization','wpshop'); ?></h3> |
|
85 | + <h3><?php _e('Available tags for emails cutomization', 'wpshop'); ?></h3> |
|
86 | 86 | <ul > |
87 | 87 | <li><span class="wpshop_customer_tag_name" ><?php _e('Customer first name', 'wpshop'); ?></span><code>[customer_first_name]</code><li> |
88 | 88 | <li><span class="wpshop_customer_tag_name" ><?php _e('Customer last name', 'wpshop'); ?></span><code>[customer_last_name]</code><li> |
@@ -1,4 +1,7 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; ?> |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
4 | +?> |
|
2 | 5 | |
3 | 6 | <div id="shortcode-tabs" class="wpshop_tabs wpshop_full_page_tabs wpshop_shortcode_tabs" > |
4 | 7 | <ul> |
@@ -1,14 +1,14 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | 2 | |
3 | -DEFINE( 'WPS_SHORTCODES_VERSION', '1.0.1' ); |
|
4 | -DEFINE( 'WPS_SHORTCODES_DIR', basename(dirname(__FILE__))); |
|
5 | -DEFINE( 'WPS_SHORTCODES_PATH', dirname( __FILE__ ) ); |
|
6 | -DEFINE( 'WPS_SHORTCODES_URL', str_replace( str_replace( "\\", "/", ABSPATH), site_url() . '/', str_replace( "\\", "/", WPS_SHORTCODES_PATH ) ) ); |
|
3 | +DEFINE('WPS_SHORTCODES_VERSION', '1.0.1'); |
|
4 | +DEFINE('WPS_SHORTCODES_DIR', basename(dirname(__FILE__))); |
|
5 | +DEFINE('WPS_SHORTCODES_PATH', dirname(__FILE__)); |
|
6 | +DEFINE('WPS_SHORTCODES_URL', str_replace(str_replace("\\", "/", ABSPATH), site_url() . '/', str_replace("\\", "/", WPS_SHORTCODES_PATH))); |
|
7 | 7 | |
8 | 8 | /** Define the templates directories */ |
9 | -DEFINE( 'WPS_SHORTCODES_TEMPLATES_MAIN_DIR', WPS_SHORTCODES_PATH . '/templates/'); |
|
9 | +DEFINE('WPS_SHORTCODES_TEMPLATES_MAIN_DIR', WPS_SHORTCODES_PATH . '/templates/'); |
|
10 | 10 | |
11 | -require_once( WPS_SHORTCODES_PATH . '/controller/wps_shortcodes_ctr.php' ); |
|
11 | +require_once(WPS_SHORTCODES_PATH . '/controller/wps_shortcodes_ctr.php'); |
|
12 | 12 | |
13 | 13 | new wps_shortcodes_ctr(); |
14 | 14 |
@@ -1,4 +1,6 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | |
3 | 5 | DEFINE( 'WPS_SHORTCODES_VERSION', '1.0.1' ); |
4 | 6 | DEFINE( 'WPS_SHORTCODES_DIR', basename(dirname(__FILE__))); |