Example #1
8
/**
 * This function outputs a 404 "Not Found" error message
 *
 * @since 1.6
 */
function genesis_404()
{
    echo genesis_html5() ? '<article class="entry">' : '<div class="post hentry">';
    printf('<h1 class="entry-title">%s</h1>', apply_filters('genesis_404_entry_title', __('Not found, error 404', 'genesis')));
    echo '<div class="entry-content">';
    if (genesis_html5()) {
        echo apply_filters('genesis_404_entry_content', '<p>' . sprintf(__('The page you are looking for no longer exists. Perhaps you can return back to the site\'s <a href="%s">homepage</a> and see if you can find what you are looking for. Or, you can try finding it by using the search form below.', 'genesis'), trailingslashit(home_url())) . '</p>');
        get_search_form();
    } else {
        ?>

			<p><?php 
        printf(__('The page you are looking for no longer exists. Perhaps you can return back to the site\'s <a href="%s">homepage</a> and see if you can find what you are looking for. Or, you can try finding it with the information below.', 'genesis'), trailingslashit(home_url()));
        ?>
</p>



	<?php 
    }
    if (!genesis_html5()) {
        genesis_sitemap('h4');
    } elseif (genesis_a11y('404-page')) {
        echo '<h2>' . __('Sitemap', 'genesis') . '</h2>';
        genesis_sitemap('h3');
    }
    echo '</div>';
    echo genesis_html5() ? '</article>' : '</div>';
}
Example #2
0
function pra_print_not_found()
{
    ?>
		<h3 class="center">No posts found. Try a different search?</h3>
		<?php 
    get_search_form();
}
Example #3
0
 function aaron_menu_search($items, $args)
 {
     if ($args->theme_location == 'header') {
         $items = $items . '<li class="topsearch">' . get_search_form(false) . '</li>';
     }
     return $items;
 }
Example #4
0
function render_content()
{
    ?>
	<?php 
    if (have_posts()) {
        ?>
		<div class="loop">
			<div class="loop-content">
				<?php 
        while (have_posts()) {
            // The Loop
            ?>
					<?php 
            the_post();
            ?>
					
					<div id="post-<?php 
            the_ID();
            ?>
" <?php 
            post_class();
            ?>
>
						<!-- title, meta, and date info -->
						<div class="entry-header clearfix">
							<h1 class="entry-title"><?php 
            the_title();
            ?>
</h1>
						</div>
						
						<!-- post content -->
						<div class="entry-content clearfix">
							<?php 
            the_content();
            ?>
						</div>
						
						<?php 
            get_search_form();
            ?>
					</div>
					<!-- end .post -->
				<?php 
        }
        // end of one post
        ?>
			</div>
		</div>
	<?php 
    } else {
        // do not delete
        ?>
		<?php 
        do_action('builder_template_show_not_found');
        ?>
	<?php 
    }
    // do not delete
}
function add_search_box_to_menu($items, $args)
{
    if ($args->theme_location == 'primary') {
        return $items . get_search_form();
    }
    return $items;
}
function moesia_nav_bar()
{
    echo '<div class="top-bar">
			<div class="container">
				<div class="site-branding col-md-4">';
    if (get_theme_mod('site_logo')) {
        echo '<a href="' . esc_url(home_url('')) . '" title="';
        bloginfo('name');
        echo '"><img class="site-logo" src="' . esc_url(get_theme_mod('site_logo')) . '" alt="';
        bloginfo('name');
        echo '" /></a>';
    } else {
        echo '<h1 class="site-title"><a href="' . esc_url(home_url('/')) . '" rel="home">';
        bloginfo('name');
        echo '</a></h1>';
        echo '<h2 class="site-description">';
        bloginfo('description');
        echo '</h2>';
    }
    echo '</div>';
    echo '<button class="menu-toggle btn"><i class="fa fa-bars"></i></button>
				<nav id="site-navigation" class="main-navigation col-md-8" role="navigation">';
    wp_nav_menu(array('theme_location' => 'primary'));
    echo '</nav>';
    if (get_theme_mod('toggle_search', 0)) {
        echo '<span class="nav-search"><i class="fa fa-search"></i></span>';
        echo '<span class="nav-deco"></span>';
        echo '<div class="nav-search-box">';
        get_search_form();
        echo '</div>';
    }
    echo '</div>';
    echo '</div>';
}
Example #7
0
 function widget($args, $instance)
 {
     extract($args);
     echo $before_widget;
     ?>
     <?php 
     if ($instance['style'] == '1') {
         ?>
     <div class="cs-search search-popup">
         <a href="#" data-toggle="modal" data-target="#search-popup"><i class="fa fa-search"></i></a>
         <div id="search-popup" class="modal fade" role="dialog">
             <?php 
         echo get_search_form(true);
         ?>
         </div>
     </div>
     <?php 
     } else {
         ?>
     <div class="cs-search search-slider">
         <a href="javascript:void(0)"><i class="fa fa-search"></i></a>
         <div id="search-slider" class="hide">
             <?php 
         echo get_search_form(true);
         ?>
         </div>
     </div>
     <?php 
     }
     ?>
     <?php 
     echo $after_widget;
 }
