Exemple #1
0
/**
 * Modify the search form.
 *
 * @since 1.0.0
 *
 * @return string The form.
 */
function beans_search_form()
{
    $output = beans_open_markup('beans_search_form', 'form', array('class' => 'uk-form uk-form-icon uk-form-icon-flip uk-width-1-1', 'method' => 'get', 'action' => esc_url(home_url('/')), 'role' => 'search'));
    $output .= beans_selfclose_markup('beans_search_form_input', 'input', array('class' => 'uk-width-1-1', 'type' => 'search', 'placeholder' => __('Search', 'beans'), 'value' => esc_attr(get_search_query()), 'name' => 's'));
    $output .= beans_open_markup('beans_search_form_input_icon', 'i', 'class=uk-icon-search');
    $output .= beans_close_markup('beans_search_form_input_icon', 'i');
    $output .= beans_close_markup('beans_search_form', 'form');
    return $output;
}
Exemple #2
0
 function kkthemes_placeholder_img()
 {
     $image = '<span class="tm-placeholder-img uk-float-left uk-margin-right"><i class="uk-icon-circle-thin uk-icon-large"></i></span>';
     $name = beans_output('beans_site_title_text', get_bloginfo('name'));
     if ($logo = get_theme_mod('beans_logo_image', false)) {
         $image = beans_selfclose_markup('beans_post_logo_image', 'img', array('class' => 'tm-post-widget-img uk-border-rounded uk-float-left', 'src' => esc_url($logo), 'alt' => esc_attr($name)));
     }
     return $image;
 }
/**
 * Echo header site branding.
 *
 * @since 1.0.0
 */
function beans_site_branding()
{
    $name = beans_output('beans_site_title_text', get_bloginfo('name'));
    if ($logo = get_theme_mod('beans_logo_image', false)) {
        $name = beans_selfclose_markup('beans_logo_image', 'img', array('class' => 'tm-logo', 'src' => $logo, 'alt' => $name));
    }
    echo beans_open_markup('beans_site_branding', 'div', array('class' => 'tm-site-branding uk-float-left' . (!get_bloginfo('description') ? ' uk-margin-small-top' : null)));
    echo beans_open_markup('beans_site_title_link', 'a', array('href' => esc_url(home_url()), 'rel' => 'home', 'itemprop' => 'headline'));
    echo $name;
    echo beans_close_markup('beans_site_title_link', 'a');
    echo beans_close_markup('beans_site_branding', 'div');
}
function bench_footer_content()
{
    ?>
	<div class="uk-grid uk-text-muted">
		<div class="uk-width-medium-1-3">
	<?php 
    echo '<div class="tm-footer-logo">';
    if ($logo = get_theme_mod('beans_logo_image', false)) {
        echo beans_open_markup('beans_site_title_link', 'a', array('href' => esc_url(home_url()), 'rel' => 'home', 'itemprop' => 'headline'));
        echo beans_selfclose_markup('beans_logo_image', 'img', array('class' => 'tm-logo', 'src' => esc_url($logo), 'alt' => esc_attr(get_bloginfo('name'))));
        echo beans_close_markup('beans_site_title_link', 'a');
    }
    echo '</div>';
    if ($description = get_bloginfo('description')) {
        echo '<p class="uk-margin-small-top uk-margin-bottom">' . $description . '</p>';
    }
    wp_nav_menu(array('theme_location' => 'social-menu', 'container' => 'div', 'container_class' => 'tm-social-menu', 'menu_class' => '', 'fallback_cb' => 'false'));
    ?>
		<div class="uk-text-muted uk-text-small uk-margin-large-top">
			<?php 
    echo '<div>';
    echo beans_output('beans_footer_credit_text', sprintf(__('&#x000A9; %1$s - %2$s. All rights reserved.', 'bench'), date("Y"), get_bloginfo('name')));
    echo '</div>';
    ?>
					<a href="https://kkthemes.com/wordpress/bench/" target="_blank" title="Bench theme for WordPress">Bench</a> theme for <a href="http://wordpress.org" target="_blank">WordPress</a>. Built-with <a href="http://www.getbeans.io/" title="Beans Framework for WordPress" target="_blank">Beans</a>.
		</div>
	</div>
	<div class="uk-width-medium-2-3">
	<?php 
    bench_bottom_widget_area();
    ?>
	</div>
</div>
	<?php 
    bench_site_toolbar();
}
    echo beans_close_markup('woo_lost_password_user_login_label', 'label');
    echo beans_selfclose_markup('woo_lost_password_user_login_input', 'input', array('class' => 'input-text', 'type' => 'text', 'name' => 'user_login', 'id' => 'user_login'));
    echo beans_close_markup('woo_lost_password_user_login', 'p');
} else {
    echo beans_open_markup('woo_reset_password_message', 'p');
    echo apply_filters('woocommerce_reset_password_message', __('Enter a new password below.', 'woocommerce'));
    echo beans_close_markup('woo_reset_password_message', 'p');
    echo beans_open_markup('woo_lost_password_user_password1', 'p', array('class' => 'form-row form-row-first'));
    echo beans_open_markup('woo_lost_password_user_password1_label', 'label', array('for' => 'password_1'));
    _e('New password', 'woocommerce');
    echo beans_close_markup('woo_lost_password_user_password1_label', 'label');
    echo beans_selfclose_markup('woo_lost_password_user_password1_input', 'input', array('type' => 'password', 'class' => 'input-text', 'name' => 'password_1', 'id' => 'password_1'));
    echo beans_close_markup('woo_lost_password_user_password1', 'p');
    echo beans_open_markup('woo_lost_password_user_password2', 'p', array('class' => 'form-row form-row-last'));
    echo beans_open_markup('woo_lost_password_user_password2_label', 'label', array('for' => 'password_2'));
    _e('Re-enter new password', 'woocommerce');
    echo beans_open_markup('woo_lost_password_required', 'span', array('class' => 'required')) . beans_close_markup('woo_lost_password_required', 'span');
    echo beans_close_markup('woo_lost_password_user_password2_label', 'label');
    echo beans_selfclose_markup('woo_lost_password_user_password2_input', 'input', array('type' => 'password', 'class' => 'input-text', 'name' => 'password_2', 'id' => 'password_2'));
    echo beans_close_markup('woo_lost_password_user_password2', 'p');
    echo beans_selfclose_markup('woo_lost_password_reset_key_input', 'input', array('type' => 'hidden', 'name' => 'reset_key', 'value' => isset($args['key']) ? $args['key'] : ''));
    echo beans_selfclose_markup('woo_lost_password_reset_login_input', 'input', array('type' => 'hidden', 'name' => 'reset_login', 'value' => isset($args['login']) ? $args['login'] : ''));
}
echo beans_open_markup('woo_lost_password_form_clear', 'div', array('class' => 'clear')) . beans_close_markup('woo_lost_password_form_clear', 'div');
do_action('woocommerce_lostpassword_form');
echo beans_open_markup('woo_lost_password_submit', 'p', array('class' => 'form-row'));
echo beans_selfclose_markup('woo_lost_password_submit_hidden_input', 'input', array('type' => 'hidden', 'name' => 'wc_reset_password', 'value' => true));
echo beans_selfclose_markup('woo_lost_password_submit_input', 'input', array('type' => 'submit', 'class' => 'button', 'value' => 'lost_password' == $args['form'] ? __('Reset Password', 'woocommerce') : __('Save', 'woocommerce')));
echo beans_close_markup('woo_lost_password_submit', 'p');
wp_nonce_field($args['form']);
echo beans_close_markup('woo_lost_password_form', 'form');
Exemple #6
0
/**
 * Modify password protected form.
 *
 * @since 1.0.0
 *
 * @return string The form.
 */
