quexer69 / yii-gcal-flow
This jQuery plug-in for yii-framework provides a widget to show event list of your google calendar with configurable options and fully customizable HTML design template. With composer support.
Installs: 110
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii-extension
Suggests
- gcal: Any new google calendar extensions for Yii Framework
README
Version 3.3.0
This jQuery plug-in for yii-framework provides a widget to show event list of your google calendar with configurable options and fully customizable HTML design template. With composer support.
Quick-Start
Composer
If you have composer already installed
composer.phar require quexer69/yii-gcal-flow 3.*
or
add the package quexer69/yii-gcal-flow
to your composer.json
Setup
[SETUP] edit in app/config/main.php
REQUIRED
'modules' => array( 'gCalFlow' => array( 'class' = 'vendor.quexer69.yii-gcal-flow.GoogleCalendarWidget', ),
Notice: If you define an alias for 'vendor.quexer69.yii-gcal-flow.GoogleCalendarWidget' would be more comfortable to call the widget.
i.e. 'aliases' => array( ... 'GCalFlow' => 'vendor.quexer69.yii-gcal-flow.GoogleCalendarWidget', ... ),
Run widget
Default Call of the slitSlider Widget
$this->widget('vendor.quexer69.yii-gcal-flow.GoogleCalendarWidget');
Params Call of the GoogleCalendarWidget Widget
$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 ) );
Or easily add through P3WidgetContainer (if 'phundament/p3widgets' installed)
(you need to add GoogleCalendarWidget to the P3Widgets)
'p3widgets' => array( 'params' => array( 'widgets' => array( ... 'GCalFlow.components.GoogleCalendarWidget' => 'Google Calendar List Widget' ), ...