<div class="HomePanel"><div class="HomePanelIN"> <h2><a href="themes.php"><?php echo $lang["themes"]; ?> </a></h2> <?php echo text("themes"); ?> <br /> <br /> <select style="width:140px;" onChange="window.location=this.value;"> <option value=""><?php echo $lang["select"]; ?> </option> <?php $headers = get_theme_headers(); for ($n = 0; $n < count($headers); $n++) { ?> <option value="themes.php?header=<?php echo urlencode($headers[$n]); ?> "><?php echo i18n_get_translated(str_replace("*", "", $headers[$n])); ?> </option> <?php } ?> </select> <br />> <a href="themes.php"><?php echo $lang["viewall"];
} } } ?> </div> </div> <?php } } # Display Themes if (isset($themes[0]) && $theme_direct_jump == false) { # Display just the selected theme DisplayTheme($themes); } elseif ($theme_category_levels == 1 && $smart_theme == "" || $theme_direct_jump) { # Display all themes $headers = get_theme_headers($themes); for ($n = 0; $n < count($headers); $n++) { DisplayTheme(array_merge($themes, array($headers[$n]))); } } ?> <?php # ------- Smart Themes ------------- if ($header == "" && !isset($themes[0])) { $headers = get_smart_theme_headers(); for ($n = 0; $n < count($headers); $n++) { $node = getval("node", 0); if ((checkperm("f*") || checkperm("f" . $headers[$n]["ref"])) && !checkperm("f-" . $headers[$n]["ref"]) && ($smart_theme == "" || $smart_theme == $headers[$n]["ref"])) { ?> <div class="RecordBox">
for ($i = 1; $i <= $themecount; $i++) { if ($theme_category_levels >= $i) { if ($i == 1) { $themeindex = ""; } else { $themeindex = $i; } $themearray = array(); for ($y = 0; $y < $i - 1; $y++) { if ($y == 0) { $themearray[] = $collection["theme"]; } else { $themearray[] = $collection["theme" . ($y + 1)]; } } $themes = get_theme_headers($themearray); ?> <div class="Question"> <label for="theme<?php echo $themeindex; ?> "><?php echo $lang["themecategory"] . " " . $themeindex; ?> </label> <?php if (count($themes) > 0) { ?> <select class="stdwidth" name="theme<?php echo $themeindex; ?>
function tile_config_themeselector($tile, $tile_id, $tile_width, $tile_height) { global $lang, $pagename, $baseurl_short, $dash_tile_shadows, $theme_category_levels, $theme_direct_jump; ?> <div class="featuredcollectionselector HomePanel DashTile DashTileDraggable allUsers" tile="<?php echo $tile["ref"]; ?> " id="<?php echo str_replace("contents_", "", $tile_id); ?> " > <div id="<?php echo $tile_id; ?> " class="HomePanelThemes HomePanelDynamicDash HomePanelIN <?php echo $dash_tile_shadows ? "TileContentShadow" : ""; ?> " > <span class="theme-icon"></span> <a onClick="return CentralSpaceLoad(this,true);" href="<?php echo $baseurl_short; ?> pages/themes.php"><h2><?php echo $lang["themes"]; ?> </h2></a> <p> <select id="themeselect" onChange="CentralSpaceLoad(this.value,true);"> <option value=""><?php echo $lang["select"]; ?> </option> <?php $headers = get_theme_headers(); for ($n = 0; $n < count($headers); $n++) { ?> <option value="<?php echo $baseurl_short; ?> pages/themes.php?theme1=<?php echo urlencode($headers[$n]); ?> "><?php echo i18n_get_translated(str_replace("*", "", $headers[$n])); ?> </option> <?php } ?> </select> <?php if ($theme_category_levels == 1 || !$theme_direct_jump) { ?> <a id="themeviewall" onClick="return CentralSpaceLoad(this,true);" href="<?php echo $baseurl_short; ?> pages/themes.php">> <?php echo $lang["viewall"]; ?> </a> <?php } ?> </p> </div> </div> <script> jQuery("a#<?php echo str_replace("contents_", "", $tile_id); ?> ").replaceWith(jQuery(".featuredcollectionselector")); </script> <?php }