Browse Source

Fichier devenu inutile

svn/root/tags/v6.7.6
p@henix.be 5 years ago
parent
commit
621acdde67
  1. 3
      .gitattributes
  2. 24
      inclure/js-foundation-app.html
  3. 10
      inclure/js-foundation.html
  4. 45
      javascript/spip.foundation.js

3
.gitattributes vendored

@ -11,10 +11,7 @@ formulaires/configurer_foundation_6.php -text
inc/foundation.php -text
inclure/css/head-foundation-app.html -text
inclure/css/head-foundation.html -text
inclure/js-foundation-app.html -text
inclure/js-foundation.html -text
inclure/reveal-close.html -text
javascript/spip.foundation.js -text
javascript/spip.foundation.js.html -text
lang/foundation_6_fr.php -text
lang/paquet-foundation_6_fr.php -text

24
inclure/js-foundation-app.html

@ -1,24 +0,0 @@
[(#REM) Inclusion des fichier Javascript si la config le permet ]
[(#CONFIG{foundation_6/javascript}|oui)
[(#CHEMIN{bower_components/foundation-sites/dist/js/foundation.js}|?{
[(#SET{foundationjs,[(#CHEMIN{bower_components/foundation-sites/dist/js/foundation.js}|minifier|timestamp)]})],
[(#SET{foundationjs,[(#CHEMIN{bower_components/foundation-sites/dist/foundation.js}|minifier|timestamp)]})]
})]
[(#REM)
Trouver l'emplacement de what-input.js
]
[(#CHEMIN{bower_components/what-input/what-input.min.js}|?{
[(#SET{whatinpujs, [(#CHEMIN{bower_components/what-input/what-input.min.js}|minifier|timestamp)]})],
[(#SET{whatinpujs, [(#CHEMIN{bower_components/what-input/dist/what-input.min.js}|minifier|timestamp)]})]
})]
[<script src="(#GET{whatinputjs})" type="text/javascript"></script>]
[<script src="(#GET{foundationjs})" type="text/javascript"></script>]
[<script src="(#CHEMIN{lib/foundation-6/js/app.js}|minifier|timestamp)" type="text/javascript"></script>]
[<script src="(#CHEMIN{javascript/spip.foundation.js}|minifier|timestamp)" type="text/javascript"></script>]
[(#CHEMIN{javascript/foundation_perso.js.html}|oui)
[<script src="(#PRODUIRE{fond=javascript/foundation_perso.js})" type="text/javascript"></script>]
]
]

10
inclure/js-foundation.html

@ -1,10 +0,0 @@
[(#REM) Inclusion des fichier Javascript si la config le permet ]
[(#CONFIG{foundation_6/javascript}|oui)
[<script src="(#CHEMIN{lib/foundation-6/js/vendor/what-input.js}|minifier|timestamp)" type="text/javascript"></script>]
[<script src="(#CHEMIN{lib/foundation-6/js/vendor/foundation.js}|minifier|timestamp)" type="text/javascript"></script>]
[<script src="(#CHEMIN{lib/foundation-6/js/app.js}|minifier|timestamp)" type="text/javascript"></script>]
[<script src="(#CHEMIN{javascript/spip.foundation.js}|minifier|timestamp)" type="text/javascript"></script>]
[(#CHEMIN{javascript/foundation_perso.js.html}|oui)
[<script src="(#PRODUIRE{fond=javascript/foundation_perso.js})" type="text/javascript"></script>]
]
]

45
javascript/spip.foundation.js vendored

@ -1,45 +0,0 @@
function spip_foundation() {
// Support Ajax pour les reveal-modal
// Cela passe par une class .reveal-ajax
$(".reveal-ajax").on("click", function(e) {
// bloquer l'événement click
e.preventDefault();
e.stopPropagation();
// Récupérer le lien ciblé par la requête ajax
var href = $(this).data("reveal-ajax");
// On a besoin de savoir sur quel modal il faut agir
var modal = $(this).data("toggle");
// Dans le cas ou la modal est vide sur toggle,
// on vérifie que ce n'est pas data-open qui est utilisé
if (!modal) {
modal = $(this).data("open");
}
// On charge la page dans la reveal
$("#" + modal).load(href, function() {
$(this).foundation("open");
});
});
// Restaurer le deeplinking des tab Foundation (pour les version < 6.3.1)
// En attendant que la fonction soit de retour officiellement
var version = Foundation.version.split(".");
if (!(version[0] >= 6 && version[1] >= 3 && version[2] >= 1)) {
var link_tab = window.location.hash.substr(1);
if (link_tab) {
$("[data-tabs]")
.eq(0)
.foundation("selectTab", $("#" + link_tab));
}
}
}
spip_foundation();
onAjaxLoad(function() {
spip_foundation();
// Restaurer les reveal modal après un chargement ajax
$(document).foundation();
});
Loading…
Cancel
Save