Пример #1
0
<?php

\MetaPalettes::appendTo('tl_settings', array('bootstrap' => array('bootstrapIconSet')));
$GLOBALS['TL_DCA']['tl_settings']['fields']['bootstrapIconSet'] = array('label' => $GLOBALS['TL_LANG']['tl_settings']['bootstrapIconSet'], 'inputType' => 'select', 'options' => array_keys($GLOBALS['BOOTSTRAP']['icons']['sets']), 'eval' => array());
Пример #2
0
<?php

/**
 * This file is part of bit3/contao-theme-plus.
 *
 * (c) Tristan Lins <*****@*****.**>
 *
 * This project is provided in good faith and hope to be usable by anyone.
 *
 * @package    bit3/contao-theme-plus
 * @author     Tristan Lins <*****@*****.**>
 * @copyright  bit3 UG <https://bit3.de>
 * @link       https://github.com/bit3/contao-theme-plus
 * @license    http://opensource.org/licenses/LGPL-3.0 LGPL-3.0+
 * @filesource
 */
/**
 * Palettes
 */
MetaPalettes::appendTo('tl_settings', ['theme_plus' => ['theme_plus_disabled_advanced_asset_caching']]);
/**
 * Fields
 */
$GLOBALS['TL_DCA']['tl_settings']['fields']['theme_plus_disabled_advanced_asset_caching'] = ['label' => &$GLOBALS['TL_LANG']['tl_settings']['theme_plus_disabled_advanced_asset_caching'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => ['tl_class' => 'w50']];
Пример #3
0
<?php

/**
 * xYAML - YAML Integration for Contao
 *
 * Copyright (C) 2013 Tristan Lins <*****@*****.**>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * PHP version 5
 *
 * @copyright  bit3 UG 2013
 * @author     Tristan Lins <*****@*****.**>
 * @package    xYAML
 * @license    MIT
 * @filesource
 */
MetaPalettes::appendTo('tl_settings', array('xyaml' => array('yaml_auto_include')));
$GLOBALS['TL_DCA']['tl_settings']['metasubpalettes']['yaml_auto_include'] = array('yaml_mode', 'yaml_path_source', 'yaml_path');
$GLOBALS['TL_DCA']['tl_settings']['metasubselectpalettes']['yaml_mode'] = array('sass' => array('yaml_compass_filter'));
$GLOBALS['TL_DCA']['tl_settings']['fields']['yaml_auto_include'] = array('label' => &$GLOBALS['TL_LANG']['tl_settings']['yaml_auto_include'], 'inputType' => 'checkbox', 'eval' => array('submitOnChange' => true, 'tl_class' => 'w50 m12'));
$GLOBALS['TL_DCA']['tl_settings']['fields']['yaml_mode'] = array('label' => &$GLOBALS['TL_LANG']['tl_settings']['yaml_mode'], 'inputType' => 'select', 'options' => array('css'), 'eval' => array('submitOnChange' => true, 'tl_class' => 'w50'));
if (in_array('assetic', \Config::getInstance()->getActiveModules())) {
    $GLOBALS['TL_DCA']['tl_settings']['fields']['yaml_mode']['options'][] = 'sass';
}
$GLOBALS['TL_DCA']['tl_settings']['fields']['yaml_compass_filter'] = array('label' => &$GLOBALS['TL_LANG']['tl_settings']['yaml_compass_filter'], 'inputType' => 'select', 'options_callback' => array('Bit3\\Contao\\XYAML\\DataContainer\\OptionsBuilder', 'getCompassFilterOptions'), 'reference' => &$GLOBALS['TL_LANG']['assetic'], 'eval' => array('includeBlankOption' => true, 'tl_class' => 'w50'));
$GLOBALS['TL_DCA']['tl_settings']['fields']['yaml_path_source'] = array('label' => &$GLOBALS['TL_LANG']['tl_settings']['yaml_path_source'], 'inputType' => 'select', 'options_callback' => array('Bit3\\Contao\\XYAML\\DataContainer\\OptionsBuilder', 'getPathSources'), 'eval' => array('submitOnChange' => true, 'tl_class' => 'w50'));
$GLOBALS['TL_DCA']['tl_settings']['fields']['yaml_path'] = array('label' => &$GLOBALS['TL_LANG']['tl_settings']['yaml_path'], 'inputType' => version_compare(VERSION, '3', '<') || $GLOBALS['TL_CONFIG']['yaml_path_source'] == $GLOBALS['TL_CONFIG']['uploadPath'] ? 'fileTree' : 'fileSelector', 'eval' => array('submitOnChange' => true, 'path' => $GLOBALS['TL_CONFIG']['yaml_path_source'], 'fieldType' => 'radio', 'tl_class' => 'clr'));