-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtaxonomy-sitetag.php
51 lines (47 loc) · 2.08 KB
/
taxonomy-sitetag.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php if ( ! defined( 'ABSPATH' ) ) { exit; }
get_header(); ?>
<?php
include( get_theme_file_path('/templates/sidebar-nav.php') );
?>
<div class="main-content flex-fill">
<?php get_template_part( 'templates/tools','header' ); ?>
<div class="row">
<div class="col-lg-8 col-xl-9">
<h4 class="text-gray text-lg mb-4">
<i class="site-tag iconfont icon-tag icon-lg mr-1" id="<?php single_cat_title() ?>"></i><?php single_cat_title() ?>
</h4>
<div class="row">
<?php
if ( !have_posts() ){
echo '<div class="col-lg-12"><div class="nothing">'.__("没有内容","i_theme").'</div></div>';
}
if ( have_posts() ) : while ( have_posts() ) : the_post();
$link_url = get_post_meta($post->ID, '_sites_link', true);
$default_ico = get_theme_file_uri('/images/favicon.png');
//if(current_user_can('level_10') || !get_post_meta($post->ID, '_visible', true)) {
if(io_get_option('site_card_mode') == 'max'){ ?>
<div class="url-card col-sm-6 col-md-4 col-lg-6 col-xl-4 <?php echo before_class($post->ID) ?>">
<?php include( get_theme_file_path('/templates/card-sitemax.php') ); ?>
</div>
<?php }else{ ?>
<div class="url-card <?php echo io_get_option('two_columns')?"col-6":"" ?> col-sm-6 col-md-4 col-xl-3 <?php echo before_class($post->ID) ?>">
<?php include( get_theme_file_path('/templates/card-site.php') ); ?>
</div>
<?php }
//}
endwhile; endif;?>
</div>
<div class="posts-nav mb-4">
<?php echo paginate_links(array(
'prev_next' => 0,
'before_page_number' => '',
'mid_size' => 2,
));?>
</div>
</div>
<div class="sidebar col-lg-4 col-xl-3 pl-xl-4 d-none d-lg-block">
<?php get_sidebar(); ?>
</div>
</div>
</div>
<?php get_footer(); ?>