Download the PHP package thelia/carousel-module without Composer

On this page you can find all versions of the php package thelia/carousel-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package carousel-module

Carousel

This module for Thelia add a customizable carousel on your home page. You can upload you own image and overload the default template in your template for using the carousel.

Installation

Usage

In the configuration panel of this module, you can upload as many images as you want.

Hook

The carousel is installed in the "Home page - main area" (home.body) hook.

Loop

Customize images with the carousel loop, which has the same arguments as the image loop. You can define a width, a height, and many other parameters

Input arguments

Argument Description
width A width in pixels, for resizing image. If only the width is provided, the image ratio is preserved. Example : width="200"
height A height in pixels, for resizing image. If only the height is provided, the image ratio is preserved. example : height="200"
rotation The rotation angle in degrees (positive or negative) applied to the image. The background color of the empty areas is the one specified by 'background_color'. example : rotation="90"
background_color The color applied to empty image parts during processing. Use $rgb or $rrggbb color format. example : background_color="$cc8000"
quality The generated image quality, from 0(!) to 100%. The default value is 75% (you can hange this in the Administration panel). example : quality="70"
resize_mode If 'crop', the image will have the exact specified width and height, and will be cropped if required. If 'borders', the image will have the exact specified width and height, and some borders may be added. The border color is the one specified by 'background_color'. If 'none' or missing, the image ratio is preserved, and depending od this ratio, may not have the exact width and height required. resize_mode="crop"
effects One or more comma separated effects definitions, that will be applied to the image in the specified order. Please see below a detailed description of available effects. Expected values :
  • gamma:value : change the image Gamma to the specified value. Example: gamma:0.7.
  • grayscale or greyscale : switch image to grayscale.
  • colorize:color : apply a color mask to the image. The color format is $rgb or $rrggbb. Example: colorize:$ff2244.
  • negative : transform the image in its negative equivalent.
  • vflip or vertical_flip : flip the image vertically.
  • hflip or horizontal_flip : flip the image horizontally.
example : effects="greyscale,gamma:0.7,vflip"
group The name of an image group. Return only images from the specified group
filter_disable_slides if true (the default), the disabled slides will not be displayed

Ouput arguments

Variable Description
$ID the image ID
$IMAGE_URL The absolute URL to the generated image
$ORIGINAL_IMAGE_URL The absolute URL to the original image
$IMAGE_PATH The absolute path to the generated image file
$ORIGINAL_IMAGE_PATH The absolute path to the original image file
$ALT alt text
$TITLE the slide title
$CHAPO the slide summary
$DESCRIPTION the slide description
$POSTSCRIPTUM the slide conclusion
$LOCALE the textual elements locale
$POSITION the slide position in the carousel
$URL the related URL
$LIMITED true if slide is disabled, false otherwise
$START_DATE limited slide display start date
$END_DATE limited slide display end date
$DISABLE true if slide display is limited
$GROUP name of the group the slide belong to

Exemple

How to override ?

If you want your own carousel in your tempalte, create the directory then create the template in this directory. Here you can create your own carousel and the replace the default template provided in the module.


All versions of carousel-module with dependencies

PHP Build Version
Package Version
Requires thelia/installer Version ~1.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package thelia/carousel-module contains the following files

Loading the files please wait ....