本文整理汇总了PHP中Lookup::localities方法的典型用法代码示例。如果您正苦于以下问题:PHP Lookup::localities方法的具体用法?PHP Lookup::localities怎么用?PHP Lookup::localities使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Lookup
的用法示例。
在下文中一共展示了Lookup::localities方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: wp_nonce_url
</form>
</div>
<script type="text/javascript">
/* <![CDATA[ */
var ratetable,rates,base,countries,zones,localities,taxrates,
ratesidx,countriesInUse,zonesInUse,allCountryZonesInUse,
APPLY_LOGIC,LOCAL_RATES,LOCAL_RATE_INSTRUCTIONS,ECART_PLUGINURI,RULE_LANG,
sugg_url='<?php echo wp_nonce_url(admin_url('admin-ajax.php'),'wp_ajax_ecart_suggestions'); ?>',
upload_url='<?php echo wp_nonce_url(admin_url('admin-ajax.php'),'wp_ajax_ecart_upload_local_taxes'); ?>',
ratetable = jQuery('#tax-rates'),
rates = <?php echo json_encode($rates); ?>,
base = <?php echo json_encode($base); ?>,
countries = <?php echo json_encode($countries); ?>,
zones = <?php echo json_encode($zones); ?>,
localities = <?php echo json_encode(Lookup::localities()); ?>,
taxrates = new Array(),
ratesidx = 0,
countriesInUse = new Array(),
zonesInUse = new Array(),
allCountryZonesInUse = new Array(),
APPLY_LOGIC = <?php _jse("Apply tax rate when %s of the following conditions match","Ecart"); ?>,
LOCAL_RATES = <?php _jse("Local Rates","Ecart"); ?>,
LOCAL_RATE_INSTRUCTIONS = <?php _jse("No local regions have been setup for this location. Local regions can be specified by uploading a formatted local rates file.","Ecart"); ?>,
LOCAL_RATES_UPLOADERR = <?php _jse("The file was uploaded successfully, but the data returned by the server cannot be used.","Ecart"); ?>,
ANY_OPTION = <?php _jse("any","Ecart"); ?>,
ALL_OPTION = <?php _jse("all","Ecart"); ?>,
ECART_PLUGINURI = '<?php echo ECART_PLUGINURI; ?>',
RULE_LANG = {
"product-name":<?php _jse('Product name is','Ecart'); ?>,
"product-tags":<?php _jse('Product is tagged','Ecart'); ?>,
示例2: wp_nonce_url
</form>
</div>
<script type="text/javascript">
/* <![CDATA[ */
var suggurl = '<?php
echo wp_nonce_url(admin_url('admin-ajax.php'), 'wp_ajax_shopp_suggestions');
?>
',
rates = <?php
echo json_encode($rates);
?>
,
base = <?php
echo json_encode($base);
?>
,
zones = <?php
echo json_encode($zones);
?>
,
localities = <?php
echo json_encode(Lookup::localities());
?>
,
taxrates = [];
/* ]]> */
</script>