Example #8
0
function thinkup_input_headersearch()
{
    global $thinkup_header_searchswitch;
    if ($thinkup_header_searchswitch == '1') {
        echo '<div id="pre-header-search">', get_search_form(), '</div>';
    }
}
function pickle_top_utility()
{
    //the utility html starts here
    ?>
    <div class="top_container">
        <div class="top_container_content">
            <div id="login">
                <span class="loginout"><?php 
    wp_loginout();
    ?>
</span>
                <span class="register"><?php 
    wp_register('| ', '');
    ?>
</span>
            </div>
            <div id="greeting">
                <p>Please tell us what pickle pleases you. <span style="color:red;">Join Here</span></p>
            </div>
            <div class="search_form_container">
                <?php 
    get_search_form();
    ?>
            </div>
        </div>
    </div>
    <?php 
    //the utility html ends here
}
Example #10
0
    /**
     * Section template.
     */
    function section_template()
    {
        ?>
	<div class="notfound boomboard">
	<?php 
        if (current_user_can('edit_posts') && isset($_GET['boxes']) || isset($_GET['feature']) || isset($_GET['banners'])) {
            ?>

			<h2 class="notavail center"><?php 
            _e('Direct Previewing <em>of</em> &quot;Special Post Types&quot; Not Available... Yet', 'pagelines');
            ?>
</h2>
			<p class="subhead center"><?php 
            _e('Sorry, direct previewing of special post types such as <strong>features</strong> or <strong>boxes</strong> is unavailable. This WordPress functionality is new and rapidly developing, so it should be available soon.', 'pagelines');
            ?>
</p>
			<p class="subhead center">
				<?php 
            _e('To preview a &quot;custom post type&quot; just view a page with that &quot;section&quot; on it.', 'pagelines');
            ?>
			</p>

	<?php 
        } else {
            ?>

				<h2 class="hugetext center"><?php 
            _e('404!', 'pagelines');
            ?>
</h2>
				<p class="subhead center"><?php 
            _e('Sorry, This Page Does not exist.', 'pagelines');
            ?>
<br/><?php 
            _e('Go', 'pagelines');
            ?>
 <a href="<?php 
            echo home_url();
            ?>
"><?php 
            _e('home', 'pagelines');
            ?>
</a> <?php 
            _e('or try a search?', 'pagelines');
            ?>
</p>

	<?php 
        }
        ?>
		<div class="center fix"><?php 
        get_search_form();
        ?>
 </div>
	</div>
	<?php 
        pagelines_register_hook('pagelines_not_found_actions');
        // Hook
    }
