Browse Source

Nettoyage et réorganisation du plugin pour la zone

version 1.0.0
etat dev
Import initial
svn/root/tags/v1.0.21
arnaud.berard@mister-graphx.com 6 years ago
parent
commit
87bc9bd5b2
  1. 7
      .gitattributes
  2. 16
      README.md
  3. 222
      css/owl.carousel.css
  4. 69
      css/owl.theme.css
  5. 32
      formulaires/configurer_owlcarousel.html
  6. BIN
      images/ajax-loader.gif
  7. BIN
      images/owl.video.play.png
  8. 3273
      javascript/owl.carousel.js
  9. 26
      lang/owlcarousel_fr.php
  10. 18
      lang/paquet-owlcarousel_fr.php
  11. 40
      owlcarousel_pipelines.php
  12. 23
      paquet.xml
  13. 7
      prive/squelettes/contenu/configurer_owlcarousel.html
  14. BIN
      prive/themes/spip/images/owlcarousel-128.png
  15. BIN
      prive/themes/spip/images/owlcarousel-16.png
  16. BIN
      prive/themes/spip/images/owlcarousel-32.png
  17. BIN
      prive/themes/spip/images/owlcarousel-64.png

7
.gitattributes vendored

@ -1 +1,8 @@
* text=auto !eol
images/ajax-loader.gif -text
images/owl.video.play.png -text
lang/paquet-owlcarousel_fr.php -text
prive/themes/spip/images/owlcarousel-128.png -text
prive/themes/spip/images/owlcarousel-16.png -text
prive/themes/spip/images/owlcarousel-32.png -text
prive/themes/spip/images/owlcarousel-64.png -text

16
README.md

@ -0,0 +1,16 @@
# OwlCarousel
## SOURCES :
http://www.owlgraphic.com/owlcarousel/#more-demos
## TRAVAUX :
## TODO :

222
css/owl.carousel.css

