Integrates Fullcalendar

This module easily integrates FullCalendar to your Thelia 2

Installation

Manually

  • Copy the module into <thelia_root>/local/modules/ directory and be sure that the name of the module is FullCalendar.
  • Activate it in your thelia administration panel

Composer

Execute this command in your project directory:

$ composer require thelia/full-calendar-module:~1.0

Usage

This module adds a smarty function that creates a calendar for you.

The {calendar} function has 4 optional parameters:

  • id: The calendar container ID. If this parameter isn't used, the ID will be fullcalendar, followed by a increment number. Example: fullcalendar0, fullcalendar1, ...
  • class: The calendar container classes. By default, the class thelia-fullcalendar is automatically added. This parameter can be an array or a string. Example: class=["foo", "bar"], class="foo bar"
  • options: This parameter let you give the fullcalendar javascript method's argument. This parameter must be an array. Example: The function {calendar options=["weekends" => 0]} will add the tag <div id="fullcalendar0" class="thelia-fullcalendar"></div> and the js snippet: $("#fullcalendar0").fullcalendar({weekends: 0});
  • attr: This parameter let you add more attributes to the calendar container tag. This must be an array. Example: {calendar attr=["data-id" => 1] will output <div id="fullcalendar0" class="thelia-fullcalendar" data-id="1"></div>

Hook

If your module use one or more hook, fill this part. Explain which hooks are used.

This module uses two hooks:

  • main.stylesheet: This hook is used to add FullCalendar's default stylesheets (standard and print)
  • main.javascript-initialization: This hook is used to add Moment and FullCalendar javascript files and calendars execution script.
Download
full-calendar.png Download

Integrates Fullcalendar

This module easily integrates FullCalendar JavaScript plugin to your Thelia 2

Compatibility :

Thelia 2.1

Compatibility :

Thelia 2.2

Compatibility :

Thelia 2.3

Say Hi & Get in Touch

info@thelia.net - +33(0)4 44 05 31 00

Thelia Network English
E-commerce solution

E-commerce software, useful to create and manage online stores, published under a free license. Discover our new version, based on many modern technologies !

Download Thelia
Business

A team of experts at your service.

Showcase

Over 7000 online stores powered by Thelia

Modules

Customize your Thelia.

Openstudio

Thelia editor