function beans_post_password_form()
{
    global $post;
    $label = 'pwbox-' . (empty($post->ID) ? rand() : $post->ID);
    // Notice.
    $output = beans_open_markup('beans_password_form_notice', 'p', array('class' => 'uk-alert uk-alert-warning'));
    $output .= beans_output('beans_password_form_notice_text', __('This post is protected. To view it, enter the password below!', 'tm-beans'));
    $output .= beans_close_markup('beans_password_form_notice', 'p');
    // Form.
    $output .= beans_open_markup('beans_password_form', 'form', array('class' => 'uk-form uk-margin-bottom', 'method' => 'post', 'action' => site_url('wp-login.php?action=postpass', 'login_post')));
    $output .= beans_selfclose_markup('beans_password_form_input', 'input', array('class' => 'uk-margin-small-top uk-margin-small-right', 'type' => 'password', 'placeholder' => apply_filters('beans_password_form_input_placeholder', __('Password', 'tm-beans')), 'name' => 'post_password'));
    $output .= beans_selfclose_markup('beans_password_form_submit', 'input', array('class' => 'uk-button uk-margin-small-top', 'type' => 'submit', 'name' => 'submit', 'value' => esc_attr(apply_filters('beans_password_form_submit_text', __('Submit', 'tm-beans')))));
    $output .= beans_close_markup('beans_password_form', 'form');
    return $output;
}
<?php

