![]() |
||
|
|
![]() |
|
If you want to include the blog Today's Fredlines on your own web site, here's how to go about it.
It's a JavaScript widget — which is fully customizable — allowing you to choose the look/feel, size and number of posts in the feed. Use the form below to generate the JavaScript code for your site.
The JavaScript widget is fully customizable, allowing you to choose the look/feel, size, length and content of the feed. Use the form below to generate the JavaScript code for your site.
Controlling display of items:
The Today's Fredlines JavaScript Code Generator provides the following variables to let you control the display of the content:
| Option | Description |
| Number of Entries | Determines the number of blog entries displayed within the widget. |
| APM Logo | Displays the American Public Media logo |
| "Get This Widget" Button | A button linking back to this page, allowing your readers to use this widget on their blogs and web sites. |
| Blog Title | Displays Performance Today - Today's Fredlines title, linked to the blog. |
| Tag Line | Displays the blog's tag line. Disabled if the blog title is disabled. |
| Title, Date or Both | Choose whether you want to show each entry's title, date or both. |
| Body of entries | Choose whether you want to show each entry's body text. |
| Default CSS | Uses the default CSS to format the widget. To create your own style sheet, refer to the list of CSS classes and ids below, or modify the default stylesheet. |
| Generate Code | Clicking Generate Code will generate the code needed to create the widget with your preferences. It will also update the Sample/Preview so that you can view your changes before implementing your new code. |
Custom CSS Classes and IDs:
You can use American Public Media's custom classes to control the appearance of the HTML elements within the Today's Fredlines JavaScript feed widget.
The widget uses the following HTML elements, classes and IDs:
<div id="pttfWidget" class="feedWidget">Here are more details about the custom CSS:
| pttfWidget [id] | Resides in the <div> tag that surrounds all the generated content. |
| feedWidget [class] | Same as above, but use this class to apply styles if you use more than one of our widget on a page. |
| logoImage [class] | Resides in the <img> tag of the American Public Media logo. |
| getWidgetButton [class] | Resides in the <a> tag that surrounds "Add This Widget" button. |
| feedEntry [class] | Resides in the <div> tag surrounding each blog entry. |
| feedTitle [class] | Resides in the <h4> tag surrounding each entry's title. |
| feedDate [class] | Resides in the <p> tag surrounding each entry's date. |
| feedDesc [class] | Resides in the <div> tag surrounding each entry's question/answer pair. |
| moreLink [class] | Resides in the <a> tag surrounding the ellipsis (…) that appears when a question/answer is truncated. The <a> tag links to the complete text of the entry. |