Example #11
0
 function shortcode_handler($atts, $content = null)
 {
     ob_start();
     get_search_form();
     $ret_val = ob_get_contents();
     ob_end_clean();
     return $ret_val;
 }
Example #12
0
function add_search_box_to_menu($items, $args)
{
    if ($args->theme_location == 'primary') {
        $search = str_replace('"Search"', '">"', get_search_form(false));
    }
    $items .= '<li id="nav-search">' . $search . '</li>';
    return $items;
}
Example #13
0
function tt_search($atts)
{
    // Attributes
    extract(shortcode_atts(array('name' => '', 'id' => ''), $atts));
    $tt_post_content = get_search_form();
    // code
    return $tt_post_content;
}
function fb_add_search_box($items, $args)
{
    // only on primary menu
    if ('primary' === $args->theme_location) {
        $items .= '<li class="menu-item menu-item-search">' . get_search_form(FALSE) . '</li>';
    }
    return $items;
}
 /**
  * The template part for displaying error 404 page content
  *
  * @package Customizr
  * @since Customizr 3.0
  */
 function tc_404_content()
 {
     if (!is_404()) {
         return;
     }
     $content_404 = apply_filters('tc_404', TC_init::$instance->content_404);
     echo apply_filters('tc_404_content', sprintf('<div class="%1$s"><div class="entry-content %2$s">%3$s</div>%4$s</div>', apply_filters('tc_404_wrapper_class', 'tc-content span12 format-quote'), apply_filters('tc_404_content_icon', 'format-icon'), sprintf('<blockquote><p>%1$s</p><cite>%2$s</cite></blockquote><p>%3$s</p>%4$s', call_user_func('__', $content_404['quote'], 'customizr'), call_user_func('__', $content_404['author'], 'customizr'), call_user_func('__', $content_404['text'], 'customizr'), get_search_form($echo = false)), apply_filters('tc_no_results_separator', '<hr class="featurette-divider ' . current_filter() . '">')));
 }
Example #16
0
 /**
  * Add search to nav bar
  *
  * @return Norcrossv4
  */
 public function nav_search($items, $args)
 {
     ob_start();
     get_search_form();
     $searchform = ob_get_contents();
     ob_end_clean();
     $items .= '<li id="menu-item-0" class="menu-item search-nav">' . $searchform . '</li>';
     return $items;
 }
Example #17
0
function sc_search_form() {
	ob_start();
	?>
	<div class="search">
		<?get_search_form()?>
	</div>
	<?
	return ob_get_clean();
}
Example #18
0
function rotary_add_search_box($items)
{
    ob_start();
    get_search_form();
    $searchform = ob_get_contents();
    ob_end_clean();
    $items .= '<li class="search">' . $searchform . '</li>';
    return $items;
}
Example #19
0
 function widget($args, $instance)
 {
     extract($args);
     $title = apply_filters('widget_title', empty($instance['title']) ? __('Search', 'cleanyetibasic') : $instance['title']);
     echo $before_widget;
     // Use current theme search form if it exists
     get_search_form();
     echo $after_widget;
 }
function add_search_box($items, $args)
{
    ob_start();
    get_search_form();
    $searchform = ob_get_contents();
    ob_end_clean();
    $items .= '<li id="search-box-main-nav">' . $searchform . '</li>';
    return $items;
}
Example #21
0
/**
 * Search form
 *
 * @param  Array|String $classes Additional form classes.
 */
