X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-surfbar_list.php;h=0ebf9f903f7fec3e37b7c18a287aa886e32d1e2e;hp=aa07ac6400b52a134af379ff9da0a28483889721;hb=78dc19b40041f126eede57575484c684d5fd0ddb;hpb=48e59d95b50d7dd13be3c8c9b0d03c47a750120c diff --git a/inc/modules/member/what-surfbar_list.php b/inc/modules/member/what-surfbar_list.php index aa07ac6400..0ebf9f903f 100644 --- a/inc/modules/member/what-surfbar_list.php +++ b/inc/modules/member/what-surfbar_list.php @@ -42,5 +42,30 @@ if (!defined('__SECURITY')) { // Add description as navigation point ADD_DESCR("member", basename(__FILE__)); +// Load user URLs +$URLs = SURFBAR_GET_USER_URLS(); + +// Are there entries? +if (count($URLs) > 0) { + // List all URLs + $OUT = ""; $SW = 2; + foreach ($URLs as $id => $content) { + // "Translate"/insert data + $content['sw'] = $SW; + + // Load row template + $OUT .= LOAD_TEMPLATE("member_surfbar_list_row", true, $content); + + // Switch color + $SW = 3 - $SW; + } // END - if + + // Load main template + LOAD_TEMPLATE("member_surfbar_list", false, $OUT); +} else { + // No URLs booked so far + LOAD_TEMPLATE("admin_settings_saved", false, MEMBER_SURFBAR_NO_URLS_FOUND); +} + // ?>