コード例 #1
0
ファイル: categories.php プロジェクト: TheReaCompany/pooplog
_e("Comment Integration", "gd-star-rating");
?>
</th>
            <th scope="col" style="text-align: right"><?php 
_e("Posts", "gd-star-rating");
?>
</th>
        </tr>
    </thead>
    <tbody>

<?php 
$tr_class = "";
for ($i = $cat_from; $i < $cat_to; $i++) {
    $row = $categories[$i];
    $row = gdsrAdmDB::convert_category_row($row);
    if ($options["timer_active"] == 1) {
        if ($row->expiry_type == "D") {
            $timer_info = '<strong><span style="color: red">' . __("date limit", "gd-star-rating") . '</span></strong><br />';
            $timer_info .= $row->expiry_value;
        } else {
            if ($row->expiry_type == "T") {
                $timer_info = '<strong><span style="color: red">' . __("countdown", "gd-star-rating") . '</span></strong><br />';
                $timer_info .= substr($row->expiry_value, 1) . " ";
                switch (substr($row->expiry_value, 0, 1)) {
                    case "H":
                        $timer_info .= __("Hours", "gd-star-rating");
                        break;
                    case "D":
                        $timer_info .= __("Days", "gd-star-rating");
                        break;