Christian Science Responsive Widgets
Featured Articles Widget
Other examples
Display parameters
Parameters copied to the clipboard
Param Default Options Description SP ● fea css Style Prefix DI Y Y or N Display Logo image IS Image Style (eg img-fluid) to add. II Y Y,N or S Item image displayed (S=small icon) DN 5 1 to 5 Display Number of featured articles P A A,J,S,H, A=All, J=Journal, S=Sentinel, H=Herald, M,T,W M=Monitor, T=Teen Connect, W=Sentinel Watch ● Allows you to have multiple versions of this widget, each with their own associated CSS, on a single web page
Javascript for extracting widget content
Javascript code copied to the clipboard
<head> ... <script type='text/javascript' src='https://christianscience.org.uk/rwidgets/js/tmwidgets.js'></script> <script type='text/javascript'> getWidgetData('featured','DN=5','FEAwidget'); </script> ... </head> <body> ... <div id='FEAwidget'></div> ... </body>
Notes ● The getWidgetData (javascript function) has three elements 1=Widget reference, 2=parameters and 3=div id where widget content is to be displayed ● Put javascript references in page head section ● Put referenced widget div in page body section for content display ● There is no javascript dependency on jQuery
Styling illustration
Styling example copied to the clipboard
<style type='text/css'> .feaTopLogo{padding-bottom:10px;} .feaHdrImage{display:block;margin-left:auto;margin-right:auto;} .feaGroupLg{font-family:Arial;color:#000;padding-bottom:10px;min-height:70px;} .feaGroupSm{font-family:Arial;color:#000;padding-bottom:10px;min-height:26px;} .feaGroup{font-family:Arial;color:#000;padding-bottom:10px;} .feaIcon{float:left;padding-right:10px;} .feaTitle{font-size:16px;} .feaClear{clear:both;} a.feaItemLink{text-decoration:none;color:#000099;} a.feaItemLink:hover,a.feaItemlink:active{text-decoration:none;color:#000;} </style>
 

© 2026  T Marr IT Services     •     Email: itservices@trevormarr.com    •     Privacy    •     Cookies    •     Site Map