Esempio n. 1
0
 /**
  * Append column sizes fields dynamically to the palettes.
  *
  * @param \DataContainer $dataContainer The data container driver.
  *
  * @return void
  */
 public function appendColumnSizesToPalette($dataContainer)
 {
     $model = \Database::getInstance()->prepare('SELECT * FROM tl_columnset WHERE id=?')->limit(1)->execute($dataContainer->id);
     $sizes = array_merge(deserialize($model->sizes, true));
     foreach ($sizes as $size) {
         $field = 'columnset_' . $size;
         \MetaPalettes::appendFields('tl_columnset', 'columnset', array($field));
     }
 }
Esempio n. 2
0
 public function load($dc)
 {
     $layout = \LayoutModel::findByPk($dc->id);
     if (!$layout->xyaml) {
         return;
     }
     \MetaPalettes::appendAfter('tl_layout', 'default', 'style', array('xyaml' => array('xyaml_iehacks', 'xyaml_addons', 'xyaml_forms', 'xyaml_navigation', 'xyaml_print', 'xyaml_screen', 'xyaml_subcolumns_linearize'), 'xyaml_files' => array('xyaml_auto_include')));
     if (version_compare(VERSION, '3', '>=') && $layout->xyaml_path_source != $GLOBALS['TL_CONFIG']['uploadPath']) {
         $GLOBALS['TL_DCA']['tl_layout']['fields']['xyaml_path']['inputType'] = 'fileSelector';
     }
     $GLOBALS['TL_DCA']['tl_layout']['fields']['xyaml_path']['eval']['path'] = $layout->xyaml_path_source;
 }
 public function loadArticleDca($dc)
 {
     $layout = null;
     $article = \ArticleModel::findByPk($dc->id);
     $page = \PageModel::findWithDetails($article->pid);
     while (!$layout && $page) {
         if ($page->includeLayout) {
             $layout = \LayoutModel::findByPk($page->layout);
         } else {
             $page = \PageModel::findWithDetails($page->pid);
         }
     }
     if ($layout && $layout->useRevealJs) {
         \MetaPalettes::appendFields('tl_article', 'default', 'template', array('revealVerticalSlide'));
     }
 }
Esempio n. 4
0
 /**
  * modify palette if bootstrap is used
  *
  * @hook palettes_hook (MetaPalettes)
  */
 public function generatePalette()
 {
     if (\Input::get('table') != 'tl_layout' || \Input::get('act') != 'edit') {
         return;
     }
     $layout = $this->getCurrentLayout();
     if ($layout->layoutType == 'bootstrap') {
         // dynamically render palette so that extensions can plug into default palette
         $GLOBALS['TL_DCA']['tl_layout']['metapalettes']['__base__'] = $this->getMetaPaletteOfPalette('tl_layout');
         $GLOBALS['TL_DCA']['tl_layout']['metapalettes']['default extends __base__'] = $GLOBALS['BOOTSTRAP']['layout']['metapalette'];
         unset($GLOBALS['TL_DCA']['tl_layout']['palettes']['default']);
         foreach ($GLOBALS['BOOTSTRAP']['layout']['metasubselectpalettes'] as $field => $meta) {
             foreach ($meta as $value => $definition) {
                 unset($GLOBALS['TL_DCA']['tl_layout']['subpalettes'][$field . '_' . $value]);
                 $GLOBALS['TL_DCA']['tl_layout']['metasubselectpalettes'][$field][$value] = $definition;
             }
         }
     } else {
         \MetaPalettes::appendFields('tl_layout', 'title', array('layoutType'));
     }
 }
Esempio n. 5
0
<?php

/**
 * @package   contao-bootstrap
 * @author    David Molineus <*****@*****.**>
 * @license   LGPL 3+
 * @copyright 2013-2015 netzmacht creative David Molineus
 */
/**
 * palettes
 */
$GLOBALS['TL_DCA']['tl_module']['metapalettes']['bootstrap_navbar'] = array('title' => array('name', 'type'), 'config' => array('bootstrap_isResponsive', 'bootstrap_addHeader', 'bootstrap_navbarModules'), 'protected' => array(':hide', 'protected'), 'expert' => array(':hide', 'guests', 'cssID', 'space'), 'template' => array(':hide', 'bootstrap_navbarTemplate'));
\MetaPalettes::appendFields('tl_module', 'navigation', 'template', array('bootstrap_navClass'));
\MetaPalettes::appendFields('tl_module', 'customnav', 'template', array('bootstrap_navClass'));
\MetaPalettes::appendFields('tl_module', 'quicklink', 'template', array('bootstrap_navClass'));
/**
 * subpalettes
 */
$GLOBALS['TL_DCA']['tl_module']['metasubpalettes']['bootstrap_addHeader'] = array('bootstrap_navbarBrandTemplate');
/*
 * Fields
 */
