puock主题和foxpay结合简单修改适配

浏览:238次阅读
没有评论

共计 2187 个字符,预计需要花费 6 分钟才能阅读完成。

首先就是个人中心模板的创建如下所示:

<?php
/*
Template Name: 用户中心
*/
?>
<?php get_header(); ?>

<div id="page" class="container mt20">
<?php get_template_part('templates/box', 'global-top') ?>
<?php echo pk_breadcrumbs(); while (have_posts()):the_post();?>
<div id="page-empty">
<div id="page-<?php the_ID() ?>" class="row row-cols-1">
<div id="post-main" class="col-lg-<?php pk_hide_sidebar_out('12','8') ?> col-md-12 <?php pk_open_box_animated('animated fadeInLeft') ?> ">
<div class="p-block">
<div><h1 id="post-title" class="mb-0 puock-text t-xxl"><?php the_title() ?></h1></div>
<div class="options p-flex-sbc mt20">
<div>
<?php if (!pk_is_checked('hide_post_views')): ?>
<div class="option puock-bg ta3 t-sm mr-1"><i class="fa-regular fa-eye mr-1"></i><span id="post-views"><?php pk_get_post_views(); ?></span><span><?php _e('次阅读', PUOCK) ?></span></div>
<?php endif; ?>
<a href="#comments"><div class="option puock-bg ta3 t-sm mr-1"><i class="fa-regular fa-comment mr-1"></i><?php comments_number() ?></div></a>
<?php if (is_user_logged_in() && current_user_can('edit_post', $post->ID)): ?>
<a target="_blank" href="<?php echo get_edit_post_link() ?>">
<div class="option puock-bg ta3 t-sm mr-1"><i
class="fa-regular fa-pen-to-square mr-1"></i><?php _e('编辑', PUOCK) ?></div>
</a>
<?php endif; ?>
</div>
<?php if(!pk_is_checked("hide_global_sidebar")): ?>
<div>
<div class="option puock-bg ta3 t-sm mr-1 d-none d-lg-inline-block post-main-size"><i class="fa fa-up-right-and-down-left-from-center"></i></div>
</div>
<?php endif; ?>
</div>
<div class="mt20 puock-text <?php get_entry_content_class() ?>">
<?php the_content() ?>
<?php do_action('pk_page_content_footer'); ?>
<?php
$link_pages = wp_link_pages(array(
'before'=> '<li>',
'after'=> '</li>',
'prev_text'=>'&laquo;',
'next_text'=>'&raquo;',
'format'=>'<li>%1</li>',
'echo'=>false
));
if(!empty($link_pages)):
?>
<div class="mt20 clearfix text-center">
<ul class="pagination float-right">
<?php echo $link_pages ?>
</ul>
</div>
<?php endif; ?>
</div>
<?php get_template_part('templates/post', 'actions') ?>
</div>
<?php dynamic_sidebar('page_content_comment_top'); ?>
<?php comments_template() ?>
<?php dynamic_sidebar('page_content_comment_bottom'); ?>
</div>
<?php get_sidebar() ?>
</div>
<?php get_template_part('templates/box', 'global-bottom') ?>
</div>
<?php endwhile; ?>
</div>

<?php get_footer() ?>

 

 

随后打开inc/fun下的core.php

找到第961行的/uc替换成自己的个人中心页面链接就可以了

● 版权所有,转载请注明出处!
正文完
 0
挨批网络ipwl.cn
版权声明:本站原创文章,由 挨批网络ipwl.cn 2023-10-21发表,共计2187字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。

关于挨批网络

挨批网络IPWL.CN挨批网络是通过域名直译而来,主打一个好记!希望只一眼就可以留在你的记忆中!
评论(没有评论)
没有账号? 忘记密码?

社交账号快速登录