4 Star 38 Fork 11

ghboke / CorePress

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
index.php 3.69 KB
Copy Edit Raw Blame History
mainpc authored 2021-06-19 20:26 . 4.9
<!doctype html>
<html lang="zh">
<head>
<?php get_header(); ?>
</head>
<body>
<?php get_template_part('component/body-top'); ?>
<div id="app">
<header>
<div class="header-main-plane">
<div class="header-main container">
<?php
get_template_part('component/nav-header');
?>
</div>
</div>
</header>
<div class="top-divider"></div>
<main class="container">
<div class="html-main">
<?php
global $set;
if ($set['theme']['sidebar']['index']) {
?>
<style>
body .post-info-right {
display: none;
}
.post-item-thumbnail img {
max-width: 336px;
}
.post-item-content, .post-item-info {
font-size: 16px;
}
.post-item h2 {
font-size: 22px;
}
</style>
<div class="post-main post-main-closesidebar" style="flex-basis: 100%;">
<?php
get_template_part('component/post-main-index');
?>
</div>
<?php
} else if ($set['theme']['sidebar_position'] == 1) {
?>
<div class="post-main">
<?php get_template_part('component/post-main-index'); ?>
</div>
<div class="sidebar">
<div class="sidebar-box-list">
<?php dynamic_sidebar('index_sidebar'); ?>
</div>
</div>
<?php
} else {
?>
<div class="sidebar">
<div class="sidebar-box-list">
<?php dynamic_sidebar('index_sidebar'); ?>
</div>
</div>
<div class="post-main">
<?php get_template_part('component/post-main-index'); ?>
</div>
<?php
}
?>
</div>
<?php
if ($set['index']['links'] == 1) {
?>
<div class="frinds-links">
<div class="list-plane-title">
<div>友情链接 <span
class="list-plane-linksdescribe"><?php echo $set['index']['linksdescribe']; ?></span>
</div>
<?php
if ($set['index']['applylink'] != null) {
?>
<a href="<?php echo $set['index']['applylink'] ?>" class="frinds-links-apply">申请友链</a>
<?php
}
?>
</div>
<div class="frinds-links-list">
<?php wp_list_bookmarks('title_li=&categorize=0'); ?>
</div>
</div>
<?php
}
if (wp_is_mobile()) {
if ($set['ad']['index_3_phone'] != null) {
?>
<div class="ad-plane">
<?php echo base64_decode($set['ad']['index_3_phone']); ?>
</div>
<?php
}
} else {
if ($set['ad']['index_3'] != null) {
?>
<div class="ad-plane">
<?php echo base64_decode($set['ad']['index_3']); ?>
</div>
<?php
}
}
?>
</main>
<footer>
<?php
get_footer(); ?>
</footer>
</div>
</body>
</html>
PHP
1
https://gitee.com/ghboke/corepress.git
git@gitee.com:ghboke/corepress.git
ghboke
corepress
CorePress
master

Search