Browse code

Update

Benjamin Roth authored on20/03/2023 16:19:16
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,154 @@
1
+<?php
2
+
3
+/**
4
+ * Contao Open Source CMS
5
+ *
6
+ * Copyright (c) 2005-2015 Leo Feyer
7
+ *
8
+ * @license LGPL-3.0+
9
+ */
10
+
11
+namespace eSM_isotope_custom;
12
+use Haste\Input\Input;
13
+
14
+
15
+/**
16
+ * Parent class for front end modules.
17
+ *
18
+ * @property integer $id
19
+ * @property integer $pid
20
+ * @property integer $tstamp
21
+ * @property string  $name
22
+ * @property string  $headline
23
+ * @property string  $type
24
+ * @property integer $levelOffset
25
+ * @property integer $showLevel
26
+ * @property boolean $hardLimit
27
+ * @property boolean $showProtected
28
+ * @property boolean $defineRoot
29
+ * @property integer $rootPage
30
+ * @property string  $navigationTpl
31
+ * @property string  $customTpl
32
+ * @property string  $pages
33
+ * @property string  $orderPages
34
+ * @property boolean $showHidden
35
+ * @property string  $customLabel
36
+ * @property boolean $autologin
37
+ * @property integer $jumpTo
38
+ * @property boolean $redirectBack
39
+ * @property string  $cols
40
+ * @property array   $editable
41
+ * @property string  $memberTpl
42
+ * @property boolean $tableless
43
+ * @property integer $form
44
+ * @property string  $queryType
45
+ * @property boolean $fuzzy
46
+ * @property integer $contextLength
47
+ * @property integer $totalLength
48
+ * @property integer $perPage
49
+ * @property string  $searchType
50
+ * @property string  $searchTpl
51
+ * @property string  $inColumn
52
+ * @property integer $skipFirst
53
+ * @property boolean $loadFirst
54
+ * @property string  $size
55
+ * @property boolean $transparent
56
+ * @property string  $flashvars
57
+ * @property string  $altContent
58
+ * @property string  $source
59
+ * @property string  $singleSRC
60
+ * @property string  $url
61
+ * @property boolean $interactive
62
+ * @property string  $flashID
63
+ * @property string  $flashJS
64
+ * @property string  $imgSize
65
+ * @property boolean $useCaption
66
+ * @property boolean $fullsize
67
+ * @property string  $multiSRC
68
+ * @property string  $orderSRC
69
+ * @property string  $html
70
+ * @property integer $rss_cache
71
+ * @property string  $rss_feed
72
+ * @property string  $rss_template
73
+ * @property integer $numberOfItems
74
+ * @property boolean $disableCaptcha
75
+ * @property string  $reg_groups
76
+ * @property boolean $reg_allowLogin
77
+ * @property boolean $reg_skipName
78
+ * @property string  $reg_close
79
+ * @property boolean $reg_assignDir
80
+ * @property string  $reg_homeDir
81
+ * @property boolean $reg_activate
82
+ * @property integer $reg_jumpTo
83
+ * @property string  $reg_text
84
+ * @property string  $reg_password
85
+ * @property boolean $protected
86
+ * @property string  $groups
87
+ * @property boolean $guests
88
+ * @property string  $cssID
89
+ * @property string  $space
90
+ * @property string  $cal_calendar
91
+ * @property boolean $cal_noSpan
92
+ * @property integer $cal_startDay
93
+ * @property string  $cal_format
94
+ * @property boolean $cal_ignoreDynamic
95
+ * @property string  $cal_order
96
+ * @property integer $cal_readerModule
97
+ * @property integer $cal_limit
98
+ * @property string  $cal_template
99
+ * @property string  $cal_ctemplate
100
+ * @property boolean $cal_showQuantity
101
+ * @property string  $com_order
102
+ * @property boolean $com_moderate
103
+ * @property boolean $com_bbcode
104
+ * @property boolean $com_requireLogin
105
+ * @property boolean $com_disableCaptcha
106
+ * @property string  $com_template
107
+ * @property string  $faq_categories
108
+ * @property integer $faq_readerModule
109
+ * @property string  $list_table
110
+ * @property string  $list_fields
111
+ * @property string  $list_where
112
+ * @property string  $list_search
113
+ * @property string  $list_sort
114
+ * @property string  $list_info
115
+ * @property string  $list_info_where
116
+ * @property string  $list_layout
117
+ * @property string  $list_info_layout
118
+ * @property string  $news_archives
119
+ * @property string  $news_featured
120
+ * @property string  $news_jumpToCurrent
121
+ * @property integer $news_readerModule
122
+ * @property string  $news_metaFields
123
+ * @property string  $news_template
124
+ * @property string  $news_format
125
+ * @property integer $news_startDay
126
+ * @property string  $news_order
127
+ * @property boolean $news_showQuantity
128
+ * @property string  $newsletters
129
+ * @property string  $nl_channels
130
+ * @property boolean $nl_hideChannels
131
+ * @property string  $nl_subscribe
132
+ * @property string  $nl_unsubscribe
133
+ * @property string  $nl_template
134
+ * @property string  $origSpace
135
+ * @property string  $origCssID
136
+ * @property string  $hl
137
+ *
138
+ *
139
+ * @author Leo Feyer <https://github.com/leofeyer>
140
+ */
141
+abstract class Module extends \Contao\Module
142
+{
143
+  public function generate()
144
+  {
145
+    // Hide element in reader mode if the respective setting is enabled
146
+    if ($this->es_iso_hide_list && Input::getAutoItem('product', false, true) != '') {
147
+      return '';
148
+    }
149
+
150
+    return parent::generate();
151
+  }
152
+
153
+
154
+}