newscoop/smarty-extensions-plugin-bundle

Newscoop的SmartyExtensions插件包

dev-master 2013-12-16 16:52 UTC

This package is not auto-updated.

Last update: 2024-09-24 07:06:51 UTC


README

NewscoopSmartyExtensionsPluginBundle

安装/更新/移除

概述

由Newscoop插件管理器处理

模板示例

    {{ array_multisort array1=$array array2=array assaign=sorted_array }}

以上代码将通过PHP的array_multisort函数设置名为'sorted_array'的模板变量,该变量包含array1和array2的排序后的数组

    {{ set_current_article_events_date }}

在kobinet模板中使用,用于排序数组和设置current_article_events_date模板变量

    {{ set_art_data }}

在kobinet模板中使用,用于排序数组和设置art_data_array模板变量

    {{ set_current_date }}

在模板中使用,用于设置cMonth和cYear模板变量

    {{ show_calendar }}

在模板中使用,用于输出请求月份和年份的日历