示例#1
0
文件: index.php 项目: annguyenit/fivy
<?php

get_header();
?>

<?php 
global $fivy_options;
$deals = get_five_deal_home();
?>
<section class="great-deals">
    <div class="container">
        <!--======= TITTLE =========-->
        <div class="tittle">
            <h1><?php 
echo $fivy_options['home_title'];
?>
</h1>
        </div>
        <div class="coupon">
            <ul class="row">
                <!--======= COUPEN DEALS =========-->
                <?php 
$count = 1;
foreach ($deals as $deal) {
    if (empty($deal)) {
        $count++;
        continue;
    }
    ?>
                
                    <li class="col-sm-4">
示例#2
0
<?php

include 'header.php';
global $post;
the_post();
$current_term = get_the_terms($post->ID, TAXONOMY_DEAL);
$exclude_id = !empty($current_term) ? $current_term[0]->term_id : 0;
$deals = get_five_deal_home($exclude_id);
?>

<section class="great-deals">
    <div class="container">
        <!--======= TITTLE =========-->
        <div class="tittle left">
            <h1><?php 
the_title();
?>
</h1>
        </div>
        <div class="coupon detail_coupon_deal">
            <ul class="row">
                <!--======= COUPEN DEALS =========-->
                <li class="col-sm-4">
                    <div class="coupon-inner deal_<?php 
echo check_index_deal($exclude_id);
?>
">
                        <div class="top-tag"> <span class="eten"><span><?php 
echo $current_term[0]->name;
?>
</span></span></div>