X7ROOT File Manager
Current Path:
/home/notabjze/hourglass.life/wp-content/themes/smart-mag
home
/
notabjze
/
hourglass.life
/
wp-content
/
themes
/
smart-mag
/
ðŸ“
..
📄
404.php
(1.48 KB)
📄
README.txt
(87 B)
ðŸ“
admin
📄
archive.php
(2.82 KB)
ðŸ“
bbpress
📄
bbpress.php
(659 B)
ðŸ“
blocks
📄
category.php
(1017 B)
📄
comments.php
(5.01 KB)
📄
content.php
(1.29 KB)
ðŸ“
css
📄
footer.php
(832 B)
📄
functions.php
(2.14 KB)
📄
header.php
(1.55 KB)
ðŸ“
inc
📄
index.php
(175 B)
ðŸ“
js
ðŸ“
languages
ðŸ“
lib
ðŸ“
page-templates
📄
page.php
(2.42 KB)
ðŸ“
partials
📄
screenshot.png
(609.66 KB)
📄
sidebar.php
(904 B)
📄
single.php
(1.58 KB)
📄
style.css
(184.93 KB)
ðŸ“
woocommerce
📄
woocommerce.php
(526 B)
📄
wpml-config.xml
(3.91 KB)
Editing: archive.php
<?php /** * Archives Page! * * This page is used for all kind of archives from custom post types to blog to 'by date' archives. * * Bunyad framework recommends this template to be used as generic template wherever any sort of listing * needs to be done. * * Types of archives handled: * * - Categories * - Tags * - Taxonomies * - Date Archives * - Custom Post Types * * @link http://codex.wordpress.org/images/1/18/Template_Hierarchy.png */ // Legacy: loop was $template if (!empty($GLOBALS['bunyad_loop_template'])) { $props['loop'] = $GLOBALS['bunyad_loop_template']; //_deprecated_argument('archive.php', '4.0', 'Fix: $bunyad_loop_template is deprecated - update child theme files.'); } /** * Setup heading, description and loop. */ $default_loop = Bunyad::archives()->get_default_loop(); $heading = Bunyad::archives()->get_heading(); // For archives that support it $description = is_author() ? '' : get_the_archive_description(); /** * Props setup. */ $props = isset($props) ? $props : []; $props = array_replace([ 'loop' => $default_loop, 'columns' => 1, 'sidebar' => Bunyad::options()->archive_sidebar, 'loop_args' => [], ], $props); // Set sidebar early to ensure it's accounted for in images dimensions. if ($props['sidebar']) { Bunyad::core()->set_sidebar($props['sidebar']); } /** * Begin HTML output. */ get_header(); Bunyad::blocks()->load('Breadcrumbs')->render(); // Slider for categories if (is_category()) { get_template_part('partials/featured-area'); } // After everything else is done. Note: Must be after featured-area. $props = Bunyad::archives()->process_props($props); ?> <div <?php Bunyad::markup()->attribs('main'); ?>> <?php if (apply_filters('bunyad_do_partial_archive', true)): ?> <div class="ts-row"> <div class="col-8 main-content"> <?php if ($heading): ?> <h1 class="archive-heading"> <?php echo $heading; // phpcs:ignore WordPress.Security.EscapeOutput -- Safe markup generated in Bunyad_Theme_Archives::get_heading() ?> </h1> <?php endif; ?> <?php if (Bunyad::options()->archive_descriptions && !empty($description)): ?> <div class="archive-description base-text"> <?php echo do_shortcode(wp_kses_post($description)); ?> </div> <?php endif; ?> <?php if (is_author()): // Author box for author archives. ?> <div class="archive-author-box"> <?php get_template_part('partials/author'); ?> </div> <?php endif; ?> <?php Bunyad::blocks()->load_loop( $props['loop'], [ // Stickies only for home/blog "archives" (not static frontpage). 'sticky_posts' => is_home(), 'columns' => $props['columns'], ] + $props['loop_args'] ) ->render(); ?> </div> <?php Bunyad::core()->theme_sidebar(); ?> </div> <?php endif; ?> </div> <?php get_footer(); ?>
Upload File
Create Folder