From 23e2b13efc90c0ed0f5215d5e81cc9d0b46f7ea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mauro=20Ferr=C3=A3o?= Date: Tue, 14 Nov 2023 10:44:14 +0000 Subject: [PATCH] RSS Ticker: not possible to easily add a separator between marquee items (#2206) relates to xibosignage/xibo#3135 --- modules/templates/article-static.xml | 112 ++++++++++++++++++++++++++- 1 file changed, 110 insertions(+), 2 deletions(-) diff --git a/modules/templates/article-static.xml b/modules/templates/article-static.xml index 1de3ef5a37..565dcb94cc 100644 --- a/modules/templates/article-static.xml +++ b/modules/templates/article-static.xml @@ -682,6 +682,42 @@ $(target).xiboTextRender(properties, $(target).find('#content > .image, #content The transition speed of the selected effect in milliseconds (normal = 1000) or the Marquee Speed in a low to high scale (normal = 1) 1000 + + Show a separator between items? + 0 + + + marqueeLeft + marqueeRight + marqueeUp + marqueeDown + + + + + Separator + A separator to show between marquee items + + /

+ ]]>
+ + + none + noTransition + fade + fadeout + scrollHorz + scrollVert + flipHorz + flipVert + shuffle + tileSlide + tileBlind + 1 + + +
No data message A message to display when no data is returned from the source @@ -762,6 +798,9 @@ html { height: 100%; text-align: center; } +.js-marquee .copyright { + width: auto; +} .copyright span { position: relative; font-size: 30px; @@ -799,9 +838,24 @@ if ( properties.numItems = parseInt(properties.numItems) + 1; } +// Add separator +if ( + ( + properties.effect == 'marqueeLeft' || + properties.effect == 'marqueeRight' || + properties.effect == 'marqueeUp' || + properties.effect == 'marqueeDown' + ) && properties.showSeparator == 1 && + properties.separator != '' +) { + var $separator = $(properties.separator); + $separator.addClass('separator'); + $(target).find('#content .article, #content .copyright').after($separator); +} + // Render $(target).xiboLayoutScaler(properties); -$(target).xiboTextRender(properties, $(target).find('#content .article, #content .copyright')); +$(target).xiboTextRender(properties, $(target).find('#content .article, #content .copyright, #content .separator')); ]]> @@ -838,6 +892,42 @@ $(target).xiboTextRender(properties, $(target).find('#content .article, #content The transition speed of the selected effect in milliseconds (normal = 1000) or the Marquee Speed in a low to high scale (normal = 1) 1000 + + Show a separator between items? + 0 + + + marqueeLeft + marqueeRight + marqueeUp + marqueeDown + + + + + Separator + A separator to show between marquee items + + /

+ ]]>
+ + + none + noTransition + fade + fadeout + scrollHorz + scrollVert + flipHorz + flipVert + shuffle + tileSlide + tileBlind + 1 + + +
No data message A message to display when no data is returned from the source @@ -907,6 +997,9 @@ html { top: 50%; transform: translateY(-50%); } +.js-marquee .copyright { + width: auto; +} {% endif %} ]]> @@ -937,9 +1030,24 @@ if ( properties.numItems = parseInt(properties.numItems) + 1; } +// Add separator +if ( + ( + properties.effect == 'marqueeLeft' || + properties.effect == 'marqueeRight' || + properties.effect == 'marqueeUp' || + properties.effect == 'marqueeDown' + ) && properties.showSeparator == 1 && + properties.separator != '' +) { + var $separator = $(properties.separator); + $separator.addClass('separator'); + $(target).find('#content .article, #content .copyright').after($separator); +} + // Render $(target).xiboLayoutScaler(properties); -$(target).xiboTextRender(properties, $(target).find('#content .article, #content .copyright')); +$(target).xiboTextRender(properties, $(target).find('#content .article, #content .copyright, #content .separator')); ]]>