insanelyBlog/plugins/galleria-io/_plugin.php

5 lines
389 B
PHP
Raw Normal View History

2016-06-18 10:07:35 +02:00
<?php
addHead('<script src="/plugins/galleria-io/galleria.min.js"></script>');
addBody('<script>if($(".gallery[data-gid]").length){Galleria.loadTheme("/plugins/galleria-io/themes/classic/galleria.classic.min.js");$(".gallery[data-gid]").each(function(){$(this).css("width","100%").css("min-height","500px");Galleria.run(".gallery[data-gid="+$(this).attr("data-gid")+"]");});}</script>');