Page 1 of 1
change background color to white
Posted: Sat Apr 25, 2015 8:05 pm
by akublik
Hello, I ask again :how can we change the background color to white in the gallery view?
Now the backgound is black.
thank you
Andre
Re: change background color to white
Posted: Sun Sep 27, 2015 10:40 am
by Vasiljevski
I noticed that background color for GalleryView is hard-coded to black, so you need to edit:
Code: Select all
admirorgallery\templates\galleryView\index.php
and change:
Code: Select all
$AG->insertJSCode('
AG_jQuery(document).ready(function(){
AG_jQuery("#AG_'.$AG->getGalleryID().' #photos").galleryView({
panel_width: '.$AG->params['frameWidth'].',
panel_height: '.$AG->params['frameHeight'].',
frame_width: '.$AG->params['thumbWidth'].',
frame_height: '.$AG->params['thumbHeight'].',
nav_theme: "light",
pause_on_hover: true
});
AG_jQuery("#AG_'.$AG->getGalleryID().' div#photos").css({backgroundColor:"black"});
AG_jQuery("#AG_'.$AG->getGalleryID().' div#photos .panel-content img").css({width:"'.$AG->params['frameWidth'].'px",height:"'.$AG->params['frameHeight'].'px"});
});
');
to:
Code: Select all
$AG->insertJSCode('
AG_jQuery(document).ready(function(){
AG_jQuery("#AG_'.$AG->getGalleryID().' #photos").galleryView({
panel_width: '.$AG->params['frameWidth'].',
panel_height: '.$AG->params['frameHeight'].',
frame_width: '.$AG->params['thumbWidth'].',
frame_height: '.$AG->params['thumbHeight'].',
nav_theme: "light",
pause_on_hover: true
});
AG_jQuery("#AG_'.$AG->getGalleryID().' div#photos").css({backgroundColor:"white"});
AG_jQuery("#AG_'.$AG->getGalleryID().' div#photos .panel-content img").css({width:"'.$AG->params['frameWidth'].'px",height:"'.$AG->params['frameHeight'].'px"});
});
');