Projet

Général

Profil

Paste
Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / colorbox @ b433176d

Nom Taille Révision Âge Auteur Commentaire
  drush b433176d environ 4 ans Assos Assos Weekly update of contrib modules
  images b433176d environ 4 ans Assos Assos Weekly update of contrib modules
  js b433176d environ 4 ans Assos Assos Weekly update of contrib modules
  styles b433176d environ 4 ans Assos Assos Weekly update of contrib modules
  views b433176d environ 4 ans Assos Assos Weekly update of contrib modules
LICENSE.txt 17,7 ko f7a2490e environ 10 ans Assos Assos git mv htmltest drupal7
README.txt 6,16 ko b433176d environ 4 ans Assos Assos Weekly update of contrib modules
colorbox-insert-image.tpl.php 1,43 ko b433176d environ 4 ans Assos Assos Weekly update of contrib modules
colorbox.admin.inc 17,2 ko b433176d environ 4 ans Assos Assos Weekly update of contrib modules
colorbox.api.php 1,26 ko b433176d environ 4 ans Assos Assos Weekly update of contrib modules
colorbox.info 395 octets b433176d environ 4 ans Assos Assos Weekly update of contrib modules
colorbox.install 3,93 ko b433176d environ 4 ans Assos Assos Weekly update of contrib modules
colorbox.make 294 octets 91f42c9e presque 10 ans Assos Assos Weekly update of contrib modules
colorbox.module 22,5 ko b433176d environ 4 ans Assos Assos Weekly update of contrib modules
colorbox.theme.inc 8,32 ko b433176d environ 4 ans Assos Assos Weekly update of contrib modules
colorbox.variable.inc 1,24 ko f7a2490e environ 10 ans Assos Assos git mv htmltest drupal7

Dernières révisions

# Date Auteur Commentaire
b433176d 15/04/2020 23:11 Assos Assos

Weekly update of contrib modules

b08fce64 06/04/2017 00:01 Assos Assos

Weekly update of contrib modules

39a3d70c 08/06/2016 22:48 Assos Assos

Weekly update of contrib modules

790c5a62 07/10/2015 22:46 Assos Assos

Weekly update of contrib modules

62f5c69e 24/06/2015 22:46 Assos Assos

Weekly update of contrib modules

dbb0c974 17/09/2014 22:30 Assos Assos

Weekly update of contrib modules

c169e7c4 25/06/2014 22:29 Assos Assos

Weekly update of contrib modules

91f42c9e 28/05/2014 22:38 Assos Assos

Weekly update of contrib modules

f7a2490e 13/02/2014 15:56 Assos Assos

git mv htmltest drupal7

Voir les révisions

README


CONTENTS OF THIS FILE

  • Introduction
  • Features
  • Requirements
  • Installation
  • Configuration
  • Use the Views Colorbox Trigger field
  • Add a custom Colorbox style to your theme
  • Load images from custom links in a Colorbox
  • Load content in a Colorbox
  • Load inline content in a Colorbox
  • Drush
  • Image in Colorbox not displayed in Internet Explorer 8
  • Maintainers

INTRODUCTION

Colorbox is a light-weight, customizable lightbox plugin for jQuery 1.4.3+.
This module allows for integration of Colorbox into Drupal.
The jQuery library is a part of Drupal since version 5+.

Images, iframed or inline content etc. can be displayed in a
overlay above the current page.

FEATURES:

The Colorbox:

  • Excellent integration with Image field and Image styles
  • Choose between a default style and 5 example styles that are included.
  • Style the Colorbox with a custom colorbox.css file in your theme.
  • Drush command to download and install the Colorbox plugin in sites/all/libraries

The Colorbox plugin:

  • Supports photos, grouping, slideshow, ajax, inline, and iframed content.
  • Appearance is controlled through CSS so it can be restyled.
  • Preloads upcoming images in a photo group.
  • Completely unobtrusive, options are set in the JS and require no changes to existing HTML.
  • Compatible with: jQuery 1.3.2+ in Firefox, Safari, Chrome, Opera, Internet Explorer 7+.
  • Released under the MIT License.

