1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

Upgraded JS Library (prettyPhoto) in the gallery plugin.

This commit is contained in:
Cameron
2015-06-01 14:54:52 -07:00
parent 4acc233570
commit 4eb9f7884f
2 changed files with 27 additions and 6 deletions

View File

@@ -25,6 +25,9 @@
* THIS SCRIPT IS HIGHLY EXPERIMENTAL. USE AT OWN RISK.
*
*/
class plugin_gallery_index_controller extends eControllerFront
{
/**
@@ -63,6 +66,24 @@ class plugin_gallery_index_controller extends eControllerFront
public function init()
{
e107::plugLan('gallery', 'front');
e107::js('gallery', 'jslib/prettyPhoto/js/jquery.prettyPhoto.js','jquery');
e107::css('gallery', 'jslib/prettyPhoto/css/prettyPhoto.css','jquery');
e107::css('gallery', 'gallery_style.css');
$prettyPhoto = <<<JS
$(document).ready(function(){
$("a[data-gal^='prettyPhoto']").prettyPhoto(
{
hook: 'data-gal',
theme: 'pp_default',
overlay_gallery: false,
deeplinking: false
}
);
});
JS;
e107::js('footer-inline',$prettyPhoto,'jquery');
$this->catList = e107::getMedia()->getCategories('gallery');
}

File diff suppressed because one or more lines are too long