b0y-101 Mini Shell


Current Path : E:/www/instructor/teacher06/templates/simple02/warp/config/layouts/fields/
File Upload :
Current File : E:/www/instructor/teacher06/templates/simple02/warp/config/layouts/fields/style.php

<?php
/**
* @package   Warp Theme Framework
* @author    YOOtheme http://www.yootheme.com
* @copyright Copyright (C) YOOtheme GmbH
* @license   http://www.gnu.org/licenses/gpl.html GNU/GPL
*/

$styles = array('default');
$styles_css = array();

if ($path = $this['path']->path('theme:styles')) {
    foreach (glob("$path/*") as $dir) {

        $styles[] = $style = basename($dir);

        if (!file_exists($dir.'/style.less')) {
            $styles_css[] = $style;
        }
    }
}

?>
<p class="uk-form-controls-condensed">
    <select name="<?php echo $name ?>" data-selected="<?php echo $value ?>" data-style-css="<?php echo htmlspecialchars(json_encode($styles_css)) ?>" data-style-selector>
        <?php
            foreach ($styles as $style) {
                printf('<option value="%s">%s</option>', $style, $style);
            }
        ?>
    </select>
</p>

Copyright © 2019 by b0y-101