diff options
| -rw-r--r-- | admin/admin_themes_inc.php | 4 | ||||
| -rw-r--r-- | bit_setup_inc.php | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/admin/admin_themes_inc.php b/admin/admin_themes_inc.php index df20ca8..6fbcd6a 100644 --- a/admin/admin_themes_inc.php +++ b/admin/admin_themes_inc.php @@ -24,6 +24,10 @@ $themeSettings = array( 'label' => "Disable Javascript Tabs", 'note' =>"If you have difficulties with the javascript tabs, of you don't like them, you can disable them here.", ), + 'site_fancy_zoom' => array( + 'label' => "Enable Fancy Zoom for Images", + 'note' =>"Use javascript to zoom images when clicking on them. This will modify the behaviour when viewing most images. If you are running a commercial site, please read the license notice in /util/javascript/fancyzoom/js-global/FancyZoom.js", + ), 'site_mods_req_admn_grp' => array( 'label' => 'Module Groups Require Admin', 'note' => 'If a module has group restrictions the module only shows for the administrator if the administrator is in the configured groups. Otherwise all modules show to administrators all the time.', diff --git a/bit_setup_inc.php b/bit_setup_inc.php index 2243e97..88681fc 100644 --- a/bit_setup_inc.php +++ b/bit_setup_inc.php @@ -42,4 +42,10 @@ if( !$gBitSystem->getConfig( 'site_disable_fat' )) { if( $gBitSystem->isFeatureActive( 'site_top_bar_js' ) && $gBitSystem->isFeatureActive( 'site_top_bar_dropdown' )) { $gBitThemes->loadJavascript( UTIL_PKG_PATH.'javascript/libs/fsmenu.js', TRUE, 60 ); } + +if( $gBitSystem->isFeatureActive( 'site_fancy_zoom' )) { + $gBitThemes->loadJavascript( UTIL_PKG_PATH.'javascript/fancyzoom/js-global/FancyZoom.js', FALSE, 80 ); + $gBitThemes->loadJavascript( UTIL_PKG_PATH.'javascript/fancyzoom/js-global/FancyZoomHTML.js', TRUE, 81 ); + $gBitSystem->setOnloadScript( 'setupZoom()' ); +} ?> |
