Responsive design

Notice: Undefined index: social_google in /home/webroot/www.kusoftas.com/cms/templates_c/demo^7b9c5ab6cf20f7b62a4fced0b8a945dae9af628c_0.file.skin-template-header.tpl.cache.php on line 163

Download

Last stable v 5.2 2024-11-01

    {cms_plugin_news}

    Smarty get news (<cms_plugin_news>) template plugin. Plugin gets news array from news storage defined by id parameter and stores into variable defined by var parameter.

    Attributes:

    Attribute Name Type Required Default Description
    id string Yes n/a news storage (XML file) id
    item_id string No news item id
    topic string No news items filter in following cases:
    • "year=yyyy" - by year
    • "date=yyyy-mm-dd hh:mm:ss" - by date and time
    • "title=text snippet" - by title containing text snippet
    • "description=text snippet" - by description containing text snippet
    • "topic=topic id" - by topic id (only for valid topics by its date against today)
    var string Yes n/a Assign news array to variable definded by var

    Array data format:

    [ { id: "news item unique id", bookmark: "news item user friedly bookmark (to be used instead of id if available)", date: "news item issue date and time", url: "url to page containing more info", title: "news item title", description: "news item description", content: "news item content", keywords: "news item keywords", image: "url to slide image", topic: [ "topic id", ... ] }, ... ]

    Sample for using:

    {cms_plugin_news id='eng' topic='topic=act' var='sample'} {json_encode($sample)}

    Above will output:

    [{"id":"672a27dcbceaa","bookmark":"kusoftas-cms-52","date":"2024-11-01 00:00:00","title":"KUSoftas CMS 5.2","description":"<p>\nKUSoftas CMS 5.2:\n<\/p>\n<ul>\n <li>PHP 8.2<\/li>\n <li>PHP Smarty 5.4.1<\/li>\n <li>PHP SLIM 4.10<\/li>\n <li>jQuery 3.6.0<\/li>\n <li>jQuery UI 1.12.1<\/li>\n <li>jQuery DataTables 2.1.4<\/li>\n <li>PostgreSQL, MySQL, SQLite support<\/li>\n <li>Apache Solr support<\/li>\n <li>Other PHP &amp; jQuery based components<\/li>\n<\/ul>","keywords":"","content":"<div class=\"skin-content-doc\">\nKUSoftas CMS change log is available at\n <a class=\"blue-link\" href=\"http:\/\/service.kusoftas.com\/cms\/change_log.txt\" target=\"blank\">\n http:\/\/service.kusoftas.com\/cms\/change_log.txt\n <\/a>\n<br>\n<p>\n <a class=\"blue-link\" href=\"http:\/\/service.kusoftas.com#download\" target=\"blank\">\n Download and try it!\n <\/a>\n<\/p>\n<p>KUSoftas Team, 11\/01\/2024<\/p>\n<\/div>","image":"\/cms\/images\/logo-240x210.png","topic":["act","brk"],"url":"http:\/\/www.kusoftas.com\/news\/item\/kusoftas-cms-52"}]