150
118
{% set title %}{% trans "Name" %}{% endset %}
151
119
{% set helpText %}{% trans "An optional name for this widget" %}{% endset %}
152
{{ forms.input("name", title, "", helpText) }}
154
{% set title %}{% trans "Set a duration?" %}{% endset %}
155
{% set helpText %}{% trans "Select to provide a specific duration for this Widget" %}{% endset %}
156
{{ forms.checkbox("useDuration", title, 0, helpText) }}
120
{{ forms.text("name", title, "", helpText) }}
158
122
{% set title %}{% trans "Duration" %}{% endset %}
159
123
{% set helpText %}{% trans "The duration in seconds this should be displayed" %}{% endset %}
160
{{ forms.number("duration", title, module.getModule().defaultDuration, helpText, "duration-fields", "required") }}
124
{{ forms.number("duration", title, "", helpText, "", "required") }}
162
126
{% set title %}{% trans "Search Term" %}{% endset %}
163
127
{% set helpText %}{% trans "Search term. You can test your search term in the twitter.com search box first." %}{% endset %}
164
{{ forms.input("searchTerm", title, "", helpText, "", "required") }}
128
{{ forms.text("searchTerm", title, "", helpText, "", "required") }}
166
130
{% set title %}{% trans "Type" %}{% endset %}
167
131
{% set helpText %}{% trans "Recent shows only the most recent tweets, Popular the most popular and Mixed includes both popular and recent results." %}{% endset %}
180
144
{{ forms.number("tweetDistance", title, "", helpText) }}
182
146
{% set title %}{% trans "Count" %}{% endset %}
183
{% set helpText %}{% trans "The number of Tweets to return (default = 15)." %}{% endset %}
147
{% set helpText %}{% trans "The number of Tweets to return." %}{% endset %}
184
148
{{ forms.number("tweetCount", title, "", helpText) }}
186
{% set title %}{% trans "Tweets Per Page" %}{% endset %}
187
{% set helpText %}{% trans "The number of Tweets to show per page (default = 5)." %}{% endset %}
188
{{ forms.number("itemsPerPage", title, "", helpText) }}
191
151
<div class="tab-pane" id="template">
193
153
{% set title %}{% trans "Template" %}{% endset %}
194
154
{% set helpText %}{% trans "Select the template you would like to apply. This can be overridden using the check box below." %}{% endset %}
195
{{ forms.dropdown("templateId", "single", title, module.getOption("templateId", "tweet-only"), module.templatesAvailable(),"id", "value", helptext, "template-selector-control selectPicker selectPickerWithImage", null, null, null, null, null, baseUrl, "image") }}
155
{{ forms.dropdown("templateId", "single", title, module.getOption("templateId", "tweet-only"), module.templatesAvailable(),"id", "value", helptext, "template-selector-control") }}
197
157
{% set title %}{% trans "Override the template?" %}{% endset %}
198
158
{% set helpText %}{% trans "Tick if you would like to override the template." %}{% endset %}
199
159
{{ forms.checkbox("overrideTemplate", title, module.getOption("overrideTemplate", 0), helpText) }}
201
{% set title %}{% trans "Original Width" %}{% endset %}
202
{% set helpText %}{% trans "This is the intended width of the template and is used to scale the Widget within its region when the template is applied." %}{% endset %}
203
{{ forms.number("widgetOriginalWidth", title, module.getOption("widgetOriginalWidth", undefined), helpText, "template-override-controls", "", "number") }}
205
{% set title %}{% trans "Original Height" %}{% endset %}
206
{% set helpText %}{% trans "This is the intended height of the template and is used to scale the Widget within its region when the template is applied." %}{% endset %}
207
{{ forms.number("widgetOriginalHeight", title, module.getOption("widgetOriginalHeight", undefined), helpText, "template-override-controls", "", "number") }}
209
{% set title %}{% trans "Original Padding" %}{% endset %}
210
{% set helpText %}{% trans "This is the intended padding of the template and is used to position the Widget within its region when the template is applied." %}{% endset %}
211
{{ forms.number("widgetOriginalPadding", title, module.getOption("widgetOriginalPadding", undefined), helpText, "template-override-controls", "", "number") }}
213
{% set title %}{% trans "Content Type" %}{% endset %}
214
{% set helpText %}{% trans "This is the intended tweet content type." %}{% endset %}
215
{% set allTweets %}{% trans "All Tweets" %}{% endset %}
216
{% set justText %}{% trans "Tweets with text only content" %}{% endset %}
217
{% set withImages %}{% trans "Tweets with text and image content" %}{% endset %}
219
{ contenttypeid: 0, type: allTweets },
220
{ contenttypeid: 1, type: justText },
221
{ contenttypeid: 2, type: withImages }
223
{{ forms.dropdown("resultContent", "single", title, module.getOption("resultContent", 0), options, "contenttypeid", "type", helpText,"template-override-controls", "required") }}
225
161
{% set helpText %}{% trans "Enter the template. Please note that the background colour has automatically coloured to your layout background colour." %}{% endset %}
226
162
{{ forms.textarea("ta_text", "", "", helpText, "template-override-controls", "", 10) }}
245
181
{% set shuffle %}{% trans "Shuffle" %}{% endset %}
246
182
{% set tileSlide %}{% trans "Tile Slide" %}{% endset %}
247
183
{% set tileBlind %}{% trans "Tile Blind" %}{% endset %}
184
{% set marqueeLeft %}{% trans "Marquee Left" %}{% endset %}
185
{% set marqueeRight %}{% trans "Marquee Right" %}{% endset %}
186
{% set marqueeUp %}{% trans "Marquee Up" %}{% endset %}
187
{% set marqueeDown %}{% trans "Marquee Down" %}{% endset %}
248
188
{% set options = [
249
{ effectid: "noAnim", effect: noneOption },
189
{ effectid: "none", effect: noneOption },
250
190
{ effectid: "fade", effect: fade },
251
191
{ effectid: "fadeout", effect: fadeout},
252
192
{ effectid: "scrollHorz", effect: scrollHorz},
255
195
{ effectid: "flipVert", effect: flipVert},
256
196
{ effectid: "shuffle", effect: shuffle},
257
197
{ effectid: "tileSlide", effect: tileSlide},
258
{ effectid: "tileBlind", effect: tileBlind}
198
{ effectid: "tileBlind", effect: tileBlind},
199
{ effectid: "marqueeLeft", effect: marqueeLeft},
200
{ effectid: "marqueeRight", effect: marqueeRight},
201
{ effectid: "marqueeUp", effect: marqueeUp},
202
{ effectid: "marqueeDown", effect: marqueeDown}
260
204
{{ forms.dropdown("effect", "single", title, module.getOption("effect"), options, "effectid", "effect", helpText) }}
262
206
{% set title %}{% trans "Speed" %}{% endset %}
263
{% set helpText %}{% trans "The transition speed of the selected effect in milliseconds (normal = 1000)." %}{% endset %}
207
{% set helpText %}{% trans "The transition speed of the selected effect in milliseconds (normal = 1000) or the Marquee Speed in a low to high scale (normal = 1)." %}{% endset %}
264
208
{{ forms.number("speed", title, "", helpText, "effect-controls") }}
267
211
<div class="tab-pane" id="advanced">
269
{% set title %}{% trans "Duration is per item" %}{% endset %}
270
{% set helpText %}{% trans "The duration specified is per item otherwise it is per feed." %}{% endset %}
271
{{ forms.checkbox("durationIsPerItem", title, 1, helpText) }}
273
213
{% set title %}{% trans "Background Colour" %}{% endset %}
274
214
{% set helpText %}{% trans "The selected effect works best with a background colour. Optionally add one here." %}{% endset %}
275
{{ forms.input("backgroundColor", title, "", helpText, "background-color-group") }}
215
{{ forms.text("backgroundColor", title, "", helpText, "background-color-group") }}
277
217
{% set title %}{% trans "No tweets" %}{% endset %}
278
218
{% set helpText %}{% trans "A message to display when there are no tweets returned by the search query" %}{% endset %}
279
{{ forms.input("noTweetsMessage", title, "", helpText) }}
219
{{ forms.text("noTweetsMessage", title, "", helpText) }}
281
221
{% set title %}{% trans "Date Format" %}{% endset %}
282
222
{% set helpText %}{% trans "The format to apply to all dates returned by the ticker. In PHP date format: http://uk3.php.net/manual/en/function.date.php" %}{% endset %}
283
{{ forms.input("dateFormat", title, "d M", helpText) }}
285
{% set title %}{% trans "Remove Mentions?" %}{% endset %}
286
{% set helpText %}{% trans "Should mentions (@someone) be removed from the Tweet Text?" %}{% endset %}
287
{{ forms.checkbox("removeMentions", title, 0, helpText) }}
289
{% set title %}{% trans "Remove Hashtags?" %}{% endset %}
290
{% set helpText %}{% trans "Should Hashtags (#something) be removed from the Tweet Text?" %}{% endset %}
291
{{ forms.checkbox("removeHashtags", title, 0, helpText) }}
223
{{ forms.text("dateFormat", title, "d M", helpText) }}
293
225
{% set title %}{% trans "Remove URLs?" %}{% endset %}
294
{% set helpText %}{% trans "Should URLs be removed from the Tweet Text? Most URLs do not compliment digital signage." %}{% endset %}
295
{{ forms.checkbox("removeUrls", title, 1, helpText) }}
226
{% set helpText %}{% trans "Should URLs be removed from the Tweet Text. Most URLs do not compliment digital signage." %}{% endset %}
227
{{ forms.checkbox("removeUrls", title, 0, helpText) }}
297
229
{% set title %}{% trans "Update Interval (mins)" %}{% endset %}
298
230
{% set helpText %}{% trans "Please enter the update interval in minutes. This should be kept as high as possible. For example, if the data will only change once per hour this could be set to 60." %}{% endset %}
299
231
{{ forms.number("updateInterval", title, 60, helpText, "", "required") }}
301
{% set title %}{% trans "Optional JavaScript" %}{% endset %}
302
{{ forms.textarea("javaScript", "", module.getRawNode("javaScript"), title, "", "", 10) }}