Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.

newscat

To make PHPFusion v7.01 more blogger friendly to designers and theme makers the newscat function was introduced to display the category name and link the news item had been placed in.

newscat

Quote

newscat ( array $info [ , string $sep [ , string $class] ] )


Parameters
info
The news item information array which holds all data about the news item

sep
Separator which is used to separate the different links

class
The class for the news category link.

Return Values
The name and a link of the category.

Basic newscat example
Code
<?php
echo newscat($info," ·");
?>

Will display the news category and the link to it, in this case the PHPFusion category which has the id 12.

Output from basic example

Quote

<!--news_cat-->In <a href='news_cats.php?cat_id=12'>PHPFusion</a> ·


Newscat example with a class
Code
<?php
echo newscat($info," ·", "cat-class");
?>

Here we display the same category link but with the "cat-class" added to it.

Output from example with a class

Quote

<!--news_cat-->In <a href='news_cats.php?cat_id=12' class='cat-class'>PHPFusion</a> ·


Changelog
7.01.00 - Function added to PHPFusion