Пример #1
0
                echo '<div class="bulk_options">';
                if ($ab_del) {
                    echo '<button class="btn" name="delete" data-delete-msg="' . $LANG['delete_msg'] . '">' . $LANG['delete_all'] . '</button> ';
                }
                if ($ab_edt) {
                    echo $LANG['action'] . ':
    <select name="action">';
                    foreach (array('publish' => $LANG['publish'], 'unpublish' => $LANG['unpublish']) as $k => $v) {
                        echo '<option value="' . $k . '">' . $v . '</option>';
                    }
                    echo '</select>
    <button class="btn" name="set_action">' . $LANG['set_all'] . '</button>';
                }
                echo '</div>';
            }
            foreach (\query\main::while_reviews(array_merge(array('orderby' => isset($_GET['orderby']) ? urldecode($_GET['orderby']) : 'date desc'), $options)) as $item) {
                echo '<li>
  <input type="checkbox" name="id[' . $item->ID . ']" />

  <div style="display: table;">

  <img src="' . \query\main::user_avatar($item->user_avatar) . '" alt="" />

  <div class="info-div">

  <h2>' . ($item->valid ? '<span class="msg-success">' . $LANG['published'] . '</span> ' : '<span class="msg-error">' . $LANG['notpublished'] . '</span> ') . sprintf($LANG['reviews_byto'], '<a href="?route=reviews.php&amp;action=list&amp;user='******'">' . $item->user_name . '</a>', '<a href="?route=reviews.php&amp;action=list&amp;store=' . $item->storeID . '">' . \query\main::store_infos($item->storeID)->name . '</a>') . '
  <span class="fright date">' . date('Y.m.d, ' . (\query\main::get_option('hour_format') == 12 ? 'g:i A' : 'G:i'), strtotime($item->date)) . '</span></h2>

  <div class="info-bar">' . $item->text . '</div>

  </div></div>
Пример #2
0
function reviews_custom($category = array())
{
    return \query\main::while_reviews($category);
}
Пример #3
0
function items($category = array())
{
    return \query\main::while_reviews($category, 'store');
}