X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-themes.php;h=3f1a8459502b8d48cc07e848b22429db381a00d3;hp=849768d04dc9d3f00d5741e4dd0451a7a5472d55;hb=57227d33e870ec5cd271209c4a978a52b45c2dd6;hpb=80e2def8ef2125fd4d7d1312ee3993ab613f0846 diff --git a/inc/modules/member/what-themes.php b/inc/modules/member/what-themes.php index 849768d04d..3f1a845950 100644 --- a/inc/modules/member/what-themes.php +++ b/inc/modules/member/what-themes.php @@ -1,7 +1,7 @@ $unix) -{ - $default = ""; - if (get_session('mxchange_theme') == $unix) $default = " checked selected"; +$OUT = ''; $SW = 2; +foreach ($THEMES['theme_unix'] as $key => $unix) { + $default = ''; + if (getCurrentTheme() == $unix) $default = ' selected="selected"'; // Add row - $OUT .= " - - - - ".$THEMES['theme_name'][$key]." - - ".$THEMES['theme_author'][$key]." - - - ".$THEMES['theme_url'][$key]." - - v".$THEMES['theme_ver'][$key]." -\n"; + $OUT .= " + + + + ".$THEMES['theme_name'][$key]." + + ".$THEMES['theme_author'][$key]." + + + ".$THEMES['theme_url'][$key]." + + v".$THEMES['theme_ver'][$key]." +\n"; $SW = 3 - $SW; -} -if (empty($OUT)) -{ - // No themes found??? - $OUT = " - - ".LOAD_TEMPLATE("admin_settings_saved", true, MEMBER_NO_THEMES_FOUND)." - -\n"; -} -define('__THEME_LIST', $OUT); +} // END - foreach + +if (empty($OUT)) { + // No themes found??? + $OUT = " + + ".loadTemplate('admin_settings_saved', true, getMessage('MEMBER_NO_THEMES_FOUND'))." + +\n"; +} // END - if // Load template -LOAD_TEMPLATE("member_themes"); +loadTemplate('member_themes', false, $OUT); -// +// [EOF] ?>