system/modules/pct_privacy_manager/dca/tl_layout.php line 15

Open in your IDE?
  1. <?php
  2. /**
  3.  * Contao Open Source CMS
  4.  *
  5.  * Copyright (C) 2005-2013 Leo Feyer
  6.  *
  7.  * @copyright Tim Gatzky 2020
  8.  * @author  Tim Gatzky <info@tim-gatzky.de>
  9.  * @package  pct_privacy_manager
  10.  * @link  http://contao.org
  11.  */
  12. if( \in_array('pct_themer'\Contao\Config::getInstance()->getActiveModules()) === false || (\in_array('pct_themer'\Contao\Config::getInstance()->getActiveModules()) === true && (boolean)\Contao\Config::get('pct_themedesigner_nofonts') === true) )
  13. {
  14.     /**
  15.      * Palettes
  16.      */
  17.     $GLOBALS['TL_DCA']['tl_layout']['palettes']['default'] = str_replace(',webfonts',',webfonts,webfonts_optin,',$GLOBALS['TL_DCA']['tl_layout']['palettes']['default']);
  18. }
  19. /**
  20.  * Fields
  21.  */
  22. $GLOBALS['TL_DCA']['tl_layout']['fields']['webfonts_optin'] = array
  23. (
  24.     'label'                   => &$GLOBALS['TL_LANG']['tl_layout']['webfonts_optin'],
  25.     'exclude'                 => true,
  26.     'inputType'               => 'checkbox',
  27.     'eval'                    => array('tl_class'=>'clr'),
  28.     'sql'                     => "char(1) NOT NULL default ''"
  29. );