public function loadLayoutDca($dc) { $layout = \Database::getInstance()->prepare('SELECT * FROM tl_layout WHERE id=?')->execute($dc->id); if ($layout->useRevealJs) { Loader::load(); // {title_legend},name; // {header_legend},rows; // {column_legend},cols; // {sections_legend:hide},sections,sPosition; // {webfonts_legend:hide},webfonts; // {style_legend},framework,stylesheet,external; // {feed_legend:hide},newsfeeds,calendarfeeds; // {modules_legend},modules; // {expert_legend:hide},template,doctype,viewport,titleTag,cssClass,onload,head; // {jquery_legend},addJQuery; // {mootools_legend},addMooTools; // {script_legend:hide},analytics,script; // {static_legend},static' \MetaPalettes::appendBefore('tl_layout', 'default', 'expert', array('revealJs' => array('revealJsPrint', 'revealJsTheme', 'revealJsSize', 'revealJsMargin', 'revealJsScale', 'revealJsControls', 'revealJsProgress', 'revealJsSlideNumber', 'revealJsHistory', 'revealJsKeyboard', 'revealJsOverview', 'revealJsCenter', 'revealJsTouch', 'revealJsLoop', 'revealJsRtl', 'revealJsFragments', 'revealJsEmbedded', 'revealJsAutoSlide', 'revealJsAutoSlideStoppable', 'revealJsMouseWheel', 'revealJsHideAddressBar', 'revealJsPreviewLinks', 'revealJsTransition', 'revealJsTransitionSpeed', 'revealJsBackgroundTransition', 'revealJsViewDistance'))); \MetaPalettes::removeFields('tl_layout', 'default', array('sections', 'sPosition', 'static')); } }
<?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');
<?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');