function bootswatch_search_form($classes = '')
{
    if (is_array($classes)) {
        $classes = implode(' ', $classes);
    }
    $form = str_replace('class="search', 'class="' . $classes . ' search', get_search_form(false));
    echo $form;
    // XSS OK.
}
Example #22
0
function x_shortcode_search($atts)
{
    extract(shortcode_atts(array('id' => '', 'class' => '', 'style' => ''), $atts, 'x_search'));
    $id = $id != '' ? 'id="' . esc_attr($id) . '"' : '';
    $class = $class != '' ? 'x-search-shortcode ' . esc_attr($class) : 'x-search-shortcode';
    $style = $style != '' ? 'style="' . $style . '"' : '';
    $output = "<div {$id} class=\"{$class}\" {$style}>" . get_search_form(false) . '</div>';
    return $output;
}
Example #23
0
 function avia_append_search_nav($items, $args)
 {
     if ($args->theme_location == 'avia') {
         global $avia_config;
         ob_start();
         get_search_form();
         $form = htmlspecialchars(ob_get_clean());
         $items .= '<li id="menu-item-search" class="noMobile menu-item menu-item-search-dropdown"><a href="?s=" data-avia-search-tooltip="' . $form . '">' . $avia_config['font_icons']['search'] . '</a></li>';
     }
     return $items;
 }
Example #24
0
function theme_menu_extras($menu, $args)
{
    if ('primary' !== $args->theme_location) {
        return $menu;
    }
    ob_start();
    get_search_form();
    $search = ob_get_clean();
    $menu .= '<li class="search" id="search">' . $search . '</li>';
    return $menu;
}
Example #25
0
 function xinwp_section_menu($id = 'section-menu', $search = false)
 {
     if (has_nav_menu('section')) {
         echo '<nav id="' . $id . '" class="section-menu clearfix">';
         wp_nav_menu(array('theme_location' => 'section', 'container' => false, 'fallback_cb' => false));
         if ($search) {
             get_search_form();
         }
         echo '</nav>';
     }
 }
Example #26
0
/**
 * Output the 404 entry title.
 *
 * @since  1.0.0
 * @access public
 * @return string $content The modified content.
 */
function carelib_get_404_content()
{
    $content = wpautop(esc_attr__('It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'carelib'));
    $content .= get_search_form(false);
    $content .= carelib_get_the_widget('WP_Widget_Recent_Posts');
    // Translators: %1$s is a smile emoji.
    $after_title = wpautop(sprintf(__('Try looking in the monthly archives. %1$s', 'carelib'), convert_smilies(':)')));
    $content .= carelib_get_the_widget('WP_Widget_Archives', 'dropdown=1', 'after_title=</h2> ' . $after_title);
    $content .= carelib_get_the_widget('WP_Widget_Tag_Cloud');
    return apply_filters("{$GLOBALS['carelib_prefix']}_404_content", $content);
}
Example #27
0
 function widget($args, $instance)
 {
     extract($args);
     $title = apply_filters("widget_title", $instance["title"]);
     echo $before_widget;
     if (trim($title) != "") {
         echo $before_title . $title . $after_title;
     }
     get_search_form();
     echo $after_widget;
 }
Example #28
0
 function widget($args, $instance)
 {
     extract($args, EXTR_SKIP);
     echo $before_widget;
     $title = empty($instance['title']) ? __('Search Form', 'lan-thinkupthemes') : apply_filters('widget_title', $instance['title']);
     if (!empty($title)) {
         echo $before_title . $title . $after_title;
     }
     get_search_form();
     echo $after_widget;
 }
 /**
  * @param array $args
  * @param array $instance
  */
 public function widget($args, $instance)
 {
     /** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */
     $title = apply_filters('widget_title', empty($instance['title']) ? '' : $instance['title'], $instance, $this->id_base);
     echo $args['before_widget'];
     if ($title) {
         echo $args['before_title'] . $title . $args['after_title'];
     }
     // Use current theme search form if it exists
     get_search_form();
     echo $args['after_widget'];
 }
 function widget($args, $instance)
 {
     extract($args);
     $title = apply_filters('widget_title', empty($instance['title']) ? '' : $instance['title'], $instance, $this->id_base);
     echo $before_widget;
     if ($title) {
         echo $before_title . $title . $after_title;
     }
     // Use current theme search form if it exists
     get_search_form();
     echo $after_widget;
 }