PluginProbe
CSS & JavaScript Toolbox / 7.2
CSS & JavaScript Toolbox v7.2
trunk 0.3 0.8 10 10.1 11 11.2 11.3 11.4 11.5 11.6 11.7 11.8 11.9 11.9.1 12 12.0 12.0.1 12.0.3 12.0.4 12.0.5 12.0.6 12.0.7 6.0 6.0.11 All 60 releases
← All changes | models/fields/template-types.php +10 -10 127.2 View file →
@@ -1,7 +1,7 @@
1 1 <?php
2 2 /**
3 -*
3 +*
4 4 */
5 5
6 6 // Import dependencies.
7 7 cssJSToolbox::import('framework:html:list.php', 'framework:db:mysql:xtable.inc.php');
@@ -6,28 +6,28 @@
6 6 // Import dependencies.
7 7 cssJSToolbox::import('framework:html:list.php', 'framework:db:mysql:xtable.inc.php');
8 8
9 9 /**
10 -*
10 +*
11 11 */
12 12 class CJTTemplateTypesField extends CJTListField {
13 -
13 +
14 14 /**
15 15 * put your comment there...
16 - *
16 + *
17 17 */
18 18 protected function prepareItems() {
19 19 if ((isset($this->options['result'])) && ($this->options['result'] == 'fullList')) {
20 - $this->items['css']['text'] = cssJSToolbox::getText('CSS');
21 - $this->items['javascript']['text'] = cssJSToolbox::getText('JavaScript');
22 - $this->items['html']['text'] = cssJSToolbox::getText('HTML');
23 - $this->items['php']['text'] = cssJSToolbox::getText('PHP');
20 + $this->items['css']['text'] = cssJSToolbox::getText('css');
21 + $this->items['javascript']['text'] = cssJSToolbox::getText('javascript');
22 + $this->items['html']['text'] = cssJSToolbox::getText('html');
23 + $this->items['php']['text'] = cssJSToolbox::getText('php');
24 24 }
25 25 else {
26 26 CJTxTable::import('author');
27 27 $internalAuthorsFlag = CJTAuthorTable::FLAG_SYS_AUTHOR;
28 28 // Query all types ezcluding internal authors!
29 - $query = "SELECT DISTINCT(type) `text`
29 + $query = "SELECT DISTINCT(type) `text`
30 30 FROM #__cjtoolbox_templates t
31 31 LEFT JOIN #__cjtoolbox_authors a
32 32 ON t.authorId = a.id
33 33 WHERE (a.attributes & {$internalAuthorsFlag}) = 0
@@ -34,6 +34,6 @@
34 34 ORDER BY `text`";
35 35 $this->items = cssJSToolbox::getInstance()->getDBDriver()->select($query);
36 36 }
37 37 }
38 -
38 +
39 39 } // End class.