Example #1
0
$defaultTheme = Luminous::setting('theme');
if (!preg_match('/\\.css$/', $defaultTheme)) {
    $defaultTheme .= '.css';
}
foreach (Luminous::themes() as $theme) {
    ?>
                        <option id='<?php 
    echo $theme;
    ?>
'
                            <?php 
    echo $theme == $defaultTheme ? ' selected' : '';
    ?>
>
                            <?php 
    echo $theme;
    ?>
                        </option>
                    <?php 
}
?>
                </select>
                <noscript><input type='submit' value='Switch'></noscript>
            </form>
            <p>
                <?php 
echo Luminous::highlightFile('php', __FILE__, $useCache);
?>
    </body>
</html>