当前位置: 首页>>代码示例>>PHP>>正文


PHP beans_selfclose_markup函数代码示例

本文整理汇总了PHP中beans_selfclose_markup函数的典型用法代码示例。如果您正苦于以下问题:PHP beans_selfclose_markup函数的具体用法?PHP beans_selfclose_markup怎么用?PHP beans_selfclose_markup使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了beans_selfclose_markup函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: beans_search_form

/**
 * 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;
}
开发者ID:JoomPassion,项目名称:Beans,代码行数:16,代码来源:searchform.php

示例2: kkthemes_placeholder_img

 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;
 }
开发者ID:kkthemes,项目名称:kkthemes,代码行数:9,代码来源:helpers.php

示例3: beans_site_branding

/**
 * 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');
}
开发者ID:jamestrevorlees,项目名称:odd-web-v1.00,代码行数:17,代码来源:header.php

示例4: bench_footer_content

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();
}
开发者ID:kkthemes,项目名称:bench-wordpress-theme,代码行数:36,代码来源:functions.php

示例5: beans_close_markup

    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');
开发者ID:simondowdles,项目名称:woocommerce-overrides-for-beans,代码行数:31,代码来源:form-lost-password.php

示例6: beans_post_password_form

/**
 * 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;
}
开发者ID:Getbeans,项目名称:Beans,代码行数:22,代码来源:post.php

示例7: beans_open_markup

<?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');
开发者ID:simondowdles,项目名称:woocommerce-overrides-for-beans,代码行数:22,代码来源:price.php

示例8: empty

 * @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');
}
开发者ID:simondowdles,项目名称:woocommerce-overrides-for-beans,代码行数:31,代码来源:simple.php

示例9: beans_selfclose_markup

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');
开发者ID:simondowdles,项目名称:woocommerce-overrides-for-beans,代码行数:31,代码来源:form-login.php

示例10: beans_open_markup

    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');
开发者ID:simondowdles,项目名称:woocommerce-overrides-for-beans,代码行数:31,代码来源:form-shipping.php

示例11: foreach

    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');
开发者ID:simondowdles,项目名称:woocommerce-overrides-for-beans,代码行数:31,代码来源:shipping-calculator.php

示例12: beans_open_markup

<?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');
开发者ID:simondowdles,项目名称:woocommerce-overrides-for-beans,代码行数:25,代码来源:payment-method.php

示例13: beans_open_markup

/**
 * 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');
开发者ID:simondowdles,项目名称:woocommerce-overrides-for-beans,代码行数:30,代码来源:product-image.php

示例14: do_action

// 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');
开发者ID:simondowdles,项目名称:woocommerce-overrides-for-beans,代码行数:31,代码来源:form-login.php

示例15: current

        $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');
开发者ID:simondowdles,项目名称:woocommerce-overrides-for-beans,代码行数:31,代码来源:cart-shipping.php


注:本文中的beans_selfclose_markup函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。