REQUIREMENTS

This module requires the following modules:

INSTALLATION

  1. Download and unpack the Libraries module directory in your modules folder
    (this will usually be "sites/all/modules/").
    Link: http://drupal.org/project/libraries

  2. Download and unpack the Colorbox module directory in your modules folder
    (this will usually be "sites/all/modules/").

  3. Download and unpack the Colorbox plugin in "sites/all/libraries".
    Make sure the path to the plugin file becomes:
    "sites/all/libraries/colorbox/jquery.colorbox-min.js"
    Link: https://github.com/jackmoore/colorbox/archive/1.x.zip
    Drush users can use the command "drush colorbox-plugin".

  4. Go to "Administer" -> "Modules" and enable the Colorbox.

    Install as you would normally install a contributed Drupal module. See:
    https://drupal.org/documentation/install/modules-themes/modules-7 for
    further information.

    Note:
    If you download the Colorbox plugin using the makefile included you should
    assurance that unzip command is available on your host.

CONFIGURATION

  • Go to "Configuration" » "Media" » "Colorbox" to find all the configuration options.

USE THE VIEWS COLORBOX TRIGGER FIELD

TODO

ADD A CUSTOM COLORBOX STYLE TO YOUR THEME

The easiest way is to start with either the default style or one of the
example styles included in the Colorbox JS library download. Simply copy the
entire style folder to your theme and rename it to something logical like
"mycolorbox". Inside that folder are both a .css and .js file, rename both of
those as well to match your folder name: i.e. "colorbox_mycolorbox.css" and
"colorbox_mycolorbox.js"

Add entries in your theme's .info file for the Colorbox CSS/JS files:

stylesheets[all][] = mycolorbox/colorbox_mycolorbox.css
scripts[] = mycolorbox/colorbox_mycolorbox.js

Go to "Configuration" -> "Media" -> "Colorbox" and select "None" under
"Styles and Options". This will leave the styling of Colorbox up to your theme.
Make any CSS adjustments to your "colorbox_mycolorbox.css" file.

LOAD IMAGES FROM CUSTOM LINKS IN A COLORBOX

Add the class "colorbox" to the link and point its href attribute to the image
you want to display in the Colorbox.

LOAD CONTENT IN A COLORBOX

Check the "Enable Colorbox load" option in Colorbox settings.

This enables custom links that can open content in a Colorbox.
Add the class "colorbox-load" to the link and build the url like
this "[path]?width=500&height=500&iframe=true"
or "[path]?width=500&height=500" if you don't want an iframe.

Other modules may activate this for easy Colorbox integration.

LOAD INLINE CONTENT IN A COLORBOX

Check the "Enable Colorbox inline" option in Colorbox settings.

This enables custom links that can open inline content in a Colorbox.
Inline in this context means some part/tag of the current page, e.g. a div.
Replace "id-of-content" with the id of the tag you want to open.

Add the class "colorbox-inline" to the link and build the url like
this "?width=500&height=500&inline=true#id-of-content".

It could e.g. look like this.

Link to click

What ever content you want to display in a Colorbox.

Other modules may activate this for easy Colorbox integration.

DRUSH

A Drush command is provides for easy installation of the Colorbox
plugin itself.

% drush colorbox-plugin

The command will download the plugin and unpack it in "sites/all/libraries".
It is possible to add another path as an option to the command, but not
recommended unless you know what you are doing.

IMAGE IN COLORBOX NOT DISPLAYED IN INTERNET EXPLORER 8

If your theme has CSS like this (popular in responsive design):

img {
max-width: 100%;
}

Internet Explorer 8 will have problems with showing images in the Colorbox.
The fix is to add this to the theme CSS:

#cboxLoadedContent img {
max-width: none;
}

MAINTAINERS

Current maintainers:

Formats disponibles : Atom