403Webshell
Server IP : 172.67.214.6  /  Your IP : 216.73.216.84
Web Server : LiteSpeed
System : Linux premium900.web-hosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
User : redwjova ( 1790)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : ON |  Sudo : OFF |  Pkexec : OFF
Directory :  /home/redwjova/clevorio.com/wp-content/themes/smart-mag/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/redwjova/clevorio.com/wp-content/themes/smart-mag/category.php
<?php
/**
 * Category Template
 * 
 * Sets up the correct loop format to use. Additionally, meta is processed for other
 * layout preferences.
 */

global $bunyad_loop_template;

$loop_args = [];

$category  = get_category(get_query_var('cat'), false);
$cat_meta  = Bunyad::posts()->term_meta(null, $category->term_id);

if (!$cat_meta || empty($cat_meta['template'])) {
	$cat_meta['template'] = Bunyad::archives()->get_default_loop();
}

switch ($cat_meta['template']) {

	// Special query for timeline.
	case 'timeline':
		if (empty($cat_meta['per_page'])) {
			query_posts(array('cat' => $category->term_id, 'posts_per_page' => 30));
		}

		break;
}

// Set pagination.
if (!empty($cat_meta['pagination_type'])) {
	$loop_args['pagination_type'] = $cat_meta['pagination_type'];
}

$args = [
	'loop'      => $cat_meta['template'],
	'loop_args' => $loop_args,
];

// Have a sidebar preference?
if (!empty($cat_meta['sidebar'])) {
	$args['sidebar'] = $cat_meta['sidebar'];
}

Bunyad::core()->partial('archive', $args);

Youez - 2016 - github.com/yon3zu
LinuXploit