1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-21 13:11:52 +02:00

Prevent gallery js loading on every admin page.

This commit is contained in:
Cameron 2016-06-30 08:38:32 -07:00
parent d601dd5243
commit 7a90a38473

View File

@ -13,19 +13,21 @@ if(!defined('e107_INIT'))
if(USER_AREA)
{
// Work-around for indent issue. see: https://github.com/twitter/bootstrap/issues/4890
e107::css('inline', "
/* Gallery CSS */
.thumbnails .span2:nth-child(6n+1) {
margin-left:0;
}", 'jquery');
}
// Work-around for indent issue. see: https://github.com/twitter/bootstrap/issues/4890
e107::css('inline', "
/* Gallery CSS */
.thumbnails .span2:nth-child(6n+1) {
margin-left:0;
}", 'jquery');
$plugPrefs = e107::getPlugConfig('gallery')->getPref();
if(vartrue($plugPrefs['pp_global'], false))
{
e107_require_once(e_PLUGIN . 'gallery/includes/gallery_load.php');
// Load prettyPhoto settings and files.
gallery_load_prettyphoto();
$plugPrefs = e107::getPlugConfig('gallery')->getPref();
if(vartrue($plugPrefs['pp_global'], false))
{
e107_require_once(e_PLUGIN . 'gallery/includes/gallery_load.php');
// Load prettyPhoto settings and files.
gallery_load_prettyphoto();
}
}