/system/modules/jqtouch/dca/tl_article.php

https://github.com/JanoschSkuplik/jQTouchForContao · PHP · 115 lines · 62 code · 17 blank · 36 comment · 1 complexity · 40487c313cc457241d70f30776644f7c MD5 · raw file

  1. <?php if (!defined('TL_ROOT')) die('You cannot access this file directly!');
  2. /**
  3. * Contao Open Source CMS
  4. * Copyright (C) 2005-2012 Leo Feyer
  5. *
  6. * Formerly known as TYPOlight Open Source CMS.
  7. *
  8. * This program is free software: you can redistribute it and/or
  9. * modify it under the terms of the GNU Lesser General Public
  10. * License as published by the Free Software Foundation, either
  11. * version 3 of the License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * Lesser General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with this program. If not, please visit the Free
  20. * Software Foundation website at <http://www.gnu.org/licenses/>.
  21. *
  22. * PHP version 5
  23. * @copyright DMA - Dialog und Medien Agentur 2012
  24. * @author Janosch Skuplik <skuplik@dma.do>
  25. * @package jQTouch
  26. * @license LGPL
  27. * @filesource
  28. */
  29. /**
  30. * Table tl_article
  31. */
  32. /**
  33. * palettes
  34. */
  35. $GLOBALS['TL_DCA']['tl_article']['palettes']['__selector__'][] = 'jqt_toolbar';
  36. $GLOBALS['TL_DCA']['tl_article']['palettes']['__selector__'][] = 'jqt_toolbarBackBtn';
  37. $GLOBALS['TL_DCA']['tl_article']['palettes']['__selector__'][] = 'jqt_toolbarTitle';
  38. $GLOBALS['TL_DCA']['tl_article']['palettes']['__selector__'][] = 'jqt_toolbarRightBtn';
  39. $GLOBALS['TL_DCA']['tl_article']['palettes']['default'] = str_replace(';{expert_legend',';{jqt_legend},jqt_toolbar,jqt_nocache;{expert_legend',$GLOBALS['TL_DCA']['tl_article']['palettes']['default']);
  40. $GLOBALS['TL_DCA']['tl_article']['subpalettes']['jqt_toolbar'] = 'jqt_toolbarBackBtn,jqt_toolbarTitle,jqt_toolbarRightBtn';
  41. $GLOBALS['TL_DCA']['tl_article']['subpalettes']['jqt_toolbarBackBtn'] = 'jqt_toolbarBackBtnTarget,jqt_toolbarBackBtnText';
  42. $GLOBALS['TL_DCA']['tl_article']['subpalettes']['jqt_toolbarTitle'] = 'jqt_toolbarTitleText';
  43. $GLOBALS['TL_DCA']['tl_article']['subpalettes']['jqt_toolbarRightBtn'] = 'jqt_toolbarRightBtnHtml';
  44. /**
  45. * fields
  46. */
  47. $GLOBALS['TL_DCA']['tl_article']['fields']['jqt_nocache'] = array(
  48. 'label' => &$GLOBALS['TL_LANG']['tl_article']['jqt_nocache'],
  49. 'exclude' => true,
  50. 'inputType' => 'checkbox',
  51. 'eval' => array('tl_class'=>'clr w50 m12')
  52. );
  53. $GLOBALS['TL_DCA']['tl_article']['fields']['jqt_toolbar'] = array(
  54. 'label' => &$GLOBALS['TL_LANG']['tl_article']['jqt_toolbar'],
  55. 'exclude' => true,
  56. 'inputType' => 'checkbox',
  57. 'eval' => array('submitOnChange'=>true)
  58. );
  59. $GLOBALS['TL_DCA']['tl_article']['fields']['jqt_toolbarBackBtn'] = array(
  60. 'label' => &$GLOBALS['TL_LANG']['tl_article']['jqt_toolbarBackBtn'],
  61. 'exclude' => true,
  62. 'inputType' => 'checkbox',
  63. 'eval' => array('submitOnChange'=>true, 'tl_class'=>'clr w50 m12')
  64. );
  65. $GLOBALS['TL_DCA']['tl_article']['fields']['jqt_toolbarTitle'] = array(
  66. 'label' => &$GLOBALS['TL_LANG']['tl_article']['jqt_toolbarTitle'],
  67. 'exclude' => true,
  68. 'inputType' => 'checkbox',
  69. 'eval' => array('submitOnChange'=>true, 'tl_class'=>'clr w50 m12')
  70. );
  71. $GLOBALS['TL_DCA']['tl_article']['fields']['jqt_toolbarRightBtn'] = array(
  72. 'label' => &$GLOBALS['TL_LANG']['tl_article']['jqt_toolbarRightBtn'],
  73. 'exclude' => true,
  74. 'inputType' => 'checkbox',
  75. 'eval' => array('submitOnChange'=>true, 'tl_class'=>'clr w50 m12')
  76. );
  77. $GLOBALS['TL_DCA']['tl_article']['fields']['jqt_toolbarRightBtnHtml'] = array(
  78. 'label' => &$GLOBALS['TL_LANG']['tl_article']['jqt_toolbarRightBtnHtml'],
  79. 'exclude' => true,
  80. 'inputType' => 'textarea',
  81. 'eval' => array('allowHtml'=>true, 'style'=>'height:60px;', 'tl_class'=>'clr')
  82. );
  83. $GLOBALS['TL_DCA']['tl_article']['fields']['jqt_toolbarBackBtnText'] = array(
  84. 'label' => &$GLOBALS['TL_LANG']['tl_article']['jqt_toolbarBackBtnText'],
  85. 'exclude' => true,
  86. 'inputType' => 'text',
  87. 'eval' => array('tl_class'=>'w50')
  88. );
  89. $GLOBALS['TL_DCA']['tl_article']['fields']['jqt_toolbarTitleText'] = array(
  90. 'label' => &$GLOBALS['TL_LANG']['tl_article']['jqt_toolbarTitleText'],
  91. 'exclude' => true,
  92. 'inputType' => 'text',
  93. 'eval' => array('tl_class'=>'w50')
  94. );
  95. class tl_article_jqtouch extends Backend
  96. {
  97. }
  98. ?>