Giter Site home page Giter Site logo

gillesbourgeat / fullcalendar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thelia-modules/fullcalendar

0.0 2.0 0.0 210 KB

This module easily integrates FullCalendar to your Thelia 2

License: GNU Lesser General Public License v3.0

PHP 83.90% HTML 16.10%

fullcalendar's Introduction

Full Calendar

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.

fullcalendar's People

Contributors

lovenunu avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.