/**
 * Single Product Price, including microdata for SEO
 *
 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     1.6.4
 */
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
global $product;
echo beans_open_markup('woo_single_price_wrap', 'div', array('itemprop' => 'offers', 'itemscope' => '', 'itemtype' => 'http://schema.org/Offer'));
echo beans_open_markup('woo_single_price_p', 'p', array('class' => 'price'));
echo $product->get_price_html();
echo beans_close_markup('woo_single_price_p', 'p');
echo beans_selfclose_markup('woo_single_price_meta_price', 'meta', array('itemprop' => 'price', 'content' => esc_attr($product->get_price())));
echo beans_selfclose_markup('woo_single_price_meta_currency', 'meta', array('itemprop' => 'priceCurrency', 'content' => esc_attr(get_woocommerce_currency())));
echo beans_selfclose_markup('woo_single_price_meta_link', 'link', array('itemprop' => 'availability', 'href' => 'http://schema.org/' . $product->is_in_stock() ? 'InStock' : 'OutOfStock'));
echo beans_close_markup('woo_single_price_wrap', 'div');
 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     2.1.0
 */
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
global $product;
if (!$product->is_purchasable()) {
    return;
}
// Availability
$availability = $product->get_availability();
$availability_html = empty($availability['availability']) ? '' : beans_open_markup('woo_single_add_to_cart_grouped_availability', 'p', array('class' => 'stock')) . esc_attr($availability['class']) . '">' . esc_html($availability['availability']) . beans_close_markup('woo_single_add_to_cart_grouped_availability', 'p');
echo apply_filters('woocommerce_stock_html', $availability_html, $availability['availability'], $product);
if ($product->is_in_stock()) {
    do_action('woocommerce_before_add_to_cart_form');
    echo beans_open_markup('woo_single_add_to_cart_simple_form', 'form', array('class' => 'cart', 'method' => 'post', 'enctype' => 'multipart/form-data'));
    do_action('woocommerce_before_add_to_cart_button');
    if (!$product->is_sold_individually()) {
        woocommerce_quantity_input(array('min_value' => apply_filters('woocommerce_quantity_input_min', 1, $product), 'max_value' => apply_filters('woocommerce_quantity_input_max', $product->backorders_allowed() ? '' : $product->get_stock_quantity(), $product), 'input_value' => isset($_POST['quantity']) ? wc_stock_amount($_POST['quantity']) : 1));
    }
    echo beans_selfclose_markup('woo_single_add_to_cart_simple_input_hidden', 'input', array('type' => 'hidden', 'name' => 'add-to-cart', 'value' => esc_attr($product->id)));
    echo beans_open_markup('woo_single_add_to_cart_simple_submit_button', 'button', array('type' => 'submit', 'class' => 'single_add_to_cart_button button alt'));
    echo esc_html($product->single_add_to_cart_text());
    echo beans_close_markup('woo_single_add_to_cart_grouped_tbody_submit_button', 'button');
    do_action('woocommerce_after_add_to_cart_button');
    echo beans_close_markup('woo_single_add_to_cart_simple_form', 'form');
    do_action('woocommerce_after_add_to_cart_form');
}
echo beans_selfclose_markup('woo_login_username_input', 'input', array('type' => 'text', 'class' => 'input-text', 'name' => 'username', 'id' => 'username'));
echo beans_close_markup('woo_login_username', 'p');
echo beans_open_markup('woo_login_password', 'p', array('class' => 'form-row'));
echo beans_open_markup('woo_login_password_label', 'label', array('for' => 'password'));
_e('Password', 'woocommerce');
echo beans_open_markup('woo_login_required_indicator', 'span', array('class' => 'required'));
echo beans_close_markup('woo_login_required_indicator', 'span');
echo beans_close_markup('woo_login_password_label', 'label');
echo beans_selfclose_markup('woo_login_password_input', 'input', array('type' => 'password', 'class' => 'input-text', 'name' => 'password', 'id' => 'password'));
echo beans_close_markup('woo_login_password', 'p');
echo beans_open_markup('woo_login_clear', 'div', array('class' => 'clear'));
echo beans_close_markup('woo_login_clear', 'div');
do_action('woocommerce_login_form');
echo beans_open_markup('woo_login_submit', 'p', array('class' => 'form-row'));
wp_nonce_field('woocommerce-login');
echo beans_selfclose_markup('woo_login_submit_hidden_input', 'input', array('type' => 'hidden', 'name' => 'redirect', 'value' => esc_attr_e('Login', 'woocommerce')));
echo beans_selfclose_markup('woo_login_submit_input', 'input', array('type' => 'submit', 'class' => 'button', 'name' => 'login', 'value' => esc_url($redirect)));
echo beans_open_markup('woo_login_remember_label', 'label', array('for' => 'rememberme', 'class' => 'inline'));
echo beans_selfclose_markup('woo_login_remember_input', 'input', array('name' => 'rememberme', 'type' => 'checkbox', 'id' => 'rememberme', 'value' => 'forever'));
_e('Remember me', 'woocommerce');
echo beans_close_markup('woo_login_remember_label', 'label');
echo beans_close_markup('woo_login_submit', 'p');
echo beans_open_markup('woo_login_lost_password', 'p', array('class' => 'lost_password'));
echo beans_open_markup('woo_login_lost_password_link', 'a', array('href' => esc_url(wp_lostpassword_url())));
_e('Lost your password?', 'woocommerce');
echo beans_close_markup('woo_login_lost_password_link', 'a');
echo beans_close_markup('woo_login_lost_password', 'p');
echo beans_open_markup('woo_login_clear', 'div', array('class' => 'clear'));
echo beans_close_markup('woo_login_clear', 'div');
do_action('woocommerce_login_form_end');
echo beans_close_markup('woo_login_form', 'form');
    exit;
}
// Exit if accessed directly
echo beans_open_markup('woo_checkout_shipping_fields', 'div', array('class' => 'woocommerce-shipping-fields'));
if (WC()->cart->needs_shipping_address() === true) {
    if (empty($_POST)) {
        $ship_to_different_address = get_option('woocommerce_ship_to_destination') === 'shipping' ? 1 : 0;
        $ship_to_different_address = apply_filters('woocommerce_ship_to_different_address_checked', $ship_to_different_address);
    } else {
        $ship_to_different_address = $checkout->get_value('ship_to_different_address');
    }
    echo beans_open_markup('woo_checkout_shipping_fields_title', 'h3', array('id' => 'ship-to-different-address'));
    echo beans_open_markup('woo_checkout_shipping_different_address_label', 'label', array('for' => 'ship-to-different-address-checkbox', 'class' => 'checkbox'));
    _e('Ship to a different address? ', 'woocommerce');
    echo beans_close_markup('woo_checkout_shipping_different_address_label', 'label');
    echo beans_selfclose_markup('woo_checkout_shipping_different_address_input', 'input', array('id' => 'ship-to-different-address-checkbox', 'class' => 'input-checkbox', 'checked' => checked($ship_to_different_address, 1), 'type' => 'checkbox', 'name' => 'ship_to_different_address', 'value' => 1));
    echo beans_close_markup('woo_checkout_shipping_fields_title', 'h3');
    echo beans_open_markup('woo_checkout_shipping_address_wrap', 'div', array('class' => 'shipping_address'));
    do_action('woocommerce_before_checkout_shipping_form', $checkout);
    foreach ($checkout->checkout_fields['shipping'] as $key => $field) {
        woocommerce_form_field($key, $field, $checkout->get_value($key));
    }
    do_action('woocommerce_after_checkout_shipping_form', $checkout);
    echo beans_close_markup('woo_checkout_shipping_address_wrap', 'div');
}
do_action('woocommerce_before_order_notes', $checkout);
if (apply_filters('woocommerce_enable_order_notes_field', get_option('woocommerce_enable_order_comments', 'yes') === 'yes')) {
    if (!WC()->cart->needs_shipping() || WC()->cart->ship_to_billing_address_only()) {
        echo beans_open_markup('woo_checkout_additional_info_title', 'h3');
        _e('Additional Information', 'woocommerce');
        echo beans_close_markup('woo_checkout_additional_info_title', 'h3');
    foreach ($states as $ckey => $cvalue) {
        echo beans_open_markup('woo_shipping_calculator_state_option_' . esc_attr($ckey), 'option', array('value' => esc_attr($ckey), 'selected' => selected($current_r, $ckey, false)));
        __(esc_html($cvalue), 'woocommerce');
        echo beans_close_markup('woo_shipping_calculator_state_option_' . esc_attr($ckey), 'option');
    }
    echo beans_close_markup('woo_shipping_calculator_state_select', 'select');
    echo beans_close_markup('woo_shipping_calculator_state_wrap', 'span');
    // Standard Input
} else {
    echo beans_selfclose_markup('woo_shipping_calculator_state_input', 'input', array('type' => 'text', 'class' => 'input-text', 'value' => esc_attr($current_r), 'placeholder' => esc_attr_e('State / county', 'woocommerce'), 'name' => 'calc_shipping_state', 'id' => 'calc_shipping_state'));
}
echo beans_close_markup('woo_shipping_calculator_state', 'p');
if (apply_filters('woocommerce_shipping_calculator_enable_city', false)) {
    echo beans_open_markup('woo_shipping_calculator_city', 'p', array('class' => 'form-row form-row-wide', 'id' => 'calc_shipping_city_field'));
    echo beans_selfclose_markup('woo_shipping_calculator_city_input', 'input', array('type' => 'text', 'class' => 'input-text', 'value' => esc_attr(WC()->customer->get_shipping_city()), 'placeholder' => esc_attr_e('City', 'woocommerce'), 'name' => 'calc_shipping_city', 'id' => 'calc_shipping_city'));
    echo beans_close_markup('woo_shipping_calculator_city', 'p');
}
if (apply_filters('woocommerce_shipping_calculator_enable_postcode', true)) {
    echo beans_open_markup('woo_shipping_calculator_postcode', 'p', array('class' => 'form-row form-row-wide', 'id' => 'calc_shipping_city_field'));
    echo beans_selfclose_markup('woo_shipping_calculator_postcode_input', 'input', array('type' => 'text', 'class' => 'input-text', 'value' => esc_attr(WC()->customer->get_shipping_postcode()), 'placeholder' => esc_attr_e('Postcode / Zip', 'woocommerce'), 'name' => 'calc_shipping_postcode', 'id' => 'calc_shipping_postcode'));
    echo beans_close_markup('woo_shipping_calculator_postcode', 'p');
}
echo beans_open_markup('woo_shipping_calculator_button_wrap', 'p');
echo beans_open_markup('woo_shipping_calculator_submit_button', 'button', array('type' => 'submit', 'name' => 'calc_shipping', 'value' => 1, 'class' => 'button'));
_e('Update Totals', 'woocommerce');
echo beans_close_markup('woo_shipping_calculator_submit_button', 'button');
echo beans_close_markup('woo_shipping_calculator_button_wrap', 'p');
wp_nonce_field('woocommerce-cart');
echo beans_close_markup('woo_shipping_calculator_section', 'section');
echo beans_open_markup('woo_shipping_calculator_form', 'form');
do_action('woocommerce_after_shipping_calculator');
<?php

/**
 * Output a single payment method
 *
 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     2.3.0
 */
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
echo beans_open_markup('woo_checkout_payment_method_list_item', 'li', array('class' => 'payment_method_' . $gateway->id));
echo beans_selfclose_markup('woo_checkout_payment_method_list_input', 'input', array('id' => 'payment_method_' . $gateway->id, 'type' => 'radio', 'class' => 'input-radio', 'name' => 'payment_method', 'value' => esc_attr($gateway->id), 'checked' => $gateway->chosen, true ? 'checked' : '', 'data-order_button_text' => esc_attr($gateway->order_button_text)));
echo beans_open_markup('woo_checkout_payment_method_list_label', 'label', array('for' => 'payment_method_' . $gateway->id));
echo $gateway->get_title();
echo $gateway->get_icon();
echo beans_close_markup('woo_checkout_payment_method_list_label', 'label');
if ($gateway->has_fields() || $gateway->get_description()) {
    echo beans_open_markup('woo_checkout_payment_method_list_fields', 'div', array('class' => 'payment_box payment_method_' . $gateway->id, 'style' => !$gateway->chosen ? 'display:none;' : null));
    $gateway->payment_fields();
    echo beans_close_markup('woo_checkout_payment_method_list_fields', 'div');
}
echo beans_close_markup('woo_checkout_payment_method_list_item', 'li');
/**
 * Single Product Image
 *
 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     2.0.14
 */
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
global $post, $woocommerce, $product;
echo beans_open_markup('woo_product_single_images_wrap', 'div', array('class' => 'images'));
if (has_post_thumbnail()) {
    $image_title = esc_attr(get_the_title(get_post_thumbnail_id()));
    $image_caption = get_post(get_post_thumbnail_id())->post_excerpt;
    $image_link = wp_get_attachment_url(get_post_thumbnail_id());
    $image = get_the_post_thumbnail($post->ID, apply_filters('single_product_large_thumbnail_size', 'shop_single'), array('title' => $image_title, 'alt' => $image_title));
    $attachment_count = count($product->get_gallery_attachment_ids());
    if ($attachment_count > 0) {
        $gallery = '[product-gallery]';
    } else {
        $gallery = '';
    }
    echo apply_filters('woocommerce_single_product_image_html', sprintf(beans_open_markup('woo_product_single_images_wrap_link', 'a', array('href' => '%s', 'itemprop' => 'image', 'class' => 'woocommerce-main-image zoom', 'title' => '%s', 'data-rel' => 'prettyPhoto' . $gallery)) . '%s' . beans_close_markup('woo_product_single_images_wrap_link', 'a'), $image_link, $image_caption, $image), $post->ID);
} else {
    echo apply_filters('woocommerce_single_product_image_html', sprintf(beans_selfclose_markup('woo_product_single_images_wrap_image', 'img', array('src' => '%s', 'alt' => '%s')), wc_placeholder_img_src(), __('Placeholder', 'woocommerce')), $post->ID);
}
do_action('woocommerce_product_thumbnails');
echo beans_close_markup('woo_product_single_images_wrap', 'div');
// Exit if accessed directly
do_action('woocommerce_auth_page_header');
echo beans_open_markup('woo_auth_form_heading', 'h1');
printf(__('%s would like to connect to your store', 'woocommerce'), esc_html($app_name));
echo beans_close_markup('woo_auth_form_heading', 'h1');
wc_print_notices();
echo beans_open_markup('woo_auth_form_notice', 'p');
printf(__('To connect to %1$s you need to be logged in. Log in to your store below, or %2$scancel and return to %1$s%3$s', 'woocommerce'), wc_clean($app_name), beans_open_markup('woo_auth_form_notice_return_link', 'a', array('href' => esc_url($return_url))), beans_close_markup('woo_auth_form_notice_return_link', 'a'));
echo beans_close_markup('woo_auth_form_notice', 'p');
echo beans_open_markup('woo_auth_form', 'form', array('method' => 'post', 'class' => 'wc-auth-login'));
echo beans_open_markup('woo_auth_form_username', 'p', array('class' => 'form-row form-row-wide'));
echo beans_open_markup('woo_auth_form_username_label', 'label', array('for' => 'username'));
_e('Username or email address', 'woocommerce');
echo beans_open_markup('woo_auth_form_required', 'span', array('class' => 'required')) . beans_close_markup('woo_auth_form_required', 'span');
echo beans_close_markup('woo_auth_form_username_label', 'label');
echo beans_selfclose_markup('woo_auth_form_username_input', 'input', array('type' => 'text', 'class' => 'input-text', 'name' => 'username', 'id' => 'username', 'value' => !empty($_POST['username']) ? esc_attr($_POST['username']) : ''));
echo beans_close_markup('woo_auth_form_username', 'p');
echo beans_open_markup('woo_auth_form_password', 'p', array('class' => 'form-row form-row-wide'));
echo beans_open_markup('woo_auth_form_password_label', 'label', array('for' => 'username'));
_e('Password', 'woocommerce');
echo beans_open_markup('woo_auth_form_required', 'span', array('class' => 'required')) . beans_close_markup('woo_auth_form_required', 'span');
echo beans_close_markup('woo_auth_form_username_label', 'label');
echo beans_selfclose_markup('woo_auth_form_password_input', 'input', array('class' => 'input-text', 'type' => 'password', 'name' => 'password', 'id' => 'password'));
echo beans_close_markup('woo_auth_form_password', 'p');
echo beans_open_markup('woo_auth_form_submit', 'p', array('class' => 'wc-auth-actions'));
wp_nonce_field('woocommerce-login');
echo beans_selfclose_markup('woo_auth_form_submit_input', 'input', array('type' => 'submit', 'class' => 'button button-large button-primary wc-auth-login-button', 'name' => 'login', 'value' => esc_attr_e('Login', 'woocommerce')));
echo beans_selfclose_markup('woo_auth_form_redirect_input', 'input', array('type' => 'hidden', 'name' => 'redirect', 'value' => esc_url($redirect_url)));
echo beans_close_markup('woo_auth_form_submit', 'p');
echo beans_close_markup('woo_auth_form', 'form');
do_action('woocommerce_auth_page_footer');
        $method = current($available_methods);
        echo wp_kses_post(wc_cart_totals_shipping_method_label($method));
        echo beans_selfclose_markup('woo_cart_shipping_method_hidden_input', 'input', array('type' => 'hidden', 'name' => 'shipping_method[' . $index . ']', 'data-index' => $index, 'id' => 'shipping_method_' . $index, 'value' => esc_attr($method->id), 'class' => 'shipping_method'));
    } elseif (get_option('woocommerce_shipping_method_format') === 'select') {
        echo beans_open_markup('woo_cart_shipping_method', 'select', array('name' => 'shipping_method[' . $index . ']', 'data-index' => $index, 'id' => 'shipping_method_' . $index, 'class' => 'shipping_method'));
        foreach ($available_methods as $method) {
            echo beans_open_markup('woo_cart_shipping_method_option', 'option', array('value' => esc_attr($method->id), 'selected' => selected($method->id, $chosen_method)));
            echo wp_kses_post(wc_cart_totals_shipping_method_label($method));
            echo beans_close_markup('woo_cart_shipping_method_option', 'option');
        }
        echo beans_close_markup('woo_cart_shipping_method', 'select');
    } else {
        echo beans_open_markup('woo_cart_shipping_method_list', 'ul', array('id' => 'shipping_method'));
        foreach ($available_methods as $method) {
            echo beans_open_markup('woo_cart_shipping_method_list_item', 'li');
            echo beans_selfclose_markup('woo_cart_shipping_method_radio_input', 'input', array('type' => 'radio', 'name' => 'shipping_method[' . $index . ']', 'data-index' => $index, 'id' => 'shipping_method_' . $index . '_' . sanitize_title($method->id), 'value' => esc_attr($method->id), 'class' => 'shipping_method', 'checked' => checked($method->id, $chosen_method)));
            echo beans_open_markup('woo_cart_shipping_method_radio_label', 'label', array('for' => 'shipping_method_' . $index . '_' . sanitize_title($method->id)));
            echo wp_kses_post(wc_cart_totals_shipping_method_label($method));
            echo beans_close_markup('woo_cart_shipping_method_radio_label', 'label');
            echo beans_close_markup('woo_cart_shipping_method_list_item', 'li');
        }
        echo beans_close_markup('woo_cart_shipping_method_list', 'ul');
    }
} elseif (WC()->countries->get_states(WC()->customer->get_shipping_country()) && !WC()->customer->get_shipping_state() || !WC()->customer->get_shipping_postcode()) {
    if (is_cart() && get_option('woocommerce_enable_shipping_calc') === 'yes') {
        echo beans_open_markup('woo_cart_shipping_calculator_note', 'p');
        _e('Please use the shipping calculator to see available shipping methods.', 'woocommerce');
        echo beans_close_markup('woo_cart_shipping_calculator_note', 'p');
    } elseif (is_cart()) {
        echo beans_open_markup('woo_cart_address_note', 'p');
        _e('Please continue to the checkout and enter your full address to see if there are any available shipping methods.', 'woocommerce');
<?php

/**
 * Checkout coupon form
 *
 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     2.2
 */
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
if (!WC()->cart->coupons_enabled()) {
    return;
}
$info_message = apply_filters('woocommerce_checkout_coupon_message', __('Have a coupon? ', 'woocommerce') . beans_open_markup('woo_cart_coupon_form_login_link', 'a', array('href' => '#', 'class' => 'showcoupon')) . __('Click here to enter your code', 'woocommerce') . beans_close_markup('woo_cart_coupon_form_login_link', 'a'));
wc_print_notice($info_message, 'notice');
echo beans_open_markup('woo_checkout_coupon', 'form', array('class' => 'checkout_coupon', 'method' => 'post', 'style' => 'display:none;'));
echo beans_open_markup('woo_checkout_coupon_code', 'p', array('class' => 'form-row form-row-first'));
echo beans_selfclose_markup('woo_checkout_coupon_code_input', 'input', array('type' => 'text', 'name' => 'coupon_code', 'class' => 'input-text', 'placeholder' => esc_attr_e('Coupon code', 'woocommerce'), 'id' => 'coupon_code', 'value' => ''));
echo beans_close_markup('woo_checkout_coupon_code', 'p');
echo beans_open_markup('woo_checkout_coupon_apply', 'p', array('class' => 'form-row form-row-last'));
echo beans_selfclose_markup('woo_checkout_coupon_apply_input', 'input', array('type' => 'submit', 'class' => 'button', 'name' => 'apply_coupon', 'value' => esc_attr_e('Apply Coupon', 'woocommerce')));
echo beans_close_markup('woo_checkout_coupon_apply', 'p');
echo beans_open_markup('woo_checkout_coupon_clear', 'div', array('class' => 'clear'));
echo beans_close_markup('woo_checkout_coupon_clear', 'div');
echo beans_close_markup('woo_checkout_coupon', 'form');
    echo beans_close_markup('woo_customer_registration_email_label', 'label');
    echo beans_selfclose_markup('woo_customer_registration_email_input', 'input', array('type' => 'text', 'class' => 'input-text', 'name' => 'email', 'id' => 'reg_email', 'value' => !empty($_POST['email']) ? esc_attr($_POST['email']) : ''));
    echo beans_close_markup('woo_customer_registration_email', 'p');
    if ('no' === get_option('woocommerce_registration_generate_password')) {
        echo beans_open_markup('woo_customer_registration_password', 'p', array('class' => 'form-row form-row-wide'));
        echo beans_open_markup('woo_customer_registration_password_label', 'label', array('for' => 'reg_password'));
        _e('Password', 'woocommerce');
        echo beans_open_markup('woo_customer_registration_required', 'span', array('class' => 'required')) . beans_close_markup('woo_customer_registration_required', 'span');
        echo beans_close_markup('woo_customer_registration_password_label', 'label');
        echo beans_selfclose_markup('woo_customer_registration_password_input', 'input', array('type' => 'password', 'class' => 'input-text', 'name' => 'password', 'id' => 'reg_password'));
        echo beans_close_markup('woo_customer_registration_password', 'p');
    }
    echo '<!-- Spam Trap -->';
    echo beans_open_markup('woo_customer_registration_spam_trap', 'div', array('style' => (is_rtl() ? 'right' : 'left') . ': -999em; position: absolute'));
    echo beans_open_markup('woo_customer_registration_spam_trap_label', 'label', array('for' => 'trap'));
    _e('Anti-spam', 'woocommerce');
    echo beans_close_markup('woo_customer_registration_spam_trap_label', 'label');
    echo beans_selfclose_markup('woo_customer_registration_spam_trap_input', 'input', array('type' => 'text', 'name' => 'email_2', 'tabindex' => -1));
    echo beans_close_markup('woo_customer_registration_spam_trap', 'div');
    do_action('woocommerce_register_form');
    do_action('register_form');
    echo beans_open_markup('woo_customer_registration_submit', 'p', array('class' => 'form-row'));
    wp_nonce_field('woocommerce-register');
    echo beans_selfclose_markup('woo_customer_registration_submit_input', 'input', array('type' => 'submit', 'class' => 'button', 'name' => 'register', 'value' => __('Register', 'woocommerce')));
    echo beans_close_markup('woo_customer_registration_submit', 'p');
    do_action('woocommerce_register_form_end');
    echo beans_close_markup('woo_customer_registration_form', 'form');
    echo beans_close_markup('woo_customer_registration_col2', 'div');
    echo beans_close_markup('woo_customer_login', 'div');
}
do_action('woocommerce_after_customer_login_form');
    _e('Billing &amp; Shipping', 'woocommerce');
    echo beans_close_markup('woo_billing_title', 'h3');
} else {
    echo beans_open_markup('woo_billing_title', 'h3');
    _e('Billing Details', 'woocommerce');
    echo beans_close_markup('woo_billing_title', 'h3');
}
do_action('woocommerce_before_checkout_billing_form', $checkout);
foreach ($checkout->checkout_fields['billing'] as $key => $field) {
    woocommerce_form_field($key, $field, $checkout->get_value($key));
}
do_action('woocommerce_after_checkout_billing_form', $checkout);
if (!is_user_logged_in() && $checkout->enable_signup) {
    if ($checkout->enable_guest_checkout) {
        echo beans_open_markup('woo_billing_register_input_wrap', 'p', array('class' => 'form-row form-row-wide create-account'));
        echo beans_selfclose_markup('woo_billing_register_input', 'input', array('class' => 'input-checkbox', 'id' => 'createaccount', 'checked' => true === $checkout->get_value('createaccount') || true === apply_filters('woocommerce_create_account_default_checked', false) ? 'checked' : null, 'type' => 'checkbox', 'name' => 'createaccount', 'value' => 1));
        echo beans_open_markup('woo_billing_register_label', 'label', array('for' => 'createaccount', 'class' => 'checkbox'));
        _e('Create an account?', 'woocommerce');
        echo beans_close_markup('woo_billing_register_label', 'label');
        echo beans_close_markup('woo_billing_register_input_wrap', 'p');
    }
    do_action('woocommerce_before_checkout_registration_form', $checkout);
    if (!empty($checkout->checkout_fields['account'])) {
        echo beans_open_markup('woo_billing_register', 'div', array('class' => 'create-account'));
        echo beans_open_markup('woo_billing_register_note', 'p');
        _e('Create an account by entering the information below. If you are a returning customer please login at the top of the page.', 'woocommerce');
        echo beans_close_markup('woo_billing_register_note', 'p');
        foreach ($checkout->checkout_fields['account'] as $key => $field) {
            woocommerce_form_field($key, $field, $checkout->get_value($key));
        }
        echo beans_open_markup('woo_billing_register_clear', 'div', array('class' => 'clear'));
<?php

/**
 * Product quantity inputs
 *
 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     2.1.0
 */
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
echo beans_open_markup('woo_quantity_input_wrap', 'div', array('class' => 'quantity'));
echo beans_selfclose_markup('woo_quantity_input', 'input', array('type' => 'number', 'step' => esc_attr($step), 'min' => is_numeric($min_value) ? esc_attr($min_value) : null, 'max' => is_numeric($max_value) ? esc_attr($max_value) : null, 'name' => esc_attr($input_name), 'value' => esc_attr($input_value), 'title' => esc_attr_x('Qty', 'Product quantity input tooltip', 'woocommerce'), 'class' => 'input-text qty text', 'size' => 4));
echo beans_close_markup('woo_quantity_input_wrap', 'div');
 *
 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     2.2.0
 */
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
echo beans_open_markup('woo_orderby_form', 'form', array('class' => 'woocommerce-ordering', 'method' => 'get'));
echo beans_open_markup('woo_orderby_select', 'select', array('name' => 'orderby', 'class' => 'orderby'));
foreach ($catalog_orderby_options as $id => $name) {
    echo beans_open_markup('woo_orderby_option', 'option', array('value' => esc_attr($id), 'selected' => selected($orderby, $id) ? 'selected' : null));
    echo esc_html($name);
    echo beans_open_markup('woo_orderby_option', 'option');
}
echo beans_open_markup('woo_orderby_select', 'select');
// Keep query string vars intact
foreach ($_GET as $key => $val) {
    if ('orderby' === $key || 'submit' === $key) {
        continue;
    }
    if (is_array($val)) {
        foreach ($val as $innerVal) {
            echo beans_selfclose_markup('woo_orderby_option_hidden', 'input', array('type' => 'hidden', 'name' => esc_attr($key) . '[]', 'value' => esc_attr($innerVal)));
        }
    } else {
        echo beans_selfclose_markup('woo_orderby_option_hidden', 'input', array('type' => 'hidden', 'name' => esc_attr($key), 'value' => esc_attr($val)));
    }
}
echo beans_close_markup('woo_orderby_form', 'form');
echo beans_open_markup('woo_account_edit_form_legend', 'legend');
_e('Password Change', 'woocommerce');
echo beans_close_markup('woo_account_edit_form_legend', 'legend');
echo beans_open_markup('woo_account_edit_form_password', 'p', array('class' => 'form-row form-row-wide'));
echo beans_open_markup('woo_account_edit_form_password_label', 'label', array('for' => 'password_current'));
_e('Current Password (leave blank to leave unchanged)', 'woocommerce');
echo beans_close_markup('woo_account_edit_form_password_label', 'label');
echo beans_selfclose_markup('woo_account_edit_form_password_input', 'input', array('type' => 'password', 'class' => 'input-text', 'name' => 'password_current', 'id' => 'password_current'));
echo beans_close_markup('woo_account_edit_form_password', 'p');
echo beans_open_markup('woo_account_edit_form_password_1', 'p', array('class' => 'form-row form-row-wide'));
echo beans_open_markup('woo_account_edit_form_password_1_label', 'label', array('for' => 'password_1'));
_e('New Password (leave blank to leave unchanged)', 'woocommerce');
echo beans_close_markup('woo_account_edit_form_password_1_label', 'label');
echo beans_selfclose_markup('woo_account_edit_form_password_1_input', 'input', array('type' => 'password', 'class' => 'input-text', 'name' => 'password_1', 'id' => 'password_1'));
echo beans_close_markup('woo_account_edit_form_password_1', 'p');
echo beans_open_markup('woo_account_edit_form_password_2', 'p', array('class' => 'form-row form-row-wide'));
echo beans_open_markup('woo_account_edit_form_password_2_label', 'label', array('for' => 'password_2'));
_e('Confirm New Password (leave blank to leave unchanged)', 'woocommerce');
echo beans_close_markup('woo_account_edit_form_password_2_label', 'label');
echo beans_selfclose_markup('woo_account_edit_form_password_2_input', 'input', array('type' => 'password', 'class' => 'input-text', 'name' => 'password_2', 'id' => 'password_2'));
echo beans_close_markup('woo_account_edit_form_password_2', 'p');
echo beans_open_markup('woo_account_edit_form_fieldset', 'fieldset');
echo beans_open_markup('woo_account_edit_form_clear', 'div', array('class' => 'clear')) . beans_close_markup('woo_account_edit_form_clear', 'div');
do_action('woocommerce_edit_account_form');
echo beans_open_markup('woo_account_edit_form_submit', 'p');
wp_nonce_field('save_account_details');
echo beans_selfclose_markup('woo_account_edit_form_submit_input', 'input', array('type' => 'submit', 'class' => 'button', 'name' => 'save_account_details', 'value' => __('Save changes', 'woocommerce')));
echo beans_selfclose_markup('woo_account_edit_form_submit_hidden_input', 'input', array('type' => 'hidden', 'name' => 'action', 'value' => 'save_account_details'));
echo beans_close_markup('woo_account_edit_form_submit', 'p');
do_action('woocommerce_edit_account_form_end');
echo beans_close_markup('woo_account_edit_form', 'form');
 *
 * @hooked woocommerce_show_product_sale_flash - 10
 * @hooked woocommerce_show_product_images - 20
 */
do_action('woocommerce_before_single_product_summary');
echo beans_open_markup('woo_product_single_summary', 'div', array('class' => 'summary entry-summary'));
/**
 * woocommerce_single_product_summary hook
 *
 * @hooked woocommerce_template_single_title - 5
 * @hooked woocommerce_template_single_rating - 10
 * @hooked woocommerce_template_single_price - 10
 * @hooked woocommerce_template_single_excerpt - 20
 * @hooked woocommerce_template_single_add_to_cart - 30
 * @hooked woocommerce_template_single_meta - 40
 * @hooked woocommerce_template_single_sharing - 50
 */
do_action('woocommerce_single_product_summary');
echo beans_close_markup('woo_product_single_summary', 'div');
/**
 * woocommerce_after_single_product_summary hook
 *
 * @hooked woocommerce_output_product_data_tabs - 10
 * @hooked woocommerce_upsell_display - 15
 * @hooked woocommerce_output_related_products - 20
 */
do_action('woocommerce_after_single_product_summary');
echo beans_selfclose_markup('woo_product_single_meta_url', 'meta', array('itemprop' => 'url', 'content' => get_the_permalink()));
echo beans_close_markup('woo_product_single_wrap', 'div');
echo '<!-- #product-the_ID(); ?> -->';
do_action('woocommerce_after_single_product');
 * @author      WooThemes
 * @package     WooCommerce/Templates
 * @version     2.1.0
 */
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
global $current_user;
$page_title = $load_address === 'billing' ? __('Billing Address', 'woocommerce') : __('Shipping Address', 'woocommerce');
get_currentuserinfo();
wc_print_notices();
if (!$load_address) {
    wc_get_template('myaccount/my-address.php');
} else {
    echo beans_open_markup('woo_edit_address_form', 'form', array('method' => 'post'));
    echo beans_open_markup('woo_edit_address_title', 'h3');
    echo apply_filters('woocommerce_my_account_edit_address_title', $page_title);
    echo beans_close_markup('woo_edit_address_title', 'h3');
    do_action("woocommerce_before_edit_address_form_{$load_address}");
    foreach ($address as $key => $field) {
        woocommerce_form_field($key, $field, !empty($_POST[$key]) ? wc_clean($_POST[$key]) : $field['value']);
    }
    do_action("woocommerce_after_edit_address_form_{$load_address}");
    echo beans_open_markup('woo_edit_address_submit', 'p');
    echo beans_selfclose_markup('woo_edit_address_submit_input', 'input', array('type' => 'submit', 'class' => 'button', 'name' => 'save_address', 'value' => __('Save Address', 'woocommerce')));
    wp_nonce_field('woocommerce-edit_address');
    echo beans_selfclose_markup('woo_edit_address_hidden_input', 'input', array('type' => 'hidden', 'name' => 'action', 'value' => 'edit_address'));
    echo beans_close_markup('woo_edit_address_submit', 'p');
    echo beans_close_markup('woo_edit_address_form', 'form');
}
Exemple #24
0
/**
 * Modify comment form fields.
 *
 * This function replaces the default WordPress comment fields.
 *
 * @since 1.0.0
 *
 * @param array $fields The WordPress default fields.
 *
 * @return array The modified fields.
 */
function beans_comment_form_fields($fields)
{
    $commenter = wp_get_current_commenter();
    // Author.
    $author = beans_open_markup('beans_comment_form[_name]', 'div', array('class' => 'uk-width-medium-1-3'));
    /**
     * Filter whether the comment form name legend should load or not.
     *
     * @since 1.0.0
     */
    if (beans_apply_filters('beans_comment_form_legend[_name]', true)) {
        $author .= beans_open_markup('beans_comment_form_legend[_name]', 'legend');
        $author .= beans_output('beans_comment_form_legend_text[_name]', __('Name', 'tm-beans'));
        $author .= beans_close_markup('beans_comment_form_legend[_name]', 'legend');
    }
    $author .= beans_selfclose_markup('beans_comment_form_field[_name]', 'input', array('id' => 'author', 'class' => 'uk-width-1-1', 'type' => 'text', 'value' => esc_attr($commenter['comment_author']), 'name' => 'author'));
    $author .= beans_close_markup('beans_comment_form[_name]', 'div');
    // Email.
    $email = beans_open_markup('beans_comment_form[_email]', 'div', array('class' => 'uk-width-medium-1-3'));
    /**
     * Filter whether the comment form email legend should load or not.
     *
     * @since 1.0.0
     */
    if (beans_apply_filters('beans_comment_form_legend[_email]', true)) {
        $email .= beans_open_markup('beans_comment_form_legend[_email]', 'legend');
        $email .= beans_output('beans_comment_form_legend_text[_email]', sprintf(__('Email %s', 'tm-beans'), get_option('require_name_email') ? ' *' : ''));
        $email .= beans_close_markup('beans_comment_form_legend[_email]', 'legend');
    }
    $email .= beans_selfclose_markup('beans_comment_form_field[_email]', 'input', array('id' => 'email', 'class' => 'uk-width-1-1', 'type' => 'text', 'value' => esc_attr($commenter['comment_author_email']), 'name' => 'email', 'required' => get_option('require_name_email') ? '' : null));
    $email .= beans_close_markup('beans_comment_form[_email]', 'div');
    // Url.
    $url = beans_open_markup('beans_comment_form[_website]', 'div', array('class' => 'uk-width-medium-1-3'));
    /**
     * Filter whether the comment form url legend should load or not.
     *
     * @since 1.0.0
     */
    if (beans_apply_filters('beans_comment_form_legend[_url]', true)) {
        $url .= beans_open_markup('beans_comment_form_legend', 'legend');
        $url .= beans_output('beans_comment_form_legend_text[_url]', __('Website', 'tm-beans'));
        $url .= beans_close_markup('beans_comment_form_legend[_url]', 'legend');
    }
    $url .= beans_selfclose_markup('beans_comment_form_field[_url]', 'input', array('id' => 'url', 'class' => 'uk-width-1-1', 'type' => 'text', 'value' => esc_attr($commenter['comment_author_url']), 'name' => 'url'));
    $url .= beans_close_markup('beans_comment_form[_website]', 'div');
    $fields = array('author' => $author, 'email' => $email, 'url' => $url);
    return $fields;
}
        echo beans_close_markup('woo_cart_table_cell_subtotals', 'td');
        echo beans_open_markup('woo_cart_table_filters_row', 'tr');
    }
}
do_action('woocommerce_cart_contents');
echo beans_open_markup('woo_cart_contents_row', 'tr');
echo beans_open_markup('woo_cart_contents_actions', 'td', array('colspan' => 6, 'class' => 'actions'));
if (WC()->cart->coupons_enabled()) {
    echo beans_open_markup('woo_cart_contents_coupon', 'div', array('class' => 'coupon'));
    echo beans_open_markup('woo_cart_contents_coupon_label', 'label', array('for' => 'coupon_code'));
    _e('Coupon', 'woocommerce') . ':';
    echo beans_close_markup('woo_cart_contents_coupon_label', 'label');
    echo beans_selfclose_markup('woo_cart_contents_coupon_input', 'input', array('type' => 'text', 'name' => 'coupon_code', 'class' => 'input-text', 'id' => 'coupon_code', 'value' => '', 'placeholder' => __('Coupon code', 'woocommerce')));
    echo beans_selfclose_markup('woo_cart_contents_coupon_button', 'input', array('type' => 'submit', 'class' => 'button', 'name' => 'apply_coupon', 'value' => __('Apply Coupon', 'woocommerce')));
    do_action('woocommerce_cart_coupon');
    echo beans_close_markup('woo_cart_contents_coupon', 'div');
}
echo beans_selfclose_markup('woo_cart_contents_button', 'input', array('type' => 'submit', 'class' => 'button', 'name' => 'update_cart', 'value' => __('Update Cart', 'woocommerce')));
do_action('woocommerce_cart_actions');
wp_nonce_field('woocommerce-cart');
echo beans_close_markup('woo_cart_contents_actions', 'td');
echo beans_close_markup('woo_cart_contents_row', 'tr');
do_action('woocommerce_after_cart_contents');
echo beans_open_markup('woo_cart_table_body', 'tbody');
echo beans_close_markup('woo_cart_table', 'table');
do_action('woocommerce_after_cart_table');
echo beans_close_markup('woo_cart_form', 'form');
echo beans_open_markup('woo_cart_contents_collaterals', 'div', array('class' => 'cart-collaterals'));
do_action('woocommerce_cart_collaterals');
echo beans_close_markup('woo_cart_contents_collaterals', 'div');
do_action('woocommerce_after_cart');
            $no_gateways_message = __('Please fill in your details above to see available payment methods.', 'woocommerce');
        } else {
            $no_gateways_message = __('Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce');
        }
        echo beans_open_markup('woo_checkout_no_available_payment_methods_message', 'li');
        echo apply_filters('woocommerce_no_available_payment_methods_message', $no_gateways_message);
        echo beans_close_markup('woo_checkout_no_available_payment_methods_message', 'li');
    }
    echo beans_close_markup('woo_checkout_payment_method_wrap_list', 'ul');
}
echo beans_open_markup('woo_checkout_place_order_wrap', 'div', array('class' => 'form-row place-order'));
echo '<noscript>';
_e('Since your browser does not support JavaScript, or it is disabled, please ensure you click the <em>Update Totals</em> button before placing your order. You may be charged more than the amount stated above if you fail to do so.', 'woocommerce');
echo '<br/><input type="submit" class="button alt" name="woocommerce_checkout_update_totals" value="' . __('Update totals', 'woocommerce') . '" /></noscript>';
wp_nonce_field('woocommerce-process_checkout');
do_action('woocommerce_review_order_before_submit');
echo apply_filters('woocommerce_order_button_html', beans_selfclose_markup('woo_order_button_html', 'input', array('type' => 'submit', 'class' => 'button alt', 'name' => 'woocommerce_checkout_place_order', 'id' => 'place_order', 'value' => esc_attr($order_button_text), 'data-value' => esc_attr($order_button_text))));
if (wc_get_page_id('terms') > 0 && apply_filters('woocommerce_checkout_show_terms', true)) {
    echo beans_open_markup('woo_checkout_order_terms', 'p', array('class' => 'form-row terms'));
    echo beans_open_markup('woo_checkout_order_terms_label', 'label', array('for' => 'terms', 'class' => 'checkbox'));
    printf(__('I&rsquo;ve read and accept the ' . beans_open_markup('woo_checkout_terms_link', 'a', array('href' => '%s', 'target' => '_blank')) . 'terms &amp; conditions', 'woocommerce') . beans_close_markup('woo_checkout_terms_link', 'a'), esc_url(wc_get_page_permalink('terms')));
    echo beans_close_markup('woo_checkout_order_terms_label', 'label');
    echo beans_selfclose_markup('woo_checkout_order_terms_input', 'input', array('type' => 'checkbox', 'class' => 'input-checkbox', 'name' => 'terms', 'checked' => checked(apply_filters('woocommerce_terms_is_checked_default', isset($_POST['terms'])), true), 'id' => 'terms'));
    echo beans_close_markup('woo_checkout_order_terms', 'p');
}
do_action('woocommerce_review_order_after_submit');
echo beans_close_markup('woo_checkout_place_order_wrap', 'div');
echo beans_close_markup('woo_checkout_payment_method_wrap', 'div');
if (!is_ajax()) {
    do_action('woocommerce_review_order_after_payment');
}
<?php

