fixing other escaping issues

This commit is contained in:
koenemann 2017-01-27 15:37:59 +01:00
parent c01f07b4ae
commit 068242fb11
8 changed files with 22 additions and 20 deletions

View File

@ -26,7 +26,7 @@ $sidebar_pos = get_theme_mod( 'understrap_sidebar_position' );
<header class="page-header">
<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'understrap' ),
<h1 class="page-title"><?php printf( esc_html__( 'Search Results for: %s', 'understrap' ),
'<span>' . get_search_query() . '</span>' ); ?></h1>
</header><!-- .page-header -->

View File

@ -7,7 +7,7 @@
?>
<form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search">
<label class="assistive-text" for="s"><?php _e( 'Search', 'understrap' ); ?></label>
<label class="assistive-text" for="s"><?php esc_html_e( 'Search', 'understrap' ); ?></label>
<div class="input-group">
<input class="field form-control" id="s" name="s" type="text"
placeholder="<?php esc_attr_e( 'Search &hellip;', 'understrap' ); ?>">

View File

@ -5,6 +5,7 @@
* @package understrap
*/
$container = get_theme_mod( 'understrap_container_type' );
?>
<?php if ( is_active_sidebar( 'footerfull' ) ) : ?>

View File

@ -12,8 +12,8 @@
<!-- ******************* The Hero Widget Area ******************* -->
<div id="carouselExampleControls" class="carousel slide" data-ride="carousel">
<div class="carousel-inner" role="listbox">
<div class="carousel-inner" role="listbox">
<?php dynamic_sidebar( 'hero' ); ?>

View File

@ -5,6 +5,7 @@
* @package understrap
*/
$container = get_theme_mod( 'understrap_container_type' );
?>
<?php if ( is_active_sidebar( 'statichero' ) ) : ?>

View File

@ -17,14 +17,14 @@
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
exit; // Exit if accessed directly.
}
get_header( 'shop' ); ?>
<?php
/**
* woocommerce_before_main_content hook.
* Woocommerce_before_main_content hook.
*
* @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
* @hooked woocommerce_breadcrumb - 20
@ -40,7 +40,7 @@ get_header( 'shop' ); ?>
<?php
/**
* woocommerce_archive_description hook.
* Woocommerce_archive_description hook.
*
* @hooked woocommerce_taxonomy_archive_description - 10
* @hooked woocommerce_product_archive_description - 10
@ -52,7 +52,7 @@ get_header( 'shop' ); ?>
<?php
/**
* woocommerce_before_shop_loop hook.
* Woocommerce_before_shop_loop hook.
*
* @hooked woocommerce_result_count - 20
* @hooked woocommerce_catalog_ordering - 30
@ -74,7 +74,7 @@ get_header( 'shop' ); ?>
<?php
/**
* woocommerce_after_shop_loop hook.
* Woocommerce_after_shop_loop hook.
*
* @hooked woocommerce_pagination - 10
*/
@ -89,7 +89,7 @@ get_header( 'shop' ); ?>
<?php
/**
* woocommerce_after_main_content hook.
* Woocommerce_after_main_content hook.
*
* @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content)
*/
@ -98,7 +98,7 @@ get_header( 'shop' ); ?>
<?php
/**
* woocommerce_sidebar hook.
* Woocommerce_sidebar hook.
*
* @hooked woocommerce_get_sidebar - 10
*/

View File

@ -17,7 +17,7 @@
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
exit; // Exit if accessed directly.
}
wc_print_notices();
@ -25,7 +25,7 @@ wc_print_notices();
?>
<p class="cart-empty">
<?php _e( 'Your cart is currently empty.', 'understrap' ) ?>
<?php esh_html_e( 'Your cart is currently empty.', 'understrap' ) ?>
</p>
<?php do_action( 'woocommerce_cart_is_empty' ); ?>

View File

@ -17,7 +17,7 @@
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
exit; // Exit if accessed directly.
}
wc_print_notices();
@ -33,10 +33,10 @@ do_action( 'woocommerce_before_cart' ); ?>
<tr>
<th class="product-remove">&nbsp;</th>
<th class="product-thumbnail">&nbsp;</th>
<th class="product-name"><?php _e( 'Product', 'understrap' ); ?></th>
<th class="product-price"><?php _e( 'Price', 'understrap' ); ?></th>
<th class="product-quantity"><?php _e( 'Quantity', 'understrap' ); ?></th>
<th class="product-subtotal"><?php _e( 'Total', 'understrap' ); ?></th>
<th class="product-name"><?php esc_html_e( 'Product', 'understrap' ); ?></th>
<th class="product-price"><?php esc_html_e( 'Price', 'understrap' ); ?></th>
<th class="product-quantity"><?php esc_html_e( 'Quantity', 'understrap' ); ?></th>
<th class="product-subtotal"><?php esc_html_e( 'Total', 'understrap' ); ?></th>
</tr>
</thead>
<tbody>
@ -84,10 +84,10 @@ do_action( 'woocommerce_before_cart' ); ?>
echo apply_filters( 'woocommerce_cart_item_name', sprintf( '<a href="%s">%s</a>', esc_url( $product_permalink ), $_product->get_title() ), $cart_item, $cart_item_key );
}
// Meta data
// Meta data.
echo WC()->cart->get_item_data( $cart_item );
// Backorder notification
// Backorder notification.
if ( $_product->backorders_require_notification() && $_product->is_on_backorder( $cart_item['quantity'] ) ) {
echo '<p class="backorder_notification">' . esc_html__( 'Available on backorder', 'understrap' ) . '</p>';
}