本文整理汇总了PHP中esc_attr_x函数的典型用法代码示例。如果您正苦于以下问题:PHP esc_attr_x函数的具体用法?PHP esc_attr_x怎么用?PHP esc_attr_x使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了esc_attr_x函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: oxford_comment_form_defaults
/**
* Change the comment form defaults.
*
* @since 1.0.
*
* @param array $defaults The default values.
* @return array The modified defaults.
*/
function oxford_comment_form_defaults($defaults)
{
$input_size = 22;
// Comment form title
$defaults['title_reply'] = __('Leave a comment', 'oxford');
// Comment form notes
$defaults['comment_notes_before'] = '';
$defaults['comment_notes_after'] = '';
// Comment Author
$comment_author = isset($_POST['author']) ? wp_strip_all_tags($_POST['author'], true) : null;
$author_field = sprintf('<p class="comment-form-author"><input class="text-input respond-type" type="text" name="%1$s" id="%1$s" value="%3$s" size="%4$d" aria-required="true" tabindex="%5$d" placeholder="%2$s" /></p>', 'author', esc_attr_x('Name', 'comment field placeholder', 'oxford'), esc_attr($comment_author), $input_size, 1);
// Comment Author Email
$comment_author_email = isset($_POST['email']) ? trim($_POST['email']) : null;
$email_field = sprintf('<p class="comment-form-email"><input class="text-input respond-type" type="email" name="%1$s" id="%1$s" value="%3$s" size="%4$d" aria-required="true" tabindex="%5$d" placeholder="%2$s" /></p>', 'email', esc_attr_x('Email', 'comment field placeholder', 'oxford'), esc_attr($comment_author_email), $input_size, 2);
// Comment Author URL
$comment_author_url = isset($_POST['url']) ? trim($_POST['url']) : null;
$url_field = sprintf('<p class="comment-form-url"><input class="text-input respond-type" type="url" name="%1$s" id="%1$s" value="%3$s" size="%4$d" tabindex="%5$d" placeholder="%2$s" /></p>', 'url', esc_attr_x('Website', 'comment field placeholder', 'oxford'), esc_attr($comment_author_url), $input_size, 3);
// Set the fields in the $defaults array
$defaults['fields'] = array('author' => $author_field, 'email' => $email_field, 'url' => $url_field);
// Comment Form
$defaults['comment_field'] = sprintf('<p class="comment-form-comment"><textarea id="comment" class="blog-textarea respond-type" name="comment" cols="58" rows="10" aria-required="true" tabindex="4" placeholder="%s"></textarea></p>', esc_attr_x('Type reply here…', 'comment field placeholder', 'oxford'));
// Submit label
$defaults['label_submit'] = __('Post comment', 'oxford');
return $defaults;
}
开发者ID:andrewkhunn,项目名称:lancero,代码行数:33,代码来源:non-wpcom.php
示例2: vossen_jubi_get_search_form
static function vossen_jubi_get_search_form($echo = true)
{
$format = current_theme_supports('html5', 'search-form') ? 'html5' : 'xhtml';
$format = apply_filters('search_form_format', $format);
if ('html5' == $format) {
$form = ' <div class="widget-search"><form role="search" method="get" class="search-form" action="' . esc_url(home_url('/')) . '">
<div class="input-group">
<input type="search" class="form-control search-input" placeholder="' . esc_attr_x('Search …', 'placeholder') . '" value="' . get_search_query() . '" name="s" title="' . esc_attr_x('Search for:', 'label') . '" />
<span class="input-group-btn">
<button class="btn btn-default search-button" type="submit">
<i class="fa fa-search"></i>
</button>
</span>
</div>
</form></div>';
} else {
$form = ' <div class="widget-search"><form role="search" method="get" id="searchform" class="searchform" action="' . esc_url(home_url('/')) . '">
<div class="input-group">
<input type="text" class="form-control search-input" placeholder="' . esc_attr_x('Search …', 'placeholder') . '" value="' . get_search_query() . '" name="s" id="s" />
<span class="input-group-btn">
<button class="btn btn-default search-button" type="submit">
<i class="fa fa-search"></i>
</button>
</span>
</div>
</form></div>';
}
return $form;
}
开发者ID:lmacwan,项目名称:BreastPlasticSuregon_WP,代码行数:29,代码来源:OverrideWidgets.php
示例3: document_tag_slug_input
/**
* Show a slug input box.
* @since 1.0.0
*/
public function document_tag_slug_input()
{
?>
<input name="documentate_permalinks[tag_base]" type="text" class="regular-text code" value="<?php
echo esc_attr(documentate_get_option('tag_base'));
?>
" placeholder="<?php
echo esc_attr_x('docu_tag', 'slug', 'documentate');
?>
" />
<?php
}
开发者ID:helgatheviking,项目名称:Documentate,代码行数:16,代码来源:class-docu-admin-permalink-settings.php
示例4: photo_perfect_customize_search_form
/**
* Customize search form.
*
* @since Photo Perfect 1.0
*/
function photo_perfect_customize_search_form()
{
$search_placeholder = photo_perfect_get_option('search_placeholder');
$form = '<form role="search" method="get" class="search-form" action="' . esc_url(home_url('/')) . '">
<label>
<span class="screen-reader-text">' . _x('Search for:', 'label', 'photo-perfect') . '</span>
<input type="search" class="search-field" placeholder="' . esc_attr($search_placeholder) . '" value="' . get_search_query() . '" name="s" title="' . esc_attr_x('Search for:', 'label', 'photo-perfect') . '" />
</label>
<input type="submit" class="search-submit" value="' . esc_attr_x('Search', 'submit button', 'photo-perfect') . '" />
</form>';
return $form;
}
开发者ID:LSYanJun,项目名称:wordpress,代码行数:17,代码来源:basic.php
示例5: taxonomy_slug_input
/**
* Show a slug input box.
*/
public function taxonomy_slug_input()
{
$permalinks = get_option('elm_randomizer_permalinks');
?>
<input name="elm_randomizer_taxonomy_slug" type="text" class="regular-text code" value="<?php
if (isset($permalinks['taxonomy_base'])) {
echo esc_attr($permalinks['taxonomy_base']);
}
?>
" placeholder="<?php
echo esc_attr_x('randomizer-category', 'slug', 'elm');
?>
" />
<?php
}
开发者ID:elementous,项目名称:content-randomizer,代码行数:18,代码来源:permalink-settings.php
示例6: portfolio_tag_slug_input
/**
* Show a slug input box.
*/
public function portfolio_tag_slug_input()
{
$permalinks = get_option('axiscomposer_permalinks');
?>
<input name="axiscomposer_portfolio_tag_slug" type="text" class="regular-text code" value="<?php
if (isset($permalinks['tag_base'])) {
echo esc_attr($permalinks['tag_base']);
}
?>
" placeholder="<?php
echo esc_attr_x('portfolio-tag', 'slug', 'axiscomposer');
?>
" />
<?php
}
开发者ID:axisthemes,项目名称:axiscomposer,代码行数:18,代码来源:class-ac-admin-permalink-settings.php
示例7: product_tag_slug_input
/**
* Show a slug input box.
*/
public function product_tag_slug_input()
{
$permalinks = get_option('woocommerce_permalinks');
?>
<input name="woocommerce_product_tag_slug" type="text" class="regular-text code" value="<?php
if (isset($permalinks['tag_base'])) {
echo esc_attr($permalinks['tag_base']);
}
?>
" placeholder="<?php
echo esc_attr_x('product-tag', 'slug', 'woocommerce');
?>
" />
<?php
}
开发者ID:bitoncoin,项目名称:woocommerce,代码行数:18,代码来源:class-wc-admin-permalink-settings.php
示例8: event_action_links
/**
* Injects action links into the attendee screen.
*
* @param $event_id
*/
public function event_action_links($event_id)
{
$action_links = array('<a href="' . esc_url(get_edit_post_link($event_id)) . '" title="' . esc_attr_x('Edit', 'attendee event actions', 'event-tickets') . '">' . esc_html_x('Edit', 'attendee event actions', 'event-tickets') . '</a>', '<a href="' . esc_url(get_permalink($event_id)) . '" title="' . esc_attr_x('View', 'attendee event actions', 'event-tickets') . '">' . esc_html_x('View', 'attendee event actions', 'event-tickets') . '</a>');
/**
* Provides an opportunity to add and remove action links from the
* attendee screen summary box.
*
* @param array $action_links
*/
$action_links = (array) apply_filters('tribe_tickets_attendees_event_action_links', $action_links);
if (empty($action_links)) {
return;
}
echo '<div class="event-actions">' . join(' | ', $action_links) . '</div>';
}
开发者ID:uwmadisoncals,项目名称:Cluster-Plugins,代码行数:20,代码来源:Tickets_Handler.php
示例9: call_some_i18n_methods
function call_some_i18n_methods()
{
__('Hello World', 'test-domain');
_e('Hello World', 'test-domain');
_n('Single', 'Plural', 1, 'test-domain');
_n_noop('Single Noop', 'Plural Noop', 1, 'test-domain');
_x('Hello World', 'Testing', 'test-domain');
_ex('Hello World', 'Testing', 'test-domain');
_nx('Hello World', 'Testing', 'test-domain');
_nx_noop('Hello World Noop', 'Testing', 'test-domain');
esc_attr__('Attribute', 'test-domain');
esc_html__('HTML', 'test-domain');
esc_attr_e('Attribute', 'test-domain');
esc_html_e('HTML', 'test-domain');
esc_attr_x('Attribute', 'Testing', 'test-domain');
esc_html_x('HTML', 'Testing', 'test-domain');
translate_nooped_plural('Plural Noop', 2, 'test-domain');
}
开发者ID:dd32,项目名称:wordpress.develop,代码行数:18,代码来源:add-textdomain-0-result.php
示例10: wpex_mobile_search
function wpex_mobile_search()
{
?>
<div id="mobile-search">
<form method="get" action="<?php
echo esc_url(home_url('/'));
?>
" role="search" id="mobile-search-form">
<input type="search" class="field" name="s" value="<?php
echo esc_attr(get_search_query());
?>
" placeholder="<?php
echo esc_attr_x('To search type and hit enter', 'wpex');
?>
" />
</form>
</div>
<?php
}
开发者ID:kulgee001,项目名称:MyMusic-Wordpress,代码行数:19,代码来源:mobile-search.php
示例11: widget
/**
* Front-end display of widget.
*
* @see WP_Widget::widget()
* @since 3.2.0
*
*
* @param array $args Widget arguments.
* @param array $instance Saved values from database.
*/
public function widget($args, $instance)
{
// Set vars for widget usage
$title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']);
$filter_page = empty($instance['filter_page']) ? '' : (int) $instance['filter_page'];
// Before widget WP hook
echo $args['before_widget'];
// Display title if defined
if ($title) {
echo $args['before_title'] . $title . $args['after_title'];
}
?>
<form role="search" method="get" class="search-form" action="<?php
echo get_page_link($filter_page);
?>
">
<input type="search" class="search-field" placeholder="<?php
echo esc_attr_x('Search …', 'placeholder', 'wpsp_admin');
?>
" value="<?php
if (!empty($_GET['p'])) {
echo $_GET['p'];
}
?>
" name="p" title="<?php
echo esc_attr_x('Search for:', 'label', 'wpsp_admin');
?>
" />
<button type="submit" class="search-submit"><span class="screen-reader-text"><?php
echo _x('Search', 'submit button', 'wpsp_admin');
?>
</span></button>
</form>
<?php
// After widget WP hook
echo $args['after_widget'];
?>
<?php
}
开发者ID:sptheme,项目名称:learninginstitute,代码行数:52,代码来源:publications-search-widget.php
示例12: shopping_header_right
function shopping_header_right()
{
?>
<aside class="header-right widget-area sidebar">
<?php
if (is_active_sidebar('header-right')) {
dynamic_sidebar('header-right');
} else {
?>
<section class="widget widget_search widget-widget_search">
<div class="widget-wrap">
<form role="search" method="get" class="search-form" action="<?php
echo esc_url(home_url('/'));
?>
">
<input type="search" class="search-field" placeholder="<?php
echo esc_attr_x('Search …', 'placeholder', 'shopping');
?>
" value="<?php
echo esc_attr(get_search_query());
?>
" name="s" title="<?php
_ex('Search for:', 'label', 'shopping');
?>
">
</form>
</div>
</section>
<?php
}
?>
</aside><!-- .sidebar -->
<?php
}
开发者ID:ericvyc,项目名称:mtp,代码行数:42,代码来源:functions.php
示例13: widget
/**
* front-end display of widget
*
* @see WP_Widget::widget()
* @param array $args Widget arguments.
* @param array $instance Saved values from database.
*/
public function widget($args, $instance)
{
$navbaralign = $this->navbaralign;
if (isset($instance['navbaralign']) && $instance['navbaralign'] != null) {
$navbaralign = $instance['navbaralign'];
}
// set output front-end widget ---------------------------------
$output = $args['before_widget'];
$output .= '<form class="navbar-form ' . $navbaralign . '" action="' . esc_url(home_url('/')) . '" role="search">';
$output .= '<div class="form-group">';
$output .= '<input type="text" name="s" class="form-control" placeholder="' . esc_attr_x('Search …', 'placeholder', 'son-of-a-saint') . '" value="' . esc_attr(get_search_query()) . '" title="' . esc_attr_x('Search for:', 'label', 'son-of-a-saint') . '">';
$output .= '</div>';
$output .= ' ';
$output .= '<button type="submit" class="btn btn-default">' . esc_html__('Search', 'son-of-a-saint') . '</button>';
$output .= '</form>';
$output .= $args['after_widget'];
echo $output;
// clear unused variables
unset($output);
}
开发者ID:keeganbrown,项目名称:Son-of-a-Saint-Theme,代码行数:27,代码来源:BootstrapBasicSearchWidget.php
示例14: pranon_get_search_form
static function pranon_get_search_form($echo = true)
{
$format = current_theme_supports('html5', 'search-form') ? 'html5' : 'xhtml';
$format = apply_filters('search_form_format', $format);
if ('html5' == $format) {
$form = ' <div class="widget-search"><form role="search" method="get" class="searchForm light" action="' . esc_url(home_url('/')) . '">
<div class="input-group">
<input type="search" class="form-control search-input" placeholder="' . esc_attr_x('Search …', 'placeholder') . '" value="' . get_search_query() . '" name="s" title="' . esc_attr_x('Search for:', 'label') . '" />
<input type="submit" class="submitSearch" value="Ok">
</div>
</form></div>';
} else {
$form = ' <div class="widget-search"><form role="search" method="get" id="searchform" class="searchForm light" action="' . esc_url(home_url('/')) . '">
<div class="input-group">
<input type="text" class="form-control search-input" placeholder="' . esc_attr_x('Search …', 'placeholder') . '" value="' . get_search_query() . '" name="s" id="s" />
<input type="submit" class="submitSearch" value="Ok">
</div>
</form></div>';
}
return $form;
}
开发者ID:pranonTeam,项目名称:pranon_wp_development,代码行数:21,代码来源:OverrideWidgets.php
示例15: get_search_form
function get_search_form($echo = true)
{
do_action('pre_get_search_form');
$format = current_theme_supports('html5', 'search-form') ? 'html5' : 'xhtml';
$format = apply_filters('search_form_format', $format);
$search_form_template = locate_template('searchform.php');
if ('' != $search_form_template) {
ob_start();
require $search_form_template;
$form = ob_get_clean();
} else {
if ('html5' == $format) {
$form = '<form role="search" method="get" class="search-form" action="' . esc_url(home_url('/')) . '">
<label>
<span class="screen-reader-text">' . _x('Search for:', 'label') . '</span>
<input type="search" class="search-field" placeholder="' . esc_attr_x('Search …', 'placeholder') . '" value="' . get_search_query() . '" name="s" title="' . esc_attr_x('Search for:', 'label') . '" />
</label>
<input type="submit" class="search-submit" value="' . esc_attr_x('Search', 'submit button') . '" />
</form>';
} else {
$form = '<form role="search" method="get" id="searchform" class="searchform" action="' . esc_url(home_url('/')) . '">
<div>
<label class="screen-reader-text" for="s">' . _x('Search for:', 'label') . '</label>
<input type="text" value="' . get_search_query() . '" name="s" id="s" />
<input type="submit" id="searchsubmit" value="' . esc_attr_x('Search', 'submit button') . '" />
</div>
</form>';
}
}
$result = apply_filters('get_search_form', $form);
if (null === $result) {
$result = $form;
}
if ($echo) {
echo $result;
} else {
return $result;
}
}
开发者ID:AppItNetwork,项目名称:yii2-wordpress-themes,代码行数:39,代码来源:general-template.php
示例16: get_the_password_form
/**
* Retrieve protected post password form content.
*
* @since 1.0.0
*
* @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
* @return string HTML content for password form for password protected post.
*/
function get_the_password_form($post = 0)
{
$post = get_post($post);
$label = 'pwbox-' . (empty($post->ID) ? rand() : $post->ID);
$output = '<form action="' . esc_url(site_url('wp-login.php?action=postpass', 'login_post')) . '" class="post-password-form" method="post">
<p>' . __('This content is password protected. To view it please enter your password below:') . '</p>
<p><label for="' . $label . '">' . __('Password:') . ' <input name="post_password" id="' . $label . '" type="password" size="20" /></label> <input type="submit" name="Submit" value="' . esc_attr_x('Enter', 'post password form') . '" /></p></form>
';
/**
* Filters the HTML output for the protected post password form.
*
* If modifying the password field, please note that the core database schema
* limits the password field to 20 characters regardless of the value of the
* size attribute in the form input.
*
* @since 2.7.0
*
* @param string $output The password form HTML output.
*/
return apply_filters('the_password_form', $output);
}
开发者ID:atimmer,项目名称:wordpress-develop-mirror,代码行数:29,代码来源:post-template.php
示例17: esc_url
<form role="search" method="get" id="searchform" class="searchform" action="<?php
echo esc_url(home_url('/'));
?>
">
<div>
<input type="text" value="<?php
echo get_search_query();
?>
" name="s" id="s" placeholder="Suchbegriff eingeben" /><input type="submit" id="searchsubmit" value="<?php
echo esc_attr_x('Search', 'submit button');
?>
" />
</div>
</form>
开发者ID:antares-ff,项目名称:ANTARES-Test,代码行数:14,代码来源:searchform.php
示例18: esc_url
<form role="search" method="get" class="searchform" action="<?php
echo esc_url(home_url('/'));
?>
">
<div>
<span class="fa fa-search search-marg"></span>
<input type="text" placeholder="<?php
echo __('Search', 'go-big');
?>
" value="<?php
echo esc_attr(get_search_query());
?>
" name="s" id="search" />
<input type="submit" class="fa fa-search" id="searchsubmit" value="<?php
echo esc_attr_x('', 'submit button', 'go-big');
?>
" />
</div>
</form>
<div class="clear"></div>
<br/>
开发者ID:EncodetheWeb,项目名称:en-go-big,代码行数:21,代码来源:searchform.php
示例19: trail
/**
* Formats and outputs the breadcrumb trail.
*
* @since 0.6.0
* @access public
* @return string
*/
public function trail()
{
$breadcrumb = '';
/* Connect the breadcrumb trail if there are items in the trail. */
if (!empty($this->items) && is_array($this->items)) {
/* Make sure we have a unique array of items. */
$this->items = array_unique($this->items);
/* Open the breadcrumb trail containers. */
$breadcrumb = "\n\t\t" . '<' . tag_escape($this->args['container']) . ' role="navigation" aria-label="' . esc_attr_x('Breadcrumbs', 'Breadcrumbs aria label', 'toivo-lite') . '" class="breadcrumb-trail breadcrumbs" itemprop="breadcrumb">';
/* If $before was set, wrap it in a container. */
$breadcrumb .= !empty($this->args['before']) ? "\n\t\t\t" . '<span class="trail-before">' . $this->args['before'] . '</span> ' . "\n\t\t\t" : '';
/* Add 'browse' label if it should be shown. */
if (true === $this->args['show_browse']) {
$breadcrumb .= "\n\t\t\t" . '<h2 class="trail-browse">' . $this->args['labels']['browse'] . '</h2> ';
}
/* Adds the 'trail-begin' class around first item if there's more than one item. */
if (1 < count($this->items)) {
array_unshift($this->items, '<span class="trail-begin">' . array_shift($this->items) . '</span>');
}
/* Adds the 'trail-end' class around last item. */
array_push($this->items, '<span class="trail-end">' . array_pop($this->items) . '</span>');
$breadcrumb .= '<ul class="trail-items"><li>';
/* Join the individual trail items into a single string. */
$breadcrumb .= join("\n\t\t\t</li><li>", $this->items);
$breadcrumb .= '</li></ul>';
/* If $after was set, wrap it in a container. */
$breadcrumb .= !empty($this->args['after']) ? "\n\t\t\t" . ' <span class="trail-after">' . $this->args['after'] . '</span>' : '';
/* Close the breadcrumb trail containers. */
$breadcrumb .= "\n\t\t" . '</' . tag_escape($this->args['container']) . '>';
}
/* Allow developers to filter the breadcrumb trail HTML. */
$breadcrumb = apply_filters('breadcrumb_trail', $breadcrumb, $this->args);
if (true === $this->args['echo']) {
echo $breadcrumb;
} else {
return $breadcrumb;
}
}
开发者ID:jpbender,项目名称:wp_virtual,代码行数:45,代码来源:breadcrumb-trail.php
示例20: postbox_wp_table_reloaded_import
/**
* Print the content of the "Import from WP-Table Reloaded" post meta box.
*
* @since 1.0.0
*
* @param array $data Data for this screen.
* @param array $box Information about the meta box.
*/
public function postbox_wp_table_reloaded_import(array $data, array $box)
{
?>
<p>
<?php
_e('To import all tables from a WP-Table Reloaded installation, choose the relevant import source below.', 'tablepress');
?>
<br />
<?php
_e('If WP-Table Reloaded is installed on this site, the “WordPress database” option is recommended.', 'tablepress');
?>
<?php
_e('If you want to import tables from another site, create a “WP-Table Reloaded Dump File” there and upload it below, after choosing “WP-Table Reloaded Dump File”.', 'tablepress');
?>
<br />
<?php
printf(__('Before doing this, it is highly recommended to read the <a href="%s">migration guide</a> on the TablePress website.', 'tablepress'), 'https://tablepress.org/migration-from-wp-table-reloaded/');
?>
</p>
<table class="tablepress-postbox-table fixed">
<tbody>
<tr id="row-import-wp-table-reloaded-source">
<th class="column-1" scope="row"><?php
_e('Import Source', 'tablepress');
?>
:</th>
<td class="column-2">
<label for="import-wp-table-reloaded-source-db"><input name="import[wp_table_reloaded][source]" id="import-wp-table-reloaded-source-db" type="radio" value="db"<?php
checked($data['import_wp_table_reloaded_source'], 'db', true);
disabled($data['wp_table_reloaded_installed'], false, true);
?>
/> <?php
_e('WordPress database', 'tablepress');
?>
</label>
<label for="import-wp-table-reloaded-source-dump-file"><input name="import[wp_table_reloaded][source]" id="import-wp-table-reloaded-source-dump-file" type="radio" value="dump-file"<?php
checked($data['import_wp_table_reloaded_source'], 'dump-file', true);
?>
/> <?php
_e('WP-Table Reloaded Dump File', 'tablepress');
?>
</label>
</td>
</tr>
<tr id="row-import-wp-table-reloaded-source-dump-file" class="bottom-border">
<th class="column-1 top-align" scope="row"><label for="tables-import-wp-table-reloaded-dump-file"><?php
_e('Select file', 'tablepress');
?>
:</label></th>
<td class="column-2">
<input name="import_wp_table_reloaded_file_upload" id="tables-import-wp-table-reloaded-dump-file" type="file" class="large-text" style="box-sizing: border-box;" />
</td>
</tr>
<tr id="row-import-wp-table-reloaded-source-db" class="bottom-border">
<th class="column-1 top-align" scope="row" style="padding:2px;"></th>
<td class="column-2" style="padding:2px;"></td>
</tr>
<tr class="top-border">
<th class="column-1" scope="row"><?php
_e('Import tables', 'tablepress');
?>
:</th>
<td class="column-2"><label for="import-wp-table-reloaded-tables"> <input type="checkbox" id="import-wp-table-reloaded-tables" name="import[wp_table_reloaded][tables]" value="true" checked="checked" /> <?php
_e('Import all tables and their settings from WP-Table Reloaded.', 'tablepress');
?>
<?php
_e('<span class="description">(recommended)</span>', 'tablepress');
?>
</label></td>
</tr>
<tr class="bottom-border">
<th class="column-1" scope="row"><?php
_e('Import styling', 'tablepress');
?>
:</th>
<td class="column-2"><label for="import-wp-table-reloaded-css"> <input type="checkbox" id="import-wp-table-reloaded-css" name="import[wp_table_reloaded][css]" value="true" checked="checked" /> <?php
_e('Try to automatically convert the “Custom CSS” code from the “Plugin Options” screen of WP-Table Reloaded.', 'tablepress');
?>
</label></td>
</tr>
<tr class="top-border">
<th class="column-1" scope="row"></th>
<td class="column-2"><input type="submit" value="<?php
echo esc_attr_x('Import from WP-Table Reloaded', 'button', 'tablepress');
?>
" class="button button-large" id="submit_wp_table_reloaded_import" name="submit_wp_table_reloaded_import" /></td>
</tr>
</tbody>
</table>
<?php
}
开发者ID:akumanu,项目名称:wordpress-gk,代码行数:99,代码来源:view-import.php
注:本文中的esc_attr_x函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论