/**
 * The template for product search form.
 *
 * Override this template by copying it to yourtheme/woocommerce/product-searchform.php
 *
 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     1.6.4
 */
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
echo beans_open_markup('woo_product_search_form', 'form', array('role' => 'search', 'method' => 'get', 'class' => 'woocommerce-product-search', 'action' => esc_url(home_url('/'))));
echo beans_open_markup('woo_product_search_label', 'label', array('class' => 'screen-reader-text', 'for' => 's'));
_e('Search for:', 'woocommerce');
echo beans_close_markup('woo_product_search_label', 'label');
echo beans_selfclose_markup('woo_product_search_input', 'input', array('class' => 'search-field', 'placeholder' => esc_attr_x('Search Products&hellip;', 'placeholder', 'woocommerce'), 'value' => get_search_query(), 'name' => 's', 'title' => esc_attr_x('Search for:', 'label', 'woocommerce')));
echo beans_selfclose_markup('woo_product_search_button', 'input', array('type' => 'submit', 'value' => esc_attr_x('Search', 'submit button', 'woocommerce')));
echo beans_selfclose_markup('woo_product_search_hidden_input', 'input', array('type' => 'hidden', 'name' => 'post_type', 'value' => 'product'));
echo beans_close_markup('woo_product_search_form', 'form');