insanelyBlog/plugins/galleria-io/_plugin.php

5 lines
426 B
PHP

<?php
addHead('<script src="/plugins/galleria-io/galleria.min.js"></script>', 'galleria-io');
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>', 'galleria-io-js');