quexer69 / yii-gcal-flow
这个为 yii-framework 开发的 jQuery 插件提供了一个可配置选项和完全自定义 HTML 设计模板的小部件,用于显示您的 Google 日历的事件列表。支持 composer。
3.3.0
2014-02-12 13:01 UTC
Suggests
- gcal: Any new google calendar extensions for Yii Framework
README
版本 3.3.0
这个为 yii-framework 开发的 jQuery 插件提供了一个可配置选项和完全自定义 HTML 设计模板的小部件,用于显示您的 Google 日历的事件列表。支持 composer。
快速入门
Composer
如果您已经安装了 composer
composer.phar require quexer69/yii-gcal-flow 3.*
或者
在您的 composer.json 中添加包 quexer69/yii-gcal-flow
设置
[设置] 在 app/config/main.php 中编辑
必需
'modules' => array( 'gCalFlow' => array( 'class' = 'vendor.quexer69.yii-gcal-flow.GoogleCalendarWidget', ),
注意:如果您为 'vendor.quexer69.yii-gcal-flow.GoogleCalendarWidget' 定义了一个别名,那么调用小部件会更方便。
例如 'aliases' => array( ... 'GCalFlow' => 'vendor.quexer69.yii-gcal-flow.GoogleCalendarWidget', ... ),
运行小部件
splitSlider 小部件的默认调用
$this->widget('vendor.quexer69.yii-gcal-flow.GoogleCalendarWidget');
GoogleCalendarWidget 小部件的参数调用
$this->widget('GCalFlow', array( 'calandarId' => 'YOUR_GOOGLE_CALENDAR_ID', 'maxitem' => 6, 'mode' => 'upstream', // [upcoming | updates] 'no_items_html' => '<span>No Events availible!</span>', // HTML for empty calendar 'link_item_title' => true, 'link_item_description' => false, 'auto_scroll' => true, 'height' => '300px', // css height of the #gcf-container 'width' => '100%', // css width of the #gcf-container 'debug' => false, // turn on debug console ) );
或者通过 P3WidgetContainer 简单添加(如果已安装 'phundament/p3widgets')
(您需要将 GoogleCalendarWidget 添加到 P3Widgets)
'p3widgets' => array( 'params' => array( 'widgets' => array( ... 'GCalFlow.components.GoogleCalendarWidget' => 'Google Calendar List Widget' ), ...