{"id":36,"date":"2017-05-12T09:48:41","date_gmt":"2017-05-12T09:48:41","guid":{"rendered":"http:\/\/xdemo13.daext.com\/?page_id=36"},"modified":"2023-10-11T14:05:06","modified_gmt":"2023-10-11T14:05:06","slug":"homepage","status":"publish","type":"page","link":"https:\/\/demo.daext.com\/television-news-ticker\/","title":{"rendered":"Homepage"},"content":{"rendered":"<h2>Examples<\/h2>\n<p>Television News Ticker allows you to provide real time news to your users from different sources: from a database table, from manually generated JSON data, from an RSS feed or from a Twitter account.<\/p>\n<h3>From your database or from&nbsp;JSON&nbsp;data<\/h3>\n<p>Retrieve&nbsp;the news from a custom database table with PHP by using the included script or manually generate the JSON data.<\/p>\n<p><a href=\"https:\/\/demo.daext.com\/television-news-ticker\/world-news-from-a-static-source\/\">World News<\/a><br \/>\n<a href=\"https:\/\/demo.daext.com\/television-news-ticker\/sliding-news-with-stock-market-data\/\">Sliding News with Stock Market Data<\/a><br \/>\n<a href=\"https:\/\/demo.daext.com\/television-news-ticker\/premier-league-results\/\">Premier League Results<\/a><\/p>\n<h3>From an external source (RSS feed or Twitter)<\/h3>\n<p>Retrieve the news from an RSS feed or from a Twitter account. In this demo the news are updated each time the page is loaded&nbsp;but you can even update the news at every news cycle if you want, you can control the behavior of the news ticker with the customization options.<\/p>\n<p><a href=\"https:\/\/demo.daext.com\/television-news-ticker\/rss-from-bbc-world\/\">BBC News<\/a>&nbsp;(updated from the <a href=\"https:\/\/feeds.bbci.co.uk\/news\/world\/rss.xml?edition=uk\">BBC News &#8211; World<\/a> RSS feed )<br \/>\n<a href=\"https:\/\/demo.daext.com\/television-news-ticker\/cnn-arabic-with-rtl-layout\/\">CNN Arabic with RTL layout<\/a>&nbsp;(updated from the <a href=\"https:\/\/arabic.cnn.com\/world\/rss\">CNN Arabic &#8211; World<\/a>&nbsp;RSS feed)<\/p>\n<h3>Customization Options<\/h3>\n<p>This product has a total of 61 customization options. To use a customization option set its value during the initialization process of the news ticker.<\/p>\n<p>This example demonstrates how to define a custom number of displayed news with the <strong>numberOfNews<\/strong> option.<\/p>\n<pre>&lt;script&gt;\nnewsTicker.initialize({\n    newsDataJson: 'data.json',\n    numberOfNews: 20,\n  });\n&lt;\/script&gt;<\/pre>\n<p>Use this table to understand how each option should be used:<\/p>\n<table border=\"1\" width=\"100%\">\n<tbody>\n<tr>\n<td><b>Name<\/b><\/td>\n<td><b>Type<\/b><\/td>\n<td><b>Default<\/b><\/td>\n<td><b>Description<\/b><\/td>\n<\/tr>\n<tr>\n<td>newsDataJson<\/td>\n<td>String<\/td>\n<td>&#8216;source\/static.json&#8217;<\/td>\n<td>The URL to the news data in JSON format.<\/td>\n<\/tr>\n<tr>\n<td>cachedCycles<\/td>\n<td>Number<\/td>\n<td>0<\/td>\n<td>The number of cycles that should be performed without retrieving<br \/>\nthe news.<\/td>\n<\/tr>\n<tr>\n<td>tickerClosedInitial<\/td>\n<td>Boolean<\/td>\n<td>False<\/td>\n<td>This option determines the initial status of the news ticker<br \/>\n(Open or Closed). Please note that the cookie used to store the<br \/>\nstatus has priority over this option.<\/td>\n<\/tr>\n<tr>\n<td>layout<\/td>\n<td>String<\/td>\n<td>&#8216;ltr&#8217;<\/td>\n<td>The layout of the news ticker. &#8216;ltr&#8217; defines a left to right<br \/>\nlayout and &#8216;rtl&#8217; defines a right to left layout.<\/td>\n<\/tr>\n<tr>\n<td>moveInterval<\/td>\n<td>Number<\/td>\n<td>10<\/td>\n<td>This value determines the interval in milliseconds used to move<br \/>\nthe sliding news. A low value increases the speed, a high value<br \/>\nreduces the speed.<\/td>\n<\/tr>\n<tr>\n<td>token<\/td>\n<td>Number<\/td>\n<td>0<\/td>\n<td>Set this token if you plan to verify server-side the AJAX<br \/>\nrequest with your custom mechanism before returning the news<br \/>\nticker data. The server-side generation of the token should be<br \/>\nmanually implemented based on your needs.<\/td>\n<\/tr>\n<tr>\n<td>hideFeaturedNews<\/td>\n<td>Boolean<\/td>\n<td>False<\/td>\n<td>This option determines if the featured news are displayed or<br \/>\nnot.<\/td>\n<\/tr>\n<tr>\n<td>numberOfNews<\/td>\n<td>Number<\/td>\n<td>10<\/td>\n<td>This option determines the number of news displayed in the news<br \/>\nticker.<\/td>\n<\/tr>\n<tr>\n<td>rssUrl<\/td>\n<td>String<\/td>\n<td>&#8221;<\/td>\n<td>This option should be used to set the URL of the RSS feed.<\/td>\n<\/tr>\n<tr>\n<td>twitterUsername<\/td>\n<td>String<\/td>\n<td>&#8221;<\/td>\n<td>The Twitter username for which you want to retrieve the news.<\/td>\n<\/tr>\n<tr>\n<td>twitterStripLinks<\/td>\n<td>Boolean<\/td>\n<td>False<\/td>\n<td>This option determines if the links should be removed from the<br \/>\nimported tweets.<\/td>\n<\/tr>\n<tr>\n<td>twitterStripHashtags<\/td>\n<td>Boolean<\/td>\n<td>False<\/td>\n<td>This option determines if the hashtags should be removed form<br \/>\nthe imported tweets.<\/td>\n<\/tr>\n<tr>\n<td>twitterStripUsernames<\/td>\n<td>Boolean<\/td>\n<td>False<\/td>\n<td>This option determines if the usernames should be removed from<br \/>\nthe imported tweets.<\/td>\n<\/tr>\n<tr>\n<td>featuredNewsBackgroundColor<\/td>\n<td>String<\/td>\n<td>&#8216;#c90016&#8217;<\/td>\n<td>The color of the featured news background. Should be provided as<br \/>\na string with the color in HEX format (eg. &#8216;#ff0000&#8217;) or in RGBA<br \/>\nformat. (eg. &#8216;rgba(255, 0, 0, 0.8)&#8217;)<\/td>\n<\/tr>\n<tr>\n<td>featuredNewsTitleColor<\/td>\n<td>String<\/td>\n<td>&#8216;#eee&#8217;<\/td>\n<td>The color of the featured news title text. Should be provided as<br \/>\na string with the color in HEX format (eg. &#8216;#ff0000&#8217;) or in RGBA<br \/>\nformat. (eg. &#8216;rgba(255, 0, 0, 0.8)&#8217;)<\/td>\n<\/tr>\n<tr>\n<td>featuredNewsTitleColorHover<\/td>\n<td>String<\/td>\n<td>&#8216;#111&#8217;<\/td>\n<td>The color of the featured news title text in hover state. Should<br \/>\nbe provided as a string with the color in HEX format (eg.<br \/>\n&#8216;#ff0000&#8217;) or in RGBA format. (eg. &#8216;rgba(255, 0, 0, 0.8)&#8217;)<\/td>\n<\/tr>\n<tr>\n<td>featuredNewsTitleFontSize<\/td>\n<td>Number<\/td>\n<td>38<\/td>\n<td>The font size of the featured news title text in pixels.<\/td>\n<\/tr>\n<tr>\n<td>featuredNewsTitleFontWeight<\/td>\n<td>Number<\/td>\n<td>700<\/td>\n<td>The font weight of the featured news title text.<\/td>\n<\/tr>\n<tr>\n<td>featuredNewsTitleFontFamily<\/td>\n<td>String<\/td>\n<td>&#8220;&#8216;Open Sans&#8217;, sans-serif&#8221;<\/td>\n<td>The font family of the featured news title text.<\/td>\n<\/tr>\n<tr>\n<td>featuredNewsTitleFontStyle<\/td>\n<td>String<\/td>\n<td>&#8216;normal&#8217;<\/td>\n<td>The font style of the featured news title text. (possible values<br \/>\nare &#8216;normal&#8217;, &#8216;italic&#8217; and &#8216;oblique&#8217;)<\/td>\n<\/tr>\n<tr>\n<td>featuredNewsTitleTextTransform<\/td>\n<td>String<\/td>\n<td>&#8216;uppercase&#8217;<\/td>\n<td>The text transform value of the featured news title text.<br \/>\n(possible values are &#8216;none&#8217;, &#8216;capitalize&#8217;, &#8216;uppercase&#8217;,<br \/>\n&#8216;lowercase&#8217;)<\/td>\n<\/tr>\n<tr>\n<td>featuredNewsTitleMaxLength<\/td>\n<td>Number<\/td>\n<td>255<\/td>\n<td>The maximum number of characters displayed for the featured news<br \/>\ntitle. If the actual title is longer than the limit imposed with<br \/>\nthis option the title will be truncated with final ellipsis.<\/td>\n<\/tr>\n<tr>\n<td>featuredNewsTitleEnableLinks<\/td>\n<td>Boolean<\/td>\n<td>True<\/td>\n<td>Whether to enable or not the link associated with the featured<br \/>\nnews title.<\/td>\n<\/tr>\n<tr>\n<td>featuredNewsTitleOpenLinkTab<\/td>\n<td>Boolean<\/td>\n<td>False<\/td>\n<td>Whether to open in a new tab or not the link associated with the<br \/>\nfeatured news title.<\/td>\n<\/tr>\n<tr>\n<td>featuredNewsExcerptColor<\/td>\n<td>String<\/td>\n<td>&#8216;#eee&#8217;<\/td>\n<td>The color of the featured news excerpt text. Should be provided<br \/>\nas a string with the color in HEX format (eg. &#8216;#ff0000&#8217;) or in<br \/>\nRGBA format. (eg. &#8216;rgba(255, 0, 0, 0.8)&#8217;)<\/td>\n<\/tr>\n<tr>\n<td>featuredNewsExcerptFontSize<\/td>\n<td>Number<\/td>\n<td>28<\/td>\n<td>The font size of the featured excerpt title text in pixels.<\/td>\n<\/tr>\n<tr>\n<td>featuredNewsExcerptFontWeight<\/td>\n<td>Number<\/td>\n<td>700<\/td>\n<td>The font weight of the featured news excerpt text.<\/td>\n<\/tr>\n<tr>\n<td>featuredNewsExcerptFontFamily<\/td>\n<td>String<\/td>\n<td>&#8220;&#8216;Open Sans&#8217;, sans-serif&#8221;<\/td>\n<td>The font family of the featured news excerpt text.<\/td>\n<\/tr>\n<tr>\n<td>featuredNewsExcerptFontStyle<\/td>\n<td>String<\/td>\n<td>&#8216;normal&#8217;<\/td>\n<td>The font style of the featured news excerpt text. (possible<br \/>\nvalues are &#8216;normal&#8217;, &#8216;italic&#8217; and &#8216;oblique&#8217;)<\/td>\n<\/tr>\n<tr>\n<td>featuredNewsExcerptTextTransform<\/td>\n<td>String<\/td>\n<td>&#8216;none&#8217;<\/td>\n<td>The text transform value of the featured news excerpt. (possible<br \/>\nvalues are &#8216;none&#8217;, &#8216;capitalize&#8217;, &#8216;uppercase&#8217;, &#8216;lowercase&#8217;)<\/td>\n<\/tr>\n<tr>\n<td>featuredNewsExcerptMaxLength<\/td>\n<td>Number<\/td>\n<td>255<\/td>\n<td>The maximum number of characters displayed for the featured news<br \/>\nexcerpt. If the actual excerpt is longer than the limit imposed<br \/>\nwith this option the title will be truncated with final ellipsis.<\/td>\n<\/tr>\n<tr>\n<td>slidingNewsBackgroundColor<\/td>\n<td>String<\/td>\n<td>&#8216;#000000&#8217;<\/td>\n<td>The color of the sliding news background. Should be provided as<br \/>\na string with the color in HEX format (eg. &#8216;#ff0000&#8217;) or in RGBA<br \/>\nformat. (eg. &#8216;rgba(255, 0, 0, 0.8)&#8217;)<\/td>\n<\/tr>\n<tr>\n<td>slidingNewsColor<\/td>\n<td>String<\/td>\n<td>&#8216;#eee&#8217;<\/td>\n<td>The color of the sliding news text. Should be provided as a<br \/>\nstring with the color in HEX format (eg. &#8216;#ff0000&#8217;) or in RGBA<br \/>\nformat. (eg. &#8216;rgba(255, 0, 0, 0.8)&#8217;)<\/td>\n<\/tr>\n<tr>\n<td>slidingNewsColorHover<\/td>\n<td>String<\/td>\n<td>&#8216;#aaaaaa&#8217;<\/td>\n<td>The color of the sliding news text in hover state. Should be<br \/>\nprovided as a string with the color in HEX format (eg. &#8216;#ff0000&#8217;)<br \/>\nor in RGBA format. (eg. &#8216;rgba(255, 0, 0, 0.8)&#8217;)<\/td>\n<\/tr>\n<tr>\n<td>slidingNewsFontSize<\/td>\n<td>Number<\/td>\n<td>28<\/td>\n<td>The font size of the sliding news text in pixels.<\/td>\n<\/tr>\n<tr>\n<td>slidingNewsFontWeight<\/td>\n<td>Number<\/td>\n<td>700<\/td>\n<td>The font weight of the sliding news text.<\/td>\n<\/tr>\n<tr>\n<td>slidingNewsFontFamily<\/td>\n<td>String<\/td>\n<td>&#8220;&#8216;Open Sans&#8217;, sans-serif&#8221;<\/td>\n<td>The font family of the sliding news text.<\/td>\n<\/tr>\n<tr>\n<td>slidingNewsFontStyle<\/td>\n<td>String<\/td>\n<td>&#8216;normal&#8217;<\/td>\n<td>The font style of the sliding news text. (possible values are<br \/>\n&#8216;normal&#8217;, &#8216;italic&#8217; and &#8216;oblique&#8217;)<\/td>\n<\/tr>\n<tr>\n<td>slidingNewsTextTransform<\/td>\n<td>String<\/td>\n<td>&#8216;uppercase&#8217;<\/td>\n<td>The text transform value of the sliding news text. (possible<br \/>\nvalues are &#8216;none&#8217;, &#8216;capitalize&#8217;, &#8216;uppercase&#8217;, &#8216;lowercase&#8217;)<\/td>\n<\/tr>\n<tr>\n<td>slidingNewsPadding<\/td>\n<td>Number<\/td>\n<td>112<\/td>\n<td>The padding between the sliding news in pixels.<\/td>\n<\/tr>\n<tr>\n<td>slidingNewsMaxLength<\/td>\n<td>Number<\/td>\n<td>255<\/td>\n<td>The maximum number of characters displayed for the sliding news<br \/>\ntext. If the actual sliding news text is longer than the limit<br \/>\nimposed with this option the sliding news text will be truncated<br \/>\nwith final ellipsis.<\/td>\n<\/tr>\n<tr>\n<td>slidingNewsEnableLinks<\/td>\n<td>Boolean<\/td>\n<td>True<\/td>\n<td>Whether to enable or not the link associated with the sliding<br \/>\nnews.<\/td>\n<\/tr>\n<tr>\n<td>slidingNewsOpenLinksNewTab<\/td>\n<td>Boolean<\/td>\n<td>False<\/td>\n<td>Whether to open in a new tab or not the link associated with the<br \/>\nsliding news text.<\/td>\n<\/tr>\n<tr>\n<td>showClock<\/td>\n<td>Boolean<\/td>\n<td>True<\/td>\n<td>Whether to show or not the clock.<\/td>\n<\/tr>\n<tr>\n<td>clockColor<\/td>\n<td>String<\/td>\n<td>&#8216;#111&#8217;<\/td>\n<td>The color of the clock text. Should be provided as a string with<br \/>\nthe color in HEX format (eg. &#8216;#ff0000&#8217;) or in RGBA format. (eg.<br \/>\n&#8216;rgba(255, 0, 0, 0.8)&#8217;)<\/td>\n<\/tr>\n<tr>\n<td>clockFontSize<\/td>\n<td>Number<\/td>\n<td>28<\/td>\n<td>The font size of the clock text in pixels.<\/td>\n<\/tr>\n<tr>\n<td>clockFontWeight<\/td>\n<td>Number<\/td>\n<td>700<\/td>\n<td>The font weight of the clock text.<\/td>\n<\/tr>\n<tr>\n<td>clockFontFamily<\/td>\n<td>String<\/td>\n<td>&#8220;&#8216;Open Sans&#8217;, sans-serif&#8221;<\/td>\n<td>The font family of the clock text.<\/td>\n<\/tr>\n<tr>\n<td>clockFontStyle<\/td>\n<td>String<\/td>\n<td>&#8216;normal&#8217;<\/td>\n<td>The font style of the clock text. (possible values are &#8216;none&#8217;,<br \/>\n&#8216;capitalize&#8217;, &#8216;uppercase&#8217;, &#8216;lowercase&#8217;)<\/td>\n<\/tr>\n<tr>\n<td>clockUpdate<\/td>\n<td>Number<\/td>\n<td>1000<\/td>\n<td>This value determines how frequently the clock should be updated<br \/>\nin milliseconds.<\/td>\n<\/tr>\n<tr>\n<td>clockBackgroundImage<\/td>\n<td>String<\/td>\n<td>The value is too long to be displayed in this reference<\/td>\n<td>The image used as a background for the clock provided in base64<br \/>\nformat. The recommended dimensions are 80&#215;40 pixels.<\/td>\n<\/tr>\n<tr>\n<td>showOpenCloseButton<\/td>\n<td>Boolean<\/td>\n<td>True<\/td>\n<td>Whether to show or not the Open\/Close button.<\/td>\n<\/tr>\n<tr>\n<td>openButtonBackgroundImage<\/td>\n<td>String<\/td>\n<td>The value is too long to be displayed in this reference<\/td>\n<td>The image used as a background for the open button provided in<br \/>\nbase64 format. The recommended dimensions are 80&#215;40 pixels.<\/td>\n<\/tr>\n<tr>\n<td>closeButtonBackgroundImage<\/td>\n<td>String<\/td>\n<td>The value is too long to be displayed in this reference<\/td>\n<td>The image used as a background for the close button provided in<br \/>\nbase64 format. The recommended dimensions are 80&#215;40 pixels.<\/td>\n<\/tr>\n<tr>\n<td>enableMobileDevices<\/td>\n<td>Boolean<\/td>\n<td>False<\/td>\n<td>This option determines if the news ticker should be enabled with<br \/>\nmobile devices. The actual detection is performed via PHP with the<br \/>\nMobile Detect PHP library.<\/td>\n<\/tr>\n<tr>\n<td>enableTabletDevices<\/td>\n<td>Boolean<\/td>\n<td>False<\/td>\n<td>This option determines if the news ticker should be enabled with<br \/>\ntablet devices. The actual detection is performed via PHP with the<br \/>\nMobile Detect PHP library.<\/td>\n<\/tr>\n<tr>\n<td>enableDevices<\/td>\n<td>Array[string]<\/td>\n<td>[]<\/td>\n<td>This option allows to enable the news ticker with specific<br \/>\nmobile devices. The identifiers of the mobile devices should be<br \/>\nprovided as an array of strings.<\/td>\n<\/tr>\n<tr>\n<td>hideFeaturedNewsMaxWidth<\/td>\n<td>Number<\/td>\n<td>0<\/td>\n<td>This option should be used to hide the featured news (with a<br \/>\nmedia query that uses the max-width property) when the browser<br \/>\nviewport width goes below the specified value in pixels.<\/td>\n<\/tr>\n<tr>\n<td>hideFeaturedNewsMaxDeviceWidth<\/td>\n<td>Number<\/td>\n<td>0<\/td>\n<td>This option should be used to hide the featured news (with a<br \/>\nmedia query that uses the max-device-width property) when the<br \/>\ndevice full screen size width goes below the specified value.<\/td>\n<\/tr>\n<tr>\n<td>hideFeaturedNewsLandscape<\/td>\n<td>Boolean<\/td>\n<td>False<\/td>\n<td>This option should be used to hide the featured news when the<br \/>\ndevice orientation is &#8216;landscape&#8217;.<\/td>\n<\/tr>\n<tr>\n<td>hideFeaturedNewsPortrait<\/td>\n<td>Boolean<\/td>\n<td>False<\/td>\n<td>This option should be used to hide the featured news when the<br \/>\ndevice orientation is &#8216;portrait&#8217;.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Examples Television News Ticker allows you to provide real time news to your users from different sources: from a database table, from manually generated JSON data, from an RSS feed or from a Twitter account. From your database or from&nbsp;JSON&nbsp;data Retrieve&nbsp;the news from a custom database table with PHP by using the included script or [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-36","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/demo.daext.com\/television-news-ticker\/wp-json\/wp\/v2\/pages\/36","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demo.daext.com\/television-news-ticker\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/demo.daext.com\/television-news-ticker\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/demo.daext.com\/television-news-ticker\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/demo.daext.com\/television-news-ticker\/wp-json\/wp\/v2\/comments?post=36"}],"version-history":[{"count":1,"href":"https:\/\/demo.daext.com\/television-news-ticker\/wp-json\/wp\/v2\/pages\/36\/revisions"}],"predecessor-version":[{"id":64,"href":"https:\/\/demo.daext.com\/television-news-ticker\/wp-json\/wp\/v2\/pages\/36\/revisions\/64"}],"wp:attachment":[{"href":"https:\/\/demo.daext.com\/television-news-ticker\/wp-json\/wp\/v2\/media?parent=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}