| Server IP : 128.65.195.232 / Your IP : 216.73.217.20 Web Server : Apache System : Linux h2web212 4.9.0-0.bpo.12-amd64 #1 SMP Debian 4.9.210-1+deb9u1~deb8u1 (2020-06-09) x86_64 User : uid151901 ( 151901) PHP Version : 8.0.30 Disable Function : passthru,exec,system,popen,shell_exec,proc_open,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/clients/1a5fe23ce93412d9e66659e9f5732f73/web/wp-content/themes/ElegantEstate/ |
Upload File : |
<?php
/*
Template Name: Search Page
*/
?>
<?php
$et_ptemplate_settings = array();
$et_ptemplate_settings = maybe_unserialize( get_post_meta(get_the_ID(),'et_ptemplate_settings',true) );
$fullwidth = isset( $et_ptemplate_settings['et_fullwidthpage'] ) ? (bool) $et_ptemplate_settings['et_fullwidthpage'] : false;
?>
<?php get_header(); ?>
<div id="content-top">
<div id="menu-bg"></div>
<div id="top-index-overlay"></div>
<div id="content" class="clearfix<?php if($fullwidth) echo(' fullwidth');?>">
<div id="main-area">
<?php get_template_part('includes/breadcrumbs'); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="full_entry clearfix">
<?php if (get_option('elegantestate_integration_single_top') <> '' && get_option('elegantestate_integrate_singletop_enable') == 'on') echo(get_option('elegantestate_integration_single_top')); ?>
<?php $width = 159;
$height = 159;
$classtext = '';
$titletext = get_the_title();
$thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext);
$thumb = $thumbnail["thumb"]; ?>
<div class="entry_content<?php if ($thumb <> '' && get_option('elegantestate_thumbnails_index') == 'on') echo(' setwidth') ?>">
<?php if($thumb <> '' && get_option('elegantestate_page_thumbnails') == 'on') { ?>
<div class="small-thumb">
<?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext , $width, $height, $classtext); ?>
<span class="overlay"></span>
</div> <!-- end .small-thumb -->
<?php }; ?>
<h1 class="single-title"><?php the_title(); ?></h1>
<?php the_content(); ?>
<?php wp_link_pages(array('before' => '<p><strong>'.esc_html__('Pages','ElegantEstate').':</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
<div id="et-search">
<div id="et-search-inner" class="clearfix">
<p id="et-search-title"><span><?php esc_html_e('search this website','ElegantEstate'); ?></span></p>
<form action="<?php echo esc_url( home_url() ); ?>" method="get" id="et_search_form">
<div id="et-search-left">
<p id="et-search-word"><input type="text" id="et-searchinput" name="s" value="<?php esc_attr_e('search this site...','ElegantEstate'); ?>" /></p>
<p id="et_choose_posts"><label><input type="checkbox" id="et-inc-posts" name="et-inc-posts" /> <?php esc_html_e('Posts','ElegantEstate'); ?></label></p>
<p id="et_choose_pages"><label><input type="checkbox" id="et-inc-pages" name="et-inc-pages" /> <?php esc_html_e('Pages','ElegantEstate'); ?></label></p>
<p id="et_choose_date">
<select id="et-month-choice" name="et-month-choice">
<option value="no-choice"><?php esc_html_e('Select a month','ElegantEstate'); ?></option>
<?php
global $wpdb, $wp_locale;
$selected = '';
$arcresults = $wpdb->get_results(
$wpdb->prepare( "SELECT YEAR(post_date) AS %s, MONTH(post_date) AS %s, count(ID) as posts FROM $wpdb->posts GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date DESC", 'year', 'month' )
);
foreach ( (array) $arcresults as $arcresult ) {
if ( isset($_POST['et-month-choice']) && ( $_POST['et-month-choice'] == ($arcresult->year . $arcresult->month) ) ) {
$selected = ' selected="selected"';
}
echo "<option value='{$arcresult->year}{$arcresult->month}'{$selected}>{$wp_locale->get_month($arcresult->month)}" . ", {$arcresult->year}</option>";
if ( $selected <> '' ) $selected = '';
}
?>
</select>
</p>
<p id="et_choose_cat"><?php wp_dropdown_categories('show_option_all=Choose a Category&show_count=1&hierarchical=1&id=et-cat&name=et-cat'); ?></p>
</div> <!-- #et-search-left -->
<div id="et-search-right">
<input type="hidden" name="et_searchform_submit" value="et_search_proccess" />
<input class="et_search_submit" type="submit" value="<?php esc_attr_e('Submit','ElegantEstate'); ?>" id="et_search_submit" />
</div> <!-- #et-search-right -->
</form>
</div> <!-- end #et-search-inner -->
</div> <!-- end #et-search -->
<div class="clear"></div>
<?php edit_post_link(esc_html__('Edit this page','ElegantEstate')); ?>
</div> <!-- end .entry_content -->
</div> <!-- .full_entry -->
<?php if (get_option('elegantestate_show_pagescomments') == 'on') comments_template('', true); ?>
<?php endwhile; endif; ?>
</div> <!-- end #main-area -->
<?php if (!$fullwidth) get_sidebar(); ?>
<?php get_footer(); ?>