本文整理汇总了PHP中Shopp::esc_attr_e方法的典型用法代码示例。如果您正苦于以下问题:PHP Shopp::esc_attr_e方法的具体用法?PHP Shopp::esc_attr_e怎么用?PHP Shopp::esc_attr_e使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Shopp
的用法示例。
在下文中一共展示了Shopp::esc_attr_e方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
</option>
<?php
echo Shopp::menuoptions($states, $status, true);
?>
</select>
<select name="type">
<option value=""><?php
Shopp::esc_html_e('View All Types');
?>
</option>
<?php
echo Shopp::menuoptions($types, $type, true);
?>
</select>
<input type="submit" id="filter-button" value="<?php
Shopp::esc_attr_e('Filter');
?>
" class="button-secondary" />
</div>
<?php
$ListTable->pagination('top');
?>
<div class="clear"></div>
</div>
<div class="clear"></div>
<table class="widefat" cellspacing="0">
<thead>
<tr><?php
print_column_headers($this->screen);
示例2: contact_meta_box
function contact_meta_box($Purchase)
{
$screen = get_current_screen();
$pre = 'page_';
$page = substr($screen->id, strpos($screen->id, $pre) + strlen($pre));
?>
<script id="customer-editor" type="text/x-jquery-tmpl">
<?php
ob_start();
?>
<div class="editor ${action}">
<input type="hidden" name="order-action" value="${action}" />
<p class="inline-fields">
<span>
<input type="text" name="customer[firstname]" id="customer-firstname" value="${firstname}" /><br />
<label for="address-city"><?php
_e('First Name', 'Shopp');
?>
</label>
</span>
<span>
<input type="text" name="customer[lastname]" id="customer-lastname" value="${lastname}" /><br />
<label for="address-city"><?php
_e('Last Name', 'Shopp');
?>
</label>
</span>
</p>
<p>
<input type="text" name="customer[company]" id="customer-company" value="${company}" /><br />
<label for="address-address"><?php
_e('Company', 'Shopp');
?>
</label>
</p>
<p>
<input type="text" name="customer[email]" id="customer-email" value="${email}" /><br />
<label for="customer-email"><?php
_e('Email', 'Shopp');
?>
</label>
</p>
<p>
<input type="text" name="customer[phone]" id="customer-phone" value="${phone}" /><br />
<label for="customer-phone"><?php
_e('Phone', 'Shopp');
?>
</label>
</p>
<?php
if ('wordpress' == shopp_setting('account_system')) {
?>
<p class="loginname">
<input type="text" name="customer[loginname]" id="customer-loginname" value="${loginname}" /><br />
<label for="customer-loginname"><?php
_e('Login Name', 'Shopp');
?>
</label>
</p>
<?php
}
?>
<div>
<input type="submit" id="cancel-edit-customer" name="cancel-edit-customer" value="<?php
Shopp::esc_attr_e('Cancel');
?>
" class="button-secondary" />
<input type="submit" name="save" value="<?php
Shopp::esc_attr_e('Save Customer');
?>
" class="button-primary alignright" />
</div>
<?php
if (!isset($_POST['select-customer'])) {
?>
<p class="change-button"><br class="clear" /><input type="submit" id="change-customer" name="change-customer" value="<?php
_e('Change Customer', 'Shopp');
?>
" class="button-secondary" /></p>
<?php
}
?>
</div>
<?php
$editcustomer = ob_get_contents();
ob_end_clean();
echo $editcustomer;
$customer = array('${action}' => 'update-customer', '${firstname}' => $Purchase->firstname, '${lastname}' => $Purchase->lastname, '${company}' => $Purchase->company, '${email}' => $Purchase->email, '${phone}' => $Purchase->phone, '${marketing}' => isset($Purchase->marketing) ? $Purchase->marketing : false, '${login}' => 'wordpress' == shopp_setting('account_system'));
$js = preg_replace('/\\${([-\\w]+)}/', '$1', json_encode($customer));
shopp_custom_script('orders', 'var customer = ' . $js . ';');
?>
</script>
<script id="customer-s" type="text/x-jquery-tmpl">
<?php
$s = isset($_REQUEST['s']) ? $_REQUEST['s'] : false;
ob_start();
if (isset($_POST['select-customer']) && empty($s)) {
$searchurl = wp_nonce_url(ShoppAdminController::url(array('page' => $page, 'id' => $Purchase->id)), 'wp_ajax_shopp_select_customer');
//.........这里部分代码省略.........
示例3: _e
<label for="customer-loginname"><?php
_e('Login Name', 'Shopp');
?>
</label>
<input type="text" name="customer[loginname]" id="customer-loginname" value="${loginname}" /><br />
</p>
<?php
}
?>
<div class="editing-controls">
<input type="submit" id="cancel-edit-customer" name="cancel-edit-customer" value="<?php
Shopp::esc_attr_e('Cancel');
?>
" class="button-secondary" />
<input type="submit" name="save" value="<?php
Shopp::esc_attr_e('Update');
?>
" class="button-primary alignright" />
</div>
</div>
<?php
$editcustomer = ob_get_clean();
echo $editcustomer;
$customer = array('${action}' => 'update-customer', '${id}' => $Purchase->customer, '${firstname}' => $Purchase->firstname, '${lastname}' => $Purchase->lastname, '${company}' => $Purchase->company, '${email}' => $Purchase->email, '${phone}' => $Purchase->phone, '${login}' => 'wordpress' == shopp_setting('account_system'));
$js = preg_replace('/\\${([-\\w]+)}/', '$1', json_encode($customer));
shopp_custom_script('orders', 'var customer = ' . $js . ';');
?>
</script>
<?php
if (isset($_POST['select-customer'])) {