@ -0,0 +1,222 @@
/**
* Owl Carousel v2.1.6
* Copyright 2013-2016 David Deutsch
* Licensed under MIT (https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE)
*/
/*
* Owl Carousel - Core
*/
.owl-carousel {
display: none;
width: 100%;
-webkit-tap-highlight-color: transparent;
/* position relative and z-index fix webkit rendering fonts issue */
position: relative;
z-index: 1;
}
.owl-carousel .owl-stage {
position: relative;
-ms-touch-action: pan-Y;
}
.owl-carousel .owl-stage:after {
content: ".";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
.owl-carousel .owl-stage-outer {
position: relative;
overflow: hidden;
/* fix for flashing background */
-webkit-transform: translate3d(0px, 0px, 0px);
}
.owl-carousel .owl-item {
position: relative;
min-height: 1px;
float: left;
-webkit-backface-visibility: hidden;
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
}
.owl-carousel .owl-item img {
display: block;
width: 100%;
-webkit-transform-style: preserve-3d;
}
.owl-carousel .owl-nav.disabled,
.owl-carousel .owl-dots.disabled {
display: none;
}
.owl-carousel .owl-nav .owl-prev,
.owl-carousel .owl-nav .owl-next,
.owl-carousel .owl-dot {
cursor: pointer;
cursor: hand;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.owl-carousel.owl-loaded {
display: block;
}
.owl-carousel.owl-loading {
opacity: 0;
display: block;
}
.owl-carousel.owl-hidden {
opacity: 0;
}
.owl-carousel.owl-refresh .owl-item {
display: none;
}
.owl-carousel.owl-drag .owl-item {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.owl-carousel.owl-grab {
cursor: move;
cursor: grab;
}
.owl-carousel.owl-rtl {
direction: rtl;
}
.owl-carousel.owl-rtl .owl-item {
float: right;
}
/* No Js */
.no-js .owl-carousel {
display: block;
}
/*
* Owl Carousel - Animate Plugin
*/
.owl-carousel .animated {
animation-duration: 1000ms;
animation-fill-mode: both;
}
.owl-carousel .owl-animated-in {
z-index: 0;
}
.owl-carousel .owl-animated-out {
z-index: 1;
}
.owl-carousel .fadeOut {
animation-name: fadeOut;
}
@keyframes fadeOut {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
/*
* Owl Carousel - Auto Height Plugin
*/
.owl-height {
transition: height 500ms ease-in-out;
}
/*
* Owl Carousel - Lazy Load Plugin
*/
.owl-carousel .owl-item .owl-lazy {
opacity: 0;
transition: opacity 400ms ease;
}
.owl-carousel .owl-item img.owl-lazy {
transform-style: preserve-3d;
}
/*
* Owl Carousel - Video Plugin
*/
.owl-carousel .owl-video-wrapper {
position: relative;
height: 100%;
background: #000;
}
.owl-carousel .owl-video-play-icon {
position: absolute;
height: 80px;
width: 80px;
left: 50%;
top: 50%;
margin-left: -40px;
margin-top: -40px;
background: url("../images/owl.video.play.png") no-repeat;
cursor: pointer;
z-index: 1;
-webkit-backface-visibility: hidden;
transition: transform 100ms ease;
}
.owl-carousel .owl-video-play-icon:hover {
-ms-transform: scale(1.3, 1.3);
transform: scale(1.3, 1.3);
}
.owl-carousel .owl-video-playing .owl-video-tn,
.owl-carousel .owl-video-playing .owl-video-play-icon {
display: none;
}
.owl-carousel .owl-video-tn {
opacity: 0;
height: 100%;
background-position: center center;
background-repeat: no-repeat;
background-size: contain;
transition: opacity 400ms ease;
}
.owl-carousel .owl-video-frame {
position: relative;
z-index: 1;
height: 100%;
width: 100%;
}

69
css/owl.theme.css

@ -0,0 +1,69 @@
/**
* Owl Carousel v2.1.6
* Copyright 2013-2016 David Deutsch
* Licensed under MIT (https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE)
*/
/*
* Default theme - Owl Carousel CSS File
*/
.owl-theme .owl-nav {
margin-top: 10px;
text-align: center;
-webkit-tap-highlight-color: transparent;
}
.owl-theme .owl-nav [class*='owl-'] {
color: #FFF;
font-size: 14px;
margin: 5px;
padding: 4px 7px;
background: #D6D6D6;
display: inline-block;
cursor: pointer;
border-radius: 3px;
}
.owl-theme .owl-nav [class*='owl-']:hover {
background: #869791;
color: #FFF;
text-decoration: none;
}
.owl-theme .owl-nav .disabled {
opacity: 0.5;
cursor: default;
}
.owl-theme .owl-nav.disabled+.owl-dots {
margin-top: 10px;
}
.owl-theme .owl-dots {
text-align: center;
-webkit-tap-highlight-color: transparent;
}
.owl-theme .owl-dots .owl-dot {
display: inline-block;
zoom: 1;
*display: inline;
}
.owl-theme .owl-dots .owl-dot span {
width: 10px;
height: 10px;
margin: 5px 7px;
background: #D6D6D6;
display: block;
-webkit-backface-visibility: visible;
transition: opacity 200ms ease;
border-radius: 30px;
}
.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
background: #869791;
}

32
formulaires/configurer_owlcarousel.html

@ -0,0 +1,32 @@
<div class="formulaire_spip formulaire_configurer formulaire_#FORM">
<h3 class="titrem"><:owlcarousel:cfg_titre_parametrages:></h3>
[<p class="reponse_formulaire reponse_formulaire_ok">(#ENV*{message_ok})</p>]
[<p class="reponse_formulaire reponse_formulaire_erreur">(#ENV*{message_erreur})</p>]
<form method="post" action="#ENV{action}">
<div>
#ACTION_FORMULAIRE{#ENV{action}}
<div class="editer-groupe">
<div class="editer editer_css editer_radio">
<label for="lazy_class"><:owlcarousel:cfg_label_css:></label>
<p class="explication"><:owlcarousel:cfg_explication_css:></p>
<div class="choix">
<input type="checkbox" name="css" class="checkbox" value='on' id='cssn'[(#ENV{css}|oui)checked="checked" ]/>
<label for='cssn'>
<:owlcarousel:cfg_label_css:>
</label>
</div>
</div>
</div>
<input type="hidden" name="_meta_casier" value="owlcarousel" />
<p class="boutons">
<span class="image_loading">&nbsp;</span>
<input type="submit" class="submit" value="<:bouton_enregistrer:>" />
</p>
</div>
</form>
</div>

BIN
images/ajax-loader.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

BIN
images/owl.video.play.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

3273
javascript/owl.carousel.js

File diff suppressed because it is too large Load Diff

26
lang/owlcarousel_fr.php

@ -0,0 +1,26 @@
<?php
// This is a SPIP language file -- Ceci est un fichier langue de SPIP
if (!defined('_ECRIRE_INC_VERSION')) return;
$GLOBALS[$GLOBALS['idx_lang']] = array(
// O
'owlcarousel_titre' => 'Owl Carousel',
// C
'cfg_label_css' => 'Insertion des styles',
'cfg_explication_css' => 'Les styles seront inssérés dans l\'entête de toutes les pages',
'cfg_titre_page_configurer_owlcarousel' => 'OwlCarousel',
'cfg_titre_parametrages' => 'Configurer OwlCarousel',
// P
'prec'=>'précédent',
'suiv'=>'suivant',
// T
'titre_menu' => 'Owl Carousel',
'titre_page_configurer_owlcarousel' => 'configurer_owlcarousel',
);
?>

18
lang/paquet-owlcarousel_fr.php

@ -0,0 +1,18 @@
<?php
// This is a SPIP language file -- Ceci est un fichier langue de SPIP
if (!defined('_ECRIRE_INC_VERSION')) return;
$GLOBALS[$GLOBALS['idx_lang']] = array(
// O
'owlcarousel_description' => 'OWL Carousel un plugin jQuery, support du Touch, mode responsive, lazy-load et plus.
-* [Owl Carousel - Demo -> http://www.owlgraphic.com/owlcarousel/#demo]
-* [Owl Carousel - GitHub -> https://github.com/OwlFonk/OwlCarousel]',
'owlcarousel_nom' => 'Owl Carousel',
'owlcarousel_slogan' => 'Carousel responsive avec support du multi-touch.',
);
?>

40
owlcarousel_pipelines.php

@ -0,0 +1,40 @@
<?php
/**
* Plugin Owl Carousel
* (c) 2013 Mist. GraphX
* Licence GNU/GPL
*/
if (!defined('_ECRIRE_INC_VERSION')) return;
function owlcarousel_insert_head_css($flux){
include_spip('inc/config');
if(lire_config('owlcarousel/css', 0)){
$flux.='<link rel="stylesheet" type="text/css" href="'.find_in_path('css/owl.carousel.css').'" media="screen" />'."\n";
$flux.='<link rel="stylesheet" type="text/css" href="'.find_in_path('css/owl.theme.css').'" media="screen" />'."\n";
}
return $flux;
}
function owlcarousel_insert_head($flux){
$flux.='<script src="'.find_in_path('javascript/owl.carousel.js').'" type="text/javascript"></script>'."\n";
return $flux;
}
/**
* ieconfig
* http://contrib.spip.net/Importeur-Exporteur-de-configurations-documentation#reply460680
*/
function owlcarousel_ieconfig_metas($table){
$table['owlcarousel']['titre'] = _T('owlcarousel:cfg_titre_owlcarousel');
$table['owlcarousel']['icone'] = 'prive/themes/spip/images/owlcarousel-16.png';
$table['owlcarousel']['metas_serialize'] = 'owlcarousel';
return $table;
}

23
paquet.xml

@ -0,0 +1,23 @@
<paquet
prefix="owlcarousel"
categorie="multimedia"
version="1.0.0"
etat="dev"
compatibilite="[3.0.5;3.1.*]"
logo="prive/themes/spip/images/owlcarousel-64.png"
documentation="https://owlcarousel2.github.io/OwlCarousel2/"
>
<nom>OwlCarousel</nom>
<auteur lien="http://www.mister-graphx.com">Arnaud B. (Mist. GraphX)</auteur>
<licence>GNU/GPL</licence>
<pipeline nom="insert_head_css" inclure="owlcarousel_pipelines.php" />
<pipeline nom="insert_head" inclure="owlcarousel_pipelines.php" />
<!-- Import export de config-->
<pipeline nom="ieconfig_metas" inclure="owlcarousel_pipelines.php" />
<!-- Pas de menu : accessible soit par plugin soit par la page admin plugin
<menu nom="owlcarousel" titre="owlcarousel:titre_menu" parent="bando_squelette" icone="images/owlcarousel-16.png" action="configurer_owlcarousel" />-->
</paquet>

7
prive/squelettes/contenu/configurer_owlcarousel.html

@ -0,0 +1,7 @@
[(#AUTORISER{configurer,_owlcarousel}|sinon_interdire_acces)]
<h1 class="grostitre"><:owlcarousel:cfg_titre_page_configurer_owlcarousel:></h1>
<div class="ajax">
#FORMULAIRE_CONFIGURER_OWLCAROUSEL
</div>

BIN
prive/themes/spip/images/owlcarousel-128.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
prive/themes/spip/images/owlcarousel-16.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 948 B

BIN
prive/themes/spip/images/owlcarousel-32.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
prive/themes/spip/images/owlcarousel-64.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Loading…
Cancel
Save