mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Upgraded JS Library (prettyPhoto) in the gallery plugin.
This commit is contained in:
@@ -25,6 +25,9 @@
|
|||||||
* THIS SCRIPT IS HIGHLY EXPERIMENTAL. USE AT OWN RISK.
|
* THIS SCRIPT IS HIGHLY EXPERIMENTAL. USE AT OWN RISK.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class plugin_gallery_index_controller extends eControllerFront
|
class plugin_gallery_index_controller extends eControllerFront
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@@ -63,6 +66,24 @@ class plugin_gallery_index_controller extends eControllerFront
|
|||||||
public function init()
|
public function init()
|
||||||
{
|
{
|
||||||
e107::plugLan('gallery', 'front');
|
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');
|
$this->catList = e107::getMedia()->getCategories('gallery');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user