mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 06:07:32 +02:00
Load prettyPhoto only when it is needed in e_shortcode.php.
This commit is contained in:
@@ -38,6 +38,10 @@ class gallery_shortcodes extends e_shortcode
|
|||||||
|
|
||||||
function sc_gallery_caption($parm = '')
|
function sc_gallery_caption($parm = '')
|
||||||
{
|
{
|
||||||
|
e107_require_once(e_PLUGIN . 'gallery/includes/gallery_load.php');
|
||||||
|
// Load prettyPhoto settings and files.
|
||||||
|
gallery_load_prettyphoto();
|
||||||
|
|
||||||
$plugPrefs = e107::getPlugConfig('gallery')->getPref();
|
$plugPrefs = e107::getPlugConfig('gallery')->getPref();
|
||||||
$hook = varset($plugPrefs['pp_hook'], 'data-gal');
|
$hook = varset($plugPrefs['pp_hook'], 'data-gal');
|
||||||
$tp = e107::getParser();
|
$tp = e107::getParser();
|
||||||
@@ -78,6 +82,10 @@ class gallery_shortcodes extends e_shortcode
|
|||||||
*/
|
*/
|
||||||
function sc_gallery_thumb($parm = '')
|
function sc_gallery_thumb($parm = '')
|
||||||
{
|
{
|
||||||
|
e107_require_once(e_PLUGIN . 'gallery/includes/gallery_load.php');
|
||||||
|
// Load prettyPhoto settings and files.
|
||||||
|
gallery_load_prettyphoto();
|
||||||
|
|
||||||
$plugPrefs = e107::getPlugConfig('gallery')->getPref();
|
$plugPrefs = e107::getPlugConfig('gallery')->getPref();
|
||||||
$hook = varset($plugPrefs['pp_hook'], 'data-gal');
|
$hook = varset($plugPrefs['pp_hook'], 'data-gal');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user