News Icon Card Style
News Icon cards display a smaller card style with title, date, and description. This card features a background News Icon with a zoom effect on hover. These cards do not display any images or thumbnails. Style 5 works in central and side columns, while the stacked style 6 is best reserved for side columns. Style 6 is also compatible with the central column where left and right columns are enabled.
Style 5 News Icon Cards
<?php
// id of the news addon, required
$config['newsid'] = '45';
// number of articles to be shown in the feed, required
$config['articles'] = '3';
// style to use when formatting the feed on the page, required
$config['style'] = '5';
// load the functions we need and show the feed based on above settings
include_once ('/var/www/html/_resources/php/news_v2/functions.php');
echo news_display_feed($config);
?>
Style 6 - News Icon Cards (Stacked)
<?php
// id of the news addon, required
$config['newsid'] = '45';
// number of articles to be shown in the feed, required
$config['articles'] = '3';
// style to use when formatting the feed on the page, required
$config['style'] = '6';
// load the functions we need and show the feed based on above settings
include_once ('/var/www/html/_resources/php/news_v2/functions.php');
echo news_display_feed($config);
?>
Need Assistance?
The WKU ITS Service Desk is here to help. Give us a call, chat with a representative online, use the Self-Help Knowledge Base and more.
Some of the links on this page may require additional software to view.