1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 20:57:26 +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) if(USER_AREA)
{ {
// Work-around for indent issue. see: https://github.com/twitter/bootstrap/issues/4890 // Work-around for indent issue. see: https://github.com/twitter/bootstrap/issues/4890
e107::css('inline', " e107::css('inline', "
/* Gallery CSS */ /* Gallery CSS */
.thumbnails .span2:nth-child(6n+1) { .thumbnails .span2:nth-child(6n+1) {
margin-left:0; margin-left:0;
}", 'jquery'); }", 'jquery');
}
$plugPrefs = e107::getPlugConfig('gallery')->getPref();
if(vartrue($plugPrefs['pp_global'], false)) $plugPrefs = e107::getPlugConfig('gallery')->getPref();
{
e107_require_once(e_PLUGIN . 'gallery/includes/gallery_load.php'); if(vartrue($plugPrefs['pp_global'], false))
// Load prettyPhoto settings and files. {
gallery_load_prettyphoto(); e107_require_once(e_PLUGIN . 'gallery/includes/gallery_load.php');
// Load prettyPhoto settings and files.
gallery_load_prettyphoto();
}
} }