AVRIL_START_JANCOKALIVEAVRIL_END_JANCOK
| Server IP : dzynews.com / Your IP : 216.73.217.105 Web Server : nginx/1.30.3 System : Linux cloud-tdkldl-avd6 5.15.0-91-generic #101-Ubuntu SMP Tue Nov 14 13:30:08 UTC 2023 x86_64 User : www ( 1000) PHP Version : 8.2.31 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/dzynews.com/wp-content/themes/archive-document/ |
Upload File : |
<?php
use B2\Modules\Templates\Modules\Links;
use B2\Modules\Common\Links as LinksFn;
b2_redirect_404('links');
/**
* 网址导航
*/
get_header();
$opts = get_option('b2_links_main');
$data = [];
if(!empty($opts['link_cats'])){
foreach ($opts['link_cats'] as $k => $v) {
$_opts = $opts;
$_opts['link_cat'] = $v;
$_opts['title'] = '';
unset($_opts['link_cats']);
$data[] = $_opts;
}
// var_dump($data);
$title = b2_get_option('links_main','link_title');
$total = LinksFn::link_total();
}
$open = b2_get_option('links_submit', 'link_submit_open');
?>
<div class="b2-single-content wrapper">
<div id="links" class="content-area links wrapper links-home">
<main id="main" class="site-main">
<div id="primary-home" class="content-area">
<?php if((isset($total['link_count']) && $total['link_count'] == 0) || count($data) == 0){ ?>
<div class="box" style="width:100%"><?php echo B2_EMPTY; ?></div>
<?php }else{
echo '<div class="home-links-content"><div class="b2-tab-links">
'.($title ? '<h1>'.$title.'</h1>' : '').'
<div class="link-total">
'.sprintf(__('共收录 %s 个分类,%s 个网址'),$total['term_count'],$total['link_count']).'
</div>
<div class="b2-tab-link-in"></div>
<div class="link-join" v-show="b2_global.links_can_post == 1 || userData.is_admin" v-cloak><a href="'.b2_get_custom_page_url('link-register').'" class="button empty" target="_blank">'.b2_get_icon('b2-user-location-line').'申请入驻</a></div>
</div><div class="home-links-right">';
foreach ($data as $key => $value) {
$html = new Links();
echo $html->init($value,$key);
}
echo '</div></div>';
} ?>
</div>
</main>
</div>
</div>
<?php
get_footer();