本文整理汇总了PHP中WPSC_Country::get_currency_symbol_html方法的典型用法代码示例。如果您正苦于以下问题:PHP WPSC_Country::get_currency_symbol_html方法的具体用法?PHP WPSC_Country::get_currency_symbol_html怎么用?PHP WPSC_Country::get_currency_symbol_html使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WPSC_Country
的用法示例。
在下文中一共展示了WPSC_Country::get_currency_symbol_html方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
function test_get_currency_symbol_html()
{
$country = new WPSC_Country(self::COUNTRY_ID_WITHOUT_REGIONS);
$currency_symbol = $country->get_currency_symbol_html();
$this->assertEquals(self::COUNTRY_NAME_WITHOUT_REGIONS_CURRENCY_SYMBOL_HTML, $currency_symbol);
}
示例2: wpsc_product_shipping_forms
//.........这里部分代码省略.........
<select id="wpsc-product-shipping-dimensions-unit" name="<?php
echo $field_name_prefix;
?>
[dimension_unit]">
<?php
foreach ($dimension_units as $unit => $unit_label) {
?>
<option value="<?php
echo esc_attr($unit);
?>
" <?php
if (!$bulk && isset($meta['dimension_unit'])) {
selected($unit, $meta['dimension_unit']);
}
// Dirty code
?>
><?php
echo esc_html($unit_label);
?>
</option>
<?php
}
?>
</select>
</span>
</p>
<!-- END DEMENSION INPUT -->
</div>
<?php
$currency_type = get_option('currency_type');
$country = new WPSC_Country($currency_type);
$ct_symb = $country->get_currency_symbol_html();
?>
<div class="wpsc-product-shipping-section wpsc-product-shipping-flat-rate">
<p><strong><?php
esc_html_e('Flat Rate Settings', 'wp-e-commerce');
?>
</strong></p>
<p class="wpsc-form-field">
<?php
if ($bulk) {
?>
<input class="wpsc-bulk-edit-fields" type="checkbox" name="wpsc_bulk_edit[fields][shipping][local]" value="1" />
<?php
}
?>
<label for="wpsc-product-shipping-flatrate-local"><?php
esc_html_e('Local Shipping Fee', 'wp-e-commerce');
?>
</label>
<span>
<?php
echo esc_html($ct_symb);
?>
<input type="text" id="wpsc-product-shipping-flatrate-local" name="<?php
echo esc_html($field_name_prefix);
?>
[shipping][local]" value="<?php
if (!$bulk) {
echo $shipping['local'];
}
?>
" />