论坛模式调用文章版权声明-技术论坛-技术-6KE论坛-综合开放交流论坛

论坛模式调用文章版权声明

【6ke.li】-1726576823-1726576765781

【6ke.li】-1726576882-1726576853358

路径: /wp-content/themes/zibll/inc/functions/bbs/inc/single.php

替换整个zib_bbs_single_footer()函数即可

function zib_bbs_single_footer()
{
    global $post;

    $html = '';
    $cat = zib_get_topics_tags('', 'but ml6 radius', '<i class="fa fa-cube" aria-hidden="true"></i>');
    $cat .= zib_get_cat_tags('but ml6 radius', '<i class="fa fa-folder-open-o" aria-hidden="true"></i>');
    $tags = zib_get_posts_tags('but ml6 radius', '# ');
    
    if (_pz('yiyan_single_content_footer')) {
        $html .= zib_yiyan('article-yiyan theme-box text-center radius8 main-shadow yiyan-box');
    }
    
    do_action('zib_article_content_after', $post);
    
    if (_pz('post_copyright_s')) {
        $html .= '<div class="em09 muted-3-color"><div><span>©</span> 免责声明</div><div class="posts-copyright">' . _pz('post_copyright') . '</div></div>';
    }
    
    if ($cat || $tags) {
        $html .= '<div class="theme-box article-tags">' . $cat . '<br>' . $tags . '</div>';
    }

    echo $html;

    do_action('bbs_single_footer', $post);

    //标签和话题的按钮
    //底部按钮
    $favorite_btn = zib_bbs_get_posts_favorite_btn($post->ID, 'item');
    $share_btn    = zib_bbs_get_posts_share_btn($post, 'item');
    $rewards_btn  = zib_get_rewards_button($post->post_author, 'item');
    $dropdown     = zib_bbs_get_posts_more_dropdown($post->ID, 'relative pull-right px14 item drop-fixed-sm', 'toggle-radius opacity8');

    $action = '<div class="forum-article-footer flex ac jsb mb10 footer-actions">';
    $action .= '<div class="left flex ac">';
    $action .= $rewards_btn;
    $action .= '</div>';
    $action .= '<div class="right flex ac">';
    $action .= $share_btn;
    $action .= $favorite_btn;
    $action .= $dropdown;
    $action .= '</div>';
    $action .= '</div>';

    echo $action;
}

 

© 免责声明

请登录后发表评论

    • 人皇的头像-6KE论坛-综合开放交流论坛人皇 UID:1等级-LV9-6KE论坛-综合开放交流论坛作者超级版主0