2 Star 8 Fork 0

VTHEME 微主题/MirageV 主题

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.php 1.15 KB
一键复制 编辑 原始数据 按行查看 历史
<?php
/**
* 主模版文件
*
* @author: vtheme <mail@vtheme.cn>
* @link https://vtheme.cn
*/
get_header();
$config = vt_get_config();
// p($config);
?>
<div class="main-container">
<div class="main-widget">
<?php
if( array_key_exists('sliders', $config['home_layout']['enabled']) ){
require get_template_directory() . '/templates/home/sliders.php';
}
?>
<?php
if( array_key_exists('hot', $config['home_layout']['enabled']) ){
require get_template_directory() . '/templates/home/hot.php';
}
?>
<?php
if( array_key_exists('posts', $config['home_layout']['enabled']) ){
require get_template_directory() . '/templates/home/posts.php';
}
?>
</div>
<div class="sider little-widget">
<?php if ( is_active_sidebar( 'default-sidebar' ) ) : ?>
<?php dynamic_sidebar( 'default-sidebar' ); ?>
<?php endif; ?>
</div>
</div>
<?php
if( array_key_exists('links', $config['home_layout']['enabled']) ){
require get_template_directory() . '/templates/home/links.php';
}
?>
<?php
get_footer();
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/vthemecn/miragev.git
git@gitee.com:vthemecn/miragev.git
vthemecn
miragev
MirageV 主题
main

搜索帮助