}
} elseif (count($urlArray) > 0) {
// List all URLs
- $OUT = ''; $SW = 2;
+ $OUT = '';
foreach ($urlArray as $id => $content) {
// "Translate"/insert data
- $content['sw'] = $SW;
if ($content['views_total'] > 0) {
// Include link to stats
$content['views_total'] = '[<a href="{%url=modules.php?module=login&what=surfbar_list%}">' . translateComma($content['views_total']) . '</a>]';
$content['url_registered'] = generateDateTime($content['url_registered'], 2);
$content['url_last_locked'] = generateDateTime($content['url_last_locked'], 2);
$content['actions'] = SURFBAR_MEMBER_ACTIONS($content['id'], $content['url_status']);
- if (empty($content['url_lock_reason'])) {
- // Fixes some HTML problems with empty cells
- $content['url_lock_reason'] = '---';
- } // END - if
// Load row template
$OUT .= loadTemplate('member_surfbar_list_row', true, $content);
-
- // Switch color
- $SW = 3 - $SW;
} // END - if
// Load main template