/var/www/(Del)hsihk.com/wp-content/themes/flatsome/page-featured-items-4col.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?php
/*
Template name: Featured Items - 4 columns
*/
get_header(); ?>

<?php if( has_excerpt() ) { ?>
<div class="page-header">
    <?php the_excerpt(); ?>

</div>
<?php ?>

<?php while ( have_posts() ) : the_post(); ?>
        <?php the_content(); ?>
<?php 
endwhile; // end of the loop. ?>        

<div  class="page-wrapper page-featured-item">
<div class="row">

<div id="content" class="large-12 columns" role="main">
    <header class="entry-header ">
        <h1 class="entry-title"><?php the_title(); ?></h1>
    </header>


<ul class="large-block-grid-4">
    <?php
    
global $flatsome_opt;
    
$post_counter 0;
    
$wp_query = new WP_Query(array(
        
'post_type' => 'featured_item',
        
'posts_per_page' => $flatsome_opt['featured_items_pr_page']+2,
        
'orderby'=> 'menu_order',
        
'paged'=>$paged
    
));
    while (
$wp_query->have_posts()) : $wp_query->the_post();
        
$post_counter++;
    
?>
    
        <li class="ux-box featured-item text-center ux-text-bounce ">
        <div class="inner">
          <a href="<?php echo get_permalink(get_the_ID()); ?>" title="<?php the_title(); ?>">
            <div class="ux-box-image">
                  <?php the_post_thumbnail('thumbnail'); ?>
            </div><!-- .ux-box-image -->
            <div class="ux-box-text">
                <h4 class="uppercase"><?php the_title(); ?></h4>

                  <p class="show-next small-font uppercase">
                      <?php  echo strip_tags get_the_term_listget_the_ID(), 'featured_item_category'"",", " ) );?>
                    </p>
                    <div class="tx-div small"></div>

            </div><!-- .ux-box-text-overlay -->
          </a>
       </div>
      </li>
    
    <?php endwhile;  ?>

</ul>

<!-- PAGINATION -->
<div class="row">
<div class="large-12 columns">
    <div class="pagination-centered">
      <?php
        
echo paginate_linksapply_filters'woocommerce_pagination_args', array(
            
'base'             => str_replace999999999'%#%'get_pagenum_link999999999 ) ),
            
'format'         => '',
            
'current'         => max1get_query_var('paged') ),
            
'total'         => $wp_query->max_num_pages,
            
'prev_text'     => '<span class="icon-angle-left"></span>',
            
'next_text'     => '<span class="icon-angle-right"></span>',
            
'type'            => 'list',
            
'end_size'        => 3,
            
'mid_size'        => 3
        
) ) );
    
?>

</div><!--  end pagination container -->
</div><!-- end large-12 -->
</div><!-- end PAGINATION -->


<?php wp_reset_query(); ?>


</div><!-- end #content large-12  -->

</div><!-- end row -->
</div><!-- end portfolio container -->


<?php get_footer(); ?>