Exemplo n.º 1
0
/**
 * Return true if item is expired, else return false
 * 
 * @return boolean  
 */
function osc_item_is_expired()
{
    if (osc_item_is_premium()) {
        return false;
    } else {
        return osc_isExpired(osc_item_dt_expiration());
    }
}
Exemplo n.º 2
0
        ?>
            <span>| </span>
            <i><?php 
        _e('Item expired', 'pop');
        ?>
</i>
            <?php 
    } else {
        if (osc_item_dt_expiration() != '9999-12-31 23:59:59') {
            ?>
            <span>| </span>
            <span><?php 
            _e('expires on', 'pop');
            ?>
                <?php 
            printf(__('%1$s', 'pop'), osc_format_date(osc_item_dt_expiration()));
            ?>
            </span>
            <?php 
        }
    }
    ?>
        </div>
        <div>
            <i class="ionicons ion-eye"></i>
            <?php 
    echo osc_item_views();
    ?>
 <?php 
    _e('views');
    ?>