AnonSec Team
Server IP : 10.128.40.6  /  Your IP : 216.73.216.233
Web Server : Apache
System : Linux webd006.cluster128.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : logmcpe ( 111175)
PHP Version : 7.3.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/logmcpe/www/TEST/www/wp-content/plugins/../themes/cleanmate/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/logmcpe/www/TEST/www/wp-content/plugins/../themes/cleanmate/template-blog.php
<?php 
/*
Template Name: Blog
*/
get_header();
$has_post_thumbnail = has_post_thumbnail();
if(is_archive())
{
	$post_template_page_array = get_pages(array(
		'post_type' => 'page',
		'post_status' => 'publish',
		'meta_key' => '_wp_page_template',
		'meta_value' => 'template-blog.php',
		'sort_order' => 'ASC',
		'sort_column' => 'menu_order',
	));
	if(count($post_template_page_array))
	{
		$post_template_page_array = array_values($post_template_page_array);
		$post_template_page = $post_template_page_array[0];
		if(count($post_template_page_array) && isset($post_template_page))
		{
			$has_post_thumbnail = has_post_thumbnail($post_template_page);
		}
	}
}
if($has_post_thumbnail)
{
?>
	<div class="vc_row wpb_row vc_row-fluid gray full-width page-header vertical-align-table">
		<div class="vc_row wpb_row vc_inner vc_row-fluid">
			<div class="page-header-left">
				<?php
				if(is_archive())
				{
					if(is_day())
						$archive_header = __("Daily archives: ", 'cleanmate') . get_the_date(); 
					else if(is_month())
						$archive_header = __("Monthly archives: ", 'cleanmate') . get_the_date('F, Y');
					else if(is_year())
						$archive_header = __("Yearly archives: ", 'cleanmate') . get_the_date('Y');
					else if(is_tag())
						$archive_header = single_tag_title("", false);
					else
						$archive_header = "Archives";
				}
				?>
				<h1><?php echo (is_category() || is_archive() ? (is_category() ? single_cat_title("", false) : $archive_header) : get_the_title());?></h1>
			</div>
			<div class="page-header-right">
				<div class="bread-crumb-container">
					<ul class="bread-crumb">
						<li>
							<a href="<?php echo esc_url(get_home_url()); ?>" title="<?php esc_attr_e('Home', 'cleanmate'); ?>">
								<?php _e('Home', 'cleanmate'); ?>
							</a>
						</li>
						<li class="separator">
							&#47;
						</li>
						<li>
							<?php echo (is_category() || is_archive() ? (is_category() ? single_cat_title("", false) : $archive_header) : get_the_title());?>
						</li>
					</ul>
				</div>
			</div>
		</div>
	</div>
</div>
<?php
}
?>			
<div class="theme-page">
	<?php
	if(!$has_post_thumbnail)
	{
	?>
	<div class="vc_row wpb_row vc_row-fluid gray full-width page-header vertical-align-table">
		<div class="vc_row wpb_row vc_inner vc_row-fluid">
			<div class="page-header-left">
				<?php
				if(is_archive())
				{
					if(is_day())
						$archive_header = __("Daily archives: ", 'cleanmate') . get_the_date(); 
					else if(is_month())
						$archive_header = __("Monthly archives: ", 'cleanmate') . get_the_date('F, Y');
					else if(is_year())
						$archive_header = __("Yearly archives: ", 'cleanmate') . get_the_date('Y');
					else if(is_tag())
						$archive_header = single_tag_title("", false);
					else
						$archive_header = "Archives";
				}
				?>
				<h1><?php echo (is_category() || is_archive() ? (is_category() ? single_cat_title("", false) : $archive_header) : get_the_title());?></h1>
			</div>
			<div class="page-header-right">
				<div class="bread-crumb-container">
					<ul class="bread-crumb">
						<li>
							<a href="<?php echo esc_url(get_home_url()); ?>" title="<?php esc_attr_e('Home', 'cleanmate'); ?>">
								<?php _e('Home', 'cleanmate'); ?>
							</a>
						</li>
						<li class="separator">
							&#47;
						</li>
						<li>
							<?php echo (is_archive() ? (is_category() ? single_cat_title("", false) : $archive_header) : get_the_title());?>
						</li>
					</ul>
				</div>
			</div>
		</div>
	</div>
	<?php
	}
	else
	{
	?>
		<div class="row full-width header-background" style="background-image: url('<?php echo esc_url(get_the_post_thumbnail_url((is_archive() ? $post_template_page : null))); ?>')"></div>
	<?php
	}
	?>
	<div class="clearfix">
		<?php
		if(is_archive())
		{
			if(function_exists("vc_map"))
			{
				if(count($post_template_page_array) && isset($post_template_page))
				{
					echo wpb_js_remove_wpautop(apply_filters('the_content', $post_template_page->post_content));
					global $post;
					$post = $post_template_page;
					setup_postdata($post);
				}
				else
				{
					echo wpb_js_remove_wpautop(apply_filters('the_content', '[vc_row top_margin="page-margin-top-section" el_class="padding-bottom-100"][vc_column width="3/4"][blog cm_pagination="1" items_per_page="' . esc_attr(get_option('posts_per_page')) . '" ids="-" category="-" author="-" order_by="date" show_post_title="1" show_post_excerpt="1" excerpt_length="350" read_more="1" show_post_categories="1" show_post_tags="0" show_post_author="1" show_post_date="1" show_post_date_image="1" show_post_views="1" show_post_comments="1" is_search_results="0"][/vc_column][vc_column type="cm-smart-column" width="1/4"][vc_wp_categories title="" options="count" el_class="clearfix"][ql_services type="icons_list" featured_image_bg="0" borders="0" items_per_page="-1" ids="365" headers="1" headers_links="1" headers_border="0" show_excerpt="1" show_icon="1" icons_links="1" icon_tick="0" read_more="1" class="gray" top_margin="page-margin-top"][box_header title="LATEST POSTS" type="h6" bottom_border="1" top_margin="page-margin-top"][blog_small cm_pagination="0" items_per_page="3" offset="0" order_by="date" show_post_title="1" show_post_date="1" show_post_views="0" el_class="margin-top-30"][box_header title="MOST POPULAR" type="h6" bottom_border="1" top_margin="page-margin-top"][blog_small cm_pagination="0" items_per_page="3" offset="0" order_by="views" show_post_title="1" show_post_date="0" show_post_views="1" el_class="margin-top-30"][box_header title="TEXT WIDGET" type="h6" bottom_border="1" top_margin="page-margin-top"][vc_wp_text el_class="margin-top-10"]What makes Cleanmate trusted above other cleaning service providers? When you combine higher standards, smarter strategies and <a href="#">superior quality</a> all in one package, the result is top notch.[/vc_wp_text][vc_wp_archives title=" ARCHIVES" options="count" el_class="full-width page-margin-top clearfix"][vc_wp_tagcloud title="TAGS" taxonomy="post_tag" el_class="page-margin-top clearfix"][/vc_column][/vc_row]'));
				}
			}
			else
			{
				cm_get_theme_file("/shortcodes/blog.php");
				echo '<div class="vc_row wpb_row vc_row-fluid page-margin-top-section padding-bottom-100">' . cm_theme_blog(array(
					"cm_pagination" => 1,
					"items_per_page" => esc_attr(get_option('posts_per_page')),
					"ids" => "-",
					"category" => "-",
					"author" => "-",
					"order_by" => "date", 
					"show_post_title" => "1",
					"show_post_excerpt" => "1", 
					"excerpt_length" => "350",
					"read_more" => "1",
					"show_post_categories" => "1",
					"show_post_tags" => "1",
					"show_post_author" => "1", 
					"show_post_date" => "1",
					"show_post_date_image" => "1", 
					"show_post_views" => "1",
					"show_post_comments" => "1", 
					"is_search_results" => "0"
				)) . '</div>';
			}
		}
		else
		{
			if(have_posts()) : while (have_posts()) : the_post();
				the_content();
			endwhile; endif;
		}
		?>
	</div>
</div>
<?php
get_footer(); 
?>

AnonSec - 2021