fixing other escaping issues
This commit is contained in:
parent
c01f07b4ae
commit
068242fb11
|
@ -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 -->
|
||||
|
|
|
@ -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 …', 'understrap' ); ?>">
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
* @package understrap
|
||||
*/
|
||||
$container = get_theme_mod( 'understrap_container_type' );
|
||||
|
||||
?>
|
||||
|
||||
<?php if ( is_active_sidebar( 'footerfull' ) ) : ?>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
<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' ); ?>
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
* @package understrap
|
||||
*/
|
||||
$container = get_theme_mod( 'understrap_container_type' );
|
||||
|
||||
?>
|
||||
|
||||
<?php if ( is_active_sidebar( 'statichero' ) ) : ?>
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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' ); ?>
|
||||
|
|
|
@ -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"> </th>
|
||||
<th class="product-thumbnail"> </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>';
|
||||
}
|
||||
|
|
Reference in New Issue