Skip to content

Commit

Permalink
WooCommerce 3.3.0 templates compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
nicomollet committed Jan 31, 2018
1 parent 0eea827 commit 934e87b
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 68 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
### Unreleased
* Remove automatic last-child bottom
* Remove SelectWoo from enqueued scripts

### 0.4.7: January 31st, 2018
* **Tweak** - Remove automatic last-child bottom
* **Tweak** - Remove SelectWoo from enqueued scripts
* **Tweak** - WooCommerce 3.3.0 templates compatibility

### 0.4.6: January 5th, 2018
* **Tweak** Webfontloader: disable completely FOUT effect
Expand Down
51 changes: 0 additions & 51 deletions archive-product.php

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stormbringer",
"version": "0.4.6",
"version": "0.4.7",
"description": "WordPress theme",
"license": "Apache-2.0",
"repository" : {
Expand Down
2 changes: 1 addition & 1 deletion stormbringer-child/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stormbringer",
"version": "0.4.6",
"version": "0.4.7",
"description": "WordPress theme",
"license": "Apache-2.0",
"repository" : {
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Theme URI: https://github.com/nicomollet/stormbringer
Github Theme URI: https://github.com/nicomollet/stormbringer
Github Branch: master
Description: A simple responsive theme based on twitter's bootstrap framework.
Version: 0.4.6
Version: 0.4.7
Author: Nicolas Mollet
Author URI: http://www.nicolasmollet.com
Text Domain: stormbringer
Expand Down
2 changes: 1 addition & 1 deletion woocommerce/global/form-login.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* @see https://docs.woocommerce.com/document/template-structure/
* @author WooThemes
* @package WooCommerce/Templates
* @version 3.1.0
* @version 3.3.0
*/

if ( ! defined( 'ABSPATH' ) ) {
Expand Down
22 changes: 11 additions & 11 deletions woocommerce/myaccount/form-login.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
* @see https://docs.woocommerce.com/document/template-structure/
* @author WooThemes
* @package WooCommerce/Templates
* @version 3.2.0
* @version 3.3.0
*/

if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
exit; // Exit if accessed directly.
}

?>
Expand All @@ -37,7 +37,7 @@

<div class="panel panel-primary">
<div class="panel-heading">
<span><?php _e( 'Login', 'woocommerce' ); ?></span>
<span><?php esc_html_e( 'Login', 'woocommerce' ); ?></span>
</div>
<div class="panel-body">
<form class="woocommerce-form woocommerce-form-login login form form-horizontal" method="post">
Expand All @@ -46,15 +46,15 @@

<div class="form-group">

<label for="username" class="control-label"><?php _e( 'Username or email address', 'woocommerce' ); ?> <span class="required">*</span></label>
<label for="username" class="control-label"><?php esc_html_e( 'Username or email address', 'woocommerce' ); ?> <span class="required">*</span></label>
<div class="form-input">
<input type="text" class="woocommerce-Input woocommerce-Input--text form-control" name="username" id="username" value="<?php echo ( ! empty( $_POST['username'] ) ) ? esc_attr( $_POST['username'] ) : ''; ?>" />
</div>

</div>

<div class="form-group">
<label for="password" class="control-label"><?php _e( 'Password', 'woocommerce' ); ?> <span class="required">*</span></label>
<label for="password" class="control-label"><?php esc_html_e( 'Password', 'woocommerce' ); ?> <span class="required">*</span></label>
<div class="form-input">
<input class="woocommerce-Input woocommerce-Input--text form-control" type="password" name="password" id="password" />
</div>
Expand All @@ -65,7 +65,7 @@
<div class="form-group">
<div class="form-actions">
<label class="woocommerce-form__label woocommerce-form__label-for-checkbox inline">
<input class="woocommerce-form__input woocommerce-form__input-checkbox" name="rememberme" type="checkbox" id="rememberme" value="forever" /> <span><?php _e( 'Remember me', 'woocommerce' ); ?></span>
<input class="woocommerce-form__input woocommerce-form__input-checkbox" name="rememberme" type="checkbox" id="rememberme" value="forever" /> <span><?php esc_html_e( 'Remember me', 'woocommerce' ); ?></span>
</label>
</div>
</div>
Expand All @@ -80,7 +80,7 @@

<div class="form-group">
<div class="woocommerce-LostPassword lost_password form-actions">
<a class="btn-link" href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?', 'woocommerce' ); ?></a>
<a class="btn-link" href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php esc_html_e( 'Lost your password?', 'woocommerce' ); ?></a>
</div>
</div>

Expand All @@ -100,7 +100,7 @@

<div class="panel panel-primary">
<div class="panel-heading">
<span><?php _e( 'Register', 'woocommerce' ); ?></span>
<span><?php esc_html_e( 'Register', 'woocommerce' ); ?></span>
</div>
<div class="panel-body">
<form method="post" class="register form form-horizontal">
Expand All @@ -110,7 +110,7 @@
<?php if ( 'no' === get_option( 'woocommerce_registration_generate_username' ) ) : ?>

<div class="form-group">
<label for="reg_username" class="control-label"><?php _e( 'Username', 'woocommerce' ); ?> <span class="required">*</span></label>
<label for="reg_username" class="control-label"><?php esc_html_e( 'Username', 'woocommerce' ); ?> <span class="required">*</span></label>
<div class="form-input">
<input type="text" class="woocommerce-Input woocommerce-Input--text form-control" name="username" id="reg_username" value="<?php echo ( ! empty( $_POST['username'] ) ) ? esc_attr( $_POST['username'] ) : ''; ?>" />
</div>
Expand All @@ -120,7 +120,7 @@
<?php endif; ?>

<div class="form-group">
<label for="reg_email" class="control-label"><?php _e( 'Email address', 'woocommerce' ); ?> <span class="required">*</span></label>
<label for="reg_email" class="control-label"><?php esc_html_e( 'Email address', 'woocommerce' ); ?> <span class="required">*</span></label>
<div class="form-input">
<input type="email" class="woocommerce-Input woocommerce-Input--text form-control" name="email" id="reg_email" value="<?php echo ( ! empty( $_POST['email'] ) ) ? esc_attr( $_POST['email'] ) : ''; ?>" />
</div>
Expand All @@ -129,7 +129,7 @@
<?php if ( 'no' === get_option( 'woocommerce_registration_generate_password' ) ) : ?>

<div class="form-group">
<label for="reg_password" class="control-label"><?php _e( 'Password', 'woocommerce' ); ?> <span class="required">*</span></label>
<label for="reg_password" class="control-label"><?php esc_html_e( 'Password', 'woocommerce' ); ?> <span class="required">*</span></label>
<div class="form-input">
<input type="password" class="woocommerce-Input woocommerce-Input--text form-control" name="password" id="reg_password" />
</div>
Expand Down

0 comments on commit 934e87b

Please sign in to comment.