b0y-101 Mini Shell


Current Path : E:/www/instructor/teacher28/templates/simple_v1/warp/config/layouts/fields/
File Upload :
Current File : E:/www/instructor/teacher28/templates/simple_v1/warp/config/layouts/fields/layout.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
*/

printf('<select %s>', $this['field']->attributes(compact('name')));

$selected_value = $this['field']->attributes(compact('value'));

foreach ($this['path']->files("layouts:modules/layouts") as $filename) {

    $option = rtrim($filename, ".php");
    $readable = ucfirst($option);

    $selected = "";
    if ($option == $value) {
        $selected = "selected=\"true\"";
    }

    printf("<option value=\"%s\" %s>%s</option>", $option, $selected, $readable); 

}

printf('</select>');

Copyright © 2019 by b0y-101