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: single.php
<?php /** * The single post template is selected based on your global Theem Settings or the post * setting. * * Template files for the post layouts are as follows: * * Classic: Uses content.php * Post Cover: partials/single/layout-cover.php * Modern: partials/single/layout-modern.php */ $template = Bunyad::posts()->meta('layout_template'); $spacious_style = Bunyad::posts()->meta('layout_spacious'); $post_classes = [ 'the-post', $template ? 's-post-' . $template : '' ]; // Spacious style at full width. if ($spacious_style && Bunyad::core()->get_sidebar() === 'none') { $post_classes[] = 'the-post-modern'; // Bunyad::core()->add_body_class('has-spacious-full'); } // Legacy: No longer with -b. if ($template === 'modern-b') { $template = 'modern'; } else if (!$template || strpos($template, 'classic') !== false) { $template = 'classic'; } // Cover doesn't support video or audio - revert to modern. if ($template == 'cover' && in_array(get_post_format(), ['video', 'audio'])) { $template = 'modern'; } $partial = 'partials/single/layout-' . $template; Bunyad::core()->add_body_class('post-layout-' . $template); // Something is wrong. if (!have_posts()) { return; } ?> <?php get_header(); ?> <?php Bunyad::blocks()->load('Breadcrumbs')->render(); ?> <div <?php Bunyad::markup()->attribs('main'); ?>> <?php if (apply_filters('bunyad_do_partial_single', true)): ?> <?php the_post(); // Setup the post data. // Get the template. Bunyad::core()->partial($partial, ['post_classes' => $post_classes]); ?> <?php endif; ?> </div> <?php get_footer(); ?>
Upload File
Create Folder