3.6版本
|
@ -15,7 +15,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div style="min-height: 80px;width: 100%;"></div>
|
||||
<div class="top-divider"></div>
|
||||
<main class="container">
|
||||
<div class="html-main">
|
||||
<?php
|
||||
|
|
|
@ -10,7 +10,7 @@ if (post_password_required())
|
|||
<div class="reply-title">
|
||||
发表评论
|
||||
</div>
|
||||
<?
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
|
@ -27,6 +27,7 @@ if (post_password_required())
|
|||
?>
|
||||
<?php
|
||||
global $current_user;
|
||||
$regbtn = null;
|
||||
if (get_option('users_can_register')) {
|
||||
$regbtn = '<a href="' . wp_registration_url() . '"><button class="login-btn-header" style="margin-left: 20px">注册</button></a>';
|
||||
}
|
||||
|
@ -45,7 +46,7 @@ if (post_password_required())
|
|||
'comment_notes_after' => '',
|
||||
'id_form' => 'form_comment',
|
||||
'cancel_reply_link' => __('取消回复', 'corePress'),
|
||||
'comment_field' => $user_avatar.'<div class="comment_form_textarea_box"><textarea class="comment_form_textarea" name="comment" id="comment" placeholder="发表你的看法" rows="5"></textarea><div id="comment_addplane">' . $comment_face . '</div></div></div>',
|
||||
'comment_field' => $user_avatar . '<div class="comment_form_textarea_box"><textarea class="comment_form_textarea" name="comment" id="comment" placeholder="发表你的看法" rows="5"></textarea><div id="comment_addplane">' . $comment_face . '</div></div></div>',
|
||||
'fields' => apply_filters('comment_form_default_fields', array(
|
||||
'author' => '<div class="comment_userinput"><div class="comment-form-author"><input id="author" name="author" placeholder="昵称(*)" type="text" value="' . esc_attr($commenter['comment_author']) . '" size="30"' . ($req ? ' class="required"' : '') . '></div>',
|
||||
'email' => '<div class="comment-form-email"><input id="email" name="email" type="text" placeholder="邮箱(*)" value="' . esc_attr($commenter['comment_author_email']) . '"' . ($req ? ' class="required"' : '') . '></div>',
|
||||
|
@ -70,7 +71,7 @@ if (post_password_required())
|
|||
if (get_comments_number() == 0) {
|
||||
?>
|
||||
<div class="comment-sofa">
|
||||
<i class="fa fa-comments-o" aria-hidden="true"></i>沙发空余
|
||||
<i class="fas fa-couch"></i> 沙发空余
|
||||
</div>
|
||||
<?php
|
||||
} else {
|
||||
|
|
|
@ -95,20 +95,29 @@
|
|||
?>
|
||||
<ul class="user-menu">
|
||||
<li>
|
||||
<a class="user-menu-main"><img class="user-avatar" width="30" height="30" src="<?php echo corepress_get_avatar_url() ?>" alt=""><span class="user-menu-name"><?php echo corepress_get_user_nickname()?></span></a>
|
||||
<a class="user-menu-main"><img class="user-avatar" width="30" height="30"
|
||||
src="<?php echo corepress_get_avatar_url() ?>" alt=""><span
|
||||
class="user-menu-name"><?php echo corepress_get_user_nickname() ?></span></a>
|
||||
<ul class="user-sub-menu">
|
||||
<li><a href="/wp-admin/profile.php">个人中心</a></li>
|
||||
<li><a href="<?php echo admin_url('profile.php'); ?>"><i class="fas fa-user"></i> 个人中心</a></li>
|
||||
<?php
|
||||
if ($set['user']['usercenter'] == 1 && $set['user']['usercenterurl'] != null) {
|
||||
echo ' <li><a href="' . $set['user']['usercenterurl'] . '"><i class="fas fa-user-cog"></i> 账号设置</a></li>';
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
if (isadmin()) {
|
||||
?>
|
||||
<li><a href="<?php echo admin_url(); ?>">管理中心</a></li>
|
||||
<li><a href="<?php echo admin_url().'post-new.php';?>">新建文章</a></li>
|
||||
<li><a href="<?php echo admin_url(); ?>"><i class="fas fa-tachometer-alt"></i> 管理中心</a></li>
|
||||
<li><a href="<?php echo admin_url() . 'post-new.php'; ?>"><i class="far fa-edit"></i>
|
||||
新建文章</a></li>
|
||||
<?php
|
||||
}
|
||||
|
||||
?>
|
||||
<li><a href="<?php echo wp_logout_url(get_bloginfo('siteurl')) ?>">退出登录</a></li>
|
||||
<li><a href="<?php echo wp_logout_url(get_bloginfo('siteurl')) ?>"><i
|
||||
class="fas fa-sign-out-alt"></i> 退出登录</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -118,6 +127,13 @@
|
|||
?>
|
||||
<span class="user-menu-main">
|
||||
<a href="<?php echo loginAndBack(); ?>"><button class="login-btn-header">登录</button></a>
|
||||
|
||||
<?php if (get_option('users_can_register')) {
|
||||
?>
|
||||
<a href="<?php echo wp_registration_url(); ?>"><button
|
||||
class="login-btn-header reg-btn-header">注册</button></a>
|
||||
<?
|
||||
} ?>
|
||||
</span>
|
||||
<?
|
||||
}
|
||||
|
|
|
@ -1,45 +1,59 @@
|
|||
<?php
|
||||
|
||||
$range = 4;
|
||||
global $paged,$wp_query;
|
||||
if ( !$max_page ) {
|
||||
global $paged, $wp_query;
|
||||
if (!isset($max_page)) {
|
||||
$max_page = null;
|
||||
}
|
||||
if (!$max_page) {
|
||||
$max_page = $wp_query->max_num_pages;
|
||||
}
|
||||
if( $max_page >1 ) {
|
||||
if ($max_page > 1) {
|
||||
echo "<div class='fenye'>";
|
||||
if( !$paged ){
|
||||
if (!$paged) {
|
||||
$paged = 1;
|
||||
}
|
||||
if( $paged != 1 ) {
|
||||
echo "<a href='".get_pagenum_link(1) ."' class='extend' title='跳转到首页'>首页</a>";
|
||||
if ($paged != 1) {
|
||||
echo "<a href='" . get_pagenum_link(1) . "' class='extend' title='跳转到首页'>首页</a>";
|
||||
}
|
||||
|
||||
previous_posts_link('上一页');
|
||||
if ( $max_page >$range ) {
|
||||
if( $paged <$range ) {
|
||||
for( $i = 1; $i <= ($range +1); $i++ ) {
|
||||
echo "<a href='".get_pagenum_link($i) ."'";
|
||||
if($i==$paged) echo " class='current'";echo ">$i</a>";
|
||||
?>
|
||||
<span class="pageobj-item">
|
||||
<?php
|
||||
if ($max_page > $range) {
|
||||
if ($paged < $range) {
|
||||
for ($i = 1; $i <= ($range + 1); $i++) {
|
||||
echo "<a href='" . get_pagenum_link($i) . "'";
|
||||
if ($i == $paged) echo " class='current'";
|
||||
echo ">$i</a>";
|
||||
}
|
||||
}elseif($paged >= ($max_page -ceil(($range/2)))){
|
||||
for($i = $max_page -$range;$i <= $max_page;$i++){
|
||||
echo "<a href='".get_pagenum_link($i) ."'";
|
||||
if($i==$paged)echo " class='current'";echo ">$i</a>";
|
||||
} elseif ($paged >= ($max_page - ceil(($range / 2)))) {
|
||||
for ($i = $max_page - $range; $i <= $max_page; $i++) {
|
||||
echo "<a href='" . get_pagenum_link($i) . "'";
|
||||
if ($i == $paged) echo " class='current'";
|
||||
echo ">$i</a>";
|
||||
}
|
||||
}elseif($paged >= $range &&$paged <($max_page -ceil(($range/2)))){
|
||||
for($i = ($paged -ceil($range/2));$i <= ($paged +ceil(($range/2)));$i++){
|
||||
echo "<a href='".get_pagenum_link($i) ."'";if($i==$paged) echo " class='current'";echo ">$i</a>";
|
||||
} elseif ($paged >= $range && $paged < ($max_page - ceil(($range / 2)))) {
|
||||
for ($i = ($paged - ceil($range / 2)); $i <= ($paged + ceil(($range / 2))); $i++) {
|
||||
echo "<a href='" . get_pagenum_link($i) . "'";
|
||||
if ($i == $paged) echo " class='current'";
|
||||
echo ">$i</a>";
|
||||
}
|
||||
}
|
||||
}else{
|
||||
for($i = 1;$i <= $max_page;$i++){
|
||||
echo "<a href='".get_pagenum_link($i) ."'";
|
||||
if($i==$paged)echo " class='current'";echo ">$i</a>";
|
||||
} else {
|
||||
for ($i = 1; $i <= $max_page; $i++) {
|
||||
echo "<a href='" . get_pagenum_link($i) . "'";
|
||||
if ($i == $paged) echo " class='current'";
|
||||
echo ">$i</a>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</span>
|
||||
<?php
|
||||
next_posts_link('下一页');
|
||||
if($paged != $max_page){
|
||||
echo "<a href='".get_pagenum_link($max_page) ."' class='extend' title='跳转到最后一页'>尾页</a>";
|
||||
if ($paged != $max_page) {
|
||||
echo "<a href='" . get_pagenum_link($max_page) . "' class='extend' title='跳转到最后一页'>尾页</a>";
|
||||
}
|
||||
echo '<span class="page-count pagedbox">'.$paged.'/'.$max_page.'</span>';
|
||||
echo '<span class="page-count pagedbox">' . $paged . '/' . $max_page . '</span>';
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
|
|
@ -1,261 +1,332 @@
|
|||
<div class="post-content">
|
||||
<h1 class="post-title">
|
||||
<?php the_title();
|
||||
global $set;
|
||||
?>
|
||||
</h1>
|
||||
<div class="post-info">
|
||||
<?php
|
||||
$author = get_the_author_meta('ID');
|
||||
$author_url = get_author_posts_url($author);
|
||||
$author_name = get_the_author();
|
||||
?>
|
||||
<a class="nickname url fn j-user-card" data-user="<?php echo $author; ?>"
|
||||
href="<?php echo $author_url; ?>"><i class="fa fa-user"
|
||||
aria-hidden="true"></i><?php echo $author_name; ?>
|
||||
</a>
|
||||
<span class="dot">•</span>
|
||||
<time class="entry-date published"
|
||||
datetime="<?php echo get_post_time('c', false, $post); ?>>" pubdate><i class="far fa-clock"></i>
|
||||
<?php echo format_date(get_post_time('U', false, $post)); ?>
|
||||
</time>
|
||||
<span class="dot">•</span><i class="fas fa-folder"></i>
|
||||
<?php the_category(', ', '', false); ?>
|
||||
<?php if (function_exists('the_views')) {
|
||||
$views = intval(get_post_meta($post->ID, 'views', true));
|
||||
?>
|
||||
<span class="dot">•</span>
|
||||
<span><i class="fa fa-eye"
|
||||
aria-hidden="true"></i><?php echo sprintf('%s 阅读', $views); ?></span>
|
||||
<?php }
|
||||
if (get_edit_post_link() != null) {
|
||||
|
||||
?>
|
||||
<span class="dot">•</span>
|
||||
<a href="<?php echo get_edit_post_link(); ?>"><i class="fas fa-edit"></i> 编辑</a>
|
||||
<?php
|
||||
<?php
|
||||
global $corepress_post_meta;
|
||||
if ($corepress_post_meta['postrighttag']['open'] == 1) {
|
||||
?>
|
||||
<style>
|
||||
.post-content:before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
color: #fff;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-top: 80px solid<?php echo $corepress_post_meta['postrighttag']['color']?>;
|
||||
border-left: 80px solid transparent;
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="post-content-post">
|
||||
<div class="post-content-content">
|
||||
<?php
|
||||
the_content();
|
||||
.post-content:after {
|
||||
content: "<?php echo $corepress_post_meta['postrighttag']['text']?>";
|
||||
color: #fff;
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
top: 14px;
|
||||
z-index: 9;
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
</style>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div class="post-content">
|
||||
<h1 class="post-title">
|
||||
<?php the_title();
|
||||
global $set;
|
||||
?>
|
||||
</div>
|
||||
|
||||
<div class="post-end-tools">
|
||||
<div class="post-copyright">
|
||||
<?php if ($set['post']['copyright'] == null) {
|
||||
</h1>
|
||||
<div class="post-info">
|
||||
<div class="post-info-left">
|
||||
<?php
|
||||
$author = get_the_author_meta('ID');
|
||||
$author_url = get_author_posts_url($author);
|
||||
$author_name = get_the_author();
|
||||
?>
|
||||
<a class="nickname url fn j-user-card" data-user="<?php echo $author; ?>"
|
||||
href="<?php echo $author_url; ?>"><i class="fa fa-user"
|
||||
aria-hidden="true"></i><?php echo $author_name; ?>
|
||||
</a>
|
||||
<span class="dot">•</span>
|
||||
<time class="entry-date published"
|
||||
datetime="<?php echo get_post_time('c', false, $post); ?>>" pubdate><i class="far fa-clock"></i>
|
||||
<?php echo format_date(get_post_time('U', false, $post)); ?>
|
||||
</time>
|
||||
<span class="dot">•</span><i class="fas fa-folder"></i>
|
||||
<?php the_category(', ', '', false); ?>
|
||||
<?php if (function_exists('the_views')) {
|
||||
$views = intval(get_post_meta($post->ID, 'views', true));
|
||||
?>
|
||||
<p>版权声明:
|
||||
<br>作者:<?php echo $author_name ?>
|
||||
<br>链接:<span><u><a href="<?php echo get_permalink(); ?>"
|
||||
target="_blank"><?php echo get_permalink(); ?></a></u></span>
|
||||
<br>来源:<?php bloginfo('name'); ?>
|
||||
<br>文章版权归作者所有,未经允许请勿转载。
|
||||
</p>
|
||||
<?php
|
||||
<span class="dot">•</span>
|
||||
<span><i class="fa fa-eye"
|
||||
aria-hidden="true"></i><?php echo sprintf('%s 阅读', $views); ?></span>
|
||||
<?php }
|
||||
if (get_edit_post_link() != null) {
|
||||
|
||||
} else {
|
||||
echo corepress_replace_copyright(base64_decode($set['post']['copyright']));
|
||||
?>
|
||||
<span class="dot">•</span>
|
||||
<a href="<?php echo get_edit_post_link(); ?>"><i class="fas fa-edit"></i> 编辑</a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
<div class="post-end-dividing">
|
||||
THE END
|
||||
<div class="post-info-right">
|
||||
<span title="关闭或显示侧边栏" class="post-info-switch-sidebar post-info-switch-sidebar-show"><i
|
||||
class="fas fa-toggle-on"></i></span>
|
||||
</div>
|
||||
<div class="post-tags">
|
||||
</div>
|
||||
<div class="post-content-post">
|
||||
<div class="post-content-content">
|
||||
<?php
|
||||
the_tags('<span class="post-tags-icon"><i class="fas fa-tags"></i></span>', '');
|
||||
the_content();
|
||||
?>
|
||||
</div>
|
||||
<div style="text-align: center">
|
||||
<div style="display: inline-block;max-width: 100px;width: 100%;">
|
||||
<div class="post-end-tool-btns">
|
||||
<div class="post-share-btn">
|
||||
<svg class="icon" viewBox="0 0 1024 1024">
|
||||
<path d="M793.472 102.208c-70.592 0-128 57.408-128 128 0 7.744 0.96 15.232 2.304 22.656L273.6 422.976C250.368 399.04 217.92 384 181.952 384c-70.592 0-128 57.408-128 128 0 70.592 57.408 128 128 128 22.912 0 44.096-6.592 62.72-17.152l289.088 180.992c-4.672 13.312-7.744 27.392-7.744 42.24 0 70.592 57.408 128 128 128s128-57.408 128-128-57.408-128-128-128c-32.512 0-61.888 12.544-84.48 32.64L291.712 576.832C302.976 557.696 309.952 535.744 309.952 512c0-11.456-1.984-22.336-4.8-32.896l389.76-168.32c23.488 28.672 58.752 47.36 98.624 47.36 70.592 0 128-57.408 128-128S864.064 102.208 793.472 102.208zM117.952 512c0-35.264 28.736-64 64-64s64 28.736 64 64-28.736 64-64 64S117.952 547.264 117.952 512zM654.016 782.144c35.328 0 64 28.672 64 64s-28.672 64-64 64-64-28.672-64-64S618.688 782.144 654.016 782.144zM793.472 294.208c-35.328 0-64-28.736-64-64s28.672-64 64-64 64 28.736 64 64S828.8 294.208 793.472 294.208z"></path>
|
||||
</svg>
|
||||
分享
|
||||
</div>
|
||||
<div class="post-qrcode-btn">
|
||||
<svg t="1599190411371" class="icon" viewBox="0 0 1024 1024" version="1.1"
|
||||
xmlns="http://www.w3.org/2000/svg" p-id="2306" width="200" height="200">
|
||||
<path d="M742.8 121.5c-2.3 0.3-4.7 0.1-7 0.1-38 0-76-0.1-114 0.1-11 0-21.9 1.4-32.4 5.1-18.6 6.5-29.8 19.5-34.4 38.4-1.7 7-2.4 14.1-2.4 21.3 0 67.2-0.1 134.3 0.1 201.5 0 13.8 0.9 27.6 6.2 40.8 6.9 17.1 19.7 27.2 37.3 31.7 6.3 1.6 12.8 2.2 19.3 2.2h218c8.3 0 16.6-0.7 24.8-2.3 24.4-4.5 40.4-20.7 44.9-45 0.4-2.2-0.4-5.2 2.9-6.2v-232c-0.4-0.4-0.5-0.9-0.5-1.5-1.5-4.8-1.7-9.8-3.3-14.7-7.1-21-21.7-33.4-42.8-38.8-6.4-1.6-12.8-2.4-19.5-2.1-1.3 0.1-3 1-3.9-0.9h-89c-0.4 2.6-2.7 2.1-4.3 2.3z m98.7 40.7c4 0 8.1 0.9 11.9 2.1 6.9 2.2 10.7 7.6 10.7 15.1 0 74.8 0.1 149.6-0.1 224.4 0 11.2-8.6 18-21.1 18.1-38.2 0.3-76.3 0.1-114.5 0.1h-113c-4.5 0-8.6-1.3-12.7-2.7-8.5-3.1-9.6-10.5-9.7-17.9-0.2-37.5-0.1-75-0.1-112.5V183.4c0-6.5 1.5-12.5 6.9-17 4.6-3.8 10.3-4.3 15.6-4.3 75.4-0.1 150.8 0 226.1 0.1z"
|
||||
p-id="2307"></path>
|
||||
<path d="M742 120c-39.5 0.1-79 0.1-118.4 0.1-9.4 0-18.6 1-27.7 3.1-11.6 2.7-22.1 7.7-30 16.7-10.6 12.1-14.8 26.9-14.8 42.6-0.2 69.6-0.2 139.3 0 208.9 0 9.1 0.7 18.3 2.8 27.2 2.8 11.7 7.6 22.5 16.7 30.5 11.7 10.3 25.9 15 41.5 15 74.1 0.1 148.3 0.1 222.4 0 9.3 0 18.7-0.5 27.7-3 19-5.4 33.6-15.9 40-35.8 1.7-5.3 1.8-10.9 3.8-16.1-3.2 1-2.5 4-2.9 6.2-4.5 24.4-20.5 40.5-44.9 45-8.2 1.5-16.5 2.3-24.8 2.3h-218c-6.5 0-13-0.6-19.3-2.2-17.5-4.5-30.4-14.6-37.3-31.7-5.3-13.1-6.2-27-6.2-40.8-0.2-67.2-0.1-134.3-0.1-201.5 0-7.2 0.7-14.3 2.4-21.3 4.6-18.9 15.8-31.9 34.4-38.4 10.5-3.7 21.4-5 32.4-5.1 38-0.2 76-0.1 114-0.1 2.3 0 4.7 0.2 7-0.1 1.7-0.2 3.9 0.2 4.2-2.4-1.2 2.1-3.2 0.9-4.9 0.9zM120.6 410.3c2 12.5 5.5 24.4 14.3 34 11.5 12.7 26.5 18 43 18.1 75.1 0.3 150.2 0.3 225.4 0 9.4 0 18.9-1 28.1-3.9 24.5-7.7 39.1-27.3 39.1-53.1 0-74 0-147.9 0.1-221.9 0-6.4-0.8-12.6-2.4-18.8-5.8-22.4-24.5-39.1-47.5-42.3-4.1-0.6-8.2-1.1-12.4-1.1-2 0-4.5 0.6-5.2-2.4h-89c-1.3 2.1-3.3 0.9-4.9 0.9-41.1 0.1-82.2-0.2-123.3 0.2-14.8 0.1-29.2 2.6-42.2 10.7-12.5 7.8-19.8 19.1-23.7 33-0.8 2.7-0.2 5.7-1.9 8.2v233c2.9 0.9 2.2 3.5 2.5 5.4z m39.5-231c0-8.1 6.2-14.6 14.5-16.3 4.4-0.9 8.8-1 13.2-1h219c4.3 0 8.4 0.8 12.4 2 7.5 2.4 10.8 6.9 10.8 14.6v225.5c0 8.2-3.8 13.3-11.6 15.9-4 1.3-8.1 2.1-12.4 2-37.2-0.1-74.3-0.1-111.5-0.1-37.7 0-75.3 0.1-113-0.1-6.3 0-12.6-0.9-17.3-6.1-2.7-3-4.1-6.3-4.1-10.1-0.1-75.3-0.1-150.8 0-226.3z"
|
||||
p-id="2308"></path>
|
||||
<path d="M119 407.5c0.1 8.9 2.6 17.3 6.4 25.1 10.4 21.4 28.9 31 51.6 31.2 74.5 0.6 149 0.2 223.4 0.2 9.3 0 18.6-0.8 27.7-3 27.1-6.7 43.6-26.4 43.8-54.4 0.5-73.8 0.2-147.6 0.2-221.4 0-4.9 0-9.8-0.9-14.7-3-16.2-10.7-29.4-24.2-39-11-7.8-23.5-11-36.9-11.4-2.3-0.1-4.9 1.2-6.9-0.9 0.7 3 3.3 2.4 5.2 2.4 4.2 0 8.3 0.6 12.4 1.1 23 3.2 41.7 19.9 47.5 42.3 1.6 6.2 2.4 12.4 2.4 18.8-0.1 74 0 147.9-0.1 221.9 0 25.7-14.6 45.3-39.1 53.1-9.2 2.9-18.7 3.9-28.1 3.9-75.1 0.2-150.2 0.3-225.4 0-16.5-0.1-31.4-5.4-43-18.1-8.8-9.7-12.3-21.5-14.3-34-0.3-1.9 0.4-4.6-2.6-5.2 1.3 0.1 0.9 1.3 0.9 2.1zM191.8 882.7c2.1-0.3 4.3-0.1 6.5-0.1h206c8.4 0 16.6-1 24.7-3.1 25.5-6.6 41.4-26.9 41.5-53.2 0.1-25.3 0-50.7 0-76v-148c0-32.3-21.4-56.2-53.6-59.7-11.4-1.2-22.9-1.7-34.4-2-34.5-0.7-69 0.5-103.4 1.3-33 0.8-66 0.2-98.9 0.7-11.5 0.2-22.6 2.7-32.7 8.1-13.6 7.2-21.9 18.5-25.7 33.4-0.7 2.8-0.1 6.5-3.7 8v234c2 5.5 2.2 11.4 3.9 17.1 5.9 20.7 19.4 33.3 39.8 38.9 6.5 1.8 13.2 2.3 19.9 2.1 1.4 0 3.3-1.1 4.4 0.9h2c0.2-2.3 2.1-2.2 3.7-2.4z m-11.4-40.6c-12.2 0-20.7-6.6-20.6-20.5 0.4-73.3 0.2-146.6 0.1-220 0-11.8 7-18.1 18.3-18.5 74.6-2.4 149.1-0.5 223.7-0.8 6.4 0 13.4-0.4 19.6 3 5.4 3 8.5 7.2 8.5 13.7-0.1 37.5 0 75 0 112.5 0 37.2-0.2 74.3 0.1 111.5 0.1 12.1-7.8 17.6-18.7 19.3-8.6 1.3-17 0-25.5-0.1-68.5-0.2-137-0.1-205.5-0.1z"
|
||||
p-id="2309"></path>
|
||||
<path d="M193.5 884.2c67.8-0.1 135.7-0.1 203.5 0 9.4 0 18.7-0.2 28-2.1 12.5-2.5 23.8-7.8 32.5-17.1 9.7-10.4 14.5-23.4 14.5-37.6 0.2-74.3 0.1-148.7 0.1-223 0-6.3-0.4-12.4-2-18.5-5.3-19.9-17.3-33.7-36.7-41.3-13.3-5.2-27.3-5-41-5.3-23.1-0.5-46.2-0.9-69.3 0.5-19 1.2-38.2 0.3-57.3 1-27.6 0.9-55.3 0.3-83 0.2-6.4 0-12.7 0.6-19 2-18.4 4.2-32.5 13.8-40.6 31.3-2.6 5.7-2.8 12-5.2 17.7 3.7-1.5 3-5.2 3.7-8 3.8-14.9 12.2-26.2 25.7-33.4 10.2-5.4 21.2-7.9 32.7-8.1 33-0.5 65.9 0.1 98.9-0.7 34.5-0.8 68.9-2 103.4-1.3 11.5 0.2 23 0.7 34.4 2 32.2 3.5 53.5 27.4 53.6 59.7v148c0 25.3 0.1 50.7 0 76-0.2 26.4-16 46.6-41.5 53.2-8.1 2.1-16.3 3.1-24.7 3.1h-206c-2.2 0-4.3-0.1-6.5 0.1-1.6 0.2-3.5 0-3.7 2.4 1.5-1.9 3.7-0.8 5.5-0.8z"
|
||||
p-id="2310"></path>
|
||||
<path d="M143.6 130.9c13-8 27.4-10.6 42.2-10.7 41.1-0.4 82.2-0.1 123.3-0.2 1.6 0 3.6 1.2 4.9-0.9-1.7 1-3.6 0.5-5.4 0.5-44.8 0.3-89.6-0.8-134.4 0.6-18.9 0.6-34.9 8.1-46.5 23.6-6.3 8.4-9.1 18-9.7 28.3 1.8-2.4 1.2-5.4 1.9-8.2 4-13.9 11.2-25.2 23.7-33zM840 120c6.6-0.3 13.1 0.5 19.5 2.1 21 5.4 35.7 17.8 42.8 38.8 1.6 4.8 1.8 9.9 3.3 14.7v-0.4c0.4-28.1-24.4-53.2-52.7-55.3-5.6-0.4-11.2 0.5-16.8-0.9 0.8 2.1 2.6 1.1 3.9 1zM181.6 884.2c-6.7 0.2-13.4-0.3-19.9-2.1-20.4-5.6-33.9-18.2-39.8-38.9-1.6-5.7-1.8-11.6-3.9-17.1 1.1 5.3 0.8 10.8 2.1 16.1 5.5 22.8 25.5 40.6 48.6 42 5.8 0.4 11.6-0.6 17.3 0.8-1.1-1.9-3-0.9-4.4-0.8z"
|
||||
p-id="2311"></path>
|
||||
<path d="M608.4 667.2c-12.3 0.2-20.4 8.3-20.4 20V859c0 12.3 8.5 20.1 20.8 19.9 12.9-0.2 21-6.9 21.1-19.7 0.2-57.4 0.1-114.9 0-172.3 0-12-8.4-19.9-21.5-19.7zM861.4 667.4c-9.9-1.8-23.3 4.9-23.3 18.2-0.2 29.2 0 58.3 0 87.5v87c0 1.6-0.1 3.4 0.4 4.9 3.3 9.4 14.4 16.2 23.5 14 11.4-2.7 17.9-7.2 18-21.4 0.2-55.5 0.1-111 0.1-166.5-0.1-14.4-4.6-21.1-18.7-23.7zM768.7 727.3c-2.6-9.4-13-16.8-22.1-15.1-12.4 2.4-19.4 6.6-19.5 20.9-0.3 41.1-0.1 82.3-0.1 123.4 0 13.8 5.7 20 17.5 22.2 11.1 2.1 24.4-4.5 24.5-19.1v-63.5-64.5c0-1.3 0-2.9-0.3-4.3zM741 544.8c-8.7 1.9-14 10.2-14 19.8V653c0 13.1 4 21 18.1 23.7 10.3 1.9 24-5.2 23.9-18.5-0.1-15.8 0-31.6 0-47.5 0-15.3-0.2-30.6 0-46 0.3-19-14.6-22.8-28-19.9zM622 547.4c-4.9-3.4-10.1-3.3-15.4-3.3-10.5 0-18.5 7.9-18.5 18.3v26c0 9-0.1 18 0 27 0.1 4.6 1.3 8.7 4.9 12.3 5.2 5.2 11.2 6.7 18.2 6.5 9.9-0.3 18.8-8.9 18.8-18.7 0.1-17.7 0.2-35.3-0.1-53 0-6.1-2.4-11.3-7.9-15.1zM878.3 555.9c-2.2-6.2-9.8-11.8-17.9-12-14.3-0.5-23.6 7.9-22.5 22.8 0.5 7 0.1 14 0.1 21v25c0 1.5 0 3 0.4 4.4 3.2 10.3 12.9 15.5 23.9 14 11-1.6 17.4-8.4 17.6-19.7 0.3-15.8 0.1-31.7 0.1-47.5 0-2.9-0.8-5.5-1.7-8zM352 257.8c-1.9-7.3-7.9-12.7-15.4-13.7-1.3-0.2-2.7-0.4-4-0.4-0.6 0-1.5 0.2-1.7-0.8h-28.8c-0.4 0.7-1.1 0.3-1.6 0.3-13.3 0-26.6-0.1-39.9 0.1-4.8 0-9.5 0.9-13.7 3.5-4.1 2.5-6.4 6.2-7.7 10.7-0.2 0.9 0 1.9-0.6 2.6v75.5c1 0.2 0.7 1.1 0.8 1.7 0.7 4.1 1.8 7.9 4.6 11 3.7 4.1 8.6 5.8 13.9 5.9 24.3 0.1 48.7 0.1 73 0 3.1 0 6.1-0.3 9.1-1.3 7.9-2.5 12.7-8.9 12.7-17.2v-71.9c0.1-2-0.2-4-0.7-6zM785.5 250.1c-1.9-7.3-7.9-12.7-15.4-13.7-1.3-0.2-2.7-0.4-4-0.4-0.6 0-1.5 0.2-1.7-0.8h-28.8c-0.4 0.7-1.1 0.3-1.6 0.3-13.3 0-26.6-0.1-39.9 0.1-4.8 0-9.5 0.9-13.7 3.5-4.1 2.5-6.4 6.2-7.7 10.7-0.2 0.9 0 1.9-0.6 2.6v75.5c1 0.2 0.7 1.1 0.8 1.7 0.7 4.1 1.8 7.9 4.6 11 3.7 4.1 8.6 5.8 13.9 5.9 24.3 0.1 48.7 0.1 73 0 3.1 0 6.1-0.3 9.1-1.3 7.9-2.5 12.7-8.9 12.7-17.2v-71.9c0.2-2-0.2-4.1-0.7-6zM351.4 676.6c-1.9-7.3-7.9-12.7-15.4-13.7-1.3-0.2-2.7-0.4-4-0.4-0.6 0-1.5 0.2-1.7-0.8h-28.8c-0.4 0.7-1.1 0.3-1.6 0.3-13.3 0-26.6-0.1-39.9 0.1-4.8 0-9.5 0.9-13.7 3.5-4.1 2.5-6.4 6.2-7.7 10.7-0.2 0.9 0 1.9-0.6 2.6v75.5c1 0.2 0.7 1.1 0.8 1.7 0.7 4.1 1.8 7.9 4.6 11 3.7 4.1 8.6 5.8 13.9 5.9 24.3 0.1 48.7 0.1 73 0 3.1 0 6.1-0.3 9.1-1.3 7.9-2.5 12.7-8.9 12.7-17.2v-71.9c0.1-2-0.2-4-0.7-6z"
|
||||
p-id="2312"></path>
|
||||
</svg>
|
||||
二维码
|
||||
|
||||
<div class="post-end-tools">
|
||||
<?php if ($set['post']['copyright_show'] == 1) {
|
||||
?>
|
||||
<div class="post-copyright">
|
||||
<?php if ($set['post']['copyright'] == null) {
|
||||
?>
|
||||
<p>版权声明:
|
||||
<br>作者:<?php echo $author_name ?>
|
||||
<br>链接:<span><u><a href="<?php echo get_permalink(); ?>"
|
||||
target="_blank"><?php echo get_permalink(); ?></a></u></span>
|
||||
<br>来源:<?php bloginfo('name'); ?>
|
||||
<br>文章版权归作者所有,未经允许请勿转载。
|
||||
</p>
|
||||
<?php
|
||||
} else {
|
||||
echo corepress_replace_copyright(base64_decode($set['post']['copyright']));
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
} ?>
|
||||
<div class="post-end-dividing">
|
||||
THE END
|
||||
</div>
|
||||
<div class="post-tags">
|
||||
<?php
|
||||
the_tags('<span class="post-tags-icon"><i class="fas fa-tags"></i></span>', '');
|
||||
?>
|
||||
</div>
|
||||
|
||||
<div class="post-end-tool-btns">
|
||||
<div class="post-share-btn post-end-tool-btn-item"
|
||||
onclick="showplane('.post-share-btn','#share-plane',event)">
|
||||
<?php file_echo_svg('share-btn.svg') ?>
|
||||
分享
|
||||
</div>
|
||||
<div class="post-qrcode-btn post-end-tool-btn-item"
|
||||
onclick="showplane('.post-qrcode-btn','#qrcode-plane',event)">
|
||||
<?php file_echo_svg('svg-ewm.svg') ?>
|
||||
二维码
|
||||
</div>
|
||||
<?php if ($set['post']['reward1'] != null || $set['post']['reward2'] != null) {
|
||||
?>
|
||||
<div class="post-reward-btn post-end-tool-btn-item"
|
||||
onclick="showplane('.post-reward-btn','#reward-plane',event)">
|
||||
<?php file_echo_svg('reward.svg') ?>
|
||||
打赏
|
||||
</div>
|
||||
<?php
|
||||
$description = str_replace("\n", "", mb_strimwidth(strip_tags(get_the_content()), 0, 200, "…", 'utf-8'));
|
||||
} ?>
|
||||
|
||||
<?php
|
||||
$description = str_replace("\n", "", mb_strimwidth(strip_tags(get_the_content()), 0, 200, "…", 'utf-8'));
|
||||
?>
|
||||
<div id="share-plane" class="post-pop-plane">
|
||||
<div class="post-share-list">
|
||||
<a href="<?php echo get_share_url('qq', get_the_title(), $description) ?>"
|
||||
target="_blank">
|
||||
<?php file_echo_svg('share-qq.svg') ?>
|
||||
</a>
|
||||
<a href="<?php echo get_share_url('qzone', get_the_title(), $description) ?>"
|
||||
target="_blank">
|
||||
<?php file_echo_svg('share-qzone.svg') ?>
|
||||
</a>
|
||||
<a href="<?php echo get_share_url('weibo', get_the_title(), $description) ?>"
|
||||
target="_blank">
|
||||
<?php file_echo_svg('share-weibo.svg') ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div id="qrcode-plane" class="post-pop-plane">
|
||||
<div id="qrcode-img"></div>
|
||||
</div>
|
||||
<div id="reward-plane" class="post-pop-plane">
|
||||
<img src="<?php echo $set['post']['reward1'] ?>" alt="">
|
||||
<img src="<?php echo $set['post']['reward2'] ?>" alt="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php
|
||||
if ($set['theme']['postcontent']['turn_page_plane'] == 1) {
|
||||
?>
|
||||
<div class="post-turn-page-plane">
|
||||
<?php
|
||||
$post_previous = get_previous_post(0);
|
||||
$post_obj['title'] = get_the_title($post_previous);
|
||||
$post_obj['thumbnail'] = get_the_post_thumbnail_url($post_previous);
|
||||
$post_obj['url'] = get_the_permalink($post_previous);
|
||||
?>
|
||||
<div id="share-plane">
|
||||
<div class="post-share-list">
|
||||
<a href="<?php echo get_share_url('qq', get_the_title(), $description) ?>"
|
||||
target="_blank">
|
||||
<svg t="1599120943195" name="share-qq" class="share-icon" viewBox="0 0 1024 1024"
|
||||
version="1.1"
|
||||
xmlns="http://www.w3.org/2000/svg" p-id="3139" width="200" height="200">
|
||||
<path d="M511.09761 957.257c-80.159 0-153.737-25.019-201.11-62.386-24.057 6.702-54.831 17.489-74.252 30.864-16.617 11.439-14.546 23.106-11.55 27.816 13.15 20.689 225.583 13.211 286.912 6.767v-3.061z"
|
||||
fill="#FAAD08" p-id="3140"></path>
|
||||
<path d="M496.65061 957.257c80.157 0 153.737-25.019 201.11-62.386 24.057 6.702 54.83 17.489 74.253 30.864 16.616 11.439 14.543 23.106 11.55 27.816-13.15 20.689-225.584 13.211-286.914 6.767v-3.061z"
|
||||
fill="#FAAD08" p-id="3141"></path>
|
||||
<path d="M497.12861 474.524c131.934-0.876 237.669-25.783 273.497-35.34 8.541-2.28 13.11-6.364 13.11-6.364 0.03-1.172 0.542-20.952 0.542-31.155C784.27761 229.833 701.12561 57.173 496.64061 57.162 292.15661 57.173 209.00061 229.832 209.00061 401.665c0 10.203 0.516 29.983 0.547 31.155 0 0 3.717 3.821 10.529 5.67 33.078 8.98 140.803 35.139 276.08 36.034h0.972z"
|
||||
fill="#000000" p-id="3142"></path>
|
||||
<path d="M860.28261 619.782c-8.12-26.086-19.204-56.506-30.427-85.72 0 0-6.456-0.795-9.718 0.148-100.71 29.205-222.773 47.818-315.792 46.695h-0.962C410.88561 582.017 289.65061 563.617 189.27961 534.698 185.44461 533.595 177.87261 534.063 177.87261 534.063 166.64961 563.276 155.56661 593.696 147.44761 619.782 108.72961 744.168 121.27261 795.644 130.82461 796.798c20.496 2.474 79.78-93.637 79.78-93.637 0 97.66 88.324 247.617 290.576 248.996a718.01 718.01 0 0 1 5.367 0C708.80161 950.778 797.12261 800.822 797.12261 703.162c0 0 59.284 96.111 79.783 93.637 9.55-1.154 22.093-52.63-16.623-177.017"
|
||||
fill="#000000" p-id="3143"></path>
|
||||
<path d="M434.38261 316.917c-27.9 1.24-51.745-30.106-53.24-69.956-1.518-39.877 19.858-73.207 47.764-74.454 27.875-1.224 51.703 30.109 53.218 69.974 1.527 39.877-19.853 73.2-47.742 74.436m206.67-69.956c-1.494 39.85-25.34 71.194-53.24 69.956-27.888-1.238-49.269-34.559-47.742-74.435 1.513-39.868 25.341-71.201 53.216-69.974 27.909 1.247 49.285 34.576 47.767 74.453"
|
||||
fill="#FFFFFF" p-id="3144"></path>
|
||||
<path d="M683.94261 368.627c-7.323-17.609-81.062-37.227-172.353-37.227h-0.98c-91.29 0-165.031 19.618-172.352 37.227a6.244 6.244 0 0 0-0.535 2.505c0 1.269 0.393 2.414 1.006 3.386 6.168 9.765 88.054 58.018 171.882 58.018h0.98c83.827 0 165.71-48.25 171.881-58.016a6.352 6.352 0 0 0 1.002-3.395c0-0.897-0.2-1.736-0.531-2.498"
|
||||
fill="#FAAD08" p-id="3145"></path>
|
||||
<path d="M467.63161 256.377c1.26 15.886-7.377 30-19.266 31.542-11.907 1.544-22.569-10.083-23.836-25.978-1.243-15.895 7.381-30.008 19.25-31.538 11.927-1.549 22.607 10.088 23.852 25.974m73.097 7.935c2.533-4.118 19.827-25.77 55.62-17.886 9.401 2.07 13.75 5.116 14.668 6.316 1.355 1.77 1.726 4.29 0.352 7.684-2.722 6.725-8.338 6.542-11.454 5.226-2.01-0.85-26.94-15.889-49.905 6.553-1.579 1.545-4.405 2.074-7.085 0.242-2.678-1.834-3.786-5.553-2.196-8.135"
|
||||
fill="#000000" p-id="3146"></path>
|
||||
<path d="M504.33261 584.495h-0.967c-63.568 0.752-140.646-7.504-215.286-21.92-6.391 36.262-10.25 81.838-6.936 136.196 8.37 137.384 91.62 223.736 220.118 224.996H506.48461c128.498-1.26 211.748-87.612 220.12-224.996 3.314-54.362-0.547-99.938-6.94-136.203-74.654 14.423-151.745 22.684-215.332 21.927"
|
||||
fill="#FFFFFF" p-id="3147"></path>
|
||||
<path d="M323.27461 577.016v137.468s64.957 12.705 130.031 3.91V591.59c-41.225-2.262-85.688-7.304-130.031-14.574"
|
||||
fill="#EB1C26" p-id="3148"></path>
|
||||
<path d="M788.09761 432.536s-121.98 40.387-283.743 41.539h-0.962c-161.497-1.147-283.328-41.401-283.744-41.539l-40.854 106.952c102.186 32.31 228.837 53.135 324.598 51.926l0.96-0.002c95.768 1.216 222.4-19.61 324.6-51.924l-40.855-106.952z"
|
||||
fill="#EB1C26" p-id="3149"></path>
|
||||
</svg>
|
||||
</a>
|
||||
<a href="<?php echo get_share_url('qzone', get_the_title(), $description) ?>"
|
||||
target="_blank">
|
||||
<svg t="1599121101983" name="share-qzone" class="share-icon" viewBox="0 0 1024 1024"
|
||||
version="1.1"
|
||||
xmlns="http://www.w3.org/2000/svg" p-id="7781" width="200" height="200">
|
||||
<path d="M504.768 24.224c-5.216 2.144-19.872 17.728-19.872 21.28 0 1.184-22.944 49.888-51.072 108.064S381.568 262.56 380.16 266.592c-1.184 3.776-3.328 8.288-4.256 9.696-1.184 1.408-7.808 14.176-14.88 28.384-7.552 15.616-15.616 28.608-20.096 32.16-10.88 9.216-3.552 8.288-221.312 32.64C21.248 380.576 10.368 382.24 4.48 387.68c-4.256 3.776-5.92 17.504-2.848 25.536 0.96 2.112 43.264 42.336 94.112 89.376 160.768 148.48 150.368 138.08 150.368 149.184 0 5.44-3.296 25.056-7.104 43.968-4.032 18.912-12.992 66.208-20.32 105.216s-15.84 83.712-18.912 99.296c-16.32 83.232-16.544 85.6-8.032 94.592 8.032 8.512 17.248 7.552 41.6-4.736 22.688-11.584 24.832-12.768 69.504-39.008 16.32-9.472 37.6-21.76 47.296-27.2s27.648-16.064 39.712-23.392 22.464-13.248 23.168-13.248c0.48 0 7.808-4.256 16.064-9.472s15.84-9.44 16.8-9.44c0.96 0 9.472-4.736 18.912-10.624 22.464-13.952 41.856-21.056 52.96-18.912 4.736 0.96 16.064 5.44 25.056 10.4 23.648 12.544 172.608 98.368 218.944 126.016 39.488 23.648 51.072 28.128 64.544 24.576 8.992-2.144 11.584-15.136 8.512-40.896-1.408-11.584-3.552-24.608-4.736-29.088-1.888-7.552-9.696-49.408-28.608-154.4-8.736-49.888-8.736-50.848 10.88-58.176 27.2-10.176 39.968-19.136 35.008-24.128-1.664-1.664-16.8 0.256-48.224 5.92-58.4 10.624-70.464 12.288-132.16 17.984-70.208 6.624-135.008 8.032-221.568 4.96-67.616-2.368-148-8.288-152.512-11.104-3.552-2.368-1.888-9.696 3.552-14.432 2.848-2.592 38.784-28.384 79.68-57.44 128.16-90.784 211.392-150.848 218.24-157.248 11.808-11.104 10.88-11.584-38.304-17.984-77.792-9.92-98.112-11.584-224.864-17.504-42.336-1.888-80.64-4.256-85.12-4.96-46.336-7.808 189.856-29.088 289.632-26.016 65.504 1.888 142.592 7.328 187.968 13.248 42.336 5.664 44.928 6.144 44.928 10.88 0 3.776-4.48 7.104-104.032 75.648-40.896 28.384-84.416 58.4-96.704 66.912-12.064 8.512-24.576 17.248-27.424 19.136-13.248 8.992-57.696 39.968-69.984 48.928-7.808 5.664-13.952 11.808-13.952 13.728 0 4.48 11.584 7.328 47.296 11.584 94.816 11.104 271.2 17.248 279.008 9.472 1.664-1.664 1.408-6.848-1.184-17.728-1.888-8.288-3.552-16.096-3.552-17.248 0-3.328 40.192-43.52 95.744-95.52 146.816-137.6 150.144-140.928 150.144-151.808 0-9.472-7.808-17.984-19.392-20.8-5.664-1.408-39.488-5.216-75.2-8.736-35.712-3.328-75.2-7.104-87.488-8.288-12.288-1.408-38.304-4.032-57.92-6.144-74.944-7.552-97.888-10.4-103.328-12.992-10.4-4.736-20.096-24.128-91.744-185.376C537.824 44.8 533.344 35.584 526.24 29.216c-5.888-5.44-15.104-7.552-21.504-4.96z"
|
||||
fill="#FFCE00" p-id="7782"></path>
|
||||
</svg>
|
||||
</a>
|
||||
<a href="<?php echo get_share_url('weibo', get_the_title(), $description) ?>"
|
||||
target="_blank">
|
||||
<svg t="1599121004264" name="share-weibo" class="share-icon" viewBox="0 0 1024 1024"
|
||||
version="1.1"
|
||||
xmlns="http://www.w3.org/2000/svg" p-id="4523" width="200" height="200">
|
||||
<path d="M851.4 590.193c-22.196-66.233-90.385-90.422-105.912-91.863-15.523-1.442-29.593-9.94-19.295-27.505 10.302-17.566 29.304-68.684-7.248-104.681-36.564-36.14-116.512-22.462-173.094 0.866-56.434 23.327-53.39 7.055-51.65-8.925 1.89-16.848 32.355-111.02-60.791-122.395C311.395 220.86 154.85 370.754 99.572 457.15 16 587.607 29.208 675.873 29.208 675.873h0.58c10.009 121.819 190.787 218.869 412.328 218.869 190.5 0 350.961-71.853 398.402-169.478 0 0 0.143-0.433 0.575-1.156 4.938-10.506 8.71-21.168 11.035-32.254 6.668-26.205 11.755-64.215-0.728-101.66z m-436.7 251.27c-157.71 0-285.674-84.095-285.674-187.768 0-103.671 127.82-187.76 285.674-187.76 157.705 0 285.673 84.089 285.673 187.76 0 103.815-127.968 187.768-285.673 187.768z"
|
||||
fill="#E71F19" p-id="4524"></path>
|
||||
<path d="M803.096 425.327c2.896 1.298 5.945 1.869 8.994 1.869 8.993 0 17.7-5.328 21.323-14.112 5.95-13.964 8.993-28.793 8.993-44.205 0-62.488-51.208-113.321-114.181-113.321-15.379 0-30.32 3.022-44.396 8.926-11.755 4.896-17.263 18.432-12.335 30.24 4.933 11.662 18.572 17.134 30.465 12.238 8.419-3.46 17.268-5.33 26.41-5.33 37.431 0 67.752 30.241 67.752 67.247 0 9.068-1.735 17.857-5.369 26.202a22.832 22.832 0 0 0 12.335 30.236l0.01 0.01z"
|
||||
fill="#F5AA15" p-id="4525"></path>
|
||||
<path d="M726.922 114.157c-25.969 0-51.65 3.744-76.315 10.942-18.423 5.472-28.868 24.622-23.5 42.91 5.509 18.29 24.804 28.657 43.237 23.329a201.888 201.888 0 0 1 56.578-8.064c109.253 0 198.189 88.271 198.189 196.696 0 19.436-2.905 38.729-8.419 57.16-5.508 18.289 4.79 37.588 23.212 43.053 3.342 1.014 6.817 1.442 10.159 1.442 14.943 0 28.725-9.648 33.37-24.48 7.547-24.906 11.462-50.826 11.462-77.175-0.143-146.588-120.278-265.813-267.973-265.813z"
|
||||
fill="#F5AA15" p-id="4526"></path>
|
||||
<path d="M388.294 534.47c-84.151 0-152.34 59.178-152.34 132.334 0 73.141 68.189 132.328 152.34 132.328 84.148 0 152.337-59.182 152.337-132.328 0-73.15-68.19-132.334-152.337-132.334zM338.53 752.763c-29.454 0-53.39-23.755-53.39-52.987 0-29.228 23.941-52.989 53.39-52.989 29.453 0 53.39 23.76 53.39 52.989 0 29.227-23.937 52.987-53.39 52.987z m99.82-95.465c-6.382 11.086-19.296 15.696-28.726 10.219-9.43-5.323-11.75-18.717-5.37-29.803 6.386-11.09 19.297-15.7 28.725-10.224 9.43 5.472 11.755 18.864 5.37 29.808z"
|
||||
fill="#040000" p-id="4527"></path>
|
||||
</svg>
|
||||
</a>
|
||||
<div class="post-turn-page post-turn-page-previous"
|
||||
style="background-image:url(<?php echo $post_obj['thumbnail'] ?>)">
|
||||
<div class="post-turn-page-main">
|
||||
<div>
|
||||
<a href="<?php echo $post_obj['url']; ?>"><?php echo $post_obj['title']; ?></a>
|
||||
</div>
|
||||
<div class="post-turn-page-link-pre">
|
||||
<a href="<?php echo $post_obj['url']; ?>"><
|
||||
<上一篇
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="qrcode-plane">
|
||||
<div id="qrcode-img"></div>
|
||||
<?php
|
||||
$post_next = get_next_post(0);
|
||||
$post_obj['title'] = get_the_title($post_next);
|
||||
$post_obj['thumbnail'] = get_the_post_thumbnail_url($post_next);
|
||||
$post_obj['url'] = get_the_permalink($post_next);
|
||||
?>
|
||||
<div class="post-turn-page post-turn-page-next"
|
||||
style="background-image:url(<?php echo $post_obj['thumbnail'] ?>)">
|
||||
<div class="post-turn-page-main">
|
||||
<div>
|
||||
<a href="<?php echo $post_obj['url']; ?>"><?php echo $post_obj['title']; ?></a>
|
||||
</div>
|
||||
<div class="post-turn-page-link-next">
|
||||
<a href="<?php echo $post_obj['url']; ?>">下一篇>></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(document).click(function (e) {
|
||||
$('#share-plane').removeClass("share-plane-show");
|
||||
$('#qrcode-plane').removeClass("share-plane-show");
|
||||
e.stopPropagation();
|
||||
});
|
||||
$('.clickshow').click(function () {
|
||||
$(this).toggleClass('clickshow-show');
|
||||
});
|
||||
$('.post-share-btn').click((e) => {
|
||||
$('#share-plane').addClass("share-plane-show");
|
||||
e.stopPropagation();
|
||||
});
|
||||
$('.post-qrcode-btn').click((e) => {
|
||||
$('#qrcode-plane').addClass("share-plane-show");
|
||||
e.stopPropagation();
|
||||
});
|
||||
new QRCode($('#qrcode-img')[0], window.location.href);
|
||||
$(this).next().animate({height: '100%'}, 500);
|
||||
$('.zd-plane-title').click(function (e) {
|
||||
if (!$(this).hasClass('zd-plane-title-zk')) {
|
||||
$(this).addClass('zd-plane-title-zk');
|
||||
$(this).next().slideDown();
|
||||
} else {
|
||||
$(this).removeClass('zd-plane-title-zk')
|
||||
$(this).next().slideUp();
|
||||
<?php
|
||||
} ?>
|
||||
<script>
|
||||
$(document).click(function (e) {
|
||||
$('.post-pop-plane').removeClass("post-pop-plane-show");
|
||||
e.stopPropagation();
|
||||
});
|
||||
$('.post-info-switch-sidebar').click(function () {
|
||||
$('.sidebar').toggleClass('sidebar-display');
|
||||
$('.post-main').toggleClass('post-main-full');
|
||||
$(this).toggleClass('post-info-switch-sidebar-show');
|
||||
})
|
||||
$('.clickshow').click(function () {
|
||||
$('#share-plane').removeClass("share-plane-show");
|
||||
$('#qrcode-plane').removeClass("share-plane-show");
|
||||
$(this).toggleClass('clickshow-show');
|
||||
});
|
||||
|
||||
function showplane(btn_name, plane_name, e) {
|
||||
$('.post-pop-plane').removeClass("post-pop-plane-show");
|
||||
$(plane_name).addClass("post-pop-plane-show");
|
||||
var btn_left = $(btn_name).position().left;
|
||||
var plane_width = $(plane_name).outerWidth();
|
||||
var btn_width = $(btn_name).outerWidth();
|
||||
var btn_hight = $(btn_name).outerHeight();
|
||||
$(plane_name).css('left', btn_left - plane_width / 2 + btn_width / 2 + 'px');
|
||||
$(plane_name).css('bottom', btn_hight + 10 + 'px');
|
||||
e.stopPropagation();
|
||||
}
|
||||
})
|
||||
var clipboard = new ClipboardJS('.code-bar-btn-copy-fonticon', {
|
||||
text: function (trigger) {
|
||||
return $(trigger).parent().prev().text();
|
||||
}
|
||||
});
|
||||
clipboard.on('success', function (e) {
|
||||
$(e.trigger).toggleClass('fal fa-clone')
|
||||
$(e.trigger).toggleClass('fal fa-check')
|
||||
setTimeout(function () {
|
||||
//$(e.trigger).text('复制')
|
||||
|
||||
$('.post-qrcode-btn').click((e) => {
|
||||
$('#qrcode-plane').addClass("share-plane-show");
|
||||
e.stopPropagation();
|
||||
});
|
||||
new QRCode($('#qrcode-img')[0], window.location.href);
|
||||
$(this).next().animate({height: '100%'}, 500);
|
||||
$('.zd-plane-title').click(function (e) {
|
||||
if (!$(this).hasClass('zd-plane-title-zk')) {
|
||||
$(this).addClass('zd-plane-title-zk');
|
||||
$(this).next().slideDown();
|
||||
} else {
|
||||
$(this).removeClass('zd-plane-title-zk')
|
||||
$(this).next().slideUp();
|
||||
}
|
||||
})
|
||||
var clipboard = new ClipboardJS('.code-bar-btn-copy-fonticon', {
|
||||
text: function (trigger) {
|
||||
copynotmsg = 1;
|
||||
return $(trigger).parent().prev().text();
|
||||
}
|
||||
});
|
||||
|
||||
var copy_pwd = new ClipboardJS('.btn-copy-pwd', {
|
||||
text: function (trigger) {
|
||||
copynotmsg = 1;
|
||||
return $(trigger).parent().find('.c-downbtn-pwd-key').text();
|
||||
}
|
||||
});
|
||||
copy_pwd.on('success', function (e) {
|
||||
$(e.trigger).toggleClass('fal fa-clone')
|
||||
$(e.trigger).toggleClass('fal fa-check')
|
||||
}, 2000);
|
||||
});
|
||||
clipboard.on('error', function (e) {
|
||||
$(e.trigger).toggleClass('fal fa-clone')
|
||||
$(e.trigger).toggleClass('fal times')
|
||||
setTimeout(function () {
|
||||
setTimeout(function () {
|
||||
$(e.trigger).toggleClass('fal fa-clone')
|
||||
$(e.trigger).toggleClass('fal fa-check')
|
||||
}, 2000);
|
||||
});
|
||||
|
||||
|
||||
clipboard.on('success', function (e) {
|
||||
$(e.trigger).toggleClass('fal fa-clone')
|
||||
$(e.trigger).toggleClass('fal fa-check')
|
||||
setTimeout(function () {
|
||||
//$(e.trigger).text('复制')
|
||||
$(e.trigger).toggleClass('fal fa-clone')
|
||||
$(e.trigger).toggleClass('fal fa-check')
|
||||
}, 2000);
|
||||
});
|
||||
clipboard.on('error', function (e) {
|
||||
$(e.trigger).toggleClass('fal fa-clone')
|
||||
$(e.trigger).toggleClass('fal times')
|
||||
}, 2000);
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<div class="post-tool-plane">
|
||||
<?php
|
||||
global $corepress_post_meta;
|
||||
|
||||
if ($corepress_post_meta['catalog'] == 1) {
|
||||
?>
|
||||
<div id="post-catalog">
|
||||
<div class="catalog-title">文章目录</div>
|
||||
<div id="post-catalog-list">
|
||||
</div>
|
||||
<div class="catalog-close" onclick="close_show(0)">关闭</div>
|
||||
</div>
|
||||
setTimeout(function () {
|
||||
$(e.trigger).toggleClass('fal fa-clone')
|
||||
$(e.trigger).toggleClass('fal times')
|
||||
}, 2000);
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<div class="post-tool-plane">
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
if ($corepress_post_meta['catalog'] == 1) {
|
||||
?>
|
||||
<div id="post-catalog">
|
||||
<div class="catalog-title">文章目录</div>
|
||||
<div id="post-catalog-list">
|
||||
</div>
|
||||
<div class="catalog-close" onclick="close_show(0)">关闭</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="relevant-plane">
|
||||
<div class="plane-title">
|
||||
相关内容
|
||||
</div>
|
||||
<div>
|
||||
<ul class="relevant-list">
|
||||
<?php
|
||||
$catobj = get_the_category(get_the_ID());
|
||||
$catid = $catobj[0]->term_id;
|
||||
$arr = array(
|
||||
'numberposts' => 6,
|
||||
'category' => $catid,
|
||||
);
|
||||
$postlist = get_posts($arr);
|
||||
foreach ($postlist as $item) {
|
||||
echo '<li><a href="' . get_the_permalink($item) . '">' . get_the_title($item) . '</a></li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="relevant-plane">
|
||||
<div class="plane-title">
|
||||
相关内容
|
||||
</div>
|
||||
<div>
|
||||
<ul class="relevant-list">
|
||||
<?php
|
||||
$catobj = get_the_category(get_the_ID());
|
||||
$catid = $catobj[0]->term_id;
|
||||
$arr = array(
|
||||
'numberposts' => 6,
|
||||
'category' => $catid,
|
||||
);
|
||||
$postlist = get_posts($arr);
|
||||
foreach ($postlist as $item) {
|
||||
echo '<li><a href="' . get_the_permalink($item) . '">' . get_the_title($item) . '</a></li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
comments_template();
|
||||
?>
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
global $set;
|
||||
|
||||
$postitem['post_meta'] = json_decode(get_post_meta($post->ID, 'corepress_post_meta', true),true);
|
||||
$postitem['post_meta'] = json_decode(get_post_meta($post->ID, 'corepress_post_meta', true), true);
|
||||
|
||||
|
||||
if (has_excerpt()) {
|
||||
|
@ -19,10 +19,13 @@ if (post_password_required()) {
|
|||
$postitem['thumbnail'] = null;
|
||||
|
||||
if (has_post_thumbnail()) {
|
||||
if (!isset($postitem['post_meta']['postshow'])) {
|
||||
$postitem['post_meta']['postshow'] = null;
|
||||
}
|
||||
if ($postitem['post_meta']['postshow'] == 1) {
|
||||
$postitem['thumbnail'] = get_the_post_thumbnail_url($post, 'full');
|
||||
} else {
|
||||
$postitem['thumbnail'] = get_the_post_thumbnail_url($post, 'thumbnail');
|
||||
$postitem['thumbnail'] = get_the_post_thumbnail_url($post, 'full');
|
||||
}
|
||||
|
||||
|
||||
|
@ -43,11 +46,17 @@ if (function_exists('the_views')) {
|
|||
}
|
||||
$postitem['url'] = get_the_permalink();
|
||||
$postitem['author'] = get_the_author();
|
||||
$postitem['time'] = get_the_time('Y-m-d');
|
||||
|
||||
$postitem['commentsnum'] = get_comments_number();
|
||||
$postitem['title'] = get_the_title();
|
||||
$postitem['category'] = get_the_category();
|
||||
|
||||
$postitem['time'] = get_the_time('Y-m-d');
|
||||
$newpost = '';
|
||||
if ($set['theme']['postlist_newnote'] == 1) {
|
||||
if (date("Y-m-d") == $postitem['time']) {
|
||||
$newpost = 'post-item-new';
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($postitem['category'] as $item) {
|
||||
$item->url = get_category_link($item->cat_ID);
|
||||
|
@ -58,15 +67,16 @@ if ($set['routine']['opennewlink'] == 1) {
|
|||
}
|
||||
if ($set['module']['imglazyload'] == 1) {
|
||||
$pathname = 'data-original';
|
||||
$imgtag = '<img src="'.file_get_img_url('loading.png').'" data-original="' . $postitem['thumbnail'] . '">';
|
||||
}else
|
||||
{
|
||||
$imgtag = '<img src="' . file_get_img_url('loading.png') . '" data-original="' . $postitem['thumbnail'] . '">';
|
||||
} else {
|
||||
$imgtag = '<img src="' . $postitem['thumbnail'] . '">';
|
||||
}
|
||||
|
||||
if (empty($postitem['post_meta']['postshow'])) {
|
||||
$postitem['post_meta']['postshow'] = 0;
|
||||
}
|
||||
if ($postitem['post_meta']['postshow'] == 1) {
|
||||
?>
|
||||
<li class="post-item post-item-type1">
|
||||
<li class="post-item post-item-type1 <?php echo $newpost ?>">
|
||||
<h2>
|
||||
<?php
|
||||
if (is_sticky(get_the_ID())) {
|
||||
|
@ -78,7 +88,7 @@ if ($postitem['post_meta']['postshow'] == 1) {
|
|||
target="<?php echo $target; ?>"><?php echo $postitem['title']; ?></a>
|
||||
</h2>
|
||||
<div class="post-item-thumbnail-type1">
|
||||
<a href="<?php echo $postitem['url'] ?>" target="<?php echo $target; ?>"><?php echo $imgtag?></a>
|
||||
<a href="<?php echo $postitem['url'] ?>" target="<?php echo $target; ?>"><?php echo $imgtag ?></a>
|
||||
</div>
|
||||
<div class="post-item-content post-item-content-type1">
|
||||
<?php echo $postitem['content'] ?>
|
||||
|
@ -114,12 +124,12 @@ if ($postitem['post_meta']['postshow'] == 1) {
|
|||
</div>
|
||||
</li>
|
||||
<?php
|
||||
}else{
|
||||
} else {
|
||||
?>
|
||||
<li class="post-item">
|
||||
<li class="post-item <?php echo $newpost ?>">
|
||||
<div class="post-item-container">
|
||||
<div class="post-item-thumbnail">
|
||||
<a href="<?php echo $postitem['url'] ?>" target="<?php echo $target; ?>"><?php echo $imgtag?></a>
|
||||
<a href="<?php echo $postitem['url'] ?>" target="<?php echo $target; ?>"><?php echo $imgtag ?></a>
|
||||
</div>
|
||||
<div class="post-item-main">
|
||||
<h2>
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
<?php
|
||||
if (is_home()) {
|
||||
global $paged;
|
||||
if (!$paged) {
|
||||
$paged = 1;
|
||||
}
|
||||
if (is_home() && $paged == 1) {
|
||||
global $set;
|
||||
if ($set['index']['swiperlist'] != null || count($set['index']['swiperlist']) > 0) {
|
||||
?>
|
||||
|
@ -9,7 +13,6 @@ if (is_home()) {
|
|||
<div class="swiper-container carousel">
|
||||
<div class="swiper-wrapper">
|
||||
<?php
|
||||
//print_r($set['index']['swiperlist']);
|
||||
foreach ($set['index']['swiperlist'] as $item) {
|
||||
$target = '_blank';
|
||||
if ($item['url'] == null) {
|
||||
|
@ -27,8 +30,8 @@ if (is_home()) {
|
|||
?>
|
||||
</div>
|
||||
<div class="swiper-pagination"></div>
|
||||
<div class="corepress-swiper-button-next corepress-swiper-button"><i class="fas fa-chevron-right"></i></div>
|
||||
<div class="corepress-swiper-button-prev corepress-swiper-button"><i class="fas fa-chevron-left"></i></div>
|
||||
<div class="corepress-swiper-button-next corepress-swiper-button"><i class="fal fa-chevron-right"></i></div>
|
||||
<div class="corepress-swiper-button-prev corepress-swiper-button"><i class="fal fa-chevron-left"></i></div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
@ -51,15 +54,54 @@ if (is_home()) {
|
|||
</script>
|
||||
<?php
|
||||
}
|
||||
if ($set['index']['postcard'] != null || count($set['index']['postcard']) > 0) {
|
||||
$item_percent = 100 / $set['index']['postcardlinenumber'] - 1;
|
||||
?>
|
||||
<style>
|
||||
.index-top-postcard-item {
|
||||
flex-basis: <?php echo $item_percent.'%';?>;
|
||||
}
|
||||
</style>
|
||||
<div class="index-top-postcard-plane">
|
||||
<div class="index-top-postcard-body">
|
||||
<?php
|
||||
foreach ($set['index']['postcard'] as $item) {
|
||||
?>
|
||||
<div class="index-top-postcard-item">
|
||||
<div class="index-top-postcard-main">
|
||||
<div class="post-item-thumbnail">
|
||||
<a href="<?php echo $item['url'] ?>"><img src="<?php echo $item['imgurl'] ?>"
|
||||
alt=""></a>
|
||||
</div>
|
||||
<?php if ($item['url'] != null) {
|
||||
?>
|
||||
<div class="index-top-postcard-title">
|
||||
<a href="<?php echo $item['url'] ?>"><?php echo $item['title'] ?></a>
|
||||
</div>
|
||||
<?php
|
||||
} ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
<div class="post-list-page-plane">
|
||||
<div class="list-plane-title">
|
||||
<?php
|
||||
if (is_category()) {
|
||||
echo ' <p>'.single_cat_title('', false).'</p>';
|
||||
echo ' <p>' . single_cat_title('', false) . '</p>';
|
||||
} elseif (is_home()) {
|
||||
echo ' <p>最新文章</p>';
|
||||
} elseif (is_author()) {
|
||||
echo '<p>' . get_the_author() . ' 的文章</p>';
|
||||
} else {
|
||||
echo ' <p>最新文章</p>';
|
||||
}
|
||||
|
|
|
@ -0,0 +1,179 @@
|
|||
<?php
|
||||
global $corepress_post_meta;
|
||||
if ($corepress_post_meta['postrighttag']['open'] == 1) {
|
||||
?>
|
||||
<style>
|
||||
.post-content:before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
color: #fff;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-top: 80px solid<?php echo $corepress_post_meta['postrighttag']['color']?>;
|
||||
border-left: 80px solid transparent;
|
||||
}
|
||||
|
||||
.post-content:after {
|
||||
content: "<?php echo $corepress_post_meta['postrighttag']['text']?>";
|
||||
color: #fff;
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
top: 14px;
|
||||
z-index: 9;
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
</style>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div class="post-content">
|
||||
<h1 class="post-title">
|
||||
<?php the_title();
|
||||
global $set;
|
||||
?>
|
||||
</h1>
|
||||
<div class="post-info">
|
||||
<div class="post-info-left">
|
||||
<?php
|
||||
$author = get_the_author_meta('ID');
|
||||
$author_url = get_author_posts_url($author);
|
||||
$author_name = get_the_author();
|
||||
?>
|
||||
<a class="nickname url fn j-user-card" data-user="<?php echo $author; ?>"
|
||||
href="<?php echo $author_url; ?>"><i class="fa fa-user"
|
||||
aria-hidden="true"></i><?php echo $author_name; ?>
|
||||
</a>
|
||||
<span class="dot">•</span>
|
||||
<time class="entry-date published"
|
||||
datetime="<?php echo get_post_time('c', false, $post); ?>>" pubdate><i class="far fa-clock"></i>
|
||||
<?php echo format_date(get_post_time('U', false, $post)); ?>
|
||||
</time>
|
||||
<?php if (function_exists('the_views')) {
|
||||
$views = intval(get_post_meta($post->ID, 'views', true));
|
||||
?>
|
||||
<span class="dot">•</span>
|
||||
<span><i class="fa fa-eye"
|
||||
aria-hidden="true"></i><?php echo sprintf('%s 阅读', $views); ?></span>
|
||||
<?php }
|
||||
if (get_edit_post_link() != null) {
|
||||
?>
|
||||
<span class="dot">•</span>
|
||||
<a href="<?php echo get_edit_post_link(); ?>"><i class="fas fa-edit"></i> 编辑</a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div class="post-info-right">
|
||||
<span title="关闭或显示侧边栏" class="post-info-switch-sidebar post-info-switch-sidebar-show"><i
|
||||
class="fas fa-toggle-on"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="post-content-post">
|
||||
<div class="post-content-content">
|
||||
<?php
|
||||
the_content();
|
||||
?>
|
||||
</div>
|
||||
|
||||
<div class="post-end-tools">
|
||||
<script>
|
||||
$(document).click(function (e) {
|
||||
$('#share-plane').removeClass("share-plane-show");
|
||||
$('#qrcode-plane').removeClass("share-plane-show");
|
||||
e.stopPropagation();
|
||||
});
|
||||
$('.post-info-switch-sidebar').click(function () {
|
||||
$('.sidebar').toggleClass('sidebar-display');
|
||||
$('.post-main').toggleClass('post-main-full');
|
||||
$(this).toggleClass('post-info-switch-sidebar-show');
|
||||
|
||||
})
|
||||
$('.clickshow').click(function () {
|
||||
$('#share-plane').removeClass("share-plane-show");
|
||||
$('#qrcode-plane').removeClass("share-plane-show");
|
||||
$(this).toggleClass('clickshow-show');
|
||||
});
|
||||
$('.post-share-btn').click((e) => {
|
||||
$('#share-plane').removeClass("share-plane-show");
|
||||
$('#qrcode-plane').removeClass("share-plane-show");
|
||||
$('#share-plane').addClass("share-plane-show");
|
||||
e.stopPropagation();
|
||||
});
|
||||
$('.post-qrcode-btn').click((e) => {
|
||||
$('#qrcode-plane').addClass("share-plane-show");
|
||||
e.stopPropagation();
|
||||
});
|
||||
new QRCode($('#qrcode-img')[0], window.location.href);
|
||||
$(this).next().animate({height: '100%'}, 500);
|
||||
$('.zd-plane-title').click(function (e) {
|
||||
if (!$(this).hasClass('zd-plane-title-zk')) {
|
||||
$(this).addClass('zd-plane-title-zk');
|
||||
$(this).next().slideDown();
|
||||
} else {
|
||||
$(this).removeClass('zd-plane-title-zk')
|
||||
$(this).next().slideUp();
|
||||
}
|
||||
})
|
||||
var clipboard = new ClipboardJS('.code-bar-btn-copy-fonticon', {
|
||||
text: function (trigger) {
|
||||
return $(trigger).parent().prev().text();
|
||||
}
|
||||
});
|
||||
|
||||
var copy_pwd = new ClipboardJS('.btn-copy-pwd', {
|
||||
text: function (trigger) {
|
||||
return $(trigger).parent().find('.c-downbtn-pwd-key').text();
|
||||
}
|
||||
});
|
||||
copy_pwd.on('success', function (e) {
|
||||
$(e.trigger).toggleClass('fal fa-clone')
|
||||
$(e.trigger).toggleClass('fal fa-check')
|
||||
setTimeout(function () {
|
||||
$(e.trigger).toggleClass('fal fa-clone')
|
||||
$(e.trigger).toggleClass('fal fa-check')
|
||||
}, 2000);
|
||||
});
|
||||
|
||||
|
||||
clipboard.on('success', function (e) {
|
||||
$(e.trigger).toggleClass('fal fa-clone')
|
||||
$(e.trigger).toggleClass('fal fa-check')
|
||||
setTimeout(function () {
|
||||
//$(e.trigger).text('复制')
|
||||
$(e.trigger).toggleClass('fal fa-clone')
|
||||
$(e.trigger).toggleClass('fal fa-check')
|
||||
}, 2000);
|
||||
});
|
||||
clipboard.on('error', function (e) {
|
||||
$(e.trigger).toggleClass('fal fa-clone')
|
||||
$(e.trigger).toggleClass('fal times')
|
||||
setTimeout(function () {
|
||||
$(e.trigger).toggleClass('fal fa-clone')
|
||||
$(e.trigger).toggleClass('fal times')
|
||||
}, 2000);
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<div class="post-tool-plane">
|
||||
<?php
|
||||
if ($corepress_post_meta['catalog'] == 1) {
|
||||
?>
|
||||
<div id="post-catalog">
|
||||
<div class="catalog-title">文章目录</div>
|
||||
<div id="post-catalog-list">
|
||||
</div>
|
||||
<div class="catalog-close" onclick="close_show(0)">关闭</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
if (comments_open() != 0) {
|
||||
comments_template();
|
||||
}
|
||||
?>
|
|
@ -9,11 +9,12 @@
|
|||
<el-collapse-item>
|
||||
<template slot="title">
|
||||
<div>
|
||||
<span class="index-card-plane-thumbnail"><img :src="item.imgurl"></span>
|
||||
<span class="swiper-title">{{item.imgurl}}</span>
|
||||
<span class="swiper-colbtn" @click.stop="delSwiper(index)"><i class="el-icon-close"></i></span>
|
||||
<span class="swiper-colbtn" @click.stop="moveSwiper(index,-1)"
|
||||
<span class="swiper-colbtn" @click.stop="moveSwiper(index,1)"
|
||||
v-if="index<(set.index.swiperlist.length-1)"><i class="el-icon-bottom"></i></span>
|
||||
<span class="swiper-colbtn" @click.stop="moveSwiper(index,1)" v-if="index>0"><i
|
||||
<span class="swiper-colbtn" @click.stop="moveSwiper(index,-1)" v-if="index>0"><i
|
||||
class="el-icon-top"></i></span>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -51,7 +52,71 @@
|
|||
</div>
|
||||
</el-collapse>
|
||||
</div>
|
||||
|
||||
<h3>首页推荐卡片</h3>
|
||||
<div class="set-plane">
|
||||
</div>
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
每行显示个数
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-input placeholder="" v-model="set.index.postcardlinenumber" size="small">
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
<div class="index-card-plane">
|
||||
<div class="swiper-control">
|
||||
<el-button type="primary" @click="addPostCard" size="mini">添加首页卡片</el-button>
|
||||
</div>
|
||||
<el-collapse>
|
||||
<div v-for="(item,index) in set.index.postcard">
|
||||
<el-collapse-item>
|
||||
<template slot="title">
|
||||
<div>
|
||||
<span class="index-card-plane-thumbnail"><img :src="item.imgurl"></span>
|
||||
<span class="swiper-title">{{item.title}}</span>
|
||||
<span class="swiper-colbtn" @click.stop="delPostCard(index)"><i
|
||||
class="el-icon-close"></i></span>
|
||||
<span class="swiper-colbtn" @click.stop="movePostCard(index,1)"
|
||||
v-if="index<(set.index.postcard.length-1)"><i class="el-icon-bottom"></i></span>
|
||||
<span class="swiper-colbtn" @click.stop="movePostCard(index,-1)" v-if="index>0"><i
|
||||
class="el-icon-top"></i></span>
|
||||
</div>
|
||||
</template>
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
图片地址
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-input placeholder="" v-model="item.imgurl" size="small">
|
||||
<el-button size="mini" slot="append" icon="el-icon-picture"
|
||||
@click="selectImg('postcard',index)">上传
|
||||
</el-button>
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
指向链接
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-input placeholder="" v-model="item.url" size="small">
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
标题内容
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-input placeholder="" v-model="item.title" size="small">
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
</el-collapse-item>
|
||||
</div>
|
||||
</el-collapse>
|
||||
</div>
|
||||
<h3>友情链接</h3>
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
|
@ -62,10 +127,26 @@
|
|||
v-model="set.index.links"
|
||||
:active-value="1"
|
||||
:inactive-value="0"
|
||||
>
|
||||
>
|
||||
</el-switch>
|
||||
</div>
|
||||
</div>
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
申请友链描述
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-input placeholder="" v-model="set.index.linksdescribe" size="small">
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
</div>
|
||||
<div class="set-object">
|
||||
友情链接标题旁边描述内容
|
||||
</div>
|
||||
</div>
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
申请友链地址
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
<p>集成代码高亮,多种短代码,帮你打造超强文字内容</p>
|
||||
<p>注重WordPress和SEO优化,设置详细</p>
|
||||
<p>主题成长中,有问题请反馈</p>
|
||||
<p>欢迎加入QQ群:664592923</p>
|
||||
<p><a target="_blank" href="https://qm.qq.com/cgi-bin/qm/qr?k=8uHZRdj0dRXbD7yiIRJYZjB40W05Vztl&jump_from=webapi"><img border="0" src="//pub.idqqimg.com/wpa/images/group.png" alt="果核建站交流群" title="果核建站交流群"></a></p>
|
||||
<h3>功能开关</h3>
|
||||
|
||||
<div class="set-plane">
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
</div>
|
||||
<div class="set-object">
|
||||
<el-input
|
||||
type="textarea"
|
||||
:rows="5"
|
||||
placeholder="请输入内容"
|
||||
v-model="set.code.headcode">
|
||||
type="textarea"
|
||||
:rows="5"
|
||||
placeholder="请输入内容"
|
||||
v-model="set.code.headcode">
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -55,4 +55,25 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="set-plane set-plane-nocenter">
|
||||
<div class="set-title">
|
||||
阿里Iconfont地址
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-input
|
||||
size="small"
|
||||
placeholder="请输入内容"
|
||||
v-model="set.code.alifront">
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
</div>
|
||||
<div class="set-object">
|
||||
自定义阿里云图标Symbol地址,设置以后可以调用自选的阿里云图标。注意这儿只能填写js地址
|
||||
调用方式,复制下面html内容,只需要替换图标名称即可:<br><br>
|
||||
<el-tag type="danger" size="mini"><svg class="icon" aria-hidden="true"><use xlink:href="#图标名称"></use></svg></el-tag>
|
||||
<p>帮助地址:<a href="https://www.yuque.com/applek/corepress/icon" target="_blank">CorePress菜单图标使用教程</a> </p>
|
||||
</div>
|
||||
</div>
|
|
@ -70,4 +70,72 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<h3>背景图片设置</h3>
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
背景图片
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-input placeholder="" v-model="set.theme.bagimg" size="small">
|
||||
<el-button size="mini" slot="append" icon="el-icon-picture"
|
||||
@click="selectImg('set.theme.bagimg')">上传
|
||||
</el-button>
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
背景图片显示方式
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-switch
|
||||
v-model="set.theme.bagimg_showtype"
|
||||
:active-value="1"
|
||||
:inactive-value="0"
|
||||
active-text="全屏"
|
||||
inactive-text="平铺"
|
||||
>
|
||||
</el-switch>
|
||||
</div>
|
||||
</div>
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
</div>
|
||||
<div class="set-object">
|
||||
建议选择小图片,加载比较迅速,推荐背景图片下载网站:<a href="https://www.toptal.com/designers/subtlepatterns/" target="_blank">点击进入</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<h3>首页文章列表外观</h3>
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
最新发布文章图标提示
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-switch
|
||||
v-model="set.theme.postlist_newnote"
|
||||
:active-value="1"
|
||||
:inactive-value="0"
|
||||
>
|
||||
</el-switch>
|
||||
</div>
|
||||
</div>
|
||||
<h3>文章页面内容外观</h3>
|
||||
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
底部显示上一篇下一篇面板
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-switch
|
||||
v-model="set.theme.postcontent.turn_page_plane"
|
||||
:active-value="1"
|
||||
:inactive-value="0"
|
||||
>
|
||||
</el-switch>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -70,4 +70,175 @@
|
|||
<div class="set-object">
|
||||
点击图片直接当前页面打开
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<h3>SMTP 邮件服务器</h3>
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
功能开关
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-switch
|
||||
v-model="set.module.smtp"
|
||||
:active-value="1"
|
||||
:inactive-value="0"
|
||||
>
|
||||
</el-switch>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
发件人邮箱
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-input placeholder="" v-model="set.module.smtpuser" size="small">
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
发件人密码
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-input placeholder="" v-model="set.module.smtppwd" size="small">
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
SMTP 邮件服务器地址
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-input placeholder="" v-model="set.module.smtphost" size="small">
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
SMTP端口
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-input placeholder="" v-model="set.module.smtpport" size="small">
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
发件人昵称
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-input placeholder="" v-model="set.module.smtpname" size="small">
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
SMTP加密方式
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-radio v-model="set.module.smtpencrypttype" label="no">不加密</el-radio>
|
||||
<el-radio v-model="set.module.smtpencrypttype" label="ssl">SSL/TLS</el-radio>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-input placeholder="收件邮箱地址" v-model="set.module.testmail" size="small">
|
||||
</el-input>
|
||||
<br>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-button slot="append" type="primary" size="small" @click="mailtest">发信测试</el-button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
</div>
|
||||
<div class="set-object">
|
||||
如果发信失败,可以使用插件:Easy WP SMTP,来替代主题发信功能。
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3>防转载模块</h3>
|
||||
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
开启防转载模块
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-switch
|
||||
v-model="set.module.reprint.open"
|
||||
:active-value="1"
|
||||
:inactive-value="0"
|
||||
>
|
||||
</el-switch>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
超过文本长度禁止复制开关
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-switch
|
||||
v-model="set.module.reprint.copylenopen"
|
||||
:active-value="1"
|
||||
:inactive-value="0"
|
||||
>
|
||||
</el-switch>
|
||||
</div>
|
||||
</div>
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
允许复制文本长度
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-input type="number" placeholder="" v-model="set.module.reprint.copylen" size="small">
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
</div>
|
||||
<div class="set-object">
|
||||
可以设置用户可以复制文本长度,超过这个长度就禁止复制,默认为10
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
复制成功提示内容
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-input placeholder="" v-model="set.module.reprint.msg" size="small">
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
复制成功自动添加来源网址
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-switch
|
||||
v-model="set.module.reprint.addurl"
|
||||
:active-value="1"
|
||||
:inactive-value="0"
|
||||
>
|
||||
</el-switch>
|
||||
</div>
|
||||
</div>
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
</div>
|
||||
<div class="set-object">
|
||||
在用户复制内容成功以后,自动添加本站网址(复制超过100个字生效)
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -242,6 +242,39 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
关闭修改密码和邮箱邮件通知
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-switch
|
||||
v-model="set.optimization.notification_changepwdandmail_email"
|
||||
:active-value="1"
|
||||
:inactive-value="0"
|
||||
>
|
||||
</el-switch>
|
||||
</div>
|
||||
</div>
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
关闭网站用户注册邮件通知
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-switch
|
||||
v-model="set.optimization.notification_reg_email"
|
||||
:active-value="1"
|
||||
:inactive-value="0"
|
||||
>
|
||||
</el-switch>
|
||||
</div>
|
||||
</div>
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
</div>
|
||||
<div class="set-object">
|
||||
WordPress在用户修改密码和邮箱,用户注册会发送邮件给站长邮箱,建议关闭
|
||||
</div>
|
||||
</div>
|
||||
<h3>评论优化</h3>
|
||||
|
||||
<div class="set-plane">
|
||||
|
|
|
@ -28,6 +28,19 @@
|
|||
</div>
|
||||
</div>
|
||||
<h3>文章版权</h3>
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
开启文章版权显示
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-switch
|
||||
v-model="set.post.copyright_show"
|
||||
:active-value="1"
|
||||
:inactive-value="0"
|
||||
>
|
||||
</el-switch>
|
||||
</div>
|
||||
</div>
|
||||
<div class="set-plane set-plane-nocenter">
|
||||
<div class="set-title">
|
||||
版权内容(支持HTML)
|
||||
|
@ -51,4 +64,46 @@
|
|||
<p><#url#>:当前文章地址</p>
|
||||
<p>换行请使用html代码:<br>
|
||||
</div>
|
||||
</div>
|
||||
<h3>文章目录设置</h3>
|
||||
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
默认开启目录
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-switch
|
||||
v-model="set.post.defaultcatalog"
|
||||
:active-value="1"
|
||||
:inactive-value="0"
|
||||
>
|
||||
</el-switch>
|
||||
</div>
|
||||
</div>
|
||||
<h3>打赏设置</h3>
|
||||
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
打赏二维码图1
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-input placeholder="" v-model="set.post.reward1" size="small">
|
||||
<el-button size="mini" slot="append" icon="el-icon-picture"
|
||||
@click="selectImg('reward1')">上传
|
||||
</el-button>
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
打赏二维码图2
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-input placeholder="" v-model="set.post.reward2" size="small">
|
||||
<el-button size="mini" slot="append" icon="el-icon-picture"
|
||||
@click="selectImg('reward2')">上传
|
||||
</el-button>
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
|
@ -72,52 +72,6 @@
|
|||
文章里面有图片的情况下,自动读取第一张图片作为缩略图
|
||||
</div>
|
||||
</div>
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
底部图片1
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-input placeholder="" v-model="set.routine.footer_1_imgurl" size="small">
|
||||
<el-button size="mini" slot="append" icon="el-icon-picture"
|
||||
@click="selectImg('set.routine.footer_1_imgurl')">上传
|
||||
</el-button>
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
底部图片1名称
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-input placeholder="" v-model="set.routine.footer_1_imgname" size="small">
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
底部图片2
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-input placeholder="" v-model="set.routine.footer_2_imgurl" size="small">
|
||||
<el-button size="mini" slot="append" icon="el-icon-picture"
|
||||
@click="selectImg('set.routine.footer_2_imgurl')">上传
|
||||
</el-button>
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
底部图片2名称
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-input placeholder="" v-model="set.routine.footer_2_imgname" size="small">
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
文章摘要长度
|
||||
|
@ -142,6 +96,15 @@
|
|||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
公安联网备案号
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-input placeholder="" v-model="set.routine.police" size="small">
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
<h3>文章设置</h3>
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
|
|
|
@ -1,7 +1,32 @@
|
|||
<h3>用户中心</h3>
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
开启用户中心
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-switch
|
||||
v-model="set.user.usercenter"
|
||||
:active-value="1"
|
||||
:inactive-value="0"
|
||||
>
|
||||
</el-switch>
|
||||
</div>
|
||||
</div>
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
自定义用户中心页面地址
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-input placeholder="" v-model="set.user.usercenterurl" size="small">
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<h3>自定义登录</h3>
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
隐藏登录按钮
|
||||
隐藏登录注册按钮
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-switch
|
||||
|
@ -15,7 +40,7 @@
|
|||
<div class="set-plane set-plane-note">
|
||||
<div class="set-title"></div>
|
||||
<div class="set-object">
|
||||
未登录用户不会显示登录按钮,登录后会显示用户菜单
|
||||
未登录用户不会显示登录注册按钮,登录后会显示用户菜单
|
||||
</div>
|
||||
</div>
|
||||
<div class="set-plane">
|
||||
|
@ -170,15 +195,61 @@ if (!get_option('users_can_register')) {
|
|||
<div class="set-object">
|
||||
<el-radio v-model="set.user.regapproved" label="approved">默认通过审核</el-radio>
|
||||
<el-radio v-model="set.user.regapproved" label="manualapprov">后台手动审核</el-radio>
|
||||
<el-radio v-model="set.user.regapproved" label="mailapproved">邮箱验证激活</el-radio>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="set-plane set-plane-note">
|
||||
<div class="set-title"></div>
|
||||
<div class="set-object">
|
||||
建议开启审核功能,后台审核通过的用户方可正常登陆,其他审核方式更新中
|
||||
建议开启审核功能,后台审核通过的用户方可正常登陆
|
||||
</div>
|
||||
</div>
|
||||
<h3>自定义密码找回</h3>
|
||||
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
开启自定义密码找回页面
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-switch
|
||||
v-model="set.user.repassword"
|
||||
:active-value="1"
|
||||
:inactive-value="0"
|
||||
>
|
||||
</el-switch>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
<div class="set-plane set-plane-note">
|
||||
<div class="set-title"></div>
|
||||
<div class="set-object">
|
||||
请在页面->创建页面->页面模板选择[CorrPress自定义密码找回页面]
|
||||
<el-tag type="danger" size="mini">无法登录</el-tag>
|
||||
!
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
自定义密码找回页面地址
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-input placeholder="" v-model="set.user.repasswordurl" size="small">
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
自定义找回密码背景图片地址
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-input placeholder="" v-model="set.user.repasswordimg" size="small">
|
||||
<el-button size="mini" slot="append" icon="el-icon-picture"
|
||||
@click="selectImg('set.user.repasswordimg')">上传
|
||||
</el-button>
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
158
footer.php
|
@ -1,17 +1,77 @@
|
|||
<?php
|
||||
global $set;
|
||||
|
||||
echo '<script>console.log("\n %c CorePress主题v ' . THEME_VERSIONNAME . ' %c by applek | www.lovestu.com", "color:#fff;background:#409EFF;padding:5px 0;", "color:#eee;background:#444;padding:5px 10px;");
|
||||
</script>';
|
||||
/*吃水不忘挖井人,请勿删除版权,让更多人使用,作者才有动力更新下去*/
|
||||
if ($set['code']['footcode'] != null) {
|
||||
echo base64_decode($set['code']['footcode']);
|
||||
}
|
||||
if ($set['code']['alifront'] != null) {
|
||||
echo '<script src="' . $set['code']['alifront'] . '"></script>';
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="go-top-plane" title="返回顶部">
|
||||
<i class="fa fa-arrow-up" aria-hidden="true"></i>
|
||||
</div>
|
||||
<script>
|
||||
|
||||
var copynotmsg = 0;
|
||||
var reprint = {
|
||||
open: 0,
|
||||
msg: '',
|
||||
copylenopen: 0,
|
||||
copylen: 10,
|
||||
addurl: 0
|
||||
}
|
||||
<?php
|
||||
if ($set['module']['reprint']['open'] == 1) {
|
||||
echo 'reprint.open=1;';
|
||||
echo 'reprint.msg="' . $set['module']['reprint']['msg'] . '";';
|
||||
if ($set['module']['reprint']['copylenopen'] == 1) {
|
||||
echo 'reprint.copylenopen=1;';
|
||||
echo 'reprint.copylen=' . $set['module']['reprint']['copylen'] . ';';
|
||||
}
|
||||
if ($set['module']['reprint']['addurl'] == 1) {
|
||||
echo 'reprint.addurl=1;';
|
||||
}
|
||||
}
|
||||
?>
|
||||
document.body.oncopy = function () {
|
||||
var copytext = window.getSelection().toString();
|
||||
if (copynotmsg == 0) {
|
||||
if (reprint.open == 1) {
|
||||
if (reprint.copylenopen == 1) {
|
||||
if (copytext.length > reprint.copylen) {
|
||||
addarelt('复制内容太长,禁止复制', 'erro');
|
||||
JScopyText('');
|
||||
copynotmsg = 0;
|
||||
} else {
|
||||
copyaddurl(copytext);
|
||||
}
|
||||
} else {
|
||||
copyaddurl(copytext);
|
||||
}
|
||||
}
|
||||
}
|
||||
copynotmsg = 0;
|
||||
}
|
||||
|
||||
function copyaddurl(content) {
|
||||
if (reprint.addurl == 0) {
|
||||
addarelt(reprint.msg, 'succ');
|
||||
} else {
|
||||
|
||||
if (content.length > 100) {
|
||||
addarelt(reprint.msg, 'succ');
|
||||
JScopyText(content + '\n 【来源:<?php echo curPageURL()?>,转载请注明】');
|
||||
} else {
|
||||
addarelt(reprint.msg, 'succ');
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$('.go-top-plane').click(function () {
|
||||
$('html,body').animate({scrollTop: '0px'}, 500);
|
||||
});
|
||||
|
@ -33,10 +93,23 @@ if ($set['code']['footcode'] != null) {
|
|||
$(document).ready(function () {
|
||||
<?php
|
||||
if ($set['module']['imglightbox'] == 1) {
|
||||
|
||||
if (is_page() || is_single()) {
|
||||
?>
|
||||
var imgarr = $('.post-content-content').find('img');
|
||||
var imgarr = $('.post-content-content').find('img').not('.c-downbtn-icon').not('.post-end-tools');
|
||||
|
||||
for (var i = 0; i < imgarr.length; i++) {
|
||||
var imgurl = $(imgarr[i])[0].src;
|
||||
<?php
|
||||
if ($set['module']['imglazyload'] == 1) {
|
||||
?>
|
||||
var imgurl = $(imgarr[i]).attr('data-original');
|
||||
<?php
|
||||
}else {
|
||||
?>
|
||||
var imgurl = $(imgarr[i]).attr('src');
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
var html = imgarr[i].outerHTML;
|
||||
if ($(imgarr[i]).parent()[0].tagName != 'A') {
|
||||
$(imgarr[i]).replaceWith('<a data-fancybox="gallery" data-type="image" href="' + imgurl + '">' + html + '</a>');
|
||||
|
@ -46,7 +119,8 @@ if ($set['code']['footcode'] != null) {
|
|||
"close"
|
||||
];
|
||||
$('a[href*=".jpg"], a[href*=".jpeg"], a[href*=".png"], a[href*=".gif"], a[href*=".bmp"]').fancybox({});
|
||||
<?
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
@ -64,7 +138,7 @@ if ($set['code']['footcode'] != null) {
|
|||
set_catalog_position();
|
||||
$('#post-catalog').css('visibility', 'visible');
|
||||
$('#post-catalog').css('opacity', '1');
|
||||
if ($(".post-content h2").length == 0) {
|
||||
if ($(".post-content h2").length == 0 && $(".post-content h3").length == 0) {
|
||||
$('#post-catalog').css('visibility', 'hidden');
|
||||
}
|
||||
|
||||
|
@ -109,12 +183,14 @@ if ($set['code']['footcode'] != null) {
|
|||
|
||||
<?php
|
||||
global $corepress_post_meta;
|
||||
if ($corepress_post_meta['catalog'] != 1) {
|
||||
|
||||
}
|
||||
if (is_page() || is_single()) {
|
||||
if ($set['theme']['sidebar_position'] == 1) {
|
||||
?>
|
||||
if ($('.post-info').length == 0) {
|
||||
return;
|
||||
}
|
||||
var title_x = $('.post-info').offset().left;
|
||||
|
||||
$('#post-catalog').css('left', title_x - 200 + 'px');
|
||||
<?php
|
||||
}else {
|
||||
|
@ -123,7 +199,9 @@ if ($set['code']['footcode'] != null) {
|
|||
title_x = title_x + $('.post-info')[0].getBoundingClientRect().width
|
||||
$('#post-catalog').css('left', title_x + 40 + 'px');
|
||||
<?php
|
||||
}?>
|
||||
}
|
||||
}
|
||||
?>
|
||||
}
|
||||
|
||||
function go_catalog(catalogname, tagName) {
|
||||
|
@ -143,7 +221,7 @@ if ($set['code']['footcode'] != null) {
|
|||
$("img").lazyload({effect: "fadeIn"});
|
||||
}
|
||||
)
|
||||
<?
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</script>
|
||||
|
@ -157,43 +235,43 @@ if ($set['module']['highlight'] == 1) {
|
|||
|
||||
<div class="footer-plane">
|
||||
<div class="footer-container">
|
||||
<div>
|
||||
<?php dynamic_sidebar('footer_widget'); ?>
|
||||
</div>
|
||||
<div>
|
||||
<?php
|
||||
get_template_part('component/nav-footer');
|
||||
?>
|
||||
<!--吃水不忘挖井人,请勿删除版权,让更多人使用,作者才有动力更新下去-->
|
||||
<div class="footer-info">
|
||||
Copyright © 2020 <?php bloginfo('name'); ?> · <a
|
||||
href="https://www.lovestu.com/corepress.html">CorePress主题</a><?php
|
||||
if ($set['routine']['icp'] != null) {
|
||||
echo '·' . '<a href="https://beian.miit.gov.cn/" target="_blank">' . $set['routine']['icp'] . '</a>';
|
||||
}
|
||||
<div class="footer-left">
|
||||
<div>
|
||||
<?php dynamic_sidebar('footer_widget'); ?>
|
||||
<?php
|
||||
get_template_part('component/nav-footer');
|
||||
//吃水不忘挖井人,请勿主题信息,让更多人使用,作者才有动力更新下去
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer-details">
|
||||
<div><?php
|
||||
if ($set['routine']['footer_1_imgurl'] != null) {
|
||||
<div class="footer-info">
|
||||
Copyright © 2020 <?php bloginfo('name'); ?>
|
||||
<span class="theme-copyright">
|
||||
<a
|
||||
href="https://www.lovestu.com/corepress.html">CorePress主题</a>
|
||||
</span>
|
||||
Powered by WordPress
|
||||
</div>
|
||||
<div class="footer-info">
|
||||
<?php
|
||||
if ($set['routine']['icp'] != null) {
|
||||
echo '<span class="footer-icp"><img class="ipc-icon" src="' . file_get_img_url('icp.svg') . '" alt=""><a href="https://beian.miit.gov.cn/" target="_blank">' . $set['routine']['icp'] . '</a></span>';
|
||||
}
|
||||
if ($set['routine']['police'] != null) {
|
||||
echo '<span class="footer-icp"><img class="ipc-icon" src="' . file_get_img_url('police.svg') . '" alt=""><a href="http://www.beian.gov.cn/portal/registerSystemInfo/" target="_blank">' . $set['routine']['police'] . '</a></span>';
|
||||
}
|
||||
?>
|
||||
<img src="<?php echo $set['routine']['footer_1_imgurl'] ?>" alt="">
|
||||
<?
|
||||
}
|
||||
?>
|
||||
<p><?php echo $set['routine']['footer_1_imgname'] ?></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer-details footer-right">
|
||||
<div>
|
||||
<?php
|
||||
if ($set['routine']['footer_2_imgurl'] != null) {
|
||||
?>
|
||||
<img src="<?php echo $set['routine']['footer_2_imgurl'] ?>" alt="">
|
||||
<?
|
||||
}
|
||||
dynamic_sidebar('footer_widget_right');
|
||||
?>
|
||||
<p><?php echo $set['routine']['footer_2_imgname'] ?></p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div>
|
||||
<?php wp_footer(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<?php
|
||||
define('THEME_NAME', 'CorePress');
|
||||
define('THEME_VERSION', 15);
|
||||
define('THEME_VERSION', 27);
|
||||
define('THEME_DOWNURL', 'https://www.lovestu.com');
|
||||
define('THEME_VERSIONNAME', '2.4');
|
||||
define('THEME_VERSIONNAME', '3.6');
|
||||
define('THEME_PATH', get_template_directory());
|
||||
define('THEME_STATIC_PATH', get_template_directory_uri() . '/static');
|
||||
define('THEME_CSS_PATH', THEME_STATIC_PATH . '/css');
|
||||
|
@ -18,7 +18,11 @@ require_once(FRAMEWORK_PATH . '/utils.php');
|
|||
require_once(FRAMEWORK_PATH . '/support.php');
|
||||
require_once(FRAMEWORK_PATH . '/users.php');
|
||||
require_once(FRAMEWORK_PATH . '/ajax.php');
|
||||
require_once(FRAMEWORK_PATH . '/shortcode.php');
|
||||
|
||||
require_once(FRAMEWORK_PATH . '/comment-pro.php');
|
||||
require_once(THEME_PATH . '/widgets/comments.php');
|
||||
add_editor_style('static/css/editor-style.css');
|
||||
require_once(THEME_PATH . '/widgets/author.php');
|
||||
|
||||
require_once(FRAMEWORK_PATH . '/shortcode.php');
|
||||
add_editor_style('static/css/editor-style.css');
|
||||
error_reporting(0);
|
|
@ -22,8 +22,6 @@ for ($i = 0; $i < 4; $i++) {
|
|||
$captch_code .= $fontcontent;
|
||||
}
|
||||
$_SESSION['authcode'] = $captch_code;//将变量保存再session的authcode变量中
|
||||
|
||||
|
||||
//该循环,循环画背景干扰的点
|
||||
/*for($m=0;$m<=600;$m++){
|
||||
|
||||
|
|
|
@ -67,15 +67,32 @@ function CorePress_reguser()
|
|||
}
|
||||
|
||||
if (email_exists($array['user_email']) != false) {
|
||||
$json['code'] = 0;
|
||||
$json['msg'] = '注册失败,邮箱已存在!';
|
||||
wp_die(json_encode($json));
|
||||
$recode = CorePress_useractive('email', $array['user_email']);
|
||||
if ($recode == 1) {
|
||||
$json['code'] = 0;
|
||||
$json['msg'] = '注册失败,邮箱已存在!';
|
||||
wp_die(json_encode($json));
|
||||
} else if ($recode == 2) {
|
||||
$json['code'] = 0;
|
||||
$json['msg'] = '用户已存在,请前往激活!';
|
||||
wp_die(json_encode($json));
|
||||
}
|
||||
|
||||
}
|
||||
if (username_exists($array['user_login']) != null) {
|
||||
$json['code'] = 0;
|
||||
$json['msg'] = '注册失败,用户名已存在!';
|
||||
wp_die(json_encode($json));
|
||||
$recode = CorePress_useractive('user_login', $array['user_login']);
|
||||
|
||||
if ($recode == 1) {
|
||||
$json['code'] = 0;
|
||||
$json['msg'] = '注册失败,用户名已存在!';
|
||||
wp_die(json_encode($json));
|
||||
} else if ($recode == 2) {
|
||||
$json['code'] = 0;
|
||||
$json['msg'] = '用户已存在,请前往激活!';
|
||||
wp_die(json_encode($json));
|
||||
}
|
||||
}
|
||||
|
||||
$res = wp_insert_user($array);
|
||||
if ($res) {
|
||||
if ($set['user']['regapproved'] == 'approved') {
|
||||
|
@ -85,6 +102,9 @@ function CorePress_reguser()
|
|||
//update_user_meta($res, 'corepress_approve', 1);
|
||||
$json['code'] = 2;
|
||||
$json['msg'] = '注册成功!请等待管理员审核后方可登陆';
|
||||
} else if ($set['user']['regapproved'] == 'mailapproved') {
|
||||
$json['code'] = 2;
|
||||
$json['msg'] = '注册成功!我们给您邮箱发送了一封激活邮件,请按照邮件提示激活用户';
|
||||
}
|
||||
wp_die(json_encode($json));
|
||||
} else {
|
||||
|
@ -94,31 +114,112 @@ function CorePress_reguser()
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param $field
|
||||
* @param $text
|
||||
* @return int 返回1已存在激活用户,0用户失效,重新注册;2用户已注册还没激活
|
||||
*/
|
||||
function CorePress_useractive($field, $text)
|
||||
{
|
||||
//查看是否激活并且重新注册
|
||||
$userObj = get_user_by($field, $text);
|
||||
|
||||
if (get_user_meta($userObj->ID, 'corepress_approve', true) == 0) {
|
||||
return 1;
|
||||
} else {
|
||||
|
||||
$activation_key = $userObj->user_activation_key;
|
||||
|
||||
if ($activation_key != null && strpos($activation_key, ":") != false) {
|
||||
$arr = explode(":", $activation_key);
|
||||
$time = $arr[0];
|
||||
$activation_key = $arr[1];
|
||||
$nowtime = time();
|
||||
|
||||
if (($nowtime - $time) > 86400 || ($nowtime - $time) < -86400) {
|
||||
wp_delete_user($userObj->ID);
|
||||
return 0;
|
||||
} else {
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
function CorePress_edit_window_html()
|
||||
{
|
||||
file_load_js('jquery.min.js');
|
||||
?>
|
||||
|
||||
<div id="corepress-edit-window">
|
||||
<div class="corepress-edit-window">
|
||||
<h3>短代码</h3>
|
||||
<button class="el-button el-button--default el-button--small corepress-edit-window-btn"
|
||||
onclick="addshortcode('title-plane')">标题面板
|
||||
</button>
|
||||
<button class="el-button el-button--default el-button--small corepress-edit-window-btn"
|
||||
onclick="addshortcode('start-plane')">标星面板
|
||||
</button>
|
||||
<button class="el-button el-button--default el-button--small corepress-edit-window-btn"
|
||||
onclick="addshortcode('icon-url')">图标超链接
|
||||
</button>
|
||||
<button class="el-button el-button--default el-button--small corepress-edit-window-btn"
|
||||
onclick="addshortcode('zd-plane')">折叠面板
|
||||
</button>
|
||||
<button class="el-button el-button--default el-button--small corepress-edit-window-btn"
|
||||
onclick="addshortcode('loginshow')">登录可见
|
||||
</button>
|
||||
<button class="el-button el-button--default el-button--small corepress-edit-window-btn"
|
||||
onclick="addshortcode('clickshow')">点击可见
|
||||
</button>
|
||||
<div class="short-plane-list">
|
||||
<button class="add-shortcode-btn el-button el-button--default el-button--small corepress-edit-window-btn"
|
||||
shortcode="title-plane">标题面板
|
||||
</button>
|
||||
<button class="add-shortcode-btn el-button el-button--default el-button--small corepress-edit-window-btn"
|
||||
shortcode="icon-url">图标超链接
|
||||
</button>
|
||||
<button class="add-shortcode-btn el-button el-button--default el-button--small corepress-edit-window-btn"
|
||||
shortcode="zd-plane">折叠面板
|
||||
</button>
|
||||
<button class="add-shortcode-btn el-button el-button--default el-button--small corepress-edit-window-btn"
|
||||
shortcode="loginshow">登录可见
|
||||
</button>
|
||||
<button class="add-shortcode-btn el-button el-button--default el-button--small corepress-edit-window-btn"
|
||||
shortcode="clickshow">点击可见
|
||||
</button>
|
||||
<button class="add-shortcode-btn el-button el-button--default el-button--small corepress-edit-window-btn"
|
||||
shortcode="pwdshow">密码可见
|
||||
</button>
|
||||
</div>
|
||||
<div class="short-plane">
|
||||
<div>标星面板:
|
||||
<select class="select-start-plane">
|
||||
<option value="1">黄色</option>
|
||||
<option value="2">蓝色</option>
|
||||
<option value="3">红色</option>
|
||||
<option value="4">灰色</option>
|
||||
</select>
|
||||
</div>
|
||||
<button class="add-shortcode-btn el-button el-button--default el-button--small corepress-edit-window-btn"
|
||||
shortcode="start-plane">插入标星面板
|
||||
</button>
|
||||
</div>
|
||||
<div class="short-plane">
|
||||
<div>提示面板:
|
||||
<select class="select-c-alert">
|
||||
<option value="info">默认</option>
|
||||
<option value="success">成功</option>
|
||||
<option value="warning">警告</option>
|
||||
<option value="error">错误</option>
|
||||
</select>
|
||||
</div>
|
||||
<button class="add-shortcode-btn el-button el-button--default el-button--small corepress-edit-window-btn"
|
||||
shortcode="c-alert">插入提示面板
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="short-plane">
|
||||
<div>下载面板:
|
||||
<select class="select-c-downbtn">
|
||||
<option value="default">默认</option>
|
||||
<option value="bd">百度</option>
|
||||
<option value="ty">天翼</option>
|
||||
<option value="ct">诚通</option>
|
||||
<option value="lz">蓝奏</option>
|
||||
<option value="360">360</option>
|
||||
<option value="wy">微云</option>
|
||||
<option value="github">Github</option>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
<button class="add-shortcode-btn el-button el-button--default el-button--small corepress-edit-window-btn"
|
||||
shortcode="c-downbtn">插入下载面板
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<h3>功能拓展</h3>
|
||||
<button class="el-button el-button--default el-button--small corepress-edit-window-btn"
|
||||
|
@ -132,6 +233,34 @@ function CorePress_edit_window_html()
|
|||
<a href="https://www.yuque.com/applek/corepress/shortcode" target="_blank">短代码相关说明</a>
|
||||
</p>
|
||||
</div>
|
||||
<script>
|
||||
$('.add-shortcode-btn').click(function () {
|
||||
var shortcodename = $(this).attr('shortcode');
|
||||
if (shortcodename == 'title-plane') {
|
||||
addshortcode('title-plane')
|
||||
} else if (shortcodename == 'icon-url') {
|
||||
addshortcode('icon-url')
|
||||
} else if (shortcodename == 'zd-plane') {
|
||||
addshortcode('zd-plane')
|
||||
} else if (shortcodename == 'clickshow') {
|
||||
addshortcode('clickshow')
|
||||
} else if (shortcodename == 'loginshow') {
|
||||
addshortcode('loginshow')
|
||||
} else if (shortcodename == 'pwdshow') {
|
||||
addshortcode('pwdshow')
|
||||
} else if (shortcodename == 'start-plane') {
|
||||
$type = $('.select-start-plane option:selected').val();
|
||||
addshortcode('start-plane', $type);
|
||||
} else if (shortcodename == 'c-alert') {
|
||||
$type = $('.select-c-alert option:selected').val();
|
||||
addshortcode('c-alert', $type)
|
||||
} else if (shortcodename == 'c-downbtn') {
|
||||
$type = $('.select-c-downbtn option:selected').val();
|
||||
addshortcode('c-downbtn', $type)
|
||||
|
||||
}
|
||||
})
|
||||
</script>
|
||||
</div>
|
||||
<?php
|
||||
wp_die();
|
||||
|
@ -181,16 +310,369 @@ function corepress_resetuser()
|
|||
}
|
||||
}
|
||||
|
||||
function jiemi()
|
||||
|
||||
function corepress_mailtest()
|
||||
{
|
||||
$code = $_GET['code'];
|
||||
print_r(json_decode(options::unlock($code)));
|
||||
wp_die();
|
||||
global $set;
|
||||
$set['testmail']['user'] = $_POST['user'];
|
||||
$set['testmail']['pwd'] = $_POST['pwd'];
|
||||
$set['testmail']['host'] = $_POST['host'];
|
||||
$set['testmail']['port'] = $_POST['port'];
|
||||
$set['testmail']['name'] = $_POST['name'];
|
||||
$set['testmail']['type'] = $_POST['type'];
|
||||
$set['testmail']['testmail'] = $_POST['testmail'];
|
||||
add_action('phpmailer_init', 'corepress_mail_test', 10);
|
||||
$headers = array('Content-Type: text/html; charset=UTF-8');
|
||||
$mailre = wp_mail($set['testmail']['testmail'], 'CorePress主题测试邮件', '这是一封测试邮件,如果你看到这一条邮件,说明主题的SMTP服务器配置成功', $headers);
|
||||
remove_action('phpmailer_init', 'corepress_mail_test', 10);
|
||||
if ($mailre == 1) {
|
||||
$data['code'] = 200;
|
||||
$data['msg'] = '发送成功';
|
||||
} else {
|
||||
$data['code'] = 500;
|
||||
$data['msg'] = '发送失败';
|
||||
}
|
||||
wp_die(json_encode($data));
|
||||
}
|
||||
|
||||
function corepress_mail_test($phpmailer)
|
||||
{
|
||||
global $set;
|
||||
$phpmailer->From = $set['testmail']['user']; //发件人邮箱
|
||||
$phpmailer->FromName = $set['testmail']['name']; //发件人昵称
|
||||
$phpmailer->Host = $set['testmail']['host']; //SMTP服务器地址
|
||||
$phpmailer->Port = $set['testmail']['port']; //SMTP端口,常用端口有25、465、587
|
||||
$phpmailer->SMTPSecure = $set['testmail']['type']; //SMTP加密方式,常用的有SSL/TLS
|
||||
$phpmailer->Username = $set['testmail']['user']; //邮箱帐号
|
||||
$phpmailer->Password = $set['testmail']['pwd']; //邮箱密码。如果上面是qq邮箱这里就是QQ邮箱授权码。
|
||||
$phpmailer->IsSMTP(); //使用SMTP发送
|
||||
$phpmailer->SMTPAuth = true; //启用SMTPAuth服务
|
||||
}
|
||||
|
||||
function corepress_approveuser()
|
||||
{
|
||||
if (islogin()) {
|
||||
corepress_jmp_message('你已经登录!即将跳转首页...', get_bloginfo('url'));
|
||||
wp_die();
|
||||
} else {
|
||||
if (isset($_GET['key']) && $_GET['id']) {
|
||||
$key = $_GET['key'];
|
||||
$userid = $_GET['id'];
|
||||
if (get_user_meta($userid, 'corepress_approve', true) == 1) {
|
||||
$userObj = get_user_by('ID', $userid);
|
||||
$activation_key = $userObj->user_activation_key;
|
||||
if ($activation_key != null && strpos($activation_key, ":") == true) {
|
||||
$arr = explode(":", $activation_key);
|
||||
$time = $arr[0];
|
||||
$activation_key = $arr[1];
|
||||
$nowtime = time();
|
||||
if ($nowtime - $time > 86400 || $nowtime - $time < -86400) {
|
||||
wp_die('激活过期,请重新注册');
|
||||
} else {
|
||||
if ($key == $activation_key) {
|
||||
update_user_meta($userid, 'corepress_approve', 0);
|
||||
corepress_jmp_message('激活成功!请登陆账号,即将跳转登录页...', wp_login_url());
|
||||
wp_die();
|
||||
} else {
|
||||
corepress_jmp_message('激活错误!即将跳转首页...', get_bloginfo('url'));
|
||||
wp_die('激活错误');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
corepress_jmp_message('正常账户,请登陆,即将跳转登录页...', wp_login_url());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function CorePress_lostpass()
|
||||
{
|
||||
if (islogin()) {
|
||||
ajax_die('你已经登录');
|
||||
} else {
|
||||
session_start();
|
||||
if (isset($_POST['key']) && $_POST['user']) {
|
||||
$code = $_POST['key'];
|
||||
$user = $_POST['user'];
|
||||
if (strtoupper($code) != $_SESSION['authcode']) {
|
||||
ajax_die('验证码错误');
|
||||
|
||||
} else {
|
||||
if (strpos($user, '@')) { //判断用户提交的是邮件还是用户名
|
||||
$user_data = get_user_by_email($user); //通过Email获取用户数据
|
||||
if (empty($user_data)) {
|
||||
ajax_die('此邮箱无效');
|
||||
} else {
|
||||
if (reset_user_password($user_data) == 1) {
|
||||
ajax_die('已经发送一封重置密码链接到您的邮箱', 1);
|
||||
}
|
||||
|
||||
}
|
||||
} else {
|
||||
|
||||
$user_data = get_user_by('login', $user); //通过用户名获取用户数据
|
||||
if (empty($user_data) || $user_data->caps['administrator'] == 1) { //排除管理员
|
||||
ajax_die('用户名无效');
|
||||
} else {
|
||||
if (reset_user_password($user_data) == 1) {
|
||||
ajax_die('已经发送一封重置密码链接到您的邮箱', 1);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
ajax_die('发送邮件失败');
|
||||
}
|
||||
} else {
|
||||
wp_die('非法访问');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
add_action('wp_ajax_nopriv_jm', 'jiemi');
|
||||
function CorePress_resetpwd()
|
||||
{
|
||||
if (isset($_POST['key']) && isset($_POST['pwd']) && isset($_POST['userid'])) {
|
||||
$userid = $_POST['userid'];
|
||||
$key = $_POST['key'];
|
||||
$pwd = $_POST['pwd'];
|
||||
$userObj = get_user_by('ID', $userid);
|
||||
$activation_key = $userObj->user_activation_key;
|
||||
if ($activation_key != null && strpos($activation_key, ":") == true) {
|
||||
$arr = explode(":", $activation_key);
|
||||
$time = $arr[0];
|
||||
$activation_key = $arr[1];
|
||||
$nowtime = time();
|
||||
if ($nowtime - $time > 86400 || $nowtime - $time < -86400) {
|
||||
ajax_die('验证过期');
|
||||
} else {
|
||||
if ($key == $activation_key) {
|
||||
|
||||
$userdata = array(
|
||||
'ID' => $userid,
|
||||
'user_pass' => $pwd
|
||||
);
|
||||
$id = wp_update_user($userdata);
|
||||
if ($id == $userid) {
|
||||
$json['code'] = 1;
|
||||
$json['msg'] = '已成功重置密码,请重新登录';
|
||||
wp_die(json_encode($json));
|
||||
} else {
|
||||
ajax_die('未知错误');
|
||||
}
|
||||
|
||||
} else {
|
||||
ajax_die('验证失败');
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
ajax_die('验证失败');
|
||||
|
||||
}
|
||||
|
||||
} else {
|
||||
ajax_die('参数错误');
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
function CorePress_updateUserInfo()
|
||||
{
|
||||
if (isset($_POST['user']) && isset($_POST['description'])) {
|
||||
$user = $_POST['user'];
|
||||
$description = $_POST['description'];
|
||||
$currentUser = wp_get_current_user();
|
||||
wp_update_user(array('ID' => $currentUser->ID, 'display_name' => $user));
|
||||
update_user_meta($currentUser->ID, 'description', $description);
|
||||
ajax_die('更新成功', 1);
|
||||
|
||||
} else {
|
||||
ajax_die('参数错误');
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
function CorePress_getpwdmailcode()
|
||||
{
|
||||
session_start();
|
||||
$time = time();
|
||||
|
||||
if (!isset($_POST['type'])) {
|
||||
ajax_die('参数错误');
|
||||
}
|
||||
$type = $_POST['type'];
|
||||
$currentUser = wp_get_current_user();
|
||||
$key = md5($time);
|
||||
$key = substr($key, -4);
|
||||
|
||||
if ($type == 'changepwd') {
|
||||
$session_name = 'time_changepwd';
|
||||
if (isset($_SESSION[$session_name]) && $time - $_SESSION[$session_name] < 60) {
|
||||
ajax_die('发送频繁,请稍后再试');
|
||||
|
||||
}
|
||||
|
||||
$_SESSION['pwdmailcode'] = $key;
|
||||
$mail = $currentUser->user_email;
|
||||
$mail_content = '您好,您在本网站进行修改密码操作,你的验证码为:<span style="color: red">' . $key . '</span>【本验证码30分钟内有效,如果不是您的操作,请忽略】<br>';
|
||||
$mail_title = '[修改密码验证码]';
|
||||
|
||||
} elseif ($type == 'changemail') {
|
||||
$session_name = 'time_changemail';
|
||||
if (isset($_SESSION[$session_name]) && $time - $_SESSION[$session_name] < 60) {
|
||||
ajax_die('发送频繁,请稍后再试');
|
||||
|
||||
}
|
||||
|
||||
$_SESSION['changemailcode'] = $key;
|
||||
$mail = $currentUser->user_email;
|
||||
$mail_content = '您好,您在本网站进行更换邮箱操作,你的验证码为:<span style="color: red">' . $key . '</span>【本验证码30分钟内有效,如果不是您的操作,请忽略】<br>';
|
||||
$mail_title = '[更换邮箱验证码]';
|
||||
|
||||
|
||||
} elseif ($type == 'bindemail') {
|
||||
$re_arry = parameter_verification(array('oldcode', 'mail'), 1);
|
||||
$session_name = 'time_bindemail';
|
||||
if (isset($_SESSION[$session_name]) && $time - $_SESSION[$session_name] < 60) {
|
||||
ajax_die('发送频繁,请稍后再试');
|
||||
}
|
||||
$oldcode = $_POST['oldcode'];
|
||||
if ($time - $_SESSION['time_changemail'] > 1800) {
|
||||
ajax_die('原始邮箱验证码超时');
|
||||
}
|
||||
|
||||
if ($oldcode != $_SESSION['changemailcode']) {
|
||||
ajax_die('原始邮箱验证码错误');
|
||||
}
|
||||
|
||||
$_SESSION['bindemailcode'] = $key;
|
||||
$mail = $_POST['mail'];
|
||||
$_SESSION['bindemail'] = $mail;
|
||||
if (!filter_var($mail, FILTER_VALIDATE_EMAIL)) {
|
||||
ajax_die('邮箱格式错误');
|
||||
}
|
||||
if (email_exists($mail)) {
|
||||
ajax_die('邮箱已经被绑定');
|
||||
}
|
||||
$mail_content = '您好,您在本网站进行绑定邮箱操作,你的验证码为:<span style="color: red">' . $key . '</span>【本验证码30分钟内有效,如果不是您的操作,请忽略】<br>';
|
||||
$mail_title = '[绑定邮箱验证码]';
|
||||
} else {
|
||||
ajax_die('参数错误');
|
||||
}
|
||||
$_SESSION[$session_name] = $time;
|
||||
$headers = array('Content-Type: text/html; charset=UTF-8');
|
||||
$mailre = wp_mail($mail, get_option('blogname', '【CorePress】') . $mail_title, $mail_content, $headers);
|
||||
if ($mailre == 1) {
|
||||
ajax_die('发送成功', 1);
|
||||
|
||||
} else {
|
||||
ajax_die('发送失败');
|
||||
}
|
||||
}
|
||||
|
||||
function CorePress_changepwd()
|
||||
{
|
||||
session_start();
|
||||
$time = time();
|
||||
if (!isset($_POST['oldpwd']) || !isset($_POST['newpwd']) || !isset($_POST['mailcode'])) {
|
||||
$json['code'] = 0;
|
||||
$json['msg'] = '参数错误';
|
||||
wp_die(json_encode($json));
|
||||
}
|
||||
$oldpwd = $_POST['oldpwd'];
|
||||
$newpwd = $_POST['newpwd'];
|
||||
$mailcode = $_POST['mailcode'];
|
||||
if (isset($_SESSION['pwdmailcodesendtime']) && $time - $_SESSION['pwdmailcodesendtime'] < 1800) {
|
||||
if ($_SESSION['pwdmailcode'] != $mailcode) {
|
||||
$json['code'] = 0;
|
||||
$json['msg'] = '验证码错误';
|
||||
wp_die(json_encode($json));
|
||||
}
|
||||
$currentUser = wp_get_current_user();
|
||||
|
||||
if (!wp_check_password($oldpwd, $currentUser->user_pass)) {
|
||||
$json['code'] = 0;
|
||||
$json['msg'] = '旧密码错误';
|
||||
wp_die(json_encode($json));
|
||||
} else {
|
||||
|
||||
if (!ctype_alnum($newpwd) || strlen($newpwd) < 8 || preg_match("/([\x81-\xfe][\x40-\xfe])/", $newpwd, $match) == true) {
|
||||
$json['code'] = 0;
|
||||
$json['msg'] = '密码不符合要求';
|
||||
wp_die(json_encode($json));
|
||||
}
|
||||
|
||||
wp_update_user(array('ID' => $currentUser->ID, 'user_pass' => $newpwd));
|
||||
$json['code'] = 1;
|
||||
$json['msg'] = '密码修改成功!';
|
||||
$_SESSION['pwdmailcode'] = '';
|
||||
$_SESSION['pwdmailcodesendtime'] = 0;
|
||||
wp_die(json_encode($json));
|
||||
}
|
||||
|
||||
} else {
|
||||
$json['code'] = 0;
|
||||
$json['msg'] = '验证码超时';
|
||||
wp_die(json_encode($json));
|
||||
}
|
||||
}
|
||||
|
||||
function CorePress_changebind()
|
||||
{
|
||||
session_start();
|
||||
$re_arry = parameter_verification(array('old_mail_code', 'new_mail_code', 'bind_mail', 'type'), 1);
|
||||
if ($re_arry['type'] == 'bindemail') {
|
||||
$time = time();
|
||||
$changemailcode = $_SESSION['changemailcode'];
|
||||
|
||||
$changemailcode_time = $_SESSION['time_changemail'];
|
||||
$bindemailcode = $_SESSION['bindemailcode'];
|
||||
$bindemailcode_time = $_SESSION['time_bindemail'];
|
||||
$bind_mail = $re_arry['bind_mail'];
|
||||
if ($time - $changemailcode_time > 1800) {
|
||||
ajax_die('原始邮箱验证码超时' . $changemailcode_time);
|
||||
}
|
||||
if ($time - $bindemailcode_time > 1800) {
|
||||
ajax_die('新邮箱验证码超时');
|
||||
}
|
||||
if ($changemailcode != $re_arry['old_mail_code'] || $_SESSION['bindemail'] != $bind_mail) {
|
||||
ajax_die('原始邮箱验证码错误');
|
||||
}
|
||||
if ($bindemailcode != $re_arry['new_mail_code']) {
|
||||
ajax_die('新邮箱验证码错误');
|
||||
}
|
||||
|
||||
$currentUser = wp_get_current_user();
|
||||
wp_update_user(array('ID' => $currentUser->ID, 'user_email' => $bind_mail));
|
||||
ajax_die('更换邮箱成功!', 1);
|
||||
$_SESSION['bindemailcode'] = null;
|
||||
$_SESSION['changemailcode'] = null;
|
||||
|
||||
} else {
|
||||
ajax_die('类型错误');
|
||||
}
|
||||
}
|
||||
|
||||
add_action('wp_ajax_corepress_changebind', 'CorePress_changebind');
|
||||
add_action('wp_ajax_corepress_changepwd', 'CorePress_changepwd');
|
||||
add_action('wp_ajax_corepress_getpwdmailcode', 'CorePress_getpwdmailcode');
|
||||
|
||||
add_action('wp_ajax_corepress_updateuserinfo', 'CorePress_updateUserInfo');
|
||||
|
||||
add_action('wp_ajax_nopriv_corepress_resetpwd', 'CorePress_resetpwd');
|
||||
add_action('wp_ajax_corepress_resetpwd', 'CorePress_resetpwd');
|
||||
|
||||
|
||||
add_action('wp_ajax_nopriv_corepress_lostpass', 'CorePress_lostpass');
|
||||
add_action('wp_ajax_corepress_lostpass', 'CorePress_lostpass');
|
||||
|
||||
add_action('wp_ajax_corepress_approveuser', 'corepress_approveuser');
|
||||
add_action('wp_ajax_nopriv_corepress_approveuser', 'corepress_approveuser');
|
||||
add_action('wp_ajax_corepress_mailtest', 'corepress_mailtest');
|
||||
add_action('wp_ajax_nopriv_resetuser', 'corepress_resetuser');
|
||||
add_action('wp_ajax_nopriv_corepress_login', 'CorePress_login');
|
||||
add_action('wp_ajax_nopriv_corepress_reguser', 'CorePress_reguser');
|
||||
|
|
|
@ -31,7 +31,7 @@ function my_comment($comment, $args, $depth)
|
|||
<div class="media-body">
|
||||
<?php echo __('<p class="author_name">') . get_comment_author_link() . $user . $reply . '</p>'; ?>
|
||||
<?php if ($comment->comment_approved == '0') : ?>
|
||||
<em>评论等待审核...</em><br/>
|
||||
<b>你的评论审核中,审核通过方能显示...</b><br/>
|
||||
<?php endif; ?>
|
||||
<div class="comment-text">
|
||||
<?php echo comment_text(); ?>
|
||||
|
|
|
@ -8,7 +8,7 @@ wp_enqueue_media();
|
|||
<div class="setmain">
|
||||
<div class="header-set-title">
|
||||
<div class="header-set-title-name">
|
||||
<?php file_load_img('wordpress.svg') ?><h2>GorePress 设置中心</h2>
|
||||
<?php file_load_img('wordpress.svg') ?><h2>CorePress 设置中心</h2>
|
||||
</div>
|
||||
<div>
|
||||
<el-link href="https://www.yuque.com/applek/corepress" :underline="false" target="_blank">
|
||||
|
@ -21,7 +21,7 @@ wp_enqueue_media();
|
|||
<div class="set-main-plane">
|
||||
<div class="set-main-menu">
|
||||
<el-menu
|
||||
default-active="1"
|
||||
default-active="2"
|
||||
class="set-main-menu-list"
|
||||
@select="selectMenu"
|
||||
>
|
||||
|
@ -116,9 +116,12 @@ wp_enqueue_media();
|
|||
file_load_js('vue.min.js');
|
||||
file_load_js('axios.min.js');
|
||||
file_load_js('base64.js');
|
||||
file_load_js('jquery.min.js');
|
||||
file_load_lib('element/index.js', 'js');
|
||||
global $set;
|
||||
|
||||
$setJosn = base64_encode(json_encode($set));
|
||||
|
||||
?>
|
||||
<script>
|
||||
var set = JSON.parse(BASE64.decode('<?php echo $setJosn ?>'));
|
||||
|
|
|
@ -12,9 +12,6 @@ function post_short_title_plane($atts, $content = null, $code = "")
|
|||
add_shortcode('start-plane', 'post_short_start_plane');
|
||||
function post_short_start_plane($atts, $content = null, $code = "")
|
||||
{
|
||||
/*if (isset($atts['title'])) {
|
||||
$title = "<p>{$atts['title']}</p>";
|
||||
}*/
|
||||
$html = '<div class="start-plane" type="' . $atts['type'] . '"><div>' . do_shortcode($content) . '</div></div>';
|
||||
return $html;
|
||||
}
|
||||
|
@ -72,5 +69,105 @@ function post_short_clickshow($atts, $content = null)
|
|||
}
|
||||
|
||||
|
||||
add_shortcode('c-alert', 'post_short_alert');
|
||||
|
||||
function post_short_alert($atts, $content = null)
|
||||
{
|
||||
$wporg_atts = shortcode_atts([
|
||||
'type' => 'info',
|
||||
], $atts);
|
||||
|
||||
if ($wporg_atts['type'] == 'warning') {
|
||||
return '<div class="c-alert c-alert-warning"><i class="far fa-exclamation-triangle"></i>' . do_shortcode($content) . '</div>';
|
||||
} elseif ($wporg_atts['type'] == 'success') {
|
||||
return '<div class="c-alert c-alert-success"><i class="fas fa-check-circle"></i>' . do_shortcode($content) . '</div>';
|
||||
} elseif ($wporg_atts['type'] == 'error') {
|
||||
return '<div class="c-alert c-alert-error"><i class="fas fa-exclamation-circle"></i>' . do_shortcode($content) . '</div>';
|
||||
} else {
|
||||
return '<div class="c-alert"><i class="far fa-info-circle"></i>' . do_shortcode($content) . '</div>';
|
||||
}
|
||||
}
|
||||
|
||||
add_shortcode('c-downbtn', 'post_short_c_downbtn');
|
||||
|
||||
function post_short_c_downbtn($atts, $content = '资源文件')
|
||||
{
|
||||
$wporg_atts = shortcode_atts([
|
||||
'type' => 'default',
|
||||
'pwd' => '',
|
||||
'url' => '',
|
||||
], $atts);
|
||||
if ($wporg_atts['type'] == 'bd') {
|
||||
$icons = '<img class="c-downbtn-icon" src="' . file_get_img_url('shortcode/c-downbtn/bdwp.svg') . '" alt="">';
|
||||
$source = '百度网盘';
|
||||
} elseif ($wporg_atts['type'] == 'ty') {
|
||||
$icons = '<img class="c-downbtn-icon" src="' . file_get_img_url('shortcode/c-downbtn/ty.png') . '" alt="">';
|
||||
$source = '天翼网盘';
|
||||
} elseif ($wporg_atts['type'] == '360') {
|
||||
$icons = '<img class="c-downbtn-icon" src="' . file_get_img_url('shortcode/c-downbtn/360.png') . '" alt="">';
|
||||
$source = '360网盘';
|
||||
} elseif ($wporg_atts['type'] == 'ct') {
|
||||
$icons = '<img class="c-downbtn-icon" src="' . file_get_img_url('shortcode/c-downbtn/ct.png') . '" alt="">';
|
||||
$source = '诚通网盘';
|
||||
} elseif ($wporg_atts['type'] == 'lz') {
|
||||
$icons = '<img class="c-downbtn-icon" src="' . file_get_img_url('shortcode/c-downbtn/lanzou.png') . '" alt="">';
|
||||
$source = '蓝奏网盘';
|
||||
} elseif ($wporg_atts['type'] == 'wy') {
|
||||
$icons = '<img class="c-downbtn-icon" src="' . file_get_img_url('shortcode/c-downbtn/weiyun.png') . '" alt="">';
|
||||
$source = '微云网盘';
|
||||
} elseif ($wporg_atts['type'] == 'github') {
|
||||
$icons = '<img class="c-downbtn-icon" src="' . file_get_img_url('shortcode/c-downbtn/github.svg') . '" alt="">';
|
||||
$source = 'Github';
|
||||
} else {
|
||||
$icons = '<img class="c-downbtn-icon" src="' . file_get_img_url('shortcode/c-downbtn/default.svg') . '" alt="">';
|
||||
$source = '默认网盘';
|
||||
}
|
||||
|
||||
if ($wporg_atts['pwd'] != null) {
|
||||
$pwd = ' | 提取码:<span class="c-downbtn-pwd-key">' . $wporg_atts['pwd'] . '</span> <i class="far fa-clone btn-copy-pwd" title="复制提取码"></i>';
|
||||
} else {
|
||||
$pwd = '';
|
||||
}
|
||||
return '
|
||||
<div class="c-downbtn">
|
||||
<div class="c-downbtn-item">
|
||||
<div class="c-downbtn-describe">
|
||||
<div>' . $icons . '
|
||||
</div>
|
||||
<div class="c-downbtn-text">
|
||||
<div class="c-downbtn-text-title"><a target="_blank" href="' . $wporg_atts['url'] . '">' . $content . '</a></div>
|
||||
<div class="c-downbtn-pwd">来源:' . $source . $pwd . '</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="c-downbtn-btn-plane">
|
||||
<button class="c-downbtn-btn"><a href="' . $wporg_atts['url'] . '" target="_blank"><i
|
||||
class="fas fa-cloud-download-alt"></i> 立即下载</a></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>';
|
||||
}
|
||||
|
||||
add_shortcode('pwdshow', 'post_short_pwdshow');
|
||||
function post_short_pwdshow($atts, $content = '')
|
||||
{
|
||||
|
||||
$wporg_atts = shortcode_atts([
|
||||
'pwd' => ''
|
||||
], $atts);
|
||||
if (isset($_POST['pwd']) && $_POST['pwd'] == $wporg_atts['pwd']) {
|
||||
return '<div class="pwd-show">'.do_shortcode($content).'</div>';
|
||||
} else {
|
||||
return '
|
||||
<form class="pwd-show" method="POST">
|
||||
<div class="pwd-show-note">本内容需要输入密码才能查看</div>
|
||||
<div class="pwd-show-main">
|
||||
<i class="fa fa-lock"></i>
|
||||
<input type="text" name="pwd" value="" class="pwd-show-input">
|
||||
<button type="button" class="pwd-show-btn" onclick="if ($(this).prev().val()=='."''".'){addarelt('."'请输入密码'".');}else{console.log($(this).parent().parent().submit())}">提交</button>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
';
|
||||
|
||||
}
|
||||
}
|
|
@ -37,7 +37,14 @@ function geekpress_sidebar_reg()
|
|||
));
|
||||
register_sidebar(array(
|
||||
'id' => 'footer_widget',
|
||||
'name' => '底部小工具1',
|
||||
'name' => '底部小工具[左侧]',
|
||||
'before_title' => '<h2 class="footer-widget-title">',
|
||||
'before_widget' => '<div class="footer-aside-box">',
|
||||
'after_widget' => '</div>'
|
||||
));
|
||||
register_sidebar(array(
|
||||
'id' => 'footer_widget_right',
|
||||
'name' => '底部小工具[右侧]',
|
||||
'before_title' => '<h2 class="footer-widget-title">',
|
||||
'before_widget' => '<div class="footer-aside-box">',
|
||||
'after_widget' => '</div>'
|
||||
|
@ -83,11 +90,34 @@ function geekpress_page_setting()
|
|||
|
||||
add_action('wp_enqueue_scripts', 'corePress_get_dashicons');*/
|
||||
|
||||
//禁止转义引号字符
|
||||
remove_filter('the_content', 'wptexturize'); // 禁止英文引号转义为中文引号
|
||||
remove_filter('the_content', 'balanceTags'); //禁止对标签自动校正
|
||||
// 禁止英文引号转义为中文引号
|
||||
remove_filter('the_content', 'wptexturize');
|
||||
//禁止对标签自动校正
|
||||
remove_filter('the_content', 'balanceTags');
|
||||
|
||||
|
||||
if ($set['optimization']['notification_reg_email'] === 1) {
|
||||
//关闭新用户注册用户邮件通知
|
||||
add_filter('wp_new_user_notification_email', '__return_false');
|
||||
}
|
||||
if ($set['optimization']['notification_changepwdandmail_email'] === 1) {
|
||||
//屏蔽密码修改通知邮件
|
||||
add_filter('send_password_change_email', '__return_false');
|
||||
//屏蔽邮箱修改通知邮件
|
||||
add_filter('email_change_email', '__return_false');
|
||||
//关闭新用户注册通知站长的邮件
|
||||
add_filter('wp_new_user_notification_email_admin', '__return_false');
|
||||
//关闭更新邮箱用户邮件通知
|
||||
}
|
||||
|
||||
|
||||
function ban_scripts()
|
||||
{
|
||||
wp_deregister_script('jquery');
|
||||
}
|
||||
|
||||
add_action('wp_enqueue_scripts', 'ban_scripts', 1);
|
||||
|
||||
if ($set['optimization']['removeversion'] === 1) {
|
||||
add_filter('script_loader_src', 'mimvp_remove_wp_version_strings');
|
||||
add_filter('style_loader_src', 'mimvp_remove_wp_version_strings');
|
||||
|
@ -136,7 +166,7 @@ if ($set['optimization']['closegutenberg'] === 1) {
|
|||
add_filter('use_block_editor_for_post', '__return_false');
|
||||
|
||||
}
|
||||
|
||||
add_filter('wp_dashboard_setup', '__return_false');//屏蔽PHP检查
|
||||
function fanly_remove_block_library_css()
|
||||
{
|
||||
wp_dequeue_style('wp-block-library');
|
||||
|
@ -152,7 +182,30 @@ if ($set['optimization']['closeupdate'] === 1) {
|
|||
/* remove_action('admin_init', '_maybe_update_core');
|
||||
remove_action('admin_init', '_maybe_update_plugins');
|
||||
remove_action('admin_init', '_maybe_update_themes');*/
|
||||
|
||||
// 彻底关闭自动更新
|
||||
add_filter('automatic_updater_disabled', '__return_true');
|
||||
// 关闭更新检查定时作业
|
||||
remove_action('init', 'wp_schedule_update_checks');
|
||||
// 移除已有的版本检查定时作业
|
||||
wp_clear_scheduled_hook('wp_version_check');
|
||||
// 移除已有的插件更新定时作业
|
||||
wp_clear_scheduled_hook('wp_update_plugins');
|
||||
// 移除已有的主题更新定时作业
|
||||
wp_clear_scheduled_hook('wp_update_themes');
|
||||
// 移除已有的自动更新定时作业
|
||||
wp_clear_scheduled_hook('wp_maybe_auto_update');
|
||||
// 移除后台内核更新检查
|
||||
remove_action('admin_init', '_maybe_update_core');
|
||||
// 移除后台插件更新检查
|
||||
remove_action('load-plugins.php', 'wp_update_plugins');
|
||||
remove_action('load-update.php', 'wp_update_plugins');
|
||||
remove_action('load-update-core.php', 'wp_update_plugins');
|
||||
remove_action('admin_init', '_maybe_update_plugins');
|
||||
// 移除后台主题更新检查
|
||||
remove_action('load-themes.php', 'wp_update_themes');
|
||||
remove_action('load-update.php', 'wp_update_themes');
|
||||
remove_action('load-update-core.php', 'wp_update_themes');
|
||||
remove_action('admin_init', '_maybe_update_themes');
|
||||
}
|
||||
if ($set['optimization']['banimgresolving'] === 1) {
|
||||
// 禁止大图片压缩
|
||||
|
@ -214,6 +267,7 @@ show_admin_bar(false);
|
|||
function copay_footer_admin($text)
|
||||
{
|
||||
global $set;
|
||||
$url = null;
|
||||
if ($set['info']['themeupdate'] == 1) {
|
||||
corepress_updateTheme();
|
||||
if ($set['info']['newversion'] != THEME_VERSION) {
|
||||
|
@ -254,7 +308,7 @@ function corepress_updateTheme()
|
|||
update_option('corepress_updatetheme', time());
|
||||
}
|
||||
if (time() - $lasttime > 60 * 60) {
|
||||
$url = 'http://theme.lovestu.com/version.php?site=' . get_bloginfo('siteurl') . '&n=1&v=' . THEME_VERSION;
|
||||
$url = 'http://theme.lovestu.com/version.php?site=' . get_bloginfo('siteurl', 'display') . '&n=1&v=' . THEME_VERSION;
|
||||
$request = new WP_Http;
|
||||
$result = $request->request($url);
|
||||
if (!is_wp_error($result)) {
|
||||
|
@ -290,9 +344,13 @@ function corepress_comment_face($incoming_comment)
|
|||
function corepress_loginurl($url)
|
||||
{
|
||||
global $set;
|
||||
$query = parse_url($url);
|
||||
parse_str($query['query'], $output);
|
||||
|
||||
if ($set['user']['loginpage'] == 1) {
|
||||
$query = parse_url($url);
|
||||
if (!isset($query['query'])) {
|
||||
return $url;
|
||||
}
|
||||
parse_str($query['query'], $output);
|
||||
return $set['user']['lgoinpageurl'] . '?re=' . $output['redirect_to'];
|
||||
}
|
||||
return $url;
|
||||
|
@ -307,6 +365,15 @@ function corepress_registerurl($url)
|
|||
return $url;
|
||||
}
|
||||
|
||||
function corepress_lostpassword_url($url)
|
||||
{
|
||||
global $set;
|
||||
if ($set['user']['repassword'] == 1) {
|
||||
return $set['user']['repasswordurl'];
|
||||
}
|
||||
return $url;
|
||||
}
|
||||
|
||||
function corepress_addbutton()
|
||||
{
|
||||
//判断用户是否有编辑文章和页面的权限
|
||||
|
@ -324,6 +391,30 @@ function corepress_addbutton()
|
|||
file_load_js('tools.js');
|
||||
file_load_css('editor-window.css');
|
||||
file_load_lib('layer/layer.js', 'js');
|
||||
?>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
layer.config({
|
||||
extend: 'corepress/style.css?v=2.7', //加载您的扩展样式,它自动从theme目录下加载这个文件
|
||||
skin: 'corepress-layer'
|
||||
});
|
||||
$('.corepress-btn').click(() => {
|
||||
$('.corepress-btn').text('加载中,请稍后');
|
||||
$.get('<?php echo admin_url('admin-ajax.php');?>', {action: 'geteditwindowhtml'}, function (str) {
|
||||
$('.corepress-btn').text('CorePress编辑器增强');
|
||||
layer.open({
|
||||
type: 1,
|
||||
title: '插入短代码',
|
||||
shadeClose: true,
|
||||
shade: false,
|
||||
area: ['300px', '450px'],
|
||||
content: str
|
||||
});
|
||||
});
|
||||
})
|
||||
})
|
||||
</script>
|
||||
<?php
|
||||
file_load_js('editor-functions.js');
|
||||
add_filter('mce_external_plugins', 'corepress_add_editor_plugin');
|
||||
}
|
||||
|
@ -346,6 +437,7 @@ add_filter('comment_text', 'corepress_comment_face');
|
|||
add_filter('comment_text_rss', 'corepress_comment_face');
|
||||
add_filter('login_url', 'corepress_loginurl', 1);
|
||||
add_filter('register_url', 'corepress_registerurl', 1);
|
||||
add_filter('lostpassword_url', 'corepress_lostpassword_url', 1);
|
||||
|
||||
|
||||
/** 编辑器取消屏蔽功能
|
||||
|
@ -368,17 +460,31 @@ function corepress_add_meta_box()
|
|||
|
||||
function corepress_meta_box_form($post)
|
||||
{
|
||||
global $set;
|
||||
// 创建临时隐藏表单,为了安全
|
||||
wp_nonce_field('corepress_meta_box', 'corepress_meta_box_nonce');
|
||||
// 获取之前存储的值
|
||||
$corepress_post_meta['set'] = json_decode(get_post_meta($post->ID, 'corepress_post_meta', true), true);
|
||||
|
||||
if (!isset($corepress_post_meta['set']['catalog'])) {
|
||||
$corepress_post_meta['set']['catalog'] = 0;
|
||||
if ($set['post']['defaultcatalog'] == 1) {
|
||||
$corepress_post_meta['set']['catalog'] = 1;
|
||||
} else {
|
||||
$corepress_post_meta['set']['catalog'] = 0;
|
||||
}
|
||||
}
|
||||
if (!isset($corepress_post_meta['set']['seo']['open'])) {
|
||||
$corepress_post_meta['set']['seo']['open'] = 0;
|
||||
}
|
||||
if (!isset($corepress_post_meta['set']['postrighttag']['open'])) {
|
||||
$corepress_post_meta['set']['postrighttag']['open'] = 0;
|
||||
}
|
||||
if (!isset($corepress_post_meta['set']['postrighttag']['color'])) {
|
||||
$corepress_post_meta['set']['postrighttag']['color'] = '#409EFF';
|
||||
}
|
||||
if (!isset($corepress_post_meta['set']['postrighttag']['text'])) {
|
||||
$corepress_post_meta['set']['seo']['text'] = '';
|
||||
}
|
||||
if (!isset($corepress_post_meta['set']['seo']['keywords'])) {
|
||||
$corepress_post_meta['set']['seo']['keywords'] = '';
|
||||
}
|
||||
|
@ -388,9 +494,11 @@ function corepress_meta_box_form($post)
|
|||
if (!isset($corepress_post_meta['set']['postshow'])) {
|
||||
$corepress_post_meta['set']['postshow'] = '0';
|
||||
}
|
||||
|
||||
?>
|
||||
<div id="corepress-post-meta">
|
||||
<input type="hidden" name="corepress_post_meta" :value="JSON.stringify(set)">
|
||||
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
开启文章目录
|
||||
|
@ -404,6 +512,61 @@ function corepress_meta_box_form($post)
|
|||
</el-switch>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
不显示侧边栏
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-switch
|
||||
v-model="set.closesidebar"
|
||||
:active-value="1"
|
||||
:inactive-value="0"
|
||||
>
|
||||
</el-switch>
|
||||
</div>
|
||||
</div>
|
||||
<h3>文章标签</h3>
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
开启右上角标签显示
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-switch
|
||||
v-model="set.postrighttag.open"
|
||||
:active-value="1"
|
||||
:inactive-value="0"
|
||||
>
|
||||
</el-switch>
|
||||
</div>
|
||||
</div>
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
标签文字
|
||||
</div>
|
||||
<div class="set-object">
|
||||
<el-input placeholder="" v-model="set.postrighttag.text" size="small" maxlength="3" show-word-limit>
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
背景颜色
|
||||
</div>
|
||||
<el-color-picker v-model="set.postrighttag.color"></el-color-picker>
|
||||
<div style="max-width: 200px;margin-left: 10px;margin-right: 10px">
|
||||
<el-input v-model="set.postrighttag.color" placeholder="" size="small"></el-input>
|
||||
</div>
|
||||
<div>
|
||||
<el-button type="primary" size="small" @click="retagcolor('#409EFF')">恢复默认</el-button>
|
||||
<el-button type="success" size="small" @click="retagcolor('#67C23A')">#67C23A</el-button>
|
||||
<el-button type="info" size="small" @click="retagcolor('#909399')">#909399</el-button>
|
||||
<el-button type="warning" size="small" @click="retagcolor('#F56C6C')">#F56C6C</el-button>
|
||||
<el-button type="danger" size="small" @click="retagcolor('#E6A23C')">#E6A23C</el-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3>SEO设置</h3>
|
||||
<div class="set-plane">
|
||||
<div class="set-title">
|
||||
|
@ -473,6 +636,11 @@ function corepress_meta_box_form($post)
|
|||
}
|
||||
],
|
||||
set
|
||||
},
|
||||
methods: {
|
||||
retagcolor(color) {
|
||||
this.set.postrighttag.color = color
|
||||
}
|
||||
}
|
||||
})
|
||||
;
|
||||
|
@ -524,7 +692,36 @@ function corePress_lazyload($content)
|
|||
add_filter('the_content', 'corePress_lazyload');
|
||||
|
||||
//禁止响应式图片
|
||||
add_filter('wp_calculate_image_srcset', create_function('', 'return false;'));
|
||||
add_filter('wp_calculate_image_srcset', 'corepress_calculate_image_srcset');
|
||||
function corepress_calculate_image_srcset()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
add_filter('views_users', 'corepress_views_users');
|
||||
function corepress_get_comment_author_link($comment_ID = 0)
|
||||
{
|
||||
$comment = get_comment($comment_ID);
|
||||
$url = get_comment_author_url($comment);
|
||||
$author = get_comment_author($comment);
|
||||
|
||||
if (empty($url) || 'http://' === $url) {
|
||||
$return = $author;
|
||||
} else {
|
||||
$return = "<a href='$url' rel='external nofollow ugc' target='_blank' class='url'>$author</a>";
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
||||
add_filter('get_comment_author_link', 'corepress_get_comment_author_link');
|
||||
|
||||
add_filter('gettext_with_context', 'disable_open_sans', 888, 4);
|
||||
function disable_open_sans($translations, $text, $context, $domain)
|
||||
{
|
||||
if ('Open Sans font: on or off' == $context && 'on' == $text) {
|
||||
$translations = 'off';
|
||||
}
|
||||
return $translations;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -101,16 +101,28 @@ add_filter('user_row_actions', 'corepress_user_row_action', 10, 2);
|
|||
add_action('user_register', 'corepress_user_register');
|
||||
function corepress_user_register($id)
|
||||
{
|
||||
global $set;
|
||||
global $set, $wpdb;
|
||||
if ($set['user']['regapproved'] == 'manualapprov') {
|
||||
update_user_meta($id, 'corepress_approve', 1);
|
||||
}
|
||||
$time = time();
|
||||
$key = md5($time);
|
||||
$wpdb->update($wpdb->users, array('user_activation_key' => $time . ':' . $key), array('ID' => $id));
|
||||
|
||||
if ($set['user']['regapproved'] == 'mailapproved') {
|
||||
update_user_meta($id, 'corepress_approve', 1);
|
||||
$headers = array('Content-Type: text/html; charset=UTF-8');
|
||||
$userobj = get_user_by('ID', $id);
|
||||
$mailre = wp_mail($userobj->user_email, get_option('blogname', '【CorePress】') . '激活用户验证', '您好,感谢注册本站用户,下面是您的激活链接,点击访问即可激活用户,激活以后可以正常登陆账号。【激活链接24小时内容有效】<br>' .
|
||||
admin_url('admin-ajax.php') . '?action=corepress_approveuser&key=' . $key . '&id=' . $id, $headers);
|
||||
}
|
||||
}
|
||||
|
||||
add_action('wp_login', 'corepress_action_login', 10, 2);
|
||||
function corepress_action_login($user_login, $user)
|
||||
{
|
||||
global $set;
|
||||
|
||||
if (get_user_meta($user->ID, 'corepress_approve', true) == 1) {
|
||||
$json['code'] = 0;
|
||||
$json['msg'] = '登录失败,账号未通过审核';
|
||||
|
@ -119,4 +131,116 @@ function corepress_action_login($user_login, $user)
|
|||
}
|
||||
}
|
||||
|
||||
function corepress_mail_smtp($phpmailer)
|
||||
{
|
||||
global $set;
|
||||
$phpmailer->From = $set['module']['smtpuser']; //发件人邮箱
|
||||
$phpmailer->FromName = $set['module']['smtpname']; //发件人昵称
|
||||
$phpmailer->Host = $set['module']['smtphost']; //SMTP服务器地址
|
||||
$phpmailer->Port = $set['module']['smtpport']; //SMTP端口,常用端口有25、465、587
|
||||
$phpmailer->SMTPSecure = $set['module']['smtpencrypttype']; //SMTP加密方式,常用的有SSL/TLS
|
||||
$phpmailer->Username = $set['module']['smtpuser']; //邮箱帐号
|
||||
$phpmailer->Password = $set['module']['smtppwd']; //邮箱密码。如果上面是qq邮箱这里就是QQ邮箱授权码。
|
||||
$phpmailer->IsSMTP(); //使用SMTP发送
|
||||
$phpmailer->SMTPAuth = true; //启用SMTPAuth服务
|
||||
}
|
||||
|
||||
global $set;
|
||||
if ($set['module']['smtp'] == 1) {
|
||||
add_action('phpmailer_init', 'corepress_mail_smtp', 10);
|
||||
}
|
||||
|
||||
function reset_user_password($userobj)
|
||||
{
|
||||
global $set, $wpdb;
|
||||
$time = time();
|
||||
$key = md5($time);
|
||||
$wpdb->update($wpdb->users, array('user_activation_key' => $time . ':' . $key), array('ID' => $userobj->ID));
|
||||
$headers = array('Content-Type: text/html; charset=UTF-8');
|
||||
$mailre = wp_mail($userobj->user_email, get_option('blogname', '【CorePress】') . '重置密码验证', '您好,您在本网站进行重置密码操作,请点击如下链接进入重置密码页面。【本链接24小时内容有效,如果不是您的操作,请忽略】<br>' .
|
||||
'<a target="_blank" href="' . $set['user']['repasswordurl'] . '?action=resetpwd&key=' . $key . '&id=' . $userobj->ID . '">' . $set['user']['repasswordurl'] . '?action=resetpwd&key=' . $key . '&id=' . $userobj->ID . '</a>', $headers);
|
||||
return $mailre;
|
||||
}
|
||||
|
||||
function showlostpasshtml($type, $msg)
|
||||
{
|
||||
|
||||
if ($type == 1) {
|
||||
?>
|
||||
<div id="login-plane">
|
||||
<div class="login-main" style="width: 100%;">
|
||||
<div id="login-note">
|
||||
提示
|
||||
</div>
|
||||
<div class="login-form">
|
||||
<div class="login-title"><h3>重置密码</h3></div>
|
||||
<i class="fas fa-key ico-login" aria-hidden="true"></i>
|
||||
<input class="input-login input-pass"
|
||||
name="pwd"
|
||||
type="password"
|
||||
placeholder="请输入新密码">
|
||||
<div>
|
||||
<i class="fas fa-key ico-login" aria-hidden="true"></i>
|
||||
<input class="input-login input-pass"
|
||||
name="repwd"
|
||||
type="password"
|
||||
placeholder="重复密码">
|
||||
|
||||
<button class="login-button" id="btn-resetpwd">重置密码</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
<div id="login-plane">
|
||||
<div class="login-main" style="width: 100%;">
|
||||
<div class="login-form">
|
||||
<div class="login-title">
|
||||
<div>
|
||||
<h3>验证提示</h3>
|
||||
<div>
|
||||
<br><br>
|
||||
<?php echo $msg ?>
|
||||
<a href="<?php echo bloginfo('url'); ?>">点此回首页</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
function showresetpwdhtml(){
|
||||
?>
|
||||
<div id="login-plane">
|
||||
<div class="login-main" style="width: 100%;">
|
||||
<div id="login-note">
|
||||
提示
|
||||
</div>
|
||||
<div class="login-form">
|
||||
<div class="login-title"><h3>找回密码</h3>
|
||||
|
||||
</div>
|
||||
|
||||
<i class="fa fa-user ico-login" aria-hidden="true"></i><input class="input-login input-pass"
|
||||
name="user"
|
||||
type="text"
|
||||
placeholder="请输入用户名或者邮箱">
|
||||
<div class="code-plane"><img class="img-code"
|
||||
src="<?php echo FRAMEWORK_URI . "/VerificationCode.php" ?>"
|
||||
alt=""><input class="input-login input-code"
|
||||
name="code"
|
||||
type="text"
|
||||
placeholder="验证码"></div>
|
||||
<div>
|
||||
<button class="login-button" id="btn-getlostpass">找回密码</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
|
|
@ -13,14 +13,23 @@ function file_load_img($path)
|
|||
{
|
||||
echo "<img src=\"" . THEME_IMG_PATH . "/{$path}\">";
|
||||
}
|
||||
|
||||
function file_get_img_url($path)
|
||||
{
|
||||
return THEME_IMG_PATH . "/".$path;
|
||||
return THEME_IMG_PATH . "/" . $path;
|
||||
}
|
||||
|
||||
function file_echo_svg($path)
|
||||
{
|
||||
$size = readfile(THEME_PATH . '/static/img/' . $path);
|
||||
//echo file_get_contents(THEME_IMG_PATH . "/" . $path);
|
||||
}
|
||||
|
||||
function file_load_face()
|
||||
{
|
||||
|
||||
$files = scandir(THEME_PATH . "/static/img/face");
|
||||
$html = null;
|
||||
foreach ($files as $v) {
|
||||
/* if(is_file($v)){
|
||||
$fileItem[] = $v;
|
||||
|
@ -62,7 +71,7 @@ function loginAndBack($url = null)
|
|||
{
|
||||
if ($url == null) {
|
||||
return wp_login_url('//' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
|
||||
}else{
|
||||
} else {
|
||||
return wp_login_url($url);
|
||||
|
||||
}
|
||||
|
@ -73,10 +82,10 @@ function corepress_get_user_nickname($user_id = null)
|
|||
{
|
||||
if ($user_id == null) {
|
||||
$currentUser = wp_get_current_user();
|
||||
$name = $currentUser->user_nicename;
|
||||
$name = $currentUser->display_name;
|
||||
} else {
|
||||
$user = get_userdata($user_id);
|
||||
$name = $user->user_nicename;
|
||||
$name = $user->display_name;
|
||||
}
|
||||
return $name;
|
||||
}
|
||||
|
@ -204,7 +213,9 @@ function get_share_url($type, $title, $summary)
|
|||
return 'http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=' . $url . '&title=' . urlencode($title) . '&pics=&summary=' . urlencode($summary);
|
||||
}
|
||||
}
|
||||
function corepress_replace_copyright($str){
|
||||
|
||||
function corepress_replace_copyright($str)
|
||||
{
|
||||
global $post;
|
||||
$author_name = get_the_author();
|
||||
$post_url = get_permalink();
|
||||
|
@ -214,3 +225,112 @@ function corepress_replace_copyright($str){
|
|||
|
||||
return $str;
|
||||
}
|
||||
|
||||
function corepress_jmp_message($message, $jumpUrl)
|
||||
{
|
||||
global $set;
|
||||
?>
|
||||
<!doctype html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<?php get_header(); ?>
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
file_load_css('login-plane.css');
|
||||
?>
|
||||
<div id="app" class="login-background">
|
||||
<header>
|
||||
<div class="header-main-plane">
|
||||
<div class="header-main container">
|
||||
<?php
|
||||
get_template_part('component/nav-header');
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div class="header-zhanwei" style="min-height: 80px;width: 100%;"></div>
|
||||
<main class="container">
|
||||
<div class="html-main"
|
||||
style="background: #fff;padding: 20px;height: 100%;margin-bottom: 20px;font-size: 20px">
|
||||
<div>
|
||||
<?php echo $message ?>
|
||||
<div><a href="<?php echo $jumpUrl ?>">点击这儿</a>直接跳转</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<script>
|
||||
setTimeout(function () {
|
||||
location.replace('<?php echo $jumpUrl?>')
|
||||
}, 3000)</script>
|
||||
<footer>
|
||||
<?php
|
||||
wp_footer();
|
||||
get_footer(); ?>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<?php
|
||||
}
|
||||
|
||||
function curPageURL()
|
||||
{
|
||||
$pageURL = 'http';
|
||||
|
||||
if ($_SERVER["HTTPS"] == "on") {
|
||||
$pageURL .= "s";
|
||||
}
|
||||
$pageURL .= "://";
|
||||
|
||||
$this_page = $_SERVER["REQUEST_URI"];
|
||||
|
||||
// 只取 ? 前面的内容
|
||||
if (strpos($this_page, "?") !== false) {
|
||||
$this_pages = explode("?", $this_page);
|
||||
$this_page = reset($this_pages);
|
||||
}
|
||||
|
||||
if ($_SERVER["SERVER_PORT"] != "80") {
|
||||
$pageURL .= $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . $this_page;
|
||||
} else {
|
||||
$pageURL .= $_SERVER["SERVER_NAME"] . $this_page;
|
||||
}
|
||||
return $pageURL;
|
||||
}
|
||||
|
||||
/**
|
||||
*参数验证
|
||||
*/
|
||||
function parameter_verification($arr, $type = 0)
|
||||
{
|
||||
$re_arry = array();
|
||||
foreach ($arr as $item) {
|
||||
if ($type == 1) {
|
||||
if (!isset($_POST[$item])) {
|
||||
$json['code'] = 0;
|
||||
$json['msg'] = '参数错误';
|
||||
wp_die(json_encode($json));
|
||||
} else {
|
||||
$re_arry[$item] = $_POST[$item];
|
||||
}
|
||||
} else {
|
||||
if (!isset($_GET[$item])) {
|
||||
$json['code'] = 0;
|
||||
$json['msg'] = '参数错误';
|
||||
wp_die(json_encode($json));
|
||||
} else {
|
||||
$re_arry[$item] = $_GET[$item];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
return $re_arry;
|
||||
}
|
||||
|
||||
function ajax_die($msg, $code = 0)
|
||||
{
|
||||
$json['code'] = $code;
|
||||
$json['msg'] = $msg;
|
||||
wp_die(json_encode($json));
|
||||
}
|
||||
|
|
59
header.php
|
@ -12,6 +12,19 @@ if ($set['code']['headcode'] != null) {
|
|||
if ($set['code']['css'] != null) {
|
||||
echo "<style>" . base64_decode($set['code']['css']) . "</style>";
|
||||
}
|
||||
if ($set['code']['alifront'] != null) {
|
||||
echo '<style>.icon {width: 18px; height: 18px;vertical-align: -3px;fill: currentColor;overflow: hidden;}</style>';
|
||||
}
|
||||
if ($set['theme']['bagimg'] != null) {
|
||||
if (!is_page_template('page-login.php') && !is_page_template('page-reg.php')) {
|
||||
if ($set['theme']['bagimg_showtype'] == 1) {
|
||||
echo "<style>html, body, #app {background-image: url('{$set['theme']['bagimg']}')!important;background-position: center center;background-attachment: fixed;background-size: cover;}</style>";
|
||||
} else {
|
||||
echo "<style>html, body, #app {background-image: url('{$set['theme']['bagimg']}')!important;background-position: center center;background-attachment: fixed;}</style>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ($set['routine']['favicon'] != null) {
|
||||
?>
|
||||
|
@ -29,12 +42,12 @@ if ($set['routine']['favicon'] != null) {
|
|||
<?php
|
||||
|
||||
|
||||
wp_head();
|
||||
|
||||
file_load_css('main-mobile.css');
|
||||
file_load_css('main.css');
|
||||
file_load_lib('fontawesome5/css/all.min.css', 'css');
|
||||
file_load_js('jquery.min.js');
|
||||
|
||||
wp_head();
|
||||
if ($set['module']['imglazyload'] == 1) {
|
||||
file_load_js('jquery.lazyload.min.js');
|
||||
}
|
||||
|
@ -69,7 +82,7 @@ if (is_home()) {
|
|||
if ($set['post']['imgshadow'] == 1) {
|
||||
?>
|
||||
<style>
|
||||
.post-content-post img {
|
||||
post-content-content img {
|
||||
box-shadow: 0 0 5px 0 rgba(0, 0, 0, .1);
|
||||
}
|
||||
</style>
|
||||
|
@ -106,7 +119,7 @@ if (is_home()) {
|
|||
$title = get_the_title();
|
||||
}
|
||||
|
||||
} elseif (is_category()||is_tag()) {
|
||||
} elseif (is_category() || is_tag()) {
|
||||
$delimiter = $set['seo']['title_delimiter'];
|
||||
if ($set['seo']['openseo'] == 1) {
|
||||
if ($set['seo']['titlestyle'] == 'site_title') {
|
||||
|
@ -119,9 +132,20 @@ if (is_home()) {
|
|||
} else {
|
||||
$title = single_cat_title('', false);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
} elseif (is_author()) {
|
||||
$delimiter = $set['seo']['title_delimiter'];
|
||||
if ($set['seo']['openseo'] == 1) {
|
||||
if ($set['seo']['titlestyle'] == 'site_title') {
|
||||
$title = get_bloginfo('name') . $delimiter . get_the_author() . '的文章';
|
||||
} elseif ($set['seo']['titlestyle'] == 'title_site') {
|
||||
$title = get_the_author() . '的文章' . $delimiter . get_bloginfo('name');
|
||||
} else {
|
||||
$title = get_the_author() . '的文章';
|
||||
}
|
||||
} else {
|
||||
$title = get_the_author() . '的文章';
|
||||
}
|
||||
} else {
|
||||
if ($set['seo']['openseo'] == 1) {
|
||||
$delimiter = $set['seo']['title_delimiter'];
|
||||
$title = wp_title($delimiter, false, 'right');
|
||||
|
@ -129,6 +153,8 @@ if (is_home()) {
|
|||
$title = wp_title('»', false, 'right');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
echo "<title>{$title}</title>";
|
||||
$keywords = '';
|
||||
$description = '';
|
||||
|
@ -147,6 +173,19 @@ if (is_home()) {
|
|||
global $post;
|
||||
global $corepress_post_meta;
|
||||
$corepress_post_meta = json_decode(get_post_meta($post->ID, 'corepress_post_meta', true), true);
|
||||
if (empty($corepress_post_meta['seo']['open'])) {
|
||||
$corepress_post_meta['seo']['open'] = 0;
|
||||
}
|
||||
if (empty($corepress_post_meta['closesidebar'])) {
|
||||
$corepress_post_meta['closesidebar'] = 0;
|
||||
}
|
||||
if (empty($corepress_post_meta['postrighttag']['open'])) {
|
||||
$corepress_post_meta['postrighttag']['open'] = 0;
|
||||
}
|
||||
if (empty($corepress_post_meta['catalog'])) {
|
||||
$corepress_post_meta['catalog'] = 0;
|
||||
}
|
||||
|
||||
if ($corepress_post_meta['seo']['open'] == 1) {
|
||||
$description = $corepress_post_meta['seo']['description'];
|
||||
$keywords = $corepress_post_meta['seo']['keywords'];
|
||||
|
@ -158,11 +197,13 @@ if (is_home()) {
|
|||
}
|
||||
$keywords = rtrim($keywords, ', ');
|
||||
}
|
||||
|
||||
} elseif (is_tag()) {
|
||||
// 标签的description可以到后台 - 文章 - 标签,修改标签的描述
|
||||
$description = tag_description();
|
||||
$keywords = single_tag_title('', false);
|
||||
} elseif (is_category()) {
|
||||
$description = category_description();
|
||||
$keywords = single_tag_title('', false);
|
||||
}
|
||||
$description = trim(strip_tags($description));
|
||||
$keywords = trim(strip_tags($keywords));
|
||||
|
@ -174,6 +215,8 @@ if ($set['seo']['openseo'] == 1) {
|
|||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
|
11
index.php
|
@ -4,7 +4,6 @@
|
|||
<?php get_header(); ?>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="app">
|
||||
<header>
|
||||
<div class="header-main-plane">
|
||||
|
@ -15,7 +14,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div style="min-height: 80px;width: 100%;"></div>
|
||||
<div class="top-divider"></div>
|
||||
<main class="container">
|
||||
<div class="html-main">
|
||||
<?php
|
||||
|
@ -51,12 +50,14 @@
|
|||
?>
|
||||
<div class="frinds-links">
|
||||
<div class="list-plane-title">
|
||||
<p>友情链接</p>
|
||||
<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>
|
||||
|
@ -64,7 +65,7 @@
|
|||
<?php wp_list_bookmarks('title_li=&categorize=0'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</main>
|
||||
|
|
|
@ -1,48 +0,0 @@
|
|||
<?php
|
||||
// TEMPLATE NAME: CorrPress全宽页面
|
||||
the_post();
|
||||
?>
|
||||
<!doctype html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<?php get_header(); ?>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
|
||||
<header>
|
||||
<div class="header-main container">
|
||||
<?php
|
||||
get_template_part('component/nav-header');
|
||||
?>
|
||||
</div>
|
||||
</header>
|
||||
<div style="min-height: 80px;width: 100%;"></div>
|
||||
<main class="container">
|
||||
<div class="html-main">
|
||||
<?php
|
||||
global $set;
|
||||
if ($set['theme']['sidebar_position'] == 1) {
|
||||
?>
|
||||
<div class="post-main post-main-full">
|
||||
<?php get_template_part('component/post-content'); ?>
|
||||
</div>
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
<div class="post-main post-main-full">
|
||||
<?php get_template_part('component/post-content'); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
<footer>
|
||||
<?php get_footer(); ?>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<?php
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// TEMPLATE NAME: CorrPress自定义登录页面
|
||||
if (islogin()) {
|
||||
header("Location: /");
|
||||
header("Location: " . get_bloginfo('url'));
|
||||
exit();
|
||||
}
|
||||
global $set;
|
||||
|
@ -82,6 +82,16 @@ if ($set['user']['lgoinpageimg'] != null) {
|
|||
recodeimg();
|
||||
});
|
||||
$('#btn-login').click(() => {
|
||||
login();
|
||||
})
|
||||
$('.input-code,.input-pass').bind('keypress', function (event) {
|
||||
console.log(event.keyCode);
|
||||
if (event.keyCode == "13") {
|
||||
login();
|
||||
}
|
||||
});
|
||||
|
||||
function login() {
|
||||
var user = $('input[name="user"]').val();
|
||||
var pass = $('input[name="pass"]').val();
|
||||
var code = $('input[name="code"]').val();
|
||||
|
@ -111,7 +121,7 @@ if ($set['user']['lgoinpageimg'] != null) {
|
|||
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
function recodeimg() {
|
||||
$('.img-code').attr('src', '<?php echo FRAMEWORK_URI . "/VerificationCode.php?t=" . time() ?>');
|
||||
|
|
|
@ -0,0 +1,159 @@
|
|||
<?php
|
||||
// TEMPLATE NAME: CorrPress自定义忘记密码页面
|
||||
if (islogin()) {
|
||||
header("Location: " . get_bloginfo('url'));
|
||||
exit();
|
||||
}
|
||||
global $set;
|
||||
?>
|
||||
<!doctype html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<?php get_header(); ?>
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
file_load_css('login-plane.css');
|
||||
?>
|
||||
<div id="app" class="login-background">
|
||||
<header>
|
||||
<div class="header-main-plane">
|
||||
<div class="header-main container">
|
||||
<?php
|
||||
get_template_part('component/nav-header');
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div class="header-zhanwei" style="min-height: 80px;width: 100%;"></div>
|
||||
|
||||
<style>
|
||||
<?php
|
||||
if ($set['user']['repasswordimg'] != null) {
|
||||
echo '#app{background-image:url('.$set['user']['repasswordimg'].');}';
|
||||
}
|
||||
?>
|
||||
</style>
|
||||
<main class="container">
|
||||
<?php
|
||||
if (isset($_GET['action']) && isset($_GET['key']) && isset($_GET['id']) && $_GET['action'] == 'resetpwd') {
|
||||
$userid = $_GET['id'];
|
||||
$key = $_GET['key'];
|
||||
$userObj = get_user_by('ID', $userid);
|
||||
$activation_key = $userObj->user_activation_key;
|
||||
if ($activation_key != null && strpos($activation_key, ":") == true) {
|
||||
$arr = explode(":", $activation_key);
|
||||
$time = $arr[0];
|
||||
$activation_key = $arr[1];
|
||||
$nowtime = time();
|
||||
if ($nowtime - $time > 86400 || $nowtime - $time < -86400) {
|
||||
$msg = '验证过期';
|
||||
showlostpasshtml(0, $msg);
|
||||
|
||||
} else {
|
||||
if ($key == $activation_key) {
|
||||
$msg = '验证成功';
|
||||
showlostpasshtml(1, $msg);
|
||||
|
||||
} else {
|
||||
$msg = '验证失败';
|
||||
showlostpasshtml(0, $msg);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
showresetpwdhtml();
|
||||
}
|
||||
|
||||
} else {
|
||||
showresetpwdhtml();
|
||||
}
|
||||
?>
|
||||
</main>
|
||||
<script>
|
||||
|
||||
$('#btn-getlostpass').click(() => {
|
||||
getlostpass();
|
||||
})
|
||||
|
||||
$('#btn-resetpwd').click(() => {
|
||||
var pwd = $('input[name="pwd"]').val();
|
||||
var repwd = $('input[name="repwd"]').val();
|
||||
if (pwd == '' || repwd == '') {
|
||||
addarelt('请输入完整内容', 'erro');
|
||||
return;
|
||||
}
|
||||
if (pwd !== repwd) {
|
||||
addarelt('两次密码不一致', 'erro');
|
||||
return;
|
||||
} else {
|
||||
$('#login-note').css('visibility', 'visible');
|
||||
$('#login-note').text('验证中,请稍后');
|
||||
$.post(
|
||||
'<?php echo AJAX_URL?>', {
|
||||
<?php
|
||||
$userid = $_GET['id'];
|
||||
$key = $_GET['key'];
|
||||
echo 'action:"corepress_resetpwd",userid:"' . $userid . '",key:"' . $key . '",pwd:pwd';
|
||||
?>
|
||||
}, (data) => {
|
||||
var obj = JSON.parse(data);
|
||||
if (obj.code === 1) {
|
||||
|
||||
|
||||
$('#login-note').text(obj.msg);
|
||||
} else {
|
||||
|
||||
|
||||
$('#login-note').text(obj.msg);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
function getlostpass() {
|
||||
var user = $('input[name="user"]').val();
|
||||
var key = $('input[name="code"]').val();
|
||||
|
||||
$('#login-note').text('检测中,请稍后');
|
||||
$('#login-note').css('visibility', 'visible');
|
||||
|
||||
$.post('<?php echo AJAX_URL?>', {
|
||||
action: 'corepress_lostpass',
|
||||
user: user,
|
||||
key: key
|
||||
}, (data) => {
|
||||
var obj = JSON.parse(data);
|
||||
if (obj) {
|
||||
if (obj.code === 1) {
|
||||
$('#login-note').css('visibility', 'visible');
|
||||
$('#login-note').text(obj.msg);
|
||||
} else {
|
||||
$('#login-note').css('visibility', 'visible');
|
||||
$('#login-note').text(obj.msg);
|
||||
recodeimg();
|
||||
}
|
||||
} else {
|
||||
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
$('.img-code').click(() => {
|
||||
recodeimg();
|
||||
});
|
||||
|
||||
function recodeimg() {
|
||||
$('.img-code').attr('src', '<?php echo FRAMEWORK_URI . "/VerificationCode.php?t=" . time() ?>');
|
||||
}
|
||||
</script>
|
||||
<footer>
|
||||
<?php
|
||||
wp_footer();
|
||||
get_footer(); ?>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
29
page-reg.php
|
@ -1,9 +1,9 @@
|
|||
<?php
|
||||
// TEMPLATE NAME: CorrPress自定义注册页面
|
||||
/*if (islogin()) {
|
||||
header("Location: /");
|
||||
if (islogin()) {
|
||||
header("Location: " . get_bloginfo('url'));
|
||||
exit();
|
||||
}*/
|
||||
}
|
||||
global $set;
|
||||
?>
|
||||
<!doctype html>
|
||||
|
@ -46,7 +46,7 @@ if ($set['user']['regpageimg'] != null) {
|
|||
name="user"
|
||||
type="text"
|
||||
|
||||
placeholder="用户名">
|
||||
placeholder="用户名(只能英文)">
|
||||
<i class="far fa-envelope ico-login" aria-hidden="true"></i><input class="input-login input-pass"
|
||||
name="mail"
|
||||
type="text"
|
||||
|
@ -83,6 +83,11 @@ if ($set['user']['regpageimg'] != null) {
|
|||
<div>
|
||||
<button class="login-button" id="btn-login">注册账户</button>
|
||||
</div>
|
||||
<div class="usercenter-info-text">
|
||||
<p><b>注册须知:</b></p>
|
||||
<p>用户名只支持英文用户名</p>
|
||||
<p>密码不能包含中文,长度8位以上,并且必须包含中英文和数字</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -126,6 +131,22 @@ if ($set['user']['regpageimg'] != null) {
|
|||
}, 3000);
|
||||
return;
|
||||
}
|
||||
|
||||
if (isChinese(pass) || isChinese(user)) {
|
||||
addarelt('密码和用户名不支持中文', 'erro');
|
||||
return;
|
||||
}
|
||||
if (!haveNumandLetter(pass)) {
|
||||
addarelt('密码必须包含字母和数字', 'erro');
|
||||
return;
|
||||
}
|
||||
if (pass.length < 8) {
|
||||
addarelt('密码必须大于8位', 'erro');
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
$('#login-note').text('正在注册,请稍后');
|
||||
$('#login-note').css('visibility', 'visible');
|
||||
$.post('<?php echo AJAX_URL?>', {
|
||||
|
|
|
@ -0,0 +1,445 @@
|
|||
<?php
|
||||
// TEMPLATE NAME: CorrPress自定义用户中心页面
|
||||
if (!islogin()) {
|
||||
header("Location: " . get_bloginfo('url'));
|
||||
exit();
|
||||
}
|
||||
global $set;
|
||||
?>
|
||||
<!doctype html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<?php get_header(); ?>
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
file_load_css('login-plane.css');
|
||||
?>
|
||||
<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="header-zhanwei" style="min-height: 80px;width: 100%;"></div>
|
||||
|
||||
<main class="container">
|
||||
<div class="usercenter-plane">
|
||||
<div class="usercenter-left">
|
||||
<div class="usercenter-userinfo post-list-page-plane">
|
||||
<div>
|
||||
<img class="user-avatar" width="60" height="60"
|
||||
src="<?php echo corepress_get_avatar_url() ?>" alt="">
|
||||
<br>
|
||||
<br>
|
||||
</div>
|
||||
|
||||
<div> <?php echo corepress_get_user_nickname() ?></div>
|
||||
</div>
|
||||
|
||||
<div class="usercenter-menu post-list-page-plane">
|
||||
<div class="usercenter-menu-item usercenter-menu-info usercenter-menu-item-active">
|
||||
账号设置
|
||||
</div>
|
||||
<div class="usercenter-menu-item usercenter-menu-pwd">
|
||||
密码设置
|
||||
</div>
|
||||
<div class="usercenter-menu-item usercenter-menu-bind">
|
||||
账号绑定
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$currentUser = wp_get_current_user();
|
||||
?>
|
||||
<div class="usercenter-right post-list-page-plane">
|
||||
<div class="plane-info">
|
||||
<h3 class="usercenter-info-h3">账号设置</h3>
|
||||
<div class="usercenter-info-item">
|
||||
<div class="usercenter-info-title">
|
||||
登录用户名
|
||||
</div>
|
||||
<div class="usercenter-info-body usercenter-info-login">
|
||||
<span><?php echo $currentUser->user_login ?></span>
|
||||
<p style="font-size: 14px;margin: 10px 0">登录用户名无法修改,可以使用本用户名登录网站</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="usercenter-info-item">
|
||||
<div class="usercenter-info-title">
|
||||
显示用户名
|
||||
</div>
|
||||
<div class="usercenter-info-body">
|
||||
<input type="text" id="input-user" class="usercenter-form-input usercenter-form-username"
|
||||
value="<?php echo $currentUser->display_name ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="usercenter-info-item">
|
||||
<div class="usercenter-info-title">
|
||||
我的签名
|
||||
</div>
|
||||
<div class="usercenter-info-body">
|
||||
<input type="text" id="input-description"
|
||||
class="usercenter-form-input usercenter-form-description"
|
||||
value="<?php echo get_user_meta($currentUser->ID, 'description')[0] ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="usercenter-info-item usercenter-info-description">
|
||||
<div class="usercenter-info-title">
|
||||
</div>
|
||||
<div class="usercenter-info-body">
|
||||
可选,签名超过200个字符,不能包含特殊字符
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="usercenter-info-item usercenter-control-plane">
|
||||
<div class="usercenter-info-title">
|
||||
|
||||
</div>
|
||||
<div class="usercenter-info-body">
|
||||
<button class="search-submit usercenter-info-save-btn" id="btn-save-info">
|
||||
保存
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="plane-pwd" style="display: none">
|
||||
<h3 class="usercenter-info-h3">密码管理</h3>
|
||||
<div class="usercenter-info-item">
|
||||
<div class="usercenter-info-title">
|
||||
原始密码
|
||||
</div>
|
||||
<div class="usercenter-info-body">
|
||||
<input id="input-oldpwd" type="text"
|
||||
class="usercenter-form-input usercenter-form-description"
|
||||
value="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="usercenter-info-item">
|
||||
<div class="usercenter-info-title">
|
||||
新密码
|
||||
</div>
|
||||
<div class="usercenter-info-body">
|
||||
<input id="input-newpwd" type="text"
|
||||
class="usercenter-form-input usercenter-form-description"
|
||||
value="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="usercenter-info-item">
|
||||
<div class="usercenter-info-title">
|
||||
|
||||
</div>
|
||||
<div class="usercenter-info-body usercenter-info-text">
|
||||
密码不能包含中文,长度8位以上,并且必须包含中英文和数字
|
||||
</div>
|
||||
</div>
|
||||
<div class="usercenter-info-item">
|
||||
<div class="usercenter-info-title">
|
||||
邮箱验证码
|
||||
</div>
|
||||
<div class="usercenter-info-body">
|
||||
<input id="input-pwd-mail-code" type="text" class="usercenter-form-input"
|
||||
value="">
|
||||
<button class="search-submit usercenter-pwd-getcode send-mail-btn"
|
||||
id="btn-pwd-get-mail-code">
|
||||
获取
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="usercenter-info-item usercenter-control-plane">
|
||||
<div class="usercenter-info-title">
|
||||
|
||||
</div>
|
||||
<div class="usercenter-info-body">
|
||||
<button class="search-submit usercenter-info-save-btn" id="btn-change-pwd">
|
||||
修改密码
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="plane-bind" style="display: none">
|
||||
<h3 class="usercenter-info-h3">账号绑定</h3>
|
||||
<div class="usercenter-info-item" style="font-size: 14px">
|
||||
<div class="usercenter-info-title">
|
||||
绑定的邮箱
|
||||
</div>
|
||||
<div class="usercenter-info-body">
|
||||
<span id="usercenter-bind-plane-mail"><?php echo $currentUser->user_email ?></span>
|
||||
<span class="usercenter-a usercenter-editmail-a">修改</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="plane-bind-editemail-plane" style="display: none">
|
||||
<div class="usercenter-info-item">
|
||||
<div class="usercenter-info-title">
|
||||
原始邮箱验证码
|
||||
</div>
|
||||
<div class="usercenter-info-body">
|
||||
<input type="text" class="usercenter-form-input"
|
||||
value="" id="changebind-old-mail-code-input">
|
||||
<button class="search-submit usercenter-pwd-getcode send-mail-btn"
|
||||
id="changebind-get-old-mail-code-btn">
|
||||
获取
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="usercenter-info-item">
|
||||
<div class="usercenter-info-title">
|
||||
新邮箱地址
|
||||
</div>
|
||||
<div class="usercenter-info-body">
|
||||
<input type="text" class="usercenter-form-input"
|
||||
value="" id="changebind-new-mail-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="usercenter-info-item">
|
||||
<div class="usercenter-info-title">
|
||||
新邮箱验证码
|
||||
</div>
|
||||
<div class="usercenter-info-body">
|
||||
<input type="text" class="usercenter-form-input"
|
||||
value="" id="changebind-new-mail-code-input">
|
||||
<button class="search-submit usercenter-pwd-getcode send-mail-btn"
|
||||
id="changebind-get-new-mail-code-btn">
|
||||
获取
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="usercenter-info-item usercenter-control-plane" style="font-size: 14px">
|
||||
<div class="usercenter-info-title"></div>
|
||||
<div class="usercenter-info-body">
|
||||
<button class="search-submit usercenter-info-save-btn" id="btn-change-bind-mail">
|
||||
提交修改
|
||||
</button>
|
||||
<span class="usercenter-a usercenter-closeeditmail-a">取消修改</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<script>
|
||||
$('#btn-change-bind-mail').click(function () {
|
||||
var btn_name = '#btn-change-bind-mail';
|
||||
var old_mail_code = $('#changebind-old-mail-code-input').val();
|
||||
var new_mail_code = $('#changebind-new-mail-code-input').val();
|
||||
var bind_mail = $('#changebind-new-mail-input').val();
|
||||
if (old_mail_code == '' || new_mail_code == '' || bind_mail == '') {
|
||||
addarelt('请补全全部参数再提交', 'erro');
|
||||
return;
|
||||
}
|
||||
if (!isEmail(bind_mail)) {
|
||||
addarelt('请输入正确的新邮箱地址', 'erro');
|
||||
return;
|
||||
}
|
||||
$(btn_name).text('提交中');
|
||||
$.post('<?php echo AJAX_URL?>', {
|
||||
action: 'corepress_changebind',
|
||||
type: 'bindemail',
|
||||
old_mail_code, new_mail_code,bind_mail
|
||||
}, function (data) {
|
||||
var obj = JSON.parse(data);
|
||||
if (obj.code === 1) {
|
||||
addarelt(obj.msg, 'succ');
|
||||
$('#usercenter-bind-plane-mail').text(bind_mail);
|
||||
$(btn_name).text('提交修改');
|
||||
} else {
|
||||
addarelt(obj.msg, 'erro');
|
||||
$(btn_name).text('提交修改');
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
$('#changebind-get-old-mail-code-btn').click(function () {
|
||||
var clickbtn = '#changebind-get-old-mail-code-btn';
|
||||
$(clickbtn).text('发送中');
|
||||
$.post('<?php echo AJAX_URL?>', {
|
||||
action: 'corepress_getpwdmailcode',
|
||||
type: 'changemail'
|
||||
}, function (data) {
|
||||
var obj = JSON.parse(data);
|
||||
if (obj.code === 1) {
|
||||
addarelt(obj.msg, 'succ');
|
||||
countdown(clickbtn);
|
||||
} else {
|
||||
addarelt(obj.msg, 'erro');
|
||||
$(clickbtn).text('发送');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$('#changebind-get-new-mail-code-btn').click(function () {
|
||||
var old_mail_code = $('#changebind-old-mail-code-input').val();
|
||||
var bind_mail = $('#changebind-new-mail-input').val();
|
||||
var clickbtn = '#changebind-get-new-mail-code-btn';
|
||||
if (old_mail_code == '') {
|
||||
addarelt('请先获取原始邮箱验证码', 'erro');
|
||||
return;
|
||||
}
|
||||
if (bind_mail == '' || !isEmail(bind_mail)) {
|
||||
addarelt('请输入正确的新邮箱地址', 'erro');
|
||||
return;
|
||||
}
|
||||
|
||||
$(clickbtn).text('发送中');
|
||||
$.post('<?php echo AJAX_URL?>', {
|
||||
action: 'corepress_getpwdmailcode',
|
||||
type: 'bindemail',
|
||||
mail: bind_mail,
|
||||
oldcode: old_mail_code
|
||||
}, function (data) {
|
||||
var obj = JSON.parse(data);
|
||||
if (obj.code === 1) {
|
||||
addarelt(obj.msg, 'succ');
|
||||
countdown(clickbtn);
|
||||
} else {
|
||||
addarelt(obj.msg, 'erro');
|
||||
$(clickbtn).text('发送');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$('#btn-change-pwd').click(function () {
|
||||
var oldpwd = $('#input-oldpwd').val();
|
||||
var newpwd = $('#input-newpwd').val();
|
||||
var mailcode = $('#input-pwd-mail-code').val();
|
||||
if (oldpwd == '' || newpwd == '' || mailcode == '') {
|
||||
addarelt('请输入内容', 'erro');
|
||||
return;
|
||||
}
|
||||
if (oldpwd == newpwd) {
|
||||
addarelt('老密码和新密码一样', 'erro');
|
||||
return;
|
||||
}
|
||||
if (isChinese(newpwd)) {
|
||||
addarelt('密码不支持中文', 'erro');
|
||||
return;
|
||||
}
|
||||
if (!haveNumandLetter(newpwd)) {
|
||||
addarelt('密码必须包含字母和数字', 'erro');
|
||||
return;
|
||||
}
|
||||
if (newpwd.length < 8) {
|
||||
addarelt('密码必须大于8位', 'erro');
|
||||
return;
|
||||
}
|
||||
|
||||
$(this).text('提交中');
|
||||
$.post('<?php echo AJAX_URL?>', {
|
||||
action: 'corepress_changepwd',
|
||||
oldpwd: oldpwd,
|
||||
newpwd: newpwd,
|
||||
mailcode: mailcode
|
||||
}, (data) => {
|
||||
var obj = JSON.parse(data);
|
||||
$(this).text('修改密码');
|
||||
if (obj.code === 1) {
|
||||
addarelt(obj.msg, 'succ');
|
||||
} else {
|
||||
addarelt(obj.msg, 'erro');
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
$('#btn-pwd-get-mail-code').click(function (data) {
|
||||
$('#btn-pwd-get-mail-code').text('发送中');
|
||||
$.post('<?php echo AJAX_URL?>', {
|
||||
action: 'corepress_getpwdmailcode',
|
||||
type: 'changepwd'
|
||||
}, function (data) {
|
||||
var obj = JSON.parse(data);
|
||||
if (obj.code === 1) {
|
||||
addarelt(obj.msg, 'succ');
|
||||
countdown('#btn-pwd-get-mail-code');
|
||||
} else {
|
||||
addarelt(obj.msg, 'erro');
|
||||
$('#btn-pwd-get-mail-code').text('发送');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
function countdown(obj) {
|
||||
$(obj).attr("disabled", "true");
|
||||
var i = 60;
|
||||
var timer = setInterval(function () {
|
||||
i--;
|
||||
$(obj).text('已发送(' + i + ')')
|
||||
if (i <= 0) {
|
||||
clearInterval(timer);
|
||||
$(obj).text('发送');
|
||||
$(obj).removeAttr("disabled");
|
||||
}
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
$('.usercenter-menu-info').click(function () {
|
||||
$('.usercenter-menu-item').removeClass('usercenter-menu-item-active');
|
||||
$(this).addClass('usercenter-menu-item-active');
|
||||
$('.plane-info').show();
|
||||
$('.plane-pwd').hide();
|
||||
$('.plane-bind').hide();
|
||||
|
||||
});
|
||||
$('.usercenter-menu-pwd').click(function () {
|
||||
$('.usercenter-menu-item').removeClass('usercenter-menu-item-active');
|
||||
$(this).addClass('usercenter-menu-item-active');
|
||||
$('.plane-info').hide();
|
||||
$('.plane-pwd').show();
|
||||
$('.plane-bind').hide();
|
||||
|
||||
|
||||
});
|
||||
$('.usercenter-menu-bind').click(function () {
|
||||
$('.usercenter-menu-item').removeClass('usercenter-menu-item-active');
|
||||
$(this).addClass('usercenter-menu-item-active');
|
||||
$('.plane-info').hide();
|
||||
$('.plane-pwd').hide();
|
||||
$('.plane-bind').show();
|
||||
|
||||
});
|
||||
$('.usercenter-closeeditmail-a').click(function () {
|
||||
$(this).hide();
|
||||
$('.usercenter-editmail-a').show();
|
||||
$('.plane-bind-editemail-plane').hide();
|
||||
});
|
||||
$('.usercenter-editmail-a').click(function () {
|
||||
$(this).hide();
|
||||
$('.usercenter-closeeditmail-a').show();
|
||||
$('.plane-bind-editemail-plane').show();
|
||||
|
||||
});
|
||||
$('#btn-save-info').click(function () {
|
||||
var user = $('#input-user').val();
|
||||
var description = $('#input-description').val();
|
||||
$.post('<?php echo AJAX_URL?>', {
|
||||
action: 'corepress_updateuserinfo',
|
||||
user: user,
|
||||
description: description
|
||||
}, function (data) {
|
||||
var obj = JSON.parse(data);
|
||||
if (obj.code === 1) {
|
||||
addarelt(obj.msg, 'succ');
|
||||
} else {
|
||||
addarelt('修改失败', 'erro');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<footer>
|
||||
<?php
|
||||
wp_footer();
|
||||
get_footer(); ?>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
53
page.php
|
@ -16,36 +16,51 @@ the_post();
|
|||
?>
|
||||
</div>
|
||||
</header>
|
||||
<div style="min-height: 80px;width: 100%;"></div>
|
||||
<div class="top-divider"></div>
|
||||
<main class="container">
|
||||
<div class="html-main">
|
||||
<?php
|
||||
global $set;
|
||||
if ($set['theme']['sidebar_position'] == 1) {
|
||||
global $corepress_post_meta;
|
||||
if ($corepress_post_meta['closesidebar'] == 1) {
|
||||
?>
|
||||
<div class="post-main">
|
||||
<?php get_template_part('component/post-content'); ?>
|
||||
</div>
|
||||
<div class="sidebar">
|
||||
<div class="sidebar-box-list">
|
||||
<?php dynamic_sidebar('post_sidebar'); ?>
|
||||
</div>
|
||||
<style>
|
||||
body .post-info-right {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
<div class="post-main post-main-closesidebar" style="flex-basis: 100%;">
|
||||
<?php
|
||||
get_template_part('component/post-page');
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
<div class="sidebar">
|
||||
<div class="sidebar-box-list">
|
||||
<?php dynamic_sidebar('post_sidebar'); ?>
|
||||
if ($set['theme']['sidebar_position'] == 1) {
|
||||
?>
|
||||
<div class="post-main">
|
||||
<?php get_template_part('component/post-page'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="post-main">
|
||||
<?php get_template_part('component/post-content'); ?>
|
||||
</div>
|
||||
<?php
|
||||
<div class="sidebar">
|
||||
<div class="sidebar-box-list">
|
||||
<?php dynamic_sidebar('post_sidebar'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
<div class="sidebar">
|
||||
<div class="sidebar-box-list">
|
||||
<?php dynamic_sidebar('post_sidebar'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="post-main">
|
||||
<?php get_template_part('component/post-page'); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
<footer>
|
||||
|
|
Before Width: | Height: | Size: 105 KiB |
|
@ -14,7 +14,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div style="min-height: 80px;width: 100%;"></div>
|
||||
<div class="top-divider"></div>
|
||||
<main class="container">
|
||||
<div class="html-main">
|
||||
<?php
|
||||
|
@ -77,8 +77,6 @@
|
|||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
</div>
|
||||
</main>
|
||||
<footer>
|
||||
|
|
53
single.php
|
@ -16,33 +16,50 @@ the_post();
|
|||
?>
|
||||
</div>
|
||||
</header>
|
||||
<div style="min-height: 80px;width: 100%;"></div>
|
||||
<div class="top-divider"></div>
|
||||
<main class="container">
|
||||
<div class="html-main">
|
||||
<?php
|
||||
global $set;
|
||||
if ($set['theme']['sidebar_position'] == 1) {
|
||||
global $corepress_post_meta;
|
||||
|
||||
if ($corepress_post_meta['closesidebar'] == 1) {
|
||||
?>
|
||||
<div class="post-main">
|
||||
<?php get_template_part('component/post-content'); ?>
|
||||
</div>
|
||||
<div class="sidebar">
|
||||
<div class="sidebar-box-list">
|
||||
<?php dynamic_sidebar('post_sidebar'); ?>
|
||||
</div>
|
||||
<style>
|
||||
body .post-info-right {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
<div class="post-main post-main-closesidebar" style="flex-basis: 100%;">
|
||||
<?php
|
||||
get_template_part('component/post-content');
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
<div class="sidebar">
|
||||
<div class="sidebar-box-list">
|
||||
<?php dynamic_sidebar('post_sidebar'); ?>
|
||||
if ($set['theme']['sidebar_position'] == 1) {
|
||||
?>
|
||||
<div class="post-main">
|
||||
<?php get_template_part('component/post-content'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="post-main">
|
||||
<?php get_template_part('component/post-content'); ?>
|
||||
</div>
|
||||
<?php
|
||||
<div class="sidebar">
|
||||
<div class="sidebar-box-list">
|
||||
<?php dynamic_sidebar('post_sidebar'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
<div class="sidebar">
|
||||
<div class="sidebar-box-list">
|
||||
<?php dynamic_sidebar('post_sidebar'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="post-main">
|
||||
<?php get_template_part('component/post-content'); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
*{padding:0;margin:0}[v-cloak]{display:none}#app input{box-shadow:none;border:1px solid #DCDFE6;background-color:#fff;color:#606266}#app input:focus{border-color:#409EFF;outline:0}#app textarea:focus{box-shadow:none}#app{margin:10px;background:#fff;align-items:stretch;border-radius:4px}.set-plane-nocenter{align-items:flex-start!important}.set-plane{display:flex;width:100%;align-items:center;margin-bottom:10px}.set-plane-note{margin-bottom:30px!important}.set-title{flex-basis:20%;max-width:200px;font-weight:600}.set-object{flex-basis:70%}.setmain{min-height:600px;display:flex;flex-direction:column;position:relative}.header-set-title{background:#409EFF;color:#fff;display:flex;padding-left:20px;padding-right:20px;justify-content:space-between;align-items:center}.header-set-title-name{display:flex}.header-set-title img{width:30px}.header-set-title h2{color:#fff;padding:0 10px;font-size:20px;font-weight:300}.set-main-plane{flex:1;display:flex;align-items:stretch;height:100%}.control-plane{padding:10px;box-sizing:border-box;text-align:right;left:0;right:0;bottom:0;background-color:#f9fafb;border-top:1px solid #e9e9ea;position:sticky}.set-main-menu-list{height:100%}.set-main-menu{flex:30%;max-width:200px}.set-main-form{flex:1;padding:10px;overflow:auto;height:100%}.set-main-form h3,h3{border-bottom:1px solid #eee;padding-bottom:10px}.swiper-title{margin-right:20px}.swiper-control{padding-bottom:20px}.swiper-colbtn{background:#C0C4CC;padding:6px;color:#fff;border-radius:2px}#corepress-post-meta input[type=text]:hover{border-color:#C0C4CC}#corepress-post-meta input[type=text]:focus{border-color:#409EFF;outline:0;box-shadow:none}#corepress-post-meta input[type=text]{border:1px solid #DCDFE6;color:#606266}#corepress-post-meta textarea:focus{box-shadow:none}#corepress-post-meta input[readonly]{background:#fff}
|
||||
*{padding:0;margin:0}[v-cloak]{display:none}#app input{box-shadow:none;border:1px solid #DCDFE6;background-color:#fff;color:#606266}#app input:focus{border-color:#409EFF;outline:0}#app textarea:focus{box-shadow:none}#app{margin:10px;background:#fff;align-items:stretch;border-radius:4px}.set-plane-nocenter{align-items:flex-start!important}.set-plane{display:flex;width:100%;align-items:center;margin-bottom:10px}.set-plane-note{margin-bottom:30px!important}.set-title{flex-basis:20%;max-width:200px;font-weight:600}.set-object{flex-basis:70%}.setmain{min-height:600px;display:flex;flex-direction:column;position:relative}.header-set-title{background:#409EFF;color:#fff;display:flex;padding-left:20px;padding-right:20px;justify-content:space-between;align-items:center}.header-set-title-name{display:flex}.header-set-title img{width:30px}.header-set-title h2{color:#fff;padding:0 10px;font-size:20px;font-weight:300}.set-main-plane{flex:1;display:flex;align-items:stretch;height:100%}.control-plane{padding:10px;box-sizing:border-box;text-align:right;left:0;right:0;bottom:0;background-color:#f9fafb;border-top:1px solid #e9e9ea;position:sticky}.set-main-menu-list{height:100%}.set-main-menu{flex:30%;max-width:200px}.set-main-form{flex:1;padding:10px;overflow:auto;height:100%}.set-main-form h3,h3{border-bottom:1px solid #eee;padding-bottom:10px}.swiper-title{margin-right:20px}.swiper-control{padding-bottom:20px}.swiper-colbtn{background:#C0C4CC;padding:6px;color:#fff;border-radius:2px}.index-card-plane-thumbnail{display:inline-block;position:relative;margin-right:60px}.index-card-plane-thumbnail img{width:50px;height:auto;max-height:30px;position:absolute;bottom:-10px}.el-collapse{border-top:none!important}#corepress-post-meta input[type=text]:hover{border-color:#C0C4CC}#corepress-post-meta input[type=text]:focus{border-color:#409EFF;outline:0;box-shadow:none}#corepress-post-meta input[type=text]{border:1px solid #DCDFE6;color:#606266}#corepress-post-meta textarea:focus{box-shadow:none}#corepress-post-meta input[readonly]{background:#fff}
|
|
@ -1 +1 @@
|
|||
.corepress-edit-window{padding:10px;height:200px}.corepress-edit-window h3{margin:10px 0!important;font-size:14px}.corepress-edit-window-btn{margin-bottom:10px!important}.corepress-edit-code{display:block;width:100%;height:350px;margin-bottom:10px}.corepress-edit-code-line{width:100%;height:100px;margin-bottom:10px}.el-button+.el-button{margin-left:0!important}
|
||||
.corepress-edit-window{padding:10px;height:200px}.corepress-edit-window h3{margin:10px 0!important;font-size:14px}.corepress-edit-code{display:block;width:100%;height:350px;margin-bottom:10px}.corepress-edit-code-line{width:100%;height:100px;margin-bottom:10px}.el-button+.el-button{margin-left:0!important}.short-plane{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.short-plane-list .corepress-edit-window-btn{margin-bottom:10px}
|
|
@ -1 +1 @@
|
|||
#login-plane,.msgbox{display:flex;justify-content:center}.container-main{margin-top:70px}.reg-plane-main{max-width:440px;margin:auto;background:#fff;padding:10px}.login-main{position:relative;max-width:440px;background:#fff;box-shadow:0 4px 16px rgba(0,0,0,.15);margin:30px;border-radius:4px;overflow:hidden}.login-form{padding:10px 20px 20px 20px}.input-login{display:inline-block;width:100%;height:37px;padding:10px 10px 10px 34px;line-height:16px;font-size:14px;color:#333;font-weight:400;border:0;border-bottom:1px solid #ddd;background:0;outline:0;box-sizing:border-box;margin-bottom:10px}.input-warning{border-bottom-color:red}#login-note{background:#fffbe5;color:#5c3c00;padding:8px;visibility:hidden}.code-plane{display:flex}.ico-login{position:relative;top:30px;font-size:20px;left:8px;color:#999}.login-button{margin-top:20px;font-weight:400;text-align:center;vertical-align:middle;touch-action:manipulation;user-select:none;width:100%;font-size:16px;color:#fff;background:#3ca5f6;border:0;margin-bottom:5px;border-radius:3px;text-indent:0;outline:0;padding:10px 16px;display:block}.login-button:active{box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.msgbox-content{position:absolute;display:inline-block;background:#f0f9eb;color:#6bc440;padding:10px 50px;border-radius:4px;vertical-align:middle;border:2px solid #e1f3d8;font-size:14px;top:0;z-index:999;transition:.5s;opacity:0}.msgbox-content-show{top:10%;visibility:visible;opacity:1}.login-title{display:flex;justify-content:space-between;align-items:center}@media screen and (max-width:400px){body .login-main{box-shadow:none;margin:0}}.login-background{background-repeat:no-repeat!important;background-size:cover!important}
|
||||
#login-plane,.msgbox{display:flex;justify-content:center}.container-main{margin-top:70px}.reg-plane-main{max-width:440px;margin:auto;background:#fff;padding:10px}.login-main{position:relative;max-width:440px;background:#fff;box-shadow:0 4px 16px rgba(0,0,0,.15);margin:30px;border-radius:4px;overflow:hidden}.login-form{padding:10px 20px 20px 20px}.input-login{display:inline-block;width:100%;height:37px;padding:10px 10px 10px 34px;line-height:16px;font-size:14px;color:#333;font-weight:400;border:0;border-bottom:1px solid #ddd;background:0;outline:0;box-sizing:border-box;margin-bottom:10px}.input-warning{border-bottom-color:red}#login-note{background:#fffbe5;color:#5c3c00;padding:8px;visibility:hidden}.code-plane{display:flex}.ico-login{position:relative;top:30px;font-size:20px;left:8px;color:#999}.login-button{margin-top:20px;font-weight:400;text-align:center;vertical-align:middle;touch-action:manipulation;user-select:none;width:100%;font-size:16px;color:#fff;background:#3ca5f6;border:0;margin-bottom:5px;border-radius:3px;text-indent:0;outline:0;padding:10px 16px;display:block}.login-button:active{box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.msgbox-content{position:absolute;display:inline-block;background:#f0f9eb;color:#6bc440;padding:10px 50px;border-radius:4px;vertical-align:middle;border:2px solid #e1f3d8;font-size:14px;top:0;z-index:999;transition:.5s;opacity:0}.msgbox-content-show{top:10%;visibility:visible;opacity:1}.login-title{display:flex;justify-content:space-between;align-items:center}@media screen and (max-width:400px){body .login-main{box-shadow:none;margin:0}}.login-background{background-repeat:no-repeat!important;background-size:cover!important}.usercenter-plane{display:flex;justify-content:space-between;margin:10px}.usercenter-left{flex-basis:30%}.usercenter-right{flex-basis:70%;background-color:#fff;padding:10px;margin-left:10px}.usercenter-userinfo{margin-bottom:10px;background-color:#fff;padding:30px 10px;text-align:center}.usercenter-menu{padding:10px;background-color:#fff}.usercenter-info-item{margin-top:10px;display:flex;align-content:flex-start}.usercenter-form-input{padding:6px;border:1px solid #dcdfe6;outline:0;border-radius:4px;transition:border-color .2s cubic-bezier(.645,.045,.355,1)}.usercenter-info-title{flex-basis:20%;max-width:200px;margin-bottom:30px;font-size:14px;color:#999;user-select:none}.usercenter-info-text{font-size:14px;color:#999;user-select:none}.usercenter-info-text p{margin:6px 0}.usercenter-info-h3{margin:10px 0 30px 0;font-weight:300}.usercenter-form-input:focus{border-color:var(--Maincolor)}.usercenter-info-login{color:#999}.usercenter-info-body{flex-basis:70%}.usercenter-form-description{width:100%}.usercenter-info-description{margin-top:0!important;font-size:14px;color:#999}.usercenter-menu-item{padding:6px 0;position:relative;cursor:pointer}.usercenter-menu-item-active{color:var(--Maincolor)}.usercenter-a{color:var(--Maincolor);cursor:pointer;margin-left:10px}.send-mail-btn{width:80px!important}
|
|
@ -1,3 +1,3 @@
|
|||
/**
|
||||
移动适配
|
||||
*/.mobile-menu-btn,.mobile-search-btn{display:none;padding:10px}@media screen and (max-width:1040px){body .user-menu-pc-search{display:none}body .header-menu{display:none!important}body .header-logo img{height:40px}body .mobile-search-btn{display:block}body .mobile-menu-btn,.mobile-search-btn{display:block}.menu-header-list>.menu-item-has-children:after,.user-menu:after{display:none}body .menu-header-list>.menu-item>a:before{display:none!important}body .menu-header-list>.menu-item{padding:0}header .current-menu-item:before{display:none!important}body .menu-header-list{flex-direction:column}body .menu-item-has-children:hover>.sub-menu{width:100%}body .user-sub-menu{width:100%;left:unset}.m-dropdown{display:block;position:absolute;right:3px;top:0;width:50px;text-align:center;line-height:62px;transition:all .3s ease-out 0s}body .sub-menu .sub-menu{left:0;top:100%}}@media screen and (max-width:800px){::-webkit-scrollbar{width:4px!important;height:4px!important}body .post-content{padding:15px}body .post-item h2{font-size:18px}body .mobile-menu-btn,.mobile-search-btn{display:block}body .sidebar,.footer-container{display:none}body .header-main{justify-content:space-between}body .go-top-plane{display:none}body .post-main{margin:0;margin-bottom:10px;flex-basis:95%}body .header-logo img{height:40px}body .html-main{justify-content:center}.footer-container>div:nth-child(1){display:none}.footer-container>div:nth-child(3){display:none}.frinds-links{display:none}}@media screen and (max-width:1384px){#post-catalog{visibility:hidden!important}}@media screen and (max-width:500px){body .post-item-meta{display:none}body .post-content{padding:10px}.post-item-content{display:none}body .logged-in-as{display:none}body .post-item-info-type1{display:none}}.drawer-menu-plane-show{visibility:visible!important;left:0!important;opacity:1!important}.drawer-menu-plane{opacity:0;display:flex;visibility:hidden;position:fixed;top:0;left:-100px;right:0;bottom:0;overflow:hidden;z-index:9999;transition:all .3s ease-out 0s}.drawer-menu-list{position:relative;flex:70%;max-width:400px;background:#fff}.drawer-menu-write{flex:30%;background:#000;opacity:.4}.mobile-menu-header-list .menu-item{padding:10px}.dialog-search-plane-show{visibility:visible!important}.dialog-search-plane-show .dialog-plane{opacity:1!important;top:0!important}.dialog-search-plane{display:flex;visibility:hidden;position:fixed;top:0;left:0;right:0;bottom:0;overflow:hidden;z-index:9999;justify-content:center;align-items:center}.dialog-mask{position:absolute;top:0;left:0;right:0;bottom:0;opacity:.4;background:#000}.dialog-plane{padding:10px;top:-100px;transition:all .3s ease-out 0s;opacity:0;position:relative;flex:70%;max-width:400px;background:#fff;z-index:99999;height:150px;border-radius:4px;text-align:center}.dialog-plane h2{font-size:20px;font-weight:500;padding:6px 10px}.dialog-plane .search-form{padding:20px}
|
||||
*/.mobile-menu-btn,.mobile-search-btn{display:none;padding:10px}@media screen and (max-width:1040px){body .user-menu-pc-search{display:none}body .header-menu{display:none!important}body .header-logo img{height:40px}body .mobile-search-btn{display:block}body .mobile-menu-btn,.mobile-search-btn{display:block}.menu-header-list>.menu-item-has-children:after,.user-menu:after{display:none}body .menu-header-list>.menu-item>a:before{display:none!important}body .menu-header-list>.menu-item{padding:0}header .current-menu-item:before{display:none!important}body .menu-header-list{flex-direction:column}body .menu-item-has-children:hover>.sub-menu{width:100%}body .user-sub-menu{width:100%;left:unset}.m-dropdown{display:block;position:absolute;right:3px;top:0;width:50px;text-align:center;line-height:62px;transition:all .3s ease-out 0s}body .sub-menu .sub-menu{left:0;top:100%}}@media screen and (max-width:800px){::-webkit-scrollbar{width:4px!important;height:4px!important}body .index-top-postcard-item{margin-bottom:10px}body .carousel{margin-bottom:10px}body .index-top-postcard-item{flex-basis:49%}body .post-qrcode-btn{display:none}body .post-content{padding:15px}body .post-info-right{display:none}body .post-item-thumbnail{flex:35%;flex-shrink:0}body .post-item h2{font-size:18px}body .mobile-menu-btn,.mobile-search-btn{display:block}body .sidebar,.footer-container{display:none}body .header-main{justify-content:space-between}body .go-top-plane{display:none}body .post-main{margin:0;margin-bottom:10px;flex-basis:95%!important}body .header-logo img{height:40px}body .html-main{justify-content:center}.footer-container .footer-left{flex:100%;flex-shrink:0}.footer-container .footer-right,.footer-container .footer-aside-box,.footer-container .menu-footer-plane{display:none}.frinds-links{display:none}body .c-downbtn-item{width:100%}body .usercenter-plane{display:block}body .usercenter-menu{margin-bottom:10px}body .usercenter-right{margin-left:0}body .header-zhanwei{min-height:50px!important}}@media screen and (max-width:500px){body .cat-item{font-size:12px}body .index-top-postcard-item{flex-basis:48%}body .post-item h2{font-size:16px}body .pageobj-item{display:none}body .avatar-img{width:30px;height:30px}body .commentlist{padding:0 20px}body .commentlist>.comment>.children{padding-left:30px}body .comment-pub-time{font-size:12px}body .commentlist>.comment>.children>.comment{padding:0 10px}body .comment-metadata{margin-left:10px}body .comment-btn-reply{opacity:1;visibility:visible}body .comment-reply-link{font-size:12px}body .top-divider{min-height:60px}body .c-downbtn-item{display:block}body .c-downbtn-describe{margin-bottom:10px}body .post-turn-page-plane,body .post-info-left{display:none}body .post-title{margin-bottom:0}body #reward-plane img{max-width:150px}body .post-pop-plane{padding:10px}}@media screen and (max-width:1384px){#post-catalog{visibility:hidden!important}}@media screen and (max-width:500px){body .post-item-meta{display:none}body .post-content{padding:10px}.post-item-content{display:none}body .logged-in-as{display:none}body .post-item-info-type1{display:none}}@media screen and (max-width:360px){body .theme-copyright{display:none}}.drawer-menu-plane-show{visibility:visible!important;left:0!important;opacity:1!important}.drawer-menu-plane{opacity:0;display:flex;visibility:hidden;position:fixed;top:0;left:-100px;right:0;bottom:0;overflow:hidden;z-index:9999;transition:all .3s ease-out 0s}.drawer-menu-list{position:relative;flex:70%;max-width:400px;background:#fff}.drawer-menu-write{flex:30%;background:#000;opacity:.4}.mobile-menu-header-list .menu-item{padding:10px}.dialog-search-plane-show{visibility:visible!important}.dialog-search-plane-show .dialog-plane{opacity:1!important;top:0!important}.dialog-search-plane{display:flex;visibility:hidden;position:fixed;top:0;left:0;right:0;bottom:0;overflow:hidden;z-index:9999;justify-content:center;align-items:center}.dialog-mask{position:absolute;top:0;left:0;right:0;bottom:0;opacity:.4;background:#000}.dialog-plane{padding:10px;top:-100px;transition:all .3s ease-out 0s;opacity:0;position:relative;flex:70%;max-width:400px;background:#fff;z-index:99999;height:150px;border-radius:4px;text-align:center}.dialog-plane h2{font-size:20px;font-weight:500;padding:6px 10px}.dialog-plane .search-form{padding:20px}
|
Before Width: | Height: | Size: 6.9 KiB |
|
@ -0,0 +1 @@
|
|||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1610794200367" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11672" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M778.24 163.84c-76.8-40.96-165.888-61.44-269.312-61.44s-192.512 20.48-269.312 61.44h-133.12l23.552 337.92c8.192 113.664 67.584 217.088 162.816 280.576l215.04 144.384 215.04-144.384c96.256-63.488 155.648-166.912 163.84-280.576l23.552-337.92H778.24z m47.104 333.824c-7.168 94.208-56.32 181.248-135.168 233.472L508.928 851.968 327.68 731.136c-78.848-53.248-129.024-139.264-135.168-233.472L173.056 225.28h136.192v-26.624c58.368-23.552 124.928-34.816 199.68-34.816s141.312 12.288 199.68 34.816v26.624H844.8l-19.456 272.384z" fill="#2468F2" p-id="11673"></path><path d="M685.056 328.704v-46.08H455.68c2.048-4.096 6.144-9.216 11.264-15.36 5.12-7.168 9.216-12.288 11.264-15.36L419.84 240.64c-31.744 46.08-75.776 87.04-133.12 123.904 4.096 4.096 10.24 11.264 18.432 21.504l17.408 17.408c23.552-15.36 45.056-31.744 63.488-50.176 26.624 25.6 49.152 43.008 67.584 51.2-46.08 15.36-104.448 27.648-175.104 35.84 2.048 5.12 6.144 13.312 9.216 24.576 4.096 11.264 6.144 19.456 7.168 24.576l39.936-7.168v218.112h54.272V680.96h238.592v19.456h54.272V481.28H348.16c60.416-12.288 114.688-27.648 163.84-46.08 49.152 19.456 118.784 34.816 210.944 46.08 5.12-17.408 10.24-34.816 17.408-51.2-62.464-4.096-116.736-12.288-161.792-24.576 38.912-20.48 74.752-46.08 106.496-76.8z m-150.528 194.56h94.208v41.984h-94.208v-41.984z m0 78.848h94.208v41.984h-94.208v-41.984z m-144.384-78.848h94.208v41.984h-94.208v-41.984z m0 78.848h94.208v41.984h-94.208v-41.984z m34.816-275.456h182.272c-26.624 22.528-57.344 41.984-94.208 57.344-31.744-15.36-61.44-34.816-88.064-57.344z" fill="#2468F2" p-id="11674"></path></svg>
|
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 21 KiB |
|
@ -0,0 +1 @@
|
|||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1611304985070" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2030" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M511.413646 65.750493c-247.232824 0-447.682136 200.421682-447.682136 447.682136S264.180821 961.115787 511.413646 961.115787s447.682136-200.421682 447.682136-447.682136S758.645446 65.750493 511.413646 65.750493zM511.413646 905.155265c-216.298278 0-391.721613-175.396729-391.721613-391.721613s175.423335-391.721613 391.721613-391.721613c216.353536 0 391.721613 175.396729 391.721613 391.721613S727.766159 905.155265 511.413646 905.155265z" p-id="2031"></path><path d="M526.387685 472.448192c-10.92891 10.956539-28.635177 10.956539-39.569204 0L328.557014 314.186725c-10.92891-10.956539-10.92891-28.640294 0-39.569204l0 0c10.92891-10.956539 28.635177-10.956539 39.569204 0l158.261467 158.261467C537.316595 443.813015 537.316595 461.519282 526.387685 472.448192L526.387685 472.448192z" p-id="2032"></path><path d="M496.437559 472.448192c-10.92891-10.92891-10.92891-28.635177 0-39.569204L654.699026 274.617521c10.93505-10.92891 28.640294-10.92891 39.569204 0l0 0c10.92891 10.92891 10.92891 28.635177 0 39.569204L536.006763 472.448192C525.072737 483.377102 507.36647 483.377102 496.437559 472.448192L496.437559 472.448192z" p-id="2033"></path><path d="M735.254713 485.453391c0 15.467273-12.512988 27.980261-27.980261 27.980261l-391.721613 0c-15.468296 0-27.980261-12.512988-27.980261-27.980261l0 0c0-15.467273 12.511965-27.980261 27.980261-27.980261l391.721613 0C722.740702 457.473129 735.254713 469.986117 735.254713 485.453391L735.254713 485.453391z" p-id="2034"></path><path d="M735.254713 597.373413c0 15.467273-12.512988 27.980261-27.980261 27.980261l-391.721613 0c-15.468296 0-27.980261-12.512988-27.980261-27.980261l0 0c0-15.467273 12.511965-27.980261 27.980261-27.980261l391.721613 0C722.740702 569.393151 735.254713 581.90614 735.254713 597.373413L735.254713 597.373413z" p-id="2035"></path><path d="M539.392884 765.254981c0 15.467273-12.512988 27.980261-27.980261 27.980261l0 0c-15.468296 0-27.980261-12.512988-27.980261-27.980261L483.432361 485.453391c0-15.467273 12.511965-27.980261 27.980261-27.980261l0 0c15.467273 0 27.980261 12.512988 27.980261 27.980261L539.392884 765.254981z" p-id="2036"></path></svg>
|
After Width: | Height: | Size: 2.4 KiB |
|
@ -0,0 +1,3 @@
|
|||
<svg class="icon" viewBox="0 0 1024 1024">
|
||||
<path d="M793.472 102.208c-70.592 0-128 57.408-128 128 0 7.744 0.96 15.232 2.304 22.656L273.6 422.976C250.368 399.04 217.92 384 181.952 384c-70.592 0-128 57.408-128 128 0 70.592 57.408 128 128 128 22.912 0 44.096-6.592 62.72-17.152l289.088 180.992c-4.672 13.312-7.744 27.392-7.744 42.24 0 70.592 57.408 128 128 128s128-57.408 128-128-57.408-128-128-128c-32.512 0-61.888 12.544-84.48 32.64L291.712 576.832C302.976 557.696 309.952 535.744 309.952 512c0-11.456-1.984-22.336-4.8-32.896l389.76-168.32c23.488 28.672 58.752 47.36 98.624 47.36 70.592 0 128-57.408 128-128S864.064 102.208 793.472 102.208zM117.952 512c0-35.264 28.736-64 64-64s64 28.736 64 64-28.736 64-64 64S117.952 547.264 117.952 512zM654.016 782.144c35.328 0 64 28.672 64 64s-28.672 64-64 64-64-28.672-64-64S618.688 782.144 654.016 782.144zM793.472 294.208c-35.328 0-64-28.736-64-64s28.672-64 64-64 64 28.736 64 64S828.8 294.208 793.472 294.208z"></path>
|
||||
</svg>
|
After Width: | Height: | Size: 969 B |
|
@ -0,0 +1,25 @@
|
|||
<svg t="1599120943195" name="share-qq" class="share-icon"
|
||||
viewBox="0 0 1024 1024"
|
||||
version="1.1"
|
||||
xmlns="http://www.w3.org/2000/svg" p-id="3139" width="200" height="200">
|
||||
<path d="M511.09761 957.257c-80.159 0-153.737-25.019-201.11-62.386-24.057 6.702-54.831 17.489-74.252 30.864-16.617 11.439-14.546 23.106-11.55 27.816 13.15 20.689 225.583 13.211 286.912 6.767v-3.061z"
|
||||
fill="#FAAD08" p-id="3140"></path>
|
||||
<path d="M496.65061 957.257c80.157 0 153.737-25.019 201.11-62.386 24.057 6.702 54.83 17.489 74.253 30.864 16.616 11.439 14.543 23.106 11.55 27.816-13.15 20.689-225.584 13.211-286.914 6.767v-3.061z"
|
||||
fill="#FAAD08" p-id="3141"></path>
|
||||
<path d="M497.12861 474.524c131.934-0.876 237.669-25.783 273.497-35.34 8.541-2.28 13.11-6.364 13.11-6.364 0.03-1.172 0.542-20.952 0.542-31.155C784.27761 229.833 701.12561 57.173 496.64061 57.162 292.15661 57.173 209.00061 229.832 209.00061 401.665c0 10.203 0.516 29.983 0.547 31.155 0 0 3.717 3.821 10.529 5.67 33.078 8.98 140.803 35.139 276.08 36.034h0.972z"
|
||||
fill="#000000" p-id="3142"></path>
|
||||
<path d="M860.28261 619.782c-8.12-26.086-19.204-56.506-30.427-85.72 0 0-6.456-0.795-9.718 0.148-100.71 29.205-222.773 47.818-315.792 46.695h-0.962C410.88561 582.017 289.65061 563.617 189.27961 534.698 185.44461 533.595 177.87261 534.063 177.87261 534.063 166.64961 563.276 155.56661 593.696 147.44761 619.782 108.72961 744.168 121.27261 795.644 130.82461 796.798c20.496 2.474 79.78-93.637 79.78-93.637 0 97.66 88.324 247.617 290.576 248.996a718.01 718.01 0 0 1 5.367 0C708.80161 950.778 797.12261 800.822 797.12261 703.162c0 0 59.284 96.111 79.783 93.637 9.55-1.154 22.093-52.63-16.623-177.017"
|
||||
fill="#000000" p-id="3143"></path>
|
||||
<path d="M434.38261 316.917c-27.9 1.24-51.745-30.106-53.24-69.956-1.518-39.877 19.858-73.207 47.764-74.454 27.875-1.224 51.703 30.109 53.218 69.974 1.527 39.877-19.853 73.2-47.742 74.436m206.67-69.956c-1.494 39.85-25.34 71.194-53.24 69.956-27.888-1.238-49.269-34.559-47.742-74.435 1.513-39.868 25.341-71.201 53.216-69.974 27.909 1.247 49.285 34.576 47.767 74.453"
|
||||
fill="#FFFFFF" p-id="3144"></path>
|
||||
<path d="M683.94261 368.627c-7.323-17.609-81.062-37.227-172.353-37.227h-0.98c-91.29 0-165.031 19.618-172.352 37.227a6.244 6.244 0 0 0-0.535 2.505c0 1.269 0.393 2.414 1.006 3.386 6.168 9.765 88.054 58.018 171.882 58.018h0.98c83.827 0 165.71-48.25 171.881-58.016a6.352 6.352 0 0 0 1.002-3.395c0-0.897-0.2-1.736-0.531-2.498"
|
||||
fill="#FAAD08" p-id="3145"></path>
|
||||
<path d="M467.63161 256.377c1.26 15.886-7.377 30-19.266 31.542-11.907 1.544-22.569-10.083-23.836-25.978-1.243-15.895 7.381-30.008 19.25-31.538 11.927-1.549 22.607 10.088 23.852 25.974m73.097 7.935c2.533-4.118 19.827-25.77 55.62-17.886 9.401 2.07 13.75 5.116 14.668 6.316 1.355 1.77 1.726 4.29 0.352 7.684-2.722 6.725-8.338 6.542-11.454 5.226-2.01-0.85-26.94-15.889-49.905 6.553-1.579 1.545-4.405 2.074-7.085 0.242-2.678-1.834-3.786-5.553-2.196-8.135"
|
||||
fill="#000000" p-id="3146"></path>
|
||||
<path d="M504.33261 584.495h-0.967c-63.568 0.752-140.646-7.504-215.286-21.92-6.391 36.262-10.25 81.838-6.936 136.196 8.37 137.384 91.62 223.736 220.118 224.996H506.48461c128.498-1.26 211.748-87.612 220.12-224.996 3.314-54.362-0.547-99.938-6.94-136.203-74.654 14.423-151.745 22.684-215.332 21.927"
|
||||
fill="#FFFFFF" p-id="3147"></path>
|
||||
<path d="M323.27461 577.016v137.468s64.957 12.705 130.031 3.91V591.59c-41.225-2.262-85.688-7.304-130.031-14.574"
|
||||
fill="#EB1C26" p-id="3148"></path>
|
||||
<path d="M788.09761 432.536s-121.98 40.387-283.743 41.539h-0.962c-161.497-1.147-283.328-41.401-283.744-41.539l-40.854 106.952c102.186 32.31 228.837 53.135 324.598 51.926l0.96-0.002c95.768 1.216 222.4-19.61 324.6-51.924l-40.855-106.952z"
|
||||
fill="#EB1C26" p-id="3149"></path>
|
||||
</svg>
|
After Width: | Height: | Size: 4.7 KiB |
|
@ -0,0 +1,7 @@
|
|||
<svg t="1599121101983" name="share-qzone" class="share-icon"
|
||||
viewBox="0 0 1024 1024"
|
||||
version="1.1"
|
||||
xmlns="http://www.w3.org/2000/svg" p-id="7781" width="200" height="200">
|
||||
<path d="M504.768 24.224c-5.216 2.144-19.872 17.728-19.872 21.28 0 1.184-22.944 49.888-51.072 108.064S381.568 262.56 380.16 266.592c-1.184 3.776-3.328 8.288-4.256 9.696-1.184 1.408-7.808 14.176-14.88 28.384-7.552 15.616-15.616 28.608-20.096 32.16-10.88 9.216-3.552 8.288-221.312 32.64C21.248 380.576 10.368 382.24 4.48 387.68c-4.256 3.776-5.92 17.504-2.848 25.536 0.96 2.112 43.264 42.336 94.112 89.376 160.768 148.48 150.368 138.08 150.368 149.184 0 5.44-3.296 25.056-7.104 43.968-4.032 18.912-12.992 66.208-20.32 105.216s-15.84 83.712-18.912 99.296c-16.32 83.232-16.544 85.6-8.032 94.592 8.032 8.512 17.248 7.552 41.6-4.736 22.688-11.584 24.832-12.768 69.504-39.008 16.32-9.472 37.6-21.76 47.296-27.2s27.648-16.064 39.712-23.392 22.464-13.248 23.168-13.248c0.48 0 7.808-4.256 16.064-9.472s15.84-9.44 16.8-9.44c0.96 0 9.472-4.736 18.912-10.624 22.464-13.952 41.856-21.056 52.96-18.912 4.736 0.96 16.064 5.44 25.056 10.4 23.648 12.544 172.608 98.368 218.944 126.016 39.488 23.648 51.072 28.128 64.544 24.576 8.992-2.144 11.584-15.136 8.512-40.896-1.408-11.584-3.552-24.608-4.736-29.088-1.888-7.552-9.696-49.408-28.608-154.4-8.736-49.888-8.736-50.848 10.88-58.176 27.2-10.176 39.968-19.136 35.008-24.128-1.664-1.664-16.8 0.256-48.224 5.92-58.4 10.624-70.464 12.288-132.16 17.984-70.208 6.624-135.008 8.032-221.568 4.96-67.616-2.368-148-8.288-152.512-11.104-3.552-2.368-1.888-9.696 3.552-14.432 2.848-2.592 38.784-28.384 79.68-57.44 128.16-90.784 211.392-150.848 218.24-157.248 11.808-11.104 10.88-11.584-38.304-17.984-77.792-9.92-98.112-11.584-224.864-17.504-42.336-1.888-80.64-4.256-85.12-4.96-46.336-7.808 189.856-29.088 289.632-26.016 65.504 1.888 142.592 7.328 187.968 13.248 42.336 5.664 44.928 6.144 44.928 10.88 0 3.776-4.48 7.104-104.032 75.648-40.896 28.384-84.416 58.4-96.704 66.912-12.064 8.512-24.576 17.248-27.424 19.136-13.248 8.992-57.696 39.968-69.984 48.928-7.808 5.664-13.952 11.808-13.952 13.728 0 4.48 11.584 7.328 47.296 11.584 94.816 11.104 271.2 17.248 279.008 9.472 1.664-1.664 1.408-6.848-1.184-17.728-1.888-8.288-3.552-16.096-3.552-17.248 0-3.328 40.192-43.52 95.744-95.52 146.816-137.6 150.144-140.928 150.144-151.808 0-9.472-7.808-17.984-19.392-20.8-5.664-1.408-39.488-5.216-75.2-8.736-35.712-3.328-75.2-7.104-87.488-8.288-12.288-1.408-38.304-4.032-57.92-6.144-74.944-7.552-97.888-10.4-103.328-12.992-10.4-4.736-20.096-24.128-91.744-185.376C537.824 44.8 533.344 35.584 526.24 29.216c-5.888-5.44-15.104-7.552-21.504-4.96z"
|
||||
fill="#FFCE00" p-id="7782"></path>
|
||||
</svg>
|
After Width: | Height: | Size: 2.9 KiB |
|
@ -0,0 +1,13 @@
|
|||
<svg t="1599121004264" name="share-weibo" class="share-icon"
|
||||
viewBox="0 0 1024 1024"
|
||||
version="1.1"
|
||||
xmlns="http://www.w3.org/2000/svg" p-id="4523" width="200" height="200">
|
||||
<path d="M851.4 590.193c-22.196-66.233-90.385-90.422-105.912-91.863-15.523-1.442-29.593-9.94-19.295-27.505 10.302-17.566 29.304-68.684-7.248-104.681-36.564-36.14-116.512-22.462-173.094 0.866-56.434 23.327-53.39 7.055-51.65-8.925 1.89-16.848 32.355-111.02-60.791-122.395C311.395 220.86 154.85 370.754 99.572 457.15 16 587.607 29.208 675.873 29.208 675.873h0.58c10.009 121.819 190.787 218.869 412.328 218.869 190.5 0 350.961-71.853 398.402-169.478 0 0 0.143-0.433 0.575-1.156 4.938-10.506 8.71-21.168 11.035-32.254 6.668-26.205 11.755-64.215-0.728-101.66z m-436.7 251.27c-157.71 0-285.674-84.095-285.674-187.768 0-103.671 127.82-187.76 285.674-187.76 157.705 0 285.673 84.089 285.673 187.76 0 103.815-127.968 187.768-285.673 187.768z"
|
||||
fill="#E71F19" p-id="4524"></path>
|
||||
<path d="M803.096 425.327c2.896 1.298 5.945 1.869 8.994 1.869 8.993 0 17.7-5.328 21.323-14.112 5.95-13.964 8.993-28.793 8.993-44.205 0-62.488-51.208-113.321-114.181-113.321-15.379 0-30.32 3.022-44.396 8.926-11.755 4.896-17.263 18.432-12.335 30.24 4.933 11.662 18.572 17.134 30.465 12.238 8.419-3.46 17.268-5.33 26.41-5.33 37.431 0 67.752 30.241 67.752 67.247 0 9.068-1.735 17.857-5.369 26.202a22.832 22.832 0 0 0 12.335 30.236l0.01 0.01z"
|
||||
fill="#F5AA15" p-id="4525"></path>
|
||||
<path d="M726.922 114.157c-25.969 0-51.65 3.744-76.315 10.942-18.423 5.472-28.868 24.622-23.5 42.91 5.509 18.29 24.804 28.657 43.237 23.329a201.888 201.888 0 0 1 56.578-8.064c109.253 0 198.189 88.271 198.189 196.696 0 19.436-2.905 38.729-8.419 57.16-5.508 18.289 4.79 37.588 23.212 43.053 3.342 1.014 6.817 1.442 10.159 1.442 14.943 0 28.725-9.648 33.37-24.48 7.547-24.906 11.462-50.826 11.462-77.175-0.143-146.588-120.278-265.813-267.973-265.813z"
|
||||
fill="#F5AA15" p-id="4526"></path>
|
||||
<path d="M388.294 534.47c-84.151 0-152.34 59.178-152.34 132.334 0 73.141 68.189 132.328 152.34 132.328 84.148 0 152.337-59.182 152.337-132.328 0-73.15-68.19-132.334-152.337-132.334zM338.53 752.763c-29.454 0-53.39-23.755-53.39-52.987 0-29.228 23.941-52.989 53.39-52.989 29.453 0 53.39 23.76 53.39 52.989 0 29.227-23.937 52.987-53.39 52.987z m99.82-95.465c-6.382 11.086-19.296 15.696-28.726 10.219-9.43-5.323-11.75-18.717-5.37-29.803 6.386-11.09 19.297-15.7 28.725-10.224 9.43 5.472 11.755 18.864 5.37 29.808z"
|
||||
fill="#040000" p-id="4527"></path>
|
||||
</svg>
|
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 2.5 KiB |
|
@ -0,0 +1 @@
|
|||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1611030371998" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3519" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M271.38 429.637a245.5 245.5 0 0 1-3.395-40.777c0-134.68 109.18-243.86 243.86-243.86s243.86 109.18 243.86 243.86a245.5 245.5 0 0 1-3.394 40.776C875.967 430.312 976 530.763 976 654.578c0 124.235-100.712 224.947-224.946 224.947-62.743 0-119.486-25.688-160.287-67.12l0.003-0.004c-21.44-21.822-21.322-56.893 0.354-78.57 21.796-21.795 57.133-21.795 78.928 0 0.693 0.694 1.365 1.4 2.014 2.12 20.427 19.87 48.317 32.108 79.065 32.108 62.631 0 113.404-50.772 113.404-113.403 0-62.631-50.773-113.403-113.404-113.403-28.739 0-54.981 10.69-74.967 28.311l-0.096-0.096-1.886 1.886c-2.2 2.033-4.32 4.152-6.353 6.353l-4.306 4.305 0.076 0.077-229.876 229.876-0.03-0.03c-40.833 41.708-97.767 67.59-160.747 67.59C148.712 879.525 48 778.813 48 654.578c0-123.711 99.866-224.098 223.38-224.94z m1.644 338.422c62.63 0 113.403-50.772 113.403-113.403 0-62.631-50.772-113.403-113.403-113.403-62.631 0-113.404 50.772-113.404 113.403 0 62.63 50.773 113.403 113.404 113.403zM511.845 521.1c73.034 0 132.24-59.206 132.24-132.24 0-73.033-59.206-132.239-132.24-132.239s-132.24 59.206-132.24 132.24c0 73.033 59.206 132.239 132.24 132.239z" fill="#06A7FF" p-id="3520"></path><path d="M643.351 402.868a56.966 56.966 0 0 1-0.352-6.334c0-31.123 25.23-56.353 56.353-56.353s56.353 25.23 56.353 56.353c0 2.39-0.15 4.745-0.438 7.057-7.616 127.82-113.688 229.128-243.422 229.128-129.734 0-235.806-101.307-243.422-229.128a56.908 56.908 0 0 1-0.438-7.057c0-31.123 25.23-56.353 56.353-56.353s56.353 25.23 56.353 56.353c0 2.141-0.12 4.255-0.352 6.334 6.996 66.448 63.204 118.23 131.506 118.23 68.302 0 124.51-51.782 131.506-118.23z" fill="#FF436A" p-id="3521"></path></svg>
|
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 5.9 KiB |
After Width: | Height: | Size: 8.4 KiB |
|
@ -0,0 +1 @@
|
|||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1611317707037" class="icon" viewBox="0 0 1028 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2221" xmlns:xlink="http://www.w3.org/1999/xlink" width="200.78125" height="200"><defs><style type="text/css"></style></defs><path d="M316.806387 841.06986q0-9.197605 9.197605-9.197605t9.197605 9.197605-9.197605 9.197605-9.197605-9.197605zM274.906188 830.850299q0-9.197605 9.197605-9.197605 10.219561 0 10.219561 9.197605 0 10.219561-10.219561 10.219561-9.197605 0-9.197605-10.219561zM509.956088 0q106.283433 0 199.792415 40.367265t163.001996 109.860279 109.860279 163.001996 40.367265 199.792415q0 82.778443-25.037924 158.914172t-69.493014 138.986028-106.794411 110.371257-135.92016 74.091816q-11.241517 2.043912-25.548902 1.021956t-17.373253-18.39521q-2.043912-12.263473-3.576846-32.702595t-2.043912-41.9002-1.021956-40.878244-0.510978-28.61477-3.576846-23.50499-8.175649-27.592814-9.197605-24.015968-6.642715-13.796407q-2.043912-2.043912 14.307385-4.598802t41.389222-9.708583 54.674651-20.439122 55.185629-35.257485 42.411178-54.163673 16.862275-78.179641q0-69.493014-8.175649-108.327345t-17.373253-58.251497q-11.241517-22.483034-25.548902-28.61477 6.131737-33.724551 9.197605-61.317365 2.043912-23.50499 0.510978-44.966068t-12.774451-27.592814q-11.241517-5.10978-33.213573 2.043912t-45.477046 18.39521q-26.570858 13.285429-57.229541 32.702595-15.329341-5.10978-33.724551-9.197605-16.351297-4.087824-38.834331-7.153693t-50.075848-3.065868-52.630739 3.065868-44.45509 6.131737q-22.483034 4.087824-41.9002 9.197605-30.658683-17.373253-57.229541-29.636727-23.50499-11.241517-45.988024-18.39521t-32.702595-3.065868q-11.241517 5.10978-13.796407 26.05988t-1.532934 45.477046q1.021956 28.61477 5.10978 63.361277-14.307385 15.329341-25.548902 36.790419-10.219561 18.39521-17.884232 44.966068t-7.664671 59.273453q0 47.00998 9.708583 82.778443t26.05988 61.828343 37.301397 43.944112 42.411178 29.125749q51.097804 26.570858 116.502994 30.658683-8.175649 9.197605-14.307385 17.373253-5.10978 7.153693-9.197605 13.796407t-4.087824 9.708583-0.510978 7.664671-1.532934 9.708583l-2.043912 10.219561q-10.219561 4.087824-21.461078 7.153693-9.197605 3.065868-20.439122 5.10978t-22.483034 2.043912-27.592814-11.752495-33.213573-27.081836-30.658683-30.147705-19.928144-20.9501q-6.131737-5.10978-16.351297-8.686627t-20.439122-5.620758-18.39521-2.55489-11.241517 0.510978q-6.131737 3.065868-9.197605 8.686627t5.10978 8.686627q4.087824 2.043912 11.752495 7.664671t15.840319 13.285429 15.329341 15.329341 10.219561 12.774451 9.197605 22.483034 19.928144 35.768463 36.790419 32.702595 61.828343 14.307385q26.570858 0 40.367265-0.510978t20.9501-1.532934l0 78.690619q0 6.131737-1.532934 13.796407t-5.620758 13.285429-11.241517 8.175649-18.39521-0.510978q-2.043912-1.021956-6.131737-1.021956-74.602794-26.570858-136.942116-74.091816t-107.816367-110.882236-71.025948-139.497006-25.548902-159.936128q0-106.283433 40.367265-199.792415t109.860279-163.001996 163.512974-109.860279 200.303393-40.367265zM380.167665 878.882236q4.087824 1.021956 6.131737 2.043912 5.10978 3.065868-6.131737 4.087824l0-6.131737zM359.728543 833.916168q0-10.219561 9.197605-10.219561t9.197605 10.219561q0 9.197605-9.197605 9.197605t-9.197605-9.197605zM177.820359 731.720559q0-6.131737 7.153693-6.131737t7.153693 6.131737q0 7.153693-7.153693 7.153693t-7.153693-7.153693zM246.291417 809.389222q0-9.197605 9.197605-9.197605t9.197605 9.197605q0 10.219561-9.197605 10.219561t-9.197605-10.219561zM207.457086 747.0499q7.153693 0 7.153693 7.153693t-7.153693 7.153693-7.153693-7.153693 7.153693-7.153693zM217.676647 780.774451q0-9.197605 9.197605-9.197605t9.197605 9.197605q0 10.219561-9.197605 10.219561t-9.197605-10.219561z" p-id="2222"></path></svg>
|
After Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 5.3 KiB |
After Width: | Height: | Size: 4.2 KiB |
|
@ -0,0 +1,15 @@
|
|||
<svg t="1599190411371" class="icon" viewBox="0 0 1024 1024" version="1.1"
|
||||
xmlns="http://www.w3.org/2000/svg" p-id="2306" width="200" height="200">
|
||||
<path d="M742.8 121.5c-2.3 0.3-4.7 0.1-7 0.1-38 0-76-0.1-114 0.1-11 0-21.9 1.4-32.4 5.1-18.6 6.5-29.8 19.5-34.4 38.4-1.7 7-2.4 14.1-2.4 21.3 0 67.2-0.1 134.3 0.1 201.5 0 13.8 0.9 27.6 6.2 40.8 6.9 17.1 19.7 27.2 37.3 31.7 6.3 1.6 12.8 2.2 19.3 2.2h218c8.3 0 16.6-0.7 24.8-2.3 24.4-4.5 40.4-20.7 44.9-45 0.4-2.2-0.4-5.2 2.9-6.2v-232c-0.4-0.4-0.5-0.9-0.5-1.5-1.5-4.8-1.7-9.8-3.3-14.7-7.1-21-21.7-33.4-42.8-38.8-6.4-1.6-12.8-2.4-19.5-2.1-1.3 0.1-3 1-3.9-0.9h-89c-0.4 2.6-2.7 2.1-4.3 2.3z m98.7 40.7c4 0 8.1 0.9 11.9 2.1 6.9 2.2 10.7 7.6 10.7 15.1 0 74.8 0.1 149.6-0.1 224.4 0 11.2-8.6 18-21.1 18.1-38.2 0.3-76.3 0.1-114.5 0.1h-113c-4.5 0-8.6-1.3-12.7-2.7-8.5-3.1-9.6-10.5-9.7-17.9-0.2-37.5-0.1-75-0.1-112.5V183.4c0-6.5 1.5-12.5 6.9-17 4.6-3.8 10.3-4.3 15.6-4.3 75.4-0.1 150.8 0 226.1 0.1z"
|
||||
p-id="2307"></path>
|
||||
<path d="M742 120c-39.5 0.1-79 0.1-118.4 0.1-9.4 0-18.6 1-27.7 3.1-11.6 2.7-22.1 7.7-30 16.7-10.6 12.1-14.8 26.9-14.8 42.6-0.2 69.6-0.2 139.3 0 208.9 0 9.1 0.7 18.3 2.8 27.2 2.8 11.7 7.6 22.5 16.7 30.5 11.7 10.3 25.9 15 41.5 15 74.1 0.1 148.3 0.1 222.4 0 9.3 0 18.7-0.5 27.7-3 19-5.4 33.6-15.9 40-35.8 1.7-5.3 1.8-10.9 3.8-16.1-3.2 1-2.5 4-2.9 6.2-4.5 24.4-20.5 40.5-44.9 45-8.2 1.5-16.5 2.3-24.8 2.3h-218c-6.5 0-13-0.6-19.3-2.2-17.5-4.5-30.4-14.6-37.3-31.7-5.3-13.1-6.2-27-6.2-40.8-0.2-67.2-0.1-134.3-0.1-201.5 0-7.2 0.7-14.3 2.4-21.3 4.6-18.9 15.8-31.9 34.4-38.4 10.5-3.7 21.4-5 32.4-5.1 38-0.2 76-0.1 114-0.1 2.3 0 4.7 0.2 7-0.1 1.7-0.2 3.9 0.2 4.2-2.4-1.2 2.1-3.2 0.9-4.9 0.9zM120.6 410.3c2 12.5 5.5 24.4 14.3 34 11.5 12.7 26.5 18 43 18.1 75.1 0.3 150.2 0.3 225.4 0 9.4 0 18.9-1 28.1-3.9 24.5-7.7 39.1-27.3 39.1-53.1 0-74 0-147.9 0.1-221.9 0-6.4-0.8-12.6-2.4-18.8-5.8-22.4-24.5-39.1-47.5-42.3-4.1-0.6-8.2-1.1-12.4-1.1-2 0-4.5 0.6-5.2-2.4h-89c-1.3 2.1-3.3 0.9-4.9 0.9-41.1 0.1-82.2-0.2-123.3 0.2-14.8 0.1-29.2 2.6-42.2 10.7-12.5 7.8-19.8 19.1-23.7 33-0.8 2.7-0.2 5.7-1.9 8.2v233c2.9 0.9 2.2 3.5 2.5 5.4z m39.5-231c0-8.1 6.2-14.6 14.5-16.3 4.4-0.9 8.8-1 13.2-1h219c4.3 0 8.4 0.8 12.4 2 7.5 2.4 10.8 6.9 10.8 14.6v225.5c0 8.2-3.8 13.3-11.6 15.9-4 1.3-8.1 2.1-12.4 2-37.2-0.1-74.3-0.1-111.5-0.1-37.7 0-75.3 0.1-113-0.1-6.3 0-12.6-0.9-17.3-6.1-2.7-3-4.1-6.3-4.1-10.1-0.1-75.3-0.1-150.8 0-226.3z"
|
||||
p-id="2308"></path>
|
||||
<path d="M119 407.5c0.1 8.9 2.6 17.3 6.4 25.1 10.4 21.4 28.9 31 51.6 31.2 74.5 0.6 149 0.2 223.4 0.2 9.3 0 18.6-0.8 27.7-3 27.1-6.7 43.6-26.4 43.8-54.4 0.5-73.8 0.2-147.6 0.2-221.4 0-4.9 0-9.8-0.9-14.7-3-16.2-10.7-29.4-24.2-39-11-7.8-23.5-11-36.9-11.4-2.3-0.1-4.9 1.2-6.9-0.9 0.7 3 3.3 2.4 5.2 2.4 4.2 0 8.3 0.6 12.4 1.1 23 3.2 41.7 19.9 47.5 42.3 1.6 6.2 2.4 12.4 2.4 18.8-0.1 74 0 147.9-0.1 221.9 0 25.7-14.6 45.3-39.1 53.1-9.2 2.9-18.7 3.9-28.1 3.9-75.1 0.2-150.2 0.3-225.4 0-16.5-0.1-31.4-5.4-43-18.1-8.8-9.7-12.3-21.5-14.3-34-0.3-1.9 0.4-4.6-2.6-5.2 1.3 0.1 0.9 1.3 0.9 2.1zM191.8 882.7c2.1-0.3 4.3-0.1 6.5-0.1h206c8.4 0 16.6-1 24.7-3.1 25.5-6.6 41.4-26.9 41.5-53.2 0.1-25.3 0-50.7 0-76v-148c0-32.3-21.4-56.2-53.6-59.7-11.4-1.2-22.9-1.7-34.4-2-34.5-0.7-69 0.5-103.4 1.3-33 0.8-66 0.2-98.9 0.7-11.5 0.2-22.6 2.7-32.7 8.1-13.6 7.2-21.9 18.5-25.7 33.4-0.7 2.8-0.1 6.5-3.7 8v234c2 5.5 2.2 11.4 3.9 17.1 5.9 20.7 19.4 33.3 39.8 38.9 6.5 1.8 13.2 2.3 19.9 2.1 1.4 0 3.3-1.1 4.4 0.9h2c0.2-2.3 2.1-2.2 3.7-2.4z m-11.4-40.6c-12.2 0-20.7-6.6-20.6-20.5 0.4-73.3 0.2-146.6 0.1-220 0-11.8 7-18.1 18.3-18.5 74.6-2.4 149.1-0.5 223.7-0.8 6.4 0 13.4-0.4 19.6 3 5.4 3 8.5 7.2 8.5 13.7-0.1 37.5 0 75 0 112.5 0 37.2-0.2 74.3 0.1 111.5 0.1 12.1-7.8 17.6-18.7 19.3-8.6 1.3-17 0-25.5-0.1-68.5-0.2-137-0.1-205.5-0.1z"
|
||||
p-id="2309"></path>
|
||||
<path d="M193.5 884.2c67.8-0.1 135.7-0.1 203.5 0 9.4 0 18.7-0.2 28-2.1 12.5-2.5 23.8-7.8 32.5-17.1 9.7-10.4 14.5-23.4 14.5-37.6 0.2-74.3 0.1-148.7 0.1-223 0-6.3-0.4-12.4-2-18.5-5.3-19.9-17.3-33.7-36.7-41.3-13.3-5.2-27.3-5-41-5.3-23.1-0.5-46.2-0.9-69.3 0.5-19 1.2-38.2 0.3-57.3 1-27.6 0.9-55.3 0.3-83 0.2-6.4 0-12.7 0.6-19 2-18.4 4.2-32.5 13.8-40.6 31.3-2.6 5.7-2.8 12-5.2 17.7 3.7-1.5 3-5.2 3.7-8 3.8-14.9 12.2-26.2 25.7-33.4 10.2-5.4 21.2-7.9 32.7-8.1 33-0.5 65.9 0.1 98.9-0.7 34.5-0.8 68.9-2 103.4-1.3 11.5 0.2 23 0.7 34.4 2 32.2 3.5 53.5 27.4 53.6 59.7v148c0 25.3 0.1 50.7 0 76-0.2 26.4-16 46.6-41.5 53.2-8.1 2.1-16.3 3.1-24.7 3.1h-206c-2.2 0-4.3-0.1-6.5 0.1-1.6 0.2-3.5 0-3.7 2.4 1.5-1.9 3.7-0.8 5.5-0.8z"
|
||||
p-id="2310"></path>
|
||||
<path d="M143.6 130.9c13-8 27.4-10.6 42.2-10.7 41.1-0.4 82.2-0.1 123.3-0.2 1.6 0 3.6 1.2 4.9-0.9-1.7 1-3.6 0.5-5.4 0.5-44.8 0.3-89.6-0.8-134.4 0.6-18.9 0.6-34.9 8.1-46.5 23.6-6.3 8.4-9.1 18-9.7 28.3 1.8-2.4 1.2-5.4 1.9-8.2 4-13.9 11.2-25.2 23.7-33zM840 120c6.6-0.3 13.1 0.5 19.5 2.1 21 5.4 35.7 17.8 42.8 38.8 1.6 4.8 1.8 9.9 3.3 14.7v-0.4c0.4-28.1-24.4-53.2-52.7-55.3-5.6-0.4-11.2 0.5-16.8-0.9 0.8 2.1 2.6 1.1 3.9 1zM181.6 884.2c-6.7 0.2-13.4-0.3-19.9-2.1-20.4-5.6-33.9-18.2-39.8-38.9-1.6-5.7-1.8-11.6-3.9-17.1 1.1 5.3 0.8 10.8 2.1 16.1 5.5 22.8 25.5 40.6 48.6 42 5.8 0.4 11.6-0.6 17.3 0.8-1.1-1.9-3-0.9-4.4-0.8z"
|
||||
p-id="2311"></path>
|
||||
<path d="M608.4 667.2c-12.3 0.2-20.4 8.3-20.4 20V859c0 12.3 8.5 20.1 20.8 19.9 12.9-0.2 21-6.9 21.1-19.7 0.2-57.4 0.1-114.9 0-172.3 0-12-8.4-19.9-21.5-19.7zM861.4 667.4c-9.9-1.8-23.3 4.9-23.3 18.2-0.2 29.2 0 58.3 0 87.5v87c0 1.6-0.1 3.4 0.4 4.9 3.3 9.4 14.4 16.2 23.5 14 11.4-2.7 17.9-7.2 18-21.4 0.2-55.5 0.1-111 0.1-166.5-0.1-14.4-4.6-21.1-18.7-23.7zM768.7 727.3c-2.6-9.4-13-16.8-22.1-15.1-12.4 2.4-19.4 6.6-19.5 20.9-0.3 41.1-0.1 82.3-0.1 123.4 0 13.8 5.7 20 17.5 22.2 11.1 2.1 24.4-4.5 24.5-19.1v-63.5-64.5c0-1.3 0-2.9-0.3-4.3zM741 544.8c-8.7 1.9-14 10.2-14 19.8V653c0 13.1 4 21 18.1 23.7 10.3 1.9 24-5.2 23.9-18.5-0.1-15.8 0-31.6 0-47.5 0-15.3-0.2-30.6 0-46 0.3-19-14.6-22.8-28-19.9zM622 547.4c-4.9-3.4-10.1-3.3-15.4-3.3-10.5 0-18.5 7.9-18.5 18.3v26c0 9-0.1 18 0 27 0.1 4.6 1.3 8.7 4.9 12.3 5.2 5.2 11.2 6.7 18.2 6.5 9.9-0.3 18.8-8.9 18.8-18.7 0.1-17.7 0.2-35.3-0.1-53 0-6.1-2.4-11.3-7.9-15.1zM878.3 555.9c-2.2-6.2-9.8-11.8-17.9-12-14.3-0.5-23.6 7.9-22.5 22.8 0.5 7 0.1 14 0.1 21v25c0 1.5 0 3 0.4 4.4 3.2 10.3 12.9 15.5 23.9 14 11-1.6 17.4-8.4 17.6-19.7 0.3-15.8 0.1-31.7 0.1-47.5 0-2.9-0.8-5.5-1.7-8zM352 257.8c-1.9-7.3-7.9-12.7-15.4-13.7-1.3-0.2-2.7-0.4-4-0.4-0.6 0-1.5 0.2-1.7-0.8h-28.8c-0.4 0.7-1.1 0.3-1.6 0.3-13.3 0-26.6-0.1-39.9 0.1-4.8 0-9.5 0.9-13.7 3.5-4.1 2.5-6.4 6.2-7.7 10.7-0.2 0.9 0 1.9-0.6 2.6v75.5c1 0.2 0.7 1.1 0.8 1.7 0.7 4.1 1.8 7.9 4.6 11 3.7 4.1 8.6 5.8 13.9 5.9 24.3 0.1 48.7 0.1 73 0 3.1 0 6.1-0.3 9.1-1.3 7.9-2.5 12.7-8.9 12.7-17.2v-71.9c0.1-2-0.2-4-0.7-6zM785.5 250.1c-1.9-7.3-7.9-12.7-15.4-13.7-1.3-0.2-2.7-0.4-4-0.4-0.6 0-1.5 0.2-1.7-0.8h-28.8c-0.4 0.7-1.1 0.3-1.6 0.3-13.3 0-26.6-0.1-39.9 0.1-4.8 0-9.5 0.9-13.7 3.5-4.1 2.5-6.4 6.2-7.7 10.7-0.2 0.9 0 1.9-0.6 2.6v75.5c1 0.2 0.7 1.1 0.8 1.7 0.7 4.1 1.8 7.9 4.6 11 3.7 4.1 8.6 5.8 13.9 5.9 24.3 0.1 48.7 0.1 73 0 3.1 0 6.1-0.3 9.1-1.3 7.9-2.5 12.7-8.9 12.7-17.2v-71.9c0.2-2-0.2-4.1-0.7-6zM351.4 676.6c-1.9-7.3-7.9-12.7-15.4-13.7-1.3-0.2-2.7-0.4-4-0.4-0.6 0-1.5 0.2-1.7-0.8h-28.8c-0.4 0.7-1.1 0.3-1.6 0.3-13.3 0-26.6-0.1-39.9 0.1-4.8 0-9.5 0.9-13.7 3.5-4.1 2.5-6.4 6.2-7.7 10.7-0.2 0.9 0 1.9-0.6 2.6v75.5c1 0.2 0.7 1.1 0.8 1.7 0.7 4.1 1.8 7.9 4.6 11 3.7 4.1 8.6 5.8 13.9 5.9 24.3 0.1 48.7 0.1 73 0 3.1 0 6.1-0.3 9.1-1.3 7.9-2.5 12.7-8.9 12.7-17.2v-71.9c0.1-2-0.2-4-0.7-6z"
|
||||
p-id="2312"></path>
|
||||
</svg>
|
After Width: | Height: | Size: 7.7 KiB |
|
@ -1 +1 @@
|
|||
null!=set.code.headcode&&(set.code.headcode=BASE64.decode(set.code.headcode));null!=set.code.footcode&&(set.code.footcode=BASE64.decode(set.code.footcode));null!=set.code.css&&(set.code.css=BASE64.decode(set.code.css));null!=set.post.copyright&&(set.post.copyright=BASE64.decode(set.post.copyright));var vue=new Vue({el:"#app",data:{menu_active:1,adminurl:adminurl,set:set,dialog:{colorPick:!1}},methods:{selectMenu:function(a,b){vue.menu_active=a},reThemeColor:function(a){0==a?vue.set.theme.themeColor="#409EFF":1==a?vue.set.theme.fontSelectedColor="#3390ff":2==a&&(vue.set.theme.themeHoverColor="#409EFF")},selectImg:function(a,b){var c;c=wp.media({title:"\u9009\u62e9\u56fe\u7247",button:{text:"\u63d2\u5165"},multiple:!1});c.on("select",function(){attachment=c.state().get("selection").first().toJSON();"set.routine.logo"===a?vue.set.routine.logo=attachment.url:"set.routine.defaultthumbnail"===a?vue.set.routine.defaultthumbnail=attachment.url:"set.routine.footer_1_imgurl"===a?vue.set.routine.footer_1_imgurl=attachment.url:"set.routine.footer_2_imgurl"===a?vue.set.routine.footer_2_imgurl=attachment.url:"set.routine.favicon"===a?vue.set.routine.favicon=attachment.url:"swiperlist"===a?vue.set.index.swiperlist[b].imgurl=attachment.url:"set.user.lgoinpageimg"===a?vue.set.user.lgoinpageimg=attachment.url:"set.user.regpageimg"===a&&(vue.set.user.regpageimg=attachment.url)});c.open()},delSwiper:function(a){vue.$confirm("\u6b64\u64cd\u4f5c\u5c06\u5220\u9664\u5f53\u524d\u5e7b\u706f\u7247\u9879\u76ee\uff0c\u662f\u5426\u786e\u5b9a\uff1f","\u63d0\u793a",{confirmButtonText:"\u786e\u5b9a",cancelButtonText:"\u53d6\u6d88",type:"warning"}).then(function(){vue.set.index.swiperlist.splice(a,1)})["catch"](function(){})},addSwiper:function(){vue.set.index.swiperlist.push({title:"",url:"",imgurl:""})},moveSwiper:function(a,b){var c=vue.set.index.swiperlist;c[a]=c.splice(a+b,1,c[a])[0]},save:function(){var a=!1;vue.set.index.swiperlist.forEach(function(b,d,e){""==b.imgurl&&(a=!0)});if(1==a)vue.$message({message:"\u5e7b\u706f\u7247\u56fe\u50cf\u5730\u5740\u4e3a\u7a7a\uff0c\u8bf7\u586b\u5199\uff01",type:"warning",offset:50});else if(0==vue.set.user.loginpage||""!==vue.set.user.lgoinpageurl&&null!==vue.set.user.lgoinpageurl){var b=JSON.parse(JSON.stringify(vue.set));null!=b.code.headcode&&(b.code.headcode=BASE64.encode(b.code.headcode));null!=b.code.footcode&&(b.code.footcode=BASE64.encode(b.code.footcode));null!=b.code.css&&(b.code.css=BASE64.encode(b.code.css));null!=b.post.copyright&&(b.post.copyright=BASE64.encode(b.post.copyright));axios.post(vue.adminurl+"?action\x3dsave",{save:BASE64.encode(JSON.stringify(b))}).then(function(a){1==a.data.code?vue.$message({message:"\u4fdd\u5b58\u6210\u529f\uff01",type:"success",offset:50}):vue.$message({message:"\u4f60\u4ec0\u4e48\u90fd\u8fd8\u6ca1\u4fee\u6539\u5462\uff01",type:"success",offset:50})})}else vue.$message({message:"\u5df2\u5f00\u542f\u81ea\u5b9a\u4e49\u767b\u5f55\u9875\u9762\uff0c\u8bf7\u8bbe\u7f6e\u5730\u5740",type:"warning",offset:50})}}});
|
||||
null!=set.code.headcode&&(set.code.headcode=BASE64.decode(set.code.headcode));null!=set.code.footcode&&(set.code.footcode=BASE64.decode(set.code.footcode));null!=set.code.css&&(set.code.css=BASE64.decode(set.code.css));null!=set.post.copyright&&(set.post.copyright=BASE64.decode(set.post.copyright));var vue=new Vue({el:"#app",data:{menu_active:2,adminurl:adminurl,set:set,dialog:{colorPick:!1}},methods:{mailtest:function(a){$(a.target).text("\u53d1\u9001\u4e2d");$.post(vue.adminurl,{action:"corepress_mailtest",user:vue.set.module.smtpuser,pwd:vue.set.module.smtppwd,name:vue.set.module.smtpname,port:vue.set.module.smtpport,host:vue.set.module.smtphost,type:vue.set.module.smtpencrypttype,testmail:vue.set.module.testmail},function(c){$(a.target).text("\u53d1\u4fe1\u6d4b\u8bd5");(c=JSON.parse(c))?200==c.code?vue.$message({message:c.msg,type:"success",offset:50}):vue.$message({message:c.msg,type:"warning",offset:50}):vue.$message({message:"\u672a\u77e5\u9519\u8bef",type:"error",offset:50})})},selectMenu:function(a,c){vue.menu_active=a},reThemeColor:function(a){0==a?vue.set.theme.themeColor="#409EFF":1==a?vue.set.theme.fontSelectedColor="#3390ff":2==a&&(vue.set.theme.themeHoverColor="#409EFF")},selectImg:function(a,c){var b;b=wp.media({title:"\u9009\u62e9\u56fe\u7247",button:{text:"\u63d2\u5165"},multiple:!1});b.on("select",function(){attachment=b.state().get("selection").first().toJSON();"set.routine.logo"===a?vue.set.routine.logo=attachment.url:"set.routine.defaultthumbnail"===a?vue.set.routine.defaultthumbnail=attachment.url:"set.routine.favicon"===a?vue.set.routine.favicon=attachment.url:"swiperlist"===a?vue.set.index.swiperlist[c].imgurl=attachment.url:"set.user.lgoinpageimg"===a?vue.set.user.lgoinpageimg=attachment.url:"set.user.regpageimg"===a?vue.set.user.regpageimg=attachment.url:"reward1"===a?vue.set.post.reward1=attachment.url:"reward2"===a?vue.set.post.reward2=attachment.url:"set.theme.bagimg"===a?vue.set.theme.bagimg=attachment.url:"postcard"===a?vue.set.index.postcard[c].imgurl=attachment.url:"set.user.repasswordimg"===a&&(vue.set.user.repasswordimg=attachment.url)});b.open()},delSwiper:function(a){vue.$confirm("\u6b64\u64cd\u4f5c\u5c06\u5220\u9664\u5f53\u524d\u5e7b\u706f\u7247\u9879\u76ee\uff0c\u662f\u5426\u786e\u5b9a\uff1f","\u63d0\u793a",{confirmButtonText:"\u786e\u5b9a",cancelButtonText:"\u53d6\u6d88",type:"warning"}).then(function(){vue.set.index.swiperlist.splice(a,1)})["catch"](function(){})},addSwiper:function(){vue.set.index.swiperlist.push({title:"",url:"",imgurl:""})},moveSwiper:function(a,c){console.log(a,c);var b=vue.set.index.swiperlist;b[a]=b.splice(a+c,1,b[a])[0]},addPostCard:function(){vue.set.index.postcard.push({title:"",url:"",imgurl:""})},delPostCard:function(a){vue.$confirm("\u6b64\u64cd\u4f5c\u5c06\u5220\u9664\u5f53\u524d\u5361\u7247\u9879\u76ee\uff0c\u662f\u5426\u786e\u5b9a\uff1f","\u63d0\u793a",{confirmButtonText:"\u786e\u5b9a",cancelButtonText:"\u53d6\u6d88",type:"warning"}).then(function(){vue.set.index.postcard.splice(a,1)})["catch"](function(){})},movePostCard:function(a,c){var b=vue.set.index.postcard;b[a]=b.splice(a+c,1,b[a])[0]},save:function(){var a=!1,c=!1;vue.set.index.swiperlist.forEach(function(b,c,d){""==b.imgurl&&(a=!0)});vue.set.index.postcard.forEach(function(a,b,d){""==a.imgurl&&(c=!0)});if(1==c)vue.$message({message:"\u5361\u7247\u56fe\u50cf\u5730\u5740\u4e3a\u7a7a\uff0c\u8bf7\u586b\u5199\uff01",type:"warning",offset:50});else if(1==a)vue.$message({message:"\u5e7b\u706f\u7247\u56fe\u50cf\u5730\u5740\u4e3a\u7a7a\uff0c\u8bf7\u586b\u5199\uff01",type:"warning",offset:50});else if(0==vue.set.user.loginpage||""!==vue.set.user.lgoinpageurl&&null!==vue.set.user.lgoinpageurl){var b=JSON.parse(JSON.stringify(vue.set));console.log(b);null!=b.code.headcode&&(b.code.headcode=BASE64.encode(b.code.headcode));null!=b.code.footcode&&(b.code.footcode=BASE64.encode(b.code.footcode));null!=b.code.css&&(b.code.css=BASE64.encode(b.code.css));null!=b.post.copyright&&(b.post.copyright=BASE64.encode(b.post.copyright));axios.post(vue.adminurl+"?action\x3dsave",{save:BASE64.encode(JSON.stringify(b))}).then(function(a){1==a.data.code?vue.$message({message:"\u4fdd\u5b58\u6210\u529f\uff01",type:"success",offset:50}):vue.$message({message:"\u4f60\u4ec0\u4e48\u90fd\u8fd8\u6ca1\u4fee\u6539\u5462\uff01",type:"success",offset:50})})}else vue.$message({message:"\u5df2\u5f00\u542f\u81ea\u5b9a\u4e49\u767b\u5f55\u9875\u9762\uff0c\u8bf7\u8bbe\u7f6e\u5730\u5740",type:"warning",offset:50})}}});
|
|
@ -1 +1 @@
|
|||
function addshortcode(a){"title-plane"==a?addContentToEditer(1,'[title-plane title\x3d"\u6807\u9898"]\u5185\u5bb9[/title-plane]'):"start-plane"==a?addContentToEditer(1,'[start-plane type\x3d"1"]\u5185\u5bb9[/start-plane]'):"icon-url"==a?addContentToEditer(1,'[icon-url href\x3d"\u7f51\u5740"]\u7f51\u5740[/icon-url]'):"loginshow"==a?addContentToEditer(1,"[loginshow]\u767b\u5f55\u53ef\u89c1\u7684\u5185\u5bb9[/loginshow]"):"zd-plane"==a?addContentToEditer(1,'[zd-plane title\x3d"\u6298\u53e0\u6807\u9898"]\u6298\u53e0\u5185\u5bb9[/zd-plane]'):"clickshow"==a?addContentToEditer(1,"[clickshow]\u70b9\u51fb\u53ef\u89c1\u5185\u5bb9[/clickshow]"):"corepress-code"==a?layer.open({type:1,title:"\u63d2\u5165\u4ee3\u7801",shadeClose:!0,shade:!1,area:["500px","500px"],content:'\x3cdiv\x3e\x3cdiv class\x3d"corepress-edit-window"\x3e\n \x3ctextarea class\x3d"corepress-edit-code"\x3e\x3c/textarea\x3e\n \n \x3cbutton class\x3d"el-button el-button--default el-button--small " onclick\x3d"corepress_addcode(1)"\x3e\u63d2\u5165\u4ee3\u7801\x3c/button\x3e\n \x3cbutton class\x3d"el-button el-button--default el-button--small " onclick\x3d"corepress_clearcode()"\x3e\u6e05\u7a7a\u5185\u5bb9\x3c/button\x3e\n \x3c/div\x3e \x3c/div\x3e\n '}):"corepress-code-line"==a&&layer.open({type:1,title:"\u884c\u5185\u4ee3\u7801",shadeClose:!0,shade:!1,area:["500px","300px"],content:'\x3cdiv\x3e\x3cdiv class\x3d"corepress-edit-window"\x3e\n \x3ctextarea class\x3d"corepress-edit-code-line"\x3e\x3c/textarea\x3e\n \x3cbutton class\x3d"el-button el-button--default el-button--small " onclick\x3d"corepress_addcode(0)"\x3e\u63d2\u5165\u4ee3\u7801\x3c/button\x3e\n \x3c/div\x3e \x3c/div\x3e\n '})}function corepress_clearcode(){$(".corepress-edit-code").val("")}function corepress_addcode(a){0==a?(a=$(".corepress-edit-code-line").val(),addContentToEditer(1,"\x3ccode\x3e"+a+"\x3c/code\x3e\x26nbsp;")):(a=$(".corepress-edit-code").val(),addContentToEditer(1,'\x3cpre class\x3d"corepress-code-pre"\x3e\x3ccode\x3e'+htmlEncodeByRegExp(a)+"\x3c/code\x3e\x3c/pre\x3e\x26nbsp;"))}function corepress_updatecode(){window.$codedom.html(htmlEncodeByRegExp($(".corepress-edit-code").val()));layer.closeAll()}function editcode(a,b){window.$codedom=b;layer.open({type:1,title:"\u4fee\u6539\u4ee3\u7801",shadeClose:!0,shade:!1,area:["500px","500px"],content:'\x3cdiv class\x3d"corepress-edit-window"\x3e\x3ctextarea class\x3d"corepress-edit-code"\x3e'+a+'\x3c/textarea\x3e\x3cbr\x3e\x3cbutton class\x3d"el-button el-button--default el-button--small" onclick\x3d"corepress_updatecode()"\x3e\u66f4\u65b0\x3c/button\x3e\x3c/div\x3e'})}function addContentToEditer(a,b){parent.tinymce.activeEditor.selection.setContent(b)}$(document).ready(function(){layer.config({extend:"corepress/style.css",skin:"corepress-layer"});$(".corepress-btn").click(function(){$(".corepress-btn").text("\u52a0\u8f7d\u4e2d\uff0c\u8bf7\u7a0d\u540e");$.get("/wp-admin/admin-ajax.php?action\x3dgeteditwindowhtml",{},function(a){$(".corepress-btn").text("CorePress\u7f16\u8f91\u5668\u589e\u5f3a");layer.open({type:1,title:"\u63d2\u5165\u77ed\u4ee3\u7801",shadeClose:!0,shade:!1,area:["300px","400px"],content:a})})})});
|
||||
function addshortcode(a,b){"title-plane"==a?addContentToEditer(1,'[title-plane title\x3d"\u6807\u9898"]\u5185\u5bb9[/title-plane]'):"start-plane"==a?addContentToEditer(1,'[start-plane type\x3d"'+b+'"]\u5185\u5bb9[/start-plane]'):"icon-url"==a?addContentToEditer(1,'[icon-url href\x3d"\u7f51\u5740"]\u7f51\u5740[/icon-url]'):"loginshow"==a?addContentToEditer(1,"[loginshow]\u767b\u5f55\u53ef\u89c1\u7684\u5185\u5bb9[/loginshow]"):"zd-plane"==a?addContentToEditer(1,'[zd-plane title\x3d"\u6298\u53e0\u6807\u9898"]\u6298\u53e0\u5185\u5bb9[/zd-plane]'):"clickshow"==a?addContentToEditer(1,"[clickshow]\u70b9\u51fb\u53ef\u89c1\u5185\u5bb9[/clickshow]"):"c-alert"==a?addContentToEditer(1,'[c-alert type\x3d"'+b+'"]\u63d0\u793a\u9762\u677f\u5185\u5bb9[/c-alert]'):"pwdshow"==a?addContentToEditer(1,'[pwdshow pwd\x3d"\u5bc6\u7801"]\u5bc6\u7801\u53ef\u89c1\u5185\u5bb9[/pwdshow]'):"c-downbtn"==a?addContentToEditer(1,'[c-downbtn type\x3d"'+b+'" url\x3d"" pwd\x3d""]\u8d44\u6e90\u6587\u4ef6\u4e0b\u8f7d[/c-downbtn]'):"corepress-code"==a?layer.open({type:1,title:"\u63d2\u5165\u4ee3\u7801",shadeClose:!0,shade:!1,area:["500px","500px"],content:'\x3cdiv\x3e\x3cdiv class\x3d"corepress-edit-window"\x3e\n \x3ctextarea class\x3d"corepress-edit-code"\x3e\x3c/textarea\x3e\n \n \x3cbutton class\x3d"el-button el-button--default el-button--small " onclick\x3d"corepress_addcode(1)"\x3e\u63d2\u5165\u4ee3\u7801\x3c/button\x3e\n \x3cbutton class\x3d"el-button el-button--default el-button--small " onclick\x3d"corepress_clearcode()"\x3e\u6e05\u7a7a\u5185\u5bb9\x3c/button\x3e\n \x3c/div\x3e \x3c/div\x3e\n '}):"corepress-code-line"==a&&layer.open({type:1,title:"\u884c\u5185\u4ee3\u7801",shadeClose:!0,shade:!1,area:["500px","300px"],content:'\x3cdiv\x3e\x3cdiv class\x3d"corepress-edit-window"\x3e\n \x3ctextarea class\x3d"corepress-edit-code-line"\x3e\x3c/textarea\x3e\n \x3cbutton class\x3d"el-button el-button--default el-button--small " onclick\x3d"corepress_addcode(0)"\x3e\u63d2\u5165\u4ee3\u7801\x3c/button\x3e\n \x3c/div\x3e \x3c/div\x3e\n '})}function corepress_clearcode(){$(".corepress-edit-code").val("")}function corepress_addcode(a){0==a?(a=$(".corepress-edit-code-line").val(),addContentToEditer(1,"\x3ccode\x3e"+a+"\x3c/code\x3e\x26nbsp;")):(a=$(".corepress-edit-code").val(),addContentToEditer(1,'\x3cpre class\x3d"corepress-code-pre"\x3e\x3ccode\x3e'+htmlEncodeByRegExp(a)+"\x3c/code\x3e\x3c/pre\x3e\x26nbsp;"))}function corepress_updatecode(){window.$codedom.html(htmlEncodeByRegExp($(".corepress-edit-code").val()));layer.closeAll()}function editcode(a,b){window.$codedom=b;layer.open({type:1,title:"\u4fee\u6539\u4ee3\u7801",shadeClose:!0,shade:!1,area:["500px","500px"],content:'\x3cdiv class\x3d"corepress-edit-window"\x3e\x3ctextarea class\x3d"corepress-edit-code"\x3e'+a+'\x3c/textarea\x3e\x3cbr\x3e\x3cbutton class\x3d"el-button el-button--default el-button--small" onclick\x3d"corepress_updatecode()"\x3e\u66f4\u65b0\x3c/button\x3e\x3c/div\x3e'})}function addContentToEditer(a,b){parent.tinymce.activeEditor.selection.setContent(b)};
|
|
@ -1 +1 @@
|
|||
function getQueryVariable(a){for(var c=window.location.search.substring(1).split("\x26"),b=0;b<c.length;b++){var d=c[b].split("\x3d");if(d[0]==a)return d[1]}return!1}function htmlEncodeByRegExp(a){return $("\x3cdiv/\x3e").text(a).html()}function htmlDecodeByRegExp(a){$("\x3cdiv/\x3e").html(a).text()}function isElementInViewport(a){a=a.getBoundingClientRect();return 0<=a.top&&0<=a.left&&a.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&a.right<=(window.innerWidth||document.documentElement.clientWidth)}function replaceTag(a){return a.replace("\x26amp;","")};
|
||||
function getQueryVariable(a){for(var b=window.location.search.substring(1).split("\x26"),c=0;c<b.length;c++){var d=b[c].split("\x3d");if(d[0]==a)return d[1]}return!1}function htmlEncodeByRegExp(a){return $("\x3cdiv/\x3e").text(a).html()}function htmlDecodeByRegExp(a){$("\x3cdiv/\x3e").html(a).text()}function isElementInViewport(a){a=a.getBoundingClientRect();return 0<=a.top&&0<=a.left&&a.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&a.right<=(window.innerWidth||document.documentElement.clientWidth)}function replaceTag(a){return a.replace("\x26amp;","")}function addarelt(a,b){var c='\x3ci class\x3d"fas fa-info-circle" style\x3d"color: #515a6e"\x3e\x3c/i\x3e';"succ"==b?c='\x3ci class\x3d"fas fa-check-circle" style\x3d"color:#19be6b;"\x3e\x3c/i\x3e':"erro"==b&&(c='\x3ci class\x3d"fas fa-times-circle" style\x3d"color:#ed4014;"\x3e\x3c/i\x3e');$("body").append('\x3cdiv class\x3d"corepress-alert"\x3e\x3cdiv class\x3d"corepress-alert-main"\x3e'+c+a+"\x3c/div\x3e\x3c/div\x3e");setTimeout(function(){$(".corepress-alert-main").addClass("corepress-alert-main-show")},20);setTimeout(function(){$(".corepress-alert-main:first").removeClass("corepress-alert-main-show")},3E3);setTimeout(function(){$(".corepress-alert:first").remove()},3500)}function JScopyText(a){copynotmsg=1;$("body").append('\x3cdiv id\x3d"tem-copy" style\x3d"visibility: hidden"\x3e\x3c/div\x3e');var b=new ClipboardJS("#tem-copy",{text:function(){return a}});$("#tem-copy").trigger("click");b.destroy();$("#tem-copy").remove()}function isChinese(a){return/.*[\u4e00-\u9fa5]+.*$/.test(a)?!0:!1}function haveNumandLetter(a){var b=/[a-z]/i;return/[0-9]/.test(a)&&b.test(a)?!0:!1}function isEmail(a){return 1!=/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(a)?!1:!0};
|
|
@ -1,7 +0,0 @@
|
|||
.icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
vertical-align: -0.15em;
|
||||
fill: currentColor;
|
||||
overflow: hidden;
|
||||
}
|
|
@ -6,4 +6,4 @@ body .corepress-layer .layui-layer-title {
|
|||
body .corepress-layer {
|
||||
border-radius: 6px;
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
Theme Name: CorePress
|
||||
Theme URI: https://www.lovestu.com/CorePress
|
||||
Version: 2.4
|
||||
Version: 3.6
|
||||
Author: applek
|
||||
Author URI: https://www.lovestu.com
|
||||
Description: 极客个人主题,多功能CMS主题
|
||||
|
|
|
@ -0,0 +1,111 @@
|
|||
<?php
|
||||
|
||||
|
||||
class CorePress_author_widget extends WP_Widget
|
||||
{
|
||||
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct(
|
||||
'corepress_author_widget',
|
||||
'CorePress作者模块',
|
||||
array(
|
||||
'description' => '显示作者的一些信息,建议放到文章页面侧边栏,否则无法获取到内容'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
function form($instance)
|
||||
{
|
||||
$num = isset($instance['number']) ? absint($instance['number']) : 5;
|
||||
$title = isset($instance['title']) ? $instance['title'] : '作者信息';
|
||||
?>
|
||||
<p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:'); ?></label>
|
||||
<input class="widefat" id="<?php echo $this->get_field_id('title'); ?>"
|
||||
name="<?php echo $this->get_field_name('title'); ?>" type="text"
|
||||
value="<?php echo esc_attr($title); ?>"/></p>
|
||||
<p>请放到文章侧边栏,否则无法获取到作者用户信息</p>
|
||||
<?php
|
||||
}
|
||||
|
||||
public function widget_start($args, $instance)
|
||||
{
|
||||
echo $args['before_widget'];
|
||||
if ($title = apply_filters('widget_title', empty($instance['title']) ? '' : $instance['title'], $instance, $this->id_base)) {
|
||||
echo $args['before_title'] . $title . $args['after_title'];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function widget_end($args)
|
||||
{
|
||||
echo $args['after_widget'];
|
||||
}
|
||||
|
||||
|
||||
function update($new_instance, $old_instance)
|
||||
{
|
||||
$instance = $old_instance;
|
||||
$instance['title'] = sanitize_text_field($new_instance['title']);
|
||||
return $instance;
|
||||
}
|
||||
|
||||
function widget($args, $instance)
|
||||
{
|
||||
|
||||
$this->widget_start($args, $instance);
|
||||
$author_id = get_the_author_meta('ID');
|
||||
$author_description = get_the_author_meta('description');
|
||||
$author_url = get_author_posts_url($author_id);
|
||||
$author_name = get_the_author();
|
||||
$avatar = get_avatar($author_id, 50, '');
|
||||
|
||||
?>
|
||||
<div class="widget-author-plane">
|
||||
<div class="widget-author-main">
|
||||
<?php echo $avatar; ?>
|
||||
<div class="widget-author-name">
|
||||
<?php echo $author_name ?>
|
||||
</div>
|
||||
<div class="widget-avatar-description">
|
||||
<?php echo $author_description ?>
|
||||
</div>
|
||||
<div class="widget-avatar-meta">
|
||||
<div class="widget-avatar-meta-box widget-avatar-meta-comments" title="评论数量">
|
||||
<i class="far fa-comment"></i>
|
||||
<?php echo get_comments('count=true&user_id=' . $author_id); ?>
|
||||
</div>
|
||||
<div class="widget-avatar-meta-box" title="文章数量">
|
||||
<i class="far fa-newspaper"></i>
|
||||
<?php
|
||||
the_author_posts();
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-avatar-post-list">
|
||||
<h2 class="widget-avatar-title">近期文章</h2>
|
||||
<ul>
|
||||
<?php
|
||||
$post_list = get_posts(array('numberposts' => 5, 'author' => $author_id));
|
||||
foreach ($post_list as $item) {
|
||||
echo '<li><a href="' . get_the_permalink($item) . '">' . $item->post_title . '</a></li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php
|
||||
//print_r(json_encode($comments));
|
||||
$this->widget_end($args, $instance);
|
||||
}
|
||||
}
|
||||
|
||||
// register widget
|
||||
function register_corepress_author_widget()
|
||||
{
|
||||
register_widget('CorePress_author_widget');
|
||||
}
|
||||
|
||||
add_action('widgets_init', 'register_corepress_author_widget');
|
|
@ -48,10 +48,10 @@ class CorePress_comments_widget extends WP_Widget
|
|||
|
||||
function update($new_instance, $old_instance)
|
||||
{
|
||||
$instance = $old_instance;
|
||||
/* $instance = $old_instance;
|
||||
$instance['num'] = absint($new_instance['num']);
|
||||
$instance['title'] = sanitize_text_field($new_instance['title']);
|
||||
return $instance;
|
||||
$instance['title'] = sanitize_text_field($new_instance['title']);*/
|
||||
return $new_instance;
|
||||
}
|
||||
|
||||
function widget($args, $instance)
|
||||
|
|