/** * 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; }
/** * 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 }
/** * 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; }
/** * 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 }
/** * 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 }
/** * 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 }
/** * 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>'; }
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'); }
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 }
/** * 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 }
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 }
/** * 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); }
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; }
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; } }
// Exit if accessed directly if (!defined('ABSPATH')) { exit; } ?> <form role="search" method="get" class="woocommerce-product-search" action="<?php echo esc_url(home_url('/')); ?> "> <label class="screen-reader-text" for="s"><?php _e('Search for:', 'woocommerce'); ?> </label> <input type="search" class="search-field" placeholder="<?php echo esc_attr_x('Search Products…', 'placeholder', 'woocommerce'); ?> " value="<?php echo get_search_query(); ?> " name="s" title="<?php echo esc_attr_x('Search for:', 'label', 'woocommerce'); ?> " /> <input type="submit" value="<?php echo esc_attr_x('Search', 'submit button', 'woocommerce'); ?> " /> <input type="hidden" name="post_type" value="product" /> </form>
/** * Create default title column along with action links of 'Install' * and 'Activate'. * * @since 2.2.0 * * @param array $item Array of item data. * @return string The action hover links. */ public function column_plugin($item) { $installed_plugins = get_plugins(); // No need to display any hover links. if (is_plugin_active($item['file_path'])) { $actions = array(); } // We need to display the 'Install' hover link. if (!isset($installed_plugins[$item['file_path']])) { $install_nonce_url = wp_nonce_url(add_query_arg(array('page' => urlencode($this->tgmpa->menu), 'plugin' => urlencode($item['slug']), 'plugin_name' => urlencode($item['sanitized_plugin']), 'plugin_source' => urlencode($item['url']), 'tgmpa-install' => 'install-plugin'), self_admin_url($this->admin_page_base)), 'tgmpa-install'); $actions = array('install' => sprintf('<a href="%1$s">' . esc_attr_x('Install %2$s', '%2$s = plugin name in screen reader markup', 'tgmpa') . '</a>', esc_url($install_nonce_url), '<span class="screen-reader-text">' . $item['sanitized_plugin'] . '</span>')); } elseif (is_plugin_inactive($item['file_path'])) { $activate_url = add_query_arg(array('page' => urlencode($this->tgmpa->menu), 'plugin' => urlencode($item['slug']), 'plugin_name' => urlencode($item['sanitized_plugin']), 'plugin_source' => urlencode($item['url']), 'tgmpa-activate' => 'activate-plugin', 'tgmpa-activate-nonce' => urlencode(wp_create_nonce('tgmpa-activate'))), self_admin_url($this->admin_page_base)); $actions = array('activate' => sprintf('<a href="%1$s">' . esc_attr_x('Activate %2$s', '%2$s = plugin name in screen reader markup', 'tgmpa') . '</a>', esc_url($activate_url), '<span class="screen-reader-text">' . $item['sanitized_plugin'] . '</span>')); } $prefix = defined('WP_NETWORK_ADMIN') && WP_NETWORK_ADMIN ? 'network_admin_' : ''; $actions = apply_filters("tgmpa_{$prefix}plugin_action_links", array_filter($actions), $item['slug']); return sprintf('%1$s %2$s', $item['plugin'], $this->row_actions($actions)); }
"> <label> <span class="screen-reader-text"><?php _ex('Search for:', 'label', 'zerif-lite'); ?> </span> <input type="search" class="search-field" placeholder="<?php echo esc_attr_x('Search …', 'placeholder', 'zerif-lite'); ?> " value="<?php echo esc_attr(get_search_query()); ?> " name="s" title="<?php _ex('Search for:', 'label', 'zerif-lite'); ?> "> </label> <input type="submit" class="header-search-submit" value="<?php echo esc_attr_x('Search', 'submit button', 'zerif-lite'); ?> "> </form> </div> </div> </div> <!-- / END TOP BAR --> </header> <!-- / END HOME SECTION -->
<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>
/** * 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); }
/** * 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; } }
<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/>
<?php /** * The template for displaying search forms in UU2014 * * @package UU2014 */ ?> <form role="search" method="get" class="search-form" action="<?php echo esc_url(home_url('/')); ?> "> <label> <span class="screen-reader-text"><?php _ex('Search for:', 'label', 'uu2014'); ?> </span> <input type="search" class="search-field" placeholder="<?php echo esc_attr_x('Search …', 'placeholder', 'uu2014'); ?> " value="<?php echo esc_attr(get_search_query()); ?> " name="s"> </label> <input type="submit" class="search-submit" value="<?php echo esc_attr_x('Search', 'submit button', 'uu2014'); ?> "> </form>
/** * 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 }
* The template for displaying search forms in cw-magazine * * @package cw-magazine */ ?> <form role="search" method="get" class="search-form" action="<?php echo esc_url(home_url('/')); ?> "> <label> <span class="screen-reader-text"><?php _ex('Search for:', 'label', 'cw-magazine'); ?> </span> <input type="search" class="search-field" placeholder="<?php echo esc_attr_x('Search …', 'placeholder', 'cw-magazine'); ?> " value="<?php echo esc_attr(get_search_query()); ?> " name="s" title="<?php _ex('Search for:', 'label', 'cw-magazine'); ?> "> </label> <input type="submit" class="search-submit" value="<?php echo esc_attr_x('Search', 'submit button', 'cw-magazine'); ?> "> </form>
<?php /** * The template for displaying search forms * * @package commercegurus */ ?> <form role="search" method="get" class="search-form" action="<?php echo esc_url(home_url('/')); ?> "> <label> <span class="screen-reader-text"><?php _ex('Search for:', 'label', 'commercegurus'); ?> </span> <input type="search" class="search-field" placeholder="<?php echo esc_attr_x('Search …', 'placeholder', 'commercegurus'); ?> " value="<?php echo esc_attr(get_search_query()); ?> " name="s"> </label> <input type="submit" class="search-submit" value="<?php echo esc_attr_x('Search', 'submit button', 'commercegurus'); ?> "> </form>
<?php /** * The template for displaying search forms in Sparkling * * @package sparkling */ ?> <form method="get" class="form-search" action="<?php echo esc_url(home_url('/')); ?> "> <div class="input-group"> <input type="text" class="form-control search-query" value="<?php echo esc_attr(get_search_query()); ?> " name="s" id="s" placeholder="<?php echo esc_attr_x('Search...', 'placeholder', 'sparkling'); ?> "> <span class="input-group-btn"> <button type="submit" class="btn btn-default" name="submit" id="searchsubmit" value="<?php echo esc_attr_x('Search', 'submit button', 'sparkling'); ?> "><span class="glyphicon glyphicon-search"></span></button> </span> </div> </form>
/** * Display search form. * * Will first attempt to locate the searchform.php file in either the child or * the parent, then load it. If it doesn't exist, then the default search form * will be displayed. The default search form is HTML, which will be displayed. * There is a filter applied to the search form HTML in order to edit or replace * it. The filter is 'get_search_form'. * * This function is primarily used by themes which want to hardcode the search * form into the sidebar and also by the search widget in WordPress. * * There is also an action that is called whenever the function is run called, * 'pre_get_search_form'. This can be useful for outputting JavaScript that the * search relies on or various formatting that applies to the beginning of the * search. To give a few examples of what it can be used for. * * @since 2.7.0 * * @param bool $echo Default to echo and not return the form. * @return string|void String when $echo is false. */ function get_search_form($echo = true) { /** * Fires before the search form is retrieved, at the start of get_search_form(). * * @since 2.7.0 as 'get_search_form' action. * @since 3.6.0 * * @link https://core.trac.wordpress.org/ticket/19321 */ do_action('pre_get_search_form'); $format = current_theme_supports('html5', 'search-form') ? 'html5' : 'xhtml'; /** * Filter the HTML format of the search form. * * @since 3.6.0 * * @param string $format The type of markup to use in the search form. * Accepts '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>'; } } /** * Filter the HTML output of the search form. * * @since 2.7.0 * * @param string $form The search form HTML output. */ $result = apply_filters('get_search_form', $form); if (null === $result) { $result = $form; } if ($echo) { echo $result; } else { return $result; } }
* @subpackage Twenty_Sixteen * @since Twenty Sixteen 1.0 */ ?> <form role="search" method="get" class="search-form" action="<?php echo esc_url(home_url('/')); ?> "> <label> <span class="screen-reader-text"><?php echo _x('Search for:', 'label', 'skillsinneed'); ?> </span> <input type="search" class="search-field" placeholder="<?php echo esc_attr_x('Search …', 'placeholder', 'skillsinneed'); ?> " value="<?php echo get_search_query(); ?> " name="s" title="<?php echo esc_attr_x('Search for:', 'label', 'skillsinneed'); ?> " /> </label> <button type="submit" class="search-submit"><span class="screen-reader-text"><?php echo _x('Search', 'submit button', 'skillsinneed'); ?> </span></button> </form>
<script id="tmpl-revisions-frame" type="text/html"> <div class="revisions-control-frame"></div> <div class="revisions-diff-frame"></div> </script> <script id="tmpl-revisions-buttons" type="text/html"> <div class="revisions-previous"> <input class="button" type="button" value="<?php echo esc_attr_x('Previous', 'Button label for a previous revision'); ?> " /> </div> <div class="revisions-next"> <input class="button" type="button" value="<?php echo esc_attr_x('Next', 'Button label for a next revision'); ?> " /> </div> </script> <script id="tmpl-revisions-checkbox" type="text/html"> <div class="revision-toggle-compare-mode"> <label> <input type="checkbox" class="compare-two-revisions" <# if ( 'undefined' !== typeof data && data.model.attributes.compareTwoMode ) { #> checked="checked"<# } #> />
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; }