public function view($arLayoutID)
 {
     $arLayout = AreaLayout::getByID($arLayoutID);
     if (!is_object($arLayout)) {
         throw new Exception(t('Invalid layout object.'));
     }
     $presetlist = AreaLayoutPreset::getList();
     $presets = array();
     $presets['-1'] = t('** New');
     foreach ($presetlist as $preset) {
         $presets[$preset->getAreaLayoutPresetID()] = $preset->getAreaLayoutPresetName();
     }
     $this->set('arLayout', $arLayout);
     $this->set('presets', $presets);
 }
 public function view()
 {
     $presets = Preset::getList();
     $this->set('presets', $presets);
 }
Beispiel #3
0
<?php

defined('C5_EXECUTE') or die("Access Denied.");
use Concrete\Core\Area\Layout\Preset as AreaLayoutPreset;
$minColumns = 1;
if ($controller->getTask() == 'add') {
    $spacing = 0;
    $iscustom = false;
}
$presets = AreaLayoutPreset::getList();
?>

<ul id="ccm-layouts-toolbar" class="ccm-inline-toolbar ccm-ui">
	<li class="ccm-sub-toolbar-text-cell">
		<label for="useThemeGrid"><?php 
echo t("Grid:");
?>
</label>
		<select name="gridType" id="gridType" style="width: auto !important">
			<optgroup label="<?php 
echo t('Grids');
?>
">
			<?php 
if ($enableThemeGrid) {
    ?>
				<option value="TG"><?php 
    echo $themeGridName;
    ?>
</option>
			<?php