| Server IP : 51.91.236.193 / Your IP : 216.73.216.224 Web Server : Apache System : Linux webm010.cluster128.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : institutah ( 16501) PHP Version : 7.2.34 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/institutah/www/wp-content/themes/makali/ |
Upload File : |
<?php
/**
* The template for displaying Archive pages
*
* Used to display archive-type pages if nothing more specific matches a query.
* For example, puts together date-based pages if no date.php file exists.
*
* If you'd like to further customize these archive views, you may create a
* new template file for each specific one. For example, Makali already
* has tag.php for Tag archives, category.php for Category archives, and
* author.php for Author archives.
*
* @link http://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Makali_Theme
* @since Makali 1.0
*/
$makali_opt = get_option( 'makali_opt' );
get_header();
$makali_bloglayout = 'sidebar';
if(isset($makali_opt['blog_layout']) && $makali_opt['blog_layout']!=''){
$makali_bloglayout = $makali_opt['blog_layout'];
}
if(isset($_GET['layout']) && $_GET['layout']!=''){
$makali_bloglayout = $_GET['layout'];
}
$makali_blogsidebar = 'right';
if(isset($makali_opt['sidebarblog_pos']) && $makali_opt['sidebarblog_pos']!=''){
$makali_blogsidebar = $makali_opt['sidebarblog_pos'];
}
if(isset($_GET['sidebar']) && $_GET['sidebar']!=''){
$makali_blogsidebar = $_GET['sidebar'];
}
if ( !is_active_sidebar( 'sidebar-1' ) ) {
$makali_bloglayout = 'nosidebar';
}
switch($makali_bloglayout) {
case 'sidebar':
$makali_blogclass = 'blog-sidebar';
$makali_blogcolclass = 9;
Makali_Class::makali_post_thumbnail_size('makali-post-thumb');
break;
case 'largeimage':
$makali_blogclass = 'blog-large';
$makali_blogcolclass = 9;
Makali_Class::makali_post_thumbnail_size('makali-post-thumbwide');
break;
case 'grid':
$makali_blogclass = 'grid';
$makali_blogcolclass = 9;
Makali_Class::makali_post_thumbnail_size('makali-post-thumbwide');
break;
default:
$makali_blogclass = 'blog-nosidebar';
$makali_blogcolclass = 12;
$makali_blogsidebar = 'none';
Makali_Class::makali_post_thumbnail_size('makali-post-thumb');
}
?>
<div class="main-container">
<div class="breadcrumb-container">
<div class="container">
<?php Makali_Class::makali_breadcrumb(); ?>
</div>
</div>
<div class="container">
<div class="row">
<?php if($makali_blogsidebar=='left') : ?>
<?php get_sidebar(); ?>
<?php endif; ?>
<div class="col-12 <?php echo 'col-lg-'.$makali_blogcolclass; ?>">
<div class="page-content blog-page blogs <?php echo esc_attr($makali_blogclass); if($makali_blogsidebar=='left') {echo ' left-sidebar'; } if($makali_blogsidebar=='right') {echo ' right-sidebar'; } ?>">
<header class="entry-header">
<h2 class="entry-title"><?php if(isset($makali_opt['blog_header_text'])) { echo esc_html($makali_opt['blog_header_text']); } else { esc_html_e('Blog', 'makali');} ?></h2>
</header>
<?php if ( have_posts() ) : ?>
<header class="archive-header">
<?php
the_archive_title( '<h1 class="archive-title">', '</h1>' );
the_archive_description( '<div class="archive-description">', '</div>' );
?>
</header>
<div class="post-container">
<?php
/* Start the Loop */
while ( have_posts() ) : the_post();
/* Include the post format-specific template for the content. If you want to
* this in a child theme then include a file called called content-___.php
* (where ___ is the post format) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );
endwhile;
?>
</div>
<?php Makali_Class::makali_pagination(); ?>
<?php else : ?>
<?php get_template_part( 'content', 'none' ); ?>
<?php endif; ?>
</div>
</div>
<?php if( $makali_blogsidebar=='right') : ?>
<?php get_sidebar(); ?>
<?php endif; ?>
</div>
</div>
<!-- brand logo -->
<?php
if(isset($makali_opt['inner_brand']) && function_exists('makali_brands_shortcode') && shortcode_exists( 'Makali' ) ){
if($makali_opt['inner_brand'] && isset($makali_opt['brand_logos'][0]) && $makali_opt['brand_logos'][0]['thumb']!=null) { ?>
<div class="inner-brands">
<div class="container">
<?php if(isset($makali_opt['inner_brand_title']) && $makali_opt['inner_brand_title']!=''){ ?>
<div class="title">
<h3><?php echo esc_html( $makali_opt['inner_brand_title'] ); ?></h3>
</div>
<?php } ?>
<?php echo do_shortcode('[Makali]'); ?>
</div>
</div>
<?php }
}
?>
<!-- end brand logo -->
</div>
<?php get_footer(); ?>