$GLOBALS['TL_DCA']['tl_module']['fields']['bootstrap_navClass'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['bootstrap_navClass'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(100) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_module']['fields']['bootstrap_isResponsive'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['bootstrap_isResponsive'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => true, 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_module']['fields']['bootstrap_addHeader'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['bootstrap_addHeader'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'w50', 'submitOnChange' => true), 'sql' => "char(1) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_module']['fields']['bootstrap_navbarModules'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['bootstrap_navbarModules'], 'exclude' => true, 'inputType' => 'multiColumnWizard', 'eval' => array('tl_class' => '" style="clear:both;', 'columnFields' => array('module' => array('label' => $GLOBALS['TL_LANG']['tl_module']['bootstrap_navbarModules_module'], 'inputType' => 'select', 'options_callback' => array('Netzmacht\\Bootstrap\\Core\\Contao\\DataContainer\\Module', 'getAllModules'), 'eval' => array('style' => 'width: 250px', 'includeBlankOption' => true, 'chosen' => true)), 'floating' => array('label' => $GLOBALS['TL_LANG']['tl_module']['bootstrap_navbarModules_floating'], 'inputType' => 'select', 'options' => array('left', 'right'), 'reference' => &$GLOBALS['TL_LANG']['MSC'], 'eval' => array('style' => 'width: 80px', 'includeBlankOption' => true, 'chosen' => true)), 'cssClass' => array('label' => $GLOBALS['TL_LANG']['tl_module']['bootstrap_navbarModules_cssClass'], 'inputType' => 'text', 'eval' => array('style' => 'width: 180px', 'rgxp' => 'txt')), 'inactive' => array('label' => &$GLOBALS['TL_LANG']['tl_module']['bootstrap_navbarModules_inactive'], 'inputType' => 'checkbox', 'eval' => array('style' => 'width: 80px')))), 'sql' => "blob NULL");
$GLOBALS['TL_DCA']['tl_module']['fields']['bootstrap_navbarTemplate'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['bootstrap_navbarTemplate'], 'default' => 'mod_navbar', 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('Netzmacht\\Bootstrap\\Core\\Contao\\DataContainer\\Module', 'getTemplates'), 'reference' => &$GLOBALS['TL_LANG']['tl_module'], 'eval' => array('templatePrefix' => 'mod_navbar'), 'sql' => "varchar(32) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_module']['fields']['bootstrap_navbarBrandTemplate'] = array('label' => &$GLOBALS['TL_LANG']['tl_module']['bootstrap_navbarBrandTemplate'], 'default' => 'mod_navbar', 'exclude' => true, 'inputType' => 'select', 'reference' => &$GLOBALS['TL_LANG']['tl_module'], 'options_callback' => array('Netzmacht\\Bootstrap\\Core\\Contao\\DataContainer\\Module', 'getTemplates'), 'eval' => array('templatePrefix' => 'navbar_brand', 'chosen' => true, 'tl_class' => 'clr'), 'sql' => "varchar(64) NOT NULL default ''");
Esempio n. 6
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());
<?php

/**
 * Subpages Navigation Module
 *
 * PHP version 5
 *
 * @copyright  ContaoBlackForest <https://github.com/ContaoBlackforest/>
 * @author     Dominik Tomasi <*****@*****.**>
 * @author     Sven Baumann <*****@*****.**>
 * @package    contao-subpages-navigation
 * @license    LGPL
 * @filesource
 */
foreach ($GLOBALS['TL_DCA']['tl_page']['palettes'] as $name => $palette) {
    if ($name == '__selector__') {
        continue;
    }
    \MetaPalettes::appendAfter('tl_page', $name, 'title', array('nav_image' => array('navImage')));
}
/**
 * Fields
 */
$GLOBALS['TL_DCA']['tl_page']['fields']['navImage'] = array('label' => &$GLOBALS['TL_LANG']['tl_page']['navImage'], 'inputType' => 'fileTree', 'exclude' => true, 'eval' => array('fieldType' => 'radio', 'files' => true, 'filesOnly' => true, 'extensions' => 'jpg,jpeg,gif,png'), 'sql' => "blob NULL");
Esempio n. 8
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']];
<?php

/**
 * This Contao-Workflow extension allows the definition of workflow process for entities from different providers. This
 * extension is a workflow framework which can be used from other extensions to provide their custom workflow handling.
 *
 * @package    workflow
 * @author     David Molineus <*****@*****.**>
 * @copyright  2014 netzmacht creative David Molineus
 * @license    LGPL 3.0
 * @filesource
 */
foreach (array_keys($GLOBALS['TL_DCA']['tl_user_group']['palettes']) as $palette) {
    if ($palette === '__selector__') {
        continue;
    }
    \MetaPalettes::appendBefore('tl_user_group', $palette, 'account', array('workflow' => array('workflow')));
}
$GLOBALS['TL_DCA']['tl_user_group']['fields']['workflow'] = array('label' => &$GLOBALS['TL_LANG']['tl_user_group']['workflow'], 'inputType' => 'checkbox', 'options_callback' => array('Netzmacht\\Workflow\\Contao\\Backend\\Permission', 'getAllPermissions'), 'save_callback' => array(new \Netzmacht\Workflow\Contao\Backend\Dca\SavePermissionsCallback('tl_user_group')), 'eval' => array('tl_class' => 'clr', 'multiple' => true), 'sql' => 'mediumblob NULL');
Esempio n. 10
0
<?php

/**
 * @package    contao-bootstrap
 * @author     David Molineus <*****@*****.**>
 * @copyright  2014-2015 netzmacht creative David Molineus
 * @license    LGPL 3.0
 * @filesource
 *
 */
/*
 * Palettes
 */
// buttons palette
// panel palettes
$GLOBALS['TL_DCA']['tl_content']['metapalettes']['bootstrap_accordionGroupStart extends _bootstrap_default_'] = array();
$GLOBALS['TL_DCA']['tl_content']['metapalettes']['bootstrap_accordionGroupEnd extends _bootstrap_default_'] = array();
\MetaPalettes::appendFields('tl_content', 'accordionStart', 'moo', array('bootstrap_collapseIn'));
\MetaPalettes::appendFields('tl_content', 'accordionStop', 'moo', array('bootstrap_collapseIn'));
/*
 * Fields
 */
$GLOBALS['TL_DCA']['tl_content']['fields']['bootstrap_collapseIn'] = array('label' => &$GLOBALS['TL_LANG']['tl_content']['bootstrap_collapseIn'], 'exclude' => true, 'inputType' => 'checkbox', 'default' => false, 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''");
Esempio n. 11
0
 * @license    http://opensource.org/licenses/LGPL-3.0 LGPL-3.0+
 * @filesource
 */
if (TL_MODE == 'BE') {
    $this->loadDataContainer('tl_layout');
}
/**
 * Palettes
 */
$GLOBALS['TL_DCA']['tl_page']['palettes']['__selector__'][] = 'theme_plus_include_stylesheets';
$GLOBALS['TL_DCA']['tl_page']['palettes']['__selector__'][] = 'theme_plus_include_javascripts';
$GLOBALS['TL_DCA']['tl_page']['palettes']['__selector__'][] = 'theme_plus_include_stylesheets_noinherit';
$GLOBALS['TL_DCA']['tl_page']['palettes']['__selector__'][] = 'theme_plus_include_javascripts_noinherit';
foreach (['regular', 'forward', 'redirect', 'root'] as $strType) {
    $GLOBALS['TL_DCA']['tl_page']['palettes'][$strType] = preg_replace('#({layout_legend(:hide)?}.*);#U', '$1,theme_plus_include_stylesheets,theme_plus_include_stylesheets_noinherit,theme_plus_include_javascripts,theme_plus_include_javascripts_noinherit;', $GLOBALS['TL_DCA']['tl_page']['palettes'][$strType]);
    MetaPalettes::appendFields('tl_page', $strType, 'expert', ['theme_plus_disable_assets_cache']);
}
$GLOBALS['TL_DCA']['tl_page']['subpalettes']['theme_plus_include_stylesheets'] = 'theme_plus_stylesheets';
$GLOBALS['TL_DCA']['tl_page']['subpalettes']['theme_plus_include_javascripts'] = 'theme_plus_javascripts';
$GLOBALS['TL_DCA']['tl_page']['subpalettes']['theme_plus_include_stylesheets_noinherit'] = 'theme_plus_stylesheets_noinherit';
$GLOBALS['TL_DCA']['tl_page']['subpalettes']['theme_plus_include_javascripts_noinherit'] = 'theme_plus_javascripts_noinherit';
/**
 * Fields
 */
$GLOBALS['TL_DCA']['tl_page']['fields']['theme_plus_include_stylesheets'] = ['label' => &$GLOBALS['TL_LANG']['tl_page']['theme_plus_include_stylesheets'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => ['submitOnChange' => true, 'tl_class' => 'long clr'], 'sql' => "char(1) NOT NULL default ''"];
$GLOBALS['TL_DCA']['tl_page']['fields']['theme_plus_stylesheets'] = ['label' => &$GLOBALS['TL_LANG']['tl_page']['theme_plus_stylesheets'], 'exclude' => true, 'inputType' => 'checkbox', 'options_callback' => ['Bit3\\Contao\\ThemePlus\\DataContainer\\Page', 'getStylesheets'], 'eval' => ['mandatory' => true, 'multiple' => true, 'tl_class' => 'long'], 'sql' => 'blob NULL'];
$GLOBALS['TL_DCA']['tl_page']['fields']['theme_plus_include_javascripts'] = ['label' => &$GLOBALS['TL_LANG']['tl_page']['theme_plus_include_javascripts'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => ['submitOnChange' => true, 'tl_class' => 'long clr'], 'sql' => "char(1) NOT NULL default ''"];
$GLOBALS['TL_DCA']['tl_page']['fields']['theme_plus_javascripts'] = ['label' => &$GLOBALS['TL_LANG']['tl_page']['theme_plus_javascripts'], 'exclude' => true, 'inputType' => 'checkbox', 'options_callback' => ['Bit3\\Contao\\ThemePlus\\DataContainer\\Page', 'getJavaScripts'], 'eval' => ['mandatory' => true, 'multiple' => true, 'tl_class' => 'long'], 'sql' => 'blob NULL'];
$GLOBALS['TL_DCA']['tl_page']['fields']['theme_plus_include_stylesheets_noinherit'] = ['label' => &$GLOBALS['TL_LANG']['tl_page']['theme_plus_include_stylesheets_noinherit'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => ['submitOnChange' => true, 'tl_class' => 'long clr'], 'sql' => "char(1) NOT NULL default ''"];
$GLOBALS['TL_DCA']['tl_page']['fields']['theme_plus_stylesheets_noinherit'] = ['label' => &$GLOBALS['TL_LANG']['tl_page']['theme_plus_stylesheets_noinherit'], 'exclude' => true, 'inputType' => 'checkbox', 'options_callback' => ['Bit3\\Contao\\ThemePlus\\DataContainer\\Page', 'getStylesheets'], 'eval' => ['mandatory' => true, 'multiple' => true, 'tl_class' => 'clr'], 'sql' => 'blob NULL'];
$GLOBALS['TL_DCA']['tl_page']['fields']['theme_plus_include_javascripts_noinherit'] = ['label' => &$GLOBALS['TL_LANG']['tl_page']['theme_plus_include_javascripts_noinherit'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => ['submitOnChange' => true, 'tl_class' => 'long clr'], 'sql' => "char(1) NOT NULL default ''"];
Esempio n. 12
0
 *
 * 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
 */
$GLOBALS['TL_DCA']['tl_layout']['config']['onload_callback'][] = array('Bit3\\Contao\\XYAML\\DataContainer\\Layout', 'load');
MetaPalettes::appendFields('tl_layout', 'default', 'style', array('xyaml'));
$GLOBALS['TL_DCA']['tl_layout']['metasubpalettes']['xyaml_auto_include'] = array('xyaml_mode', 'xyaml_path_source', 'xyaml_path');
$GLOBALS['TL_DCA']['tl_layout']['metasubselectpalettes']['xyaml_mode'] = array('sass' => array('xyaml_compass_filter'));
$GLOBALS['TL_DCA']['tl_layout']['fields']['xyaml'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['xyaml'], 'inputType' => 'checkbox', 'eval' => array('submitOnChange' => true));
$GLOBALS['TL_DCA']['tl_layout']['fields']['xyaml_iehacks'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['xyaml_iehacks'], 'inputType' => 'checkbox');
$GLOBALS['TL_DCA']['tl_layout']['fields']['xyaml_addons'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['xyaml_addons'], 'inputType' => 'checkbox', 'options' => array_keys($GLOBALS['YAML_ADDONS']), 'eval' => array('multiple' => true, 'tl_class' => 'clr'));
$GLOBALS['TL_DCA']['tl_layout']['fields']['xyaml_forms'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['xyaml_forms'], 'inputType' => 'checkbox', 'options' => array_keys($GLOBALS['YAML_FORMS']), 'eval' => array('multiple' => true, 'tl_class' => 'clr'));
$GLOBALS['TL_DCA']['tl_layout']['fields']['xyaml_navigation'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['xyaml_navigation'], 'inputType' => 'checkbox', 'options' => array_keys($GLOBALS['YAML_NAVIGATION']), 'eval' => array('multiple' => true, 'tl_class' => 'clr'));
$GLOBALS['TL_DCA']['tl_layout']['fields']['xyaml_print'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['xyaml_print'], 'inputType' => 'checkbox', 'options' => array_keys($GLOBALS['YAML_PRINT']), 'eval' => array('multiple' => true, 'tl_class' => 'clr'));
$GLOBALS['TL_DCA']['tl_layout']['fields']['xyaml_screen'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['xyaml_screen'], 'inputType' => 'checkbox', 'options' => array_keys($GLOBALS['YAML_SCREEN']), 'eval' => array('multiple' => true, 'tl_class' => 'clr'));
$GLOBALS['TL_DCA']['tl_layout']['fields']['xyaml_subcolumns_linearize'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['xyaml_subcolumns_linearize'], 'inputType' => 'select', 'options' => array(1, 2), 'reference' => $GLOBALS['TL_LANG']['tl_layout']['xyaml_subcolumns_linearize_levels'], 'eval' => array('includeBlankOption' => true, 'tl_class' => 'clr'));
/**
 * Layout specific config
 */
$GLOBALS['TL_DCA']['tl_layout']['fields']['xyaml_auto_include'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['xyaml_auto_include'], 'inputType' => 'checkbox', 'eval' => array('submitOnChange' => true, 'tl_class' => 'm12'));
$GLOBALS['TL_DCA']['tl_layout']['fields']['xyaml_mode'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['xyaml_mode'], 'inputType' => 'select', 'options' => array('css'), 'eval' => array('submitOnChange' => true, 'tl_class' => 'clr w50'));
Esempio n. 13
0
<?php

/**
 * Browser authentication mechanism for Contao.
 * Copyright (C) 2013 Tristan Lins
 *
 * PHP version 5
 *
 * @copyright  bit3 UG 2013
 * @author     Tristan Lins <*****@*****.**>
 * @package    auth
 * @license    LGPL-3.0+
 * @filesource
 */
$this->loadLanguageFile('browser_auth');
/**
 * Table tl_page
 */
// do not remove, it is necessary to keep the order of selectors!
$GLOBALS['TL_DCA']['tl_page']['palettes']['__selector__'][] = 'browser_auth_enabled';
$GLOBALS['TL_DCA']['tl_page']['palettes']['__selector__'][] = 'browser_auth_module';
MetaPalettes::appendAfter('tl_page', 'root', 'protected', array('browser_auth' => array('browser_auth_enabled')));
$GLOBALS['TL_DCA']['tl_page']['metasubpalettes']['browser_auth_enabled'] = array('browser_auth_module');
$GLOBALS['TL_DCA']['tl_page']['fields']['browser_auth_enabled'] = array('label' => &$GLOBALS['TL_LANG']['tl_page']['browser_auth_enabled'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('submitOnChange' => true, 'tl_class' => 'm12 w50'), 'sql' => "char(1) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_page']['fields']['browser_auth_module'] = array('label' => &$GLOBALS['TL_LANG']['tl_page']['browser_auth_module'], 'exclude' => true, 'inputType' => 'select', 'options' => is_array($GLOBALS['BROWSER_AUTH_MODULES']) ? array_keys($GLOBALS['BROWSER_AUTH_MODULES']) : array(), 'eval' => array('mandatory' => true, 'includeBlankOption' => true, 'submitOnChange' => true, 'tl_class' => 'w50'), 'reference' => &$GLOBALS['TL_LANG']['browser_auth'], 'sql' => "varchar(32) NOT NULL default ''");
Esempio n. 14
0
<?php

/**
 * @package   contao-bootstrap
 * @author    David Molineus <*****@*****.**>
 * @license   LGPL 3+
 * @copyright 2013-2015 netzmacht creative David Molineus
 */
\MetaPalettes::appendFields('tl_settings', 'bootstrap', array('bootstrap_gridColumns'));
$GLOBALS['TL_DCA']['tl_settings']['fields']['bootstrap_gridColumns'] = array('inputType' => 'text', 'label' => &$GLOBALS['TL_LANG']['tl_settings']['bootstrap_gridColumns'], 'default' => 12, 'save_callback' => array(array('Netzmacht\\Bootstrap\\Grid\\DataContainer\\Settings', 'forceInteger')), 'eval' => array('tl_class' => 'w50', 'rgxp' => 'digit'));
Esempio n. 15
0
<?php

/**
 * Created by JetBrains PhpStorm.
 * User: david
 * Date: 18.10.13
 * Time: 09:32
 * To change this template use File | Settings | File Templates.
 */
\MetaPalettes::appendFields('tl_layout', 'style', array('fontAwesome'));
$GLOBALS['TL_DCA']['tl_layout']['fields']['fontAwesome'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['fontAwesome'], 'inputType' => 'select', 'exclude' => true, 'eval' => array('tl_class' => 'w50', 'includeBlankOption' => true), 'options' => array('font-awesome.css', 'font-awesome.min.css'), 'sql' => "varchar(32) NOT NULL default ''");
Esempio n. 16
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
 */
/**
 * Table tl_user
 */
MetaPalettes::appendAfter('tl_user', 'login', 'theme', ['frontend' => [':hide', 'themePlusDesignerMode']]);
MetaPalettes::appendAfter('tl_user', 'admin', 'theme', ['frontend' => [':hide', 'themePlusDesignerMode']]);
MetaPalettes::appendAfter('tl_user', 'default', 'theme', ['frontend' => [':hide', 'themePlusDesignerMode']]);
MetaPalettes::appendAfter('tl_user', 'group', 'theme', ['frontend' => [':hide', 'themePlusDesignerMode']]);
MetaPalettes::appendAfter('tl_user', 'extend', 'theme', ['frontend' => [':hide', 'themePlusDesignerMode']]);
MetaPalettes::appendAfter('tl_user', 'custom', 'theme', ['frontend' => [':hide', 'themePlusDesignerMode']]);
$GLOBALS['TL_DCA']['tl_user']['fields']['themePlusDesignerMode'] = ['label' => &$GLOBALS['TL_LANG']['tl_user']['themePlusDesignerMode'], 'exclude' => true, 'inputType' => 'checkbox', 'sql' => "char(1) NOT NULL default ''"];
$GLOBALS['TL_DCA']['tl_user']['fields']['themes']['options'][] = 'theme_plus_stylesheet';
$GLOBALS['TL_DCA']['tl_user']['fields']['themes']['options'][] = 'theme_plus_javascript';
Esempio n. 17
0
<?php

/**
 * palettes
 */
$GLOBALS['TL_DCA']['tl_form_field']['palettes']['button'] = $GLOBALS['TL_DCA']['tl_form_field']['palettes']['submit'];
foreach ($GLOBALS['BOOTSTRAP']['form']['widgets'] as $widget => $config) {
    if (isset($config['allowInputGroup']) && $config['allowInputGroup']) {
        \MetaPalettes::appendAfter('tl_form_field', $widget, 'fconfig', array('icon' => array(':hide', 'bootstrap_addIcon'), 'unit' => array(':hide', 'bootstrap_addUnit')));
    }
}
\MetaPalettes::appendAfter('tl_form_field', 'button', 'type', array('icon' => array('bootstrap_addIcon')));
// append inlineStyle option to radio and checkbox
\MetaPalettes::appendFields('tl_form_field', 'radio', 'fconfig', array('bootstrap_inlineStyle'));
\MetaPalettes::appendFields('tl_form_field', 'checkbox', 'fconfig', array('bootstrap_inlineStyle'));
\MetaPalettes::appendFields('tl_form_field', 'upload', 'fconfig', array('placeholder'));
/**
 * meta palettes
 */
$GLOBALS['TL_DCA']['tl_form_field']['metasubpalettes']['bootstrap_addIcon'] = array('bootstrap_icon', 'bootstrap_iconPosition');
$GLOBALS['TL_DCA']['tl_form_field']['metasubpalettes']['bootstrap_addUnit'] = array('bootstrap_unit', 'bootstrap_unitPosition');
unset($GLOBALS['TL_DCA']['tl_form_field']['subpalettes']['addSubmit']);
$GLOBALS['TL_DCA']['tl_form_field']['metasubpalettes']['addSubmit'] = array('slabel', 'bootstrap_addSubmitIcon', 'bootstrap_addSubmitIconPosition', 'bootstrap_addSubmitClass');
/**
 * fields
 */
$GLOBALS['TL_DCA']['tl_form_field']['fields']['bootstrap_addIcon'] = array('label' => &$GLOBALS['TL_LANG']['tl_form_field']['bootstrap_addIcon'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('submitOnChange' => true), 'sql' => "char(1) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_form_field']['fields']['bootstrap_icon'] = array('label' => &$GLOBALS['TL_LANG']['tl_form_field']['bootstrap_icon'], 'exclude' => true, 'inputType' => 'icon', 'options' => \Netzmacht\Bootstrap\Helper\Icons::getIcons(), 'eval' => array('tl_class' => 'w50', 'iconTemplate' => \Netzmacht\Bootstrap\Helper\Icons::getIconTemplate()), 'sql' => "varchar(32) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_form_field']['fields']['bootstrap_iconPosition'] = array('label' => &$GLOBALS['TL_LANG']['tl_form_field']['bootstrap_iconPosition'], 'exclude' => true, 'inputType' => 'select', 'options' => array('left', 'right'), 'reference' => &$GLOBALS['TL_LANG']['tl_form_field'], 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(32) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_form_field']['fields']['bootstrap_addUnit'] = array('label' => &$GLOBALS['TL_LANG']['tl_form_field']['bootstrap_addUnit'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('submitOnChange' => true, 'tl_class' => 'clr'), 'sql' => "char(1) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_form_field']['fields']['bootstrap_unit'] = array('label' => &$GLOBALS['TL_LANG']['tl_form_field']['bootstrap_unit'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(32) NOT NULL default ''");
Esempio n. 18
0
 /**
  * Update the current model from a post request. Additionally, trigger meta palettes, if installed.
  */
 public function updateModelFromPOST()
 {
     // callback to tell visitors that we have just updated the model.
     $this->getCallbackClass()->onModelBeforeUpdateCallback($this->getCurrentModel());
     // process input and update changed properties.
     foreach (array_keys($this->getFieldList()) as $strKey) {
         $varNewValue = $this->processInput($strKey);
         if ($varNewValue !== NULL && $this->objCurrentModel->getProperty($strKey) !== $varNewValue) {
             $this->objCurrentModel->setProperty($strKey, $varNewValue);
             $this->objCurrentModel->setMeta(DCGE::MODEL_IS_CHANGED, true);
         }
     }
     if (in_array($this->arrDCA['list']['sorting']['mode'], array(4, 5, 6)) && strlen(Input::getInstance()->get('pid')) > 0) {
         // pull correct condition from DCA and update according to setOn values.
         $objParentModel = $this->getDataProvider('parent')->fetch($this->getDataProvider('parent')->getEmptyConfig()->setId(Input::getInstance()->get('pid')));
         $arrCond = $this->getParentChildCondition($objParentModel, $this->getDataProvider()->getEmptyModel()->getProviderName());
         if (is_array($arrCond) && key_exists('setOn', $arrCond)) {
             foreach ($arrCond['setOn'] as $arrSetOn) {
                 if ($arrSetOn['from_field']) {
                     $this->objCurrentModel->setProperty($arrSetOn['to_field'], $objParentModel->getProperty($arrSetOn['from_field']));
                 } else {
                     $this->objCurrentModel->setProperty($arrSetOn['to_field'], $arrSetOn['value']);
                 }
             }
         }
     }
     // TODO: is this really a wise idea here?
     if (in_array('metapalettes', Config::getInstance()->getActiveModules())) {
         MetaPalettes::getInstance()->generateSubSelectPalettes($this);
     }
     // callback to tell visitors that we have just updated the model.
     $this->getCallbackClass()->onModelUpdateCallback($this->getCurrentModel());
 }
Esempio n. 19
0
<?php

/**
 * @package   contao-bootstrap
 * @author    David Molineus <*****@*****.**>
 * @license   LGPL 3+
 * @copyright 2013-2015 netzmacht creative David Molineus
 */
MetaPalettes::appendFields('tl_form', 'bootstrap', array(':hide', 'bootstrap_configs'));
$GLOBALS['TL_DCA']['tl_form']['fields']['bootstrap_configs'] = array('label' => &$GLOBALS['TL_LANG']['tl_form']['bootstrap_configs'], 'inputType' => 'checkboxWizard', 'options_callback' => array('Netzmacht\\Bootstrap\\Form\\Contao\\Dca\\Form', 'getConfigTypes'), 'eval' => array('tl_class' => 'clr', 'multiple' => true), 'sql' => "mediumblob NULL");
Esempio n. 20
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'));
Esempio n. 21
0
 /**
  * Add column set field to the colsetStart content element.
  *
  * We need to do it dynamically because subcolumns creates its palette dynamically.
  *
  * @param \DataContainer $dataContainer The data container driver.
  *
  * @return void
  *
  * @SuppressWarnings(PHPMD.Superglobals)
  */
 public function appendColumnsetIdToPalette($dataContainer)
 {
     if ($dataContainer->table == 'tl_content') {
         $model = \ContentModel::findByPK($dataContainer->id);
         if ($model->sc_type > 0) {
             \MetaPalettes::appendFields($dataContainer->table, 'colsetStart', 'colset', array('bootstrap_grid'));
         }
     } elseif ($dataContainer->table == 'tl_form_field') {
         $model = \FormFieldModel::findByPk($dataContainer->id);
         if ($model->fsc_type > 0) {
             $GLOBALS['TL_DCA']['tl_form_field']['palettes']['formcolstart'] = str_replace('fsc_color,', 'fsc_color,bootstrap_grid,', $GLOBALS['TL_DCA']['tl_form_field']['palettes']['formcolstart']);
         }
     } else {
         $model = \ModuleModel::findByPk($dataContainer->id);
         if ($model->sc_type > 0) {
             $GLOBALS['TL_DCA']['tl_module']['palettes']['subcolumns'] = str_replace('sc_type,', 'sc_type,columnset_id,', $GLOBALS['TL_DCA']['tl_module']['palettes']['subcolumns']);
         }
     }
 }
Esempio n. 22
0
<?php

/**
 * This Contao-Workflow extension allows the definition of workflow process for entities from different providers. This
 * extension is a workflow framework which can be used from other extensions to provide their custom workflow handling.
 *
 * @package    workflow
 * @author     David Molineus <*****@*****.**>
 * @copyright  2014 netzmacht creative David Molineus
 * @license    LGPL 3.0
 * @filesource
 */
\MetaPalettes::appendBefore('tl_user', 'custom', 'account', array('workflow' => array('workflow')));
\MetaPalettes::appendBefore('tl_user', 'extend', 'account', array('workflow' => array('workflow')));
\MetaPalettes::appendBefore('tl_user', 'admin', 'account', array('workflow' => array('workflow')));
$GLOBALS['TL_DCA']['tl_user']['fields']['workflow'] = array('label' => &$GLOBALS['TL_LANG']['tl_user']['workflow'], 'inputType' => 'checkbox', 'options_callback' => array('Netzmacht\\Workflow\\Contao\\Backend\\Permission', 'getAllPermissions'), 'save_callback' => array(new \Netzmacht\Workflow\Contao\Backend\Dca\SavePermissionsCallback('tl_user')), 'eval' => array('tl_class' => 'clr', 'multiple' => true), 'sql' => 'mediumblob NULL');
Esempio n. 23
0
/**
 * Table tl_page
 */
foreach (array_keys($GLOBALS['TL_PTY']) as $pty) {
    $hasSitemap = preg_match('~,sitemap[,;]~', $GLOBALS['TL_DCA']['tl_page']['palettes'][$pty]);
    $hasHide = preg_match('~,hide[,;]~', $GLOBALS['TL_DCA']['tl_page']['palettes'][$pty]);
    if ($hasSitemap || $hasHide) {
        $GLOBALS['TL_DCA']['tl_page']['palettes'][$pty] = preg_replace(array('~,sitemap([,;])~', '~,hide([,;])~'), '$1', $GLOBALS['TL_DCA']['tl_page']['palettes'][$pty]);
        $fields = array();
        if ($hasHide) {
            $fields[] = 'hide';
        }
        if ($hasSitemap) {
            $fields[] = 'sitemap';
        }
        $fields[] = 'xnavigationSubitle';
        $fields[] = 'xnavigationLightbox';
        MetaPalettes::appendAfter('tl_page', $pty, 'expert', array('xnavigation' => $fields));
    }
}
$GLOBALS['TL_DCA']['tl_page']['palettes']['__selector__'][] = 'xnavigationLightbox';
$GLOBALS['TL_DCA']['tl_page']['metasubpalettes']['xnavigationLightbox'] = array('xnavigationLightboxWidth', 'xnavigationLightboxHeight');
/**
 * Fields
 */
$GLOBALS['TL_DCA']['tl_page']['fields']['guests']['eval']['tl_class'] = 'w50 m12';
$GLOBALS['TL_DCA']['tl_page']['fields']['hide']['eval']['tl_class'] = 'w50 m12';
$GLOBALS['TL_DCA']['tl_page']['fields']['xnavigationSubitle'] = array('label' => &$GLOBALS['TL_LANG']['tl_page']['xnavigationSubitle'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('tl_class' => 'w50', 'maxlength' => 255), 'sql' => "varchar(255) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_page']['fields']['xnavigationLightbox'] = array('label' => &$GLOBALS['TL_LANG']['tl_page']['xnavigationLightbox'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class' => 'clr', 'submitOnChange' => true), 'sql' => "char(1) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_page']['fields']['xnavigationLightboxWidth'] = array('label' => &$GLOBALS['TL_LANG']['tl_page']['xnavigationLightboxWidth'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('tl_class' => 'w50', 'maxlength' => 255), 'sql' => "varchar(255) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_page']['fields']['xnavigationLightboxHeight'] = array('label' => &$GLOBALS['TL_LANG']['tl_page']['xnavigationLightboxHeight'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('tl_class' => 'w50', 'maxlength' => 255), 'sql' => "varchar(255) NOT NULL default ''");
<?php

$GLOBALS['TL_DCA']['tl_layout']['config']['onload_callback'][] = array('Bit3\\Contao\\Theme\\RevealJs\\Basic\\Hooks', 'loadLayoutDca');
$GLOBALS['TL_DCA']['tl_layout']['config']['onsubmit_callback'][] = array('Bit3\\Contao\\Theme\\RevealJs\\Basic\\Hooks', 'saveLayout');
MetaPalettes::appendFields('tl_layout', 'default', 'title', array('useRevealJs'));
$GLOBALS['TL_DCA']['tl_layout']['fields']['useRevealJs'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['useRevealJs'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('submitOnChange' => true), 'sql' => "char(1) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_layout']['fields']['revealJsPrint'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['revealJsPrint'], 'default' => '', 'exclude' => true, 'inputType' => 'select', 'options' => array('pdf', 'paper'), 'eval' => array('includeBlankOption' => true), 'sql' => "char(5) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_layout']['fields']['revealJsTheme'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['revealJsTheme'], 'default' => 'default', 'exclude' => true, 'inputType' => 'select', 'options' => array('default', 'beige', 'blood', 'moon', 'night', 'serif', 'simple', 'sky', 'solarized'), 'eval' => array('includeBlankOption' => true), 'sql' => "varchar(64) NOT NULL default 'default'");
$GLOBALS['TL_DCA']['tl_layout']['fields']['revealJsSize'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['revealJsSize'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('multiple' => true, 'size' => 2, 'rgxp' => 'digit'), 'sql' => "varchar(255) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_layout']['fields']['revealJsMargin'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['revealJsMargin'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('rgxp' => 'digit'), 'sql' => "varchar(255) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_layout']['fields']['revealJsScale'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['revealJsScale'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('multiple' => true, 'size' => 2, 'rgxp' => 'digit'), 'sql' => "varchar(255) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_layout']['fields']['revealJsControls'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['revealJsControls'], 'default' => true, 'exclude' => true, 'inputType' => 'checkbox', 'sql' => "char(1) NOT NULL default '1'");
$GLOBALS['TL_DCA']['tl_layout']['fields']['revealJsProgress'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['revealJsProgress'], 'default' => true, 'exclude' => true, 'inputType' => 'checkbox', 'sql' => "char(1) NOT NULL default '1'");
$GLOBALS['TL_DCA']['tl_layout']['fields']['revealJsSlideNumber'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['revealJsSlideNumber'], 'exclude' => true, 'inputType' => 'checkbox', 'sql' => "char(1) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_layout']['fields']['revealJsHistory'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['revealJsHistory'], 'exclude' => true, 'inputType' => 'checkbox', 'sql' => "char(1) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_layout']['fields']['revealJsKeyboard'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['revealJsKeyboard'], 'default' => true, 'exclude' => true, 'inputType' => 'checkbox', 'sql' => "char(1) NOT NULL default '1'");
$GLOBALS['TL_DCA']['tl_layout']['fields']['revealJsOverview'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['revealJsOverview'], 'default' => true, 'exclude' => true, 'inputType' => 'checkbox', 'sql' => "char(1) NOT NULL default '1'");
$GLOBALS['TL_DCA']['tl_layout']['fields']['revealJsCenter'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['revealJsCenter'], 'default' => true, 'exclude' => true, 'inputType' => 'checkbox', 'sql' => "char(1) NOT NULL default '1'");
$GLOBALS['TL_DCA']['tl_layout']['fields']['revealJsTouch'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['revealJsTouch'], 'default' => true, 'exclude' => true, 'inputType' => 'checkbox', 'sql' => "char(1) NOT NULL default '1'");
$GLOBALS['TL_DCA']['tl_layout']['fields']['revealJsLoop'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['revealJsLoop'], 'exclude' => true, 'inputType' => 'checkbox', 'sql' => "char(1) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_layout']['fields']['revealJsRtl'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['revealJsRtl'], 'exclude' => true, 'inputType' => 'checkbox', 'sql' => "char(1) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_layout']['fields']['revealJsFragments'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['revealJsFragments'], 'default' => true, 'exclude' => true, 'inputType' => 'checkbox', 'sql' => "char(1) NOT NULL default '1'");
$GLOBALS['TL_DCA']['tl_layout']['fields']['revealJsEmbedded'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['revealJsEmbedded'], 'exclude' => true, 'inputType' => 'checkbox', 'sql' => "char(1) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_layout']['fields']['revealJsAutoSlide'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['revealJsAutoSlide'], 'exclude' => true, 'inputType' => 'text', 'eval' => array('rgxp' => 'digit'), 'sql' => "int(10) unsigned NOT NULL default '0'");
$GLOBALS['TL_DCA']['tl_layout']['fields']['revealJsAutoSlideStoppable'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['revealJsAutoSlideStoppable'], 'default' => true, 'exclude' => true, 'inputType' => 'checkbox', 'sql' => "char(1) NOT NULL default '1'");
$GLOBALS['TL_DCA']['tl_layout']['fields']['revealJsMouseWheel'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['revealJsMouseWheel'], 'exclude' => true, 'inputType' => 'checkbox', 'sql' => "char(1) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_layout']['fields']['revealJsHideAddressBar'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['revealJsHideAddressBar'], 'default' => true, 'exclude' => true, 'inputType' => 'checkbox', 'sql' => "char(1) NOT NULL default '1'");
$GLOBALS['TL_DCA']['tl_layout']['fields']['revealJsPreviewLinks'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['revealJsPreviewLinks'], 'exclude' => true, 'inputType' => 'checkbox', 'sql' => "char(1) NOT NULL default ''");
$GLOBALS['TL_DCA']['tl_layout']['fields']['revealJsTransition'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['revealJsTransition'], 'default' => 'default', 'exclude' => true, 'inputType' => 'select', 'options' => array('default', 'cube', 'page', 'concave', 'zoom', 'linear', 'fade'), 'eval' => array('includeBlankOption' => true), 'sql' => "varchar(16) NOT NULL default 'default'");
$GLOBALS['TL_DCA']['tl_layout']['fields']['revealJsTransitionSpeed'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['revealJsTransitionSpeed'], 'default' => 'default', 'exclude' => true, 'inputType' => 'select', 'options' => array('default', 'fast', 'slow'), 'sql' => "char(7) NOT NULL default 'default'");
$GLOBALS['TL_DCA']['tl_layout']['fields']['revealJsBackgroundTransition'] = array('label' => &$GLOBALS['TL_LANG']['tl_layout']['revealJsBackgroundTransition'], 'default' => 'default', 'exclude' => true, 'inputType' => 'select', 'options' => array('default', 'slide', 'concave', 'convex', 'zoom'), 'eval' => array('includeBlankOption' => true), 'sql' => "varchar(16) NOT NULL default 'default'");