change background color to white

Admiror Gallery 5.x.x for Joomla 3.x. support forum.
Post Reply
Message
Author
akublik
Posts: 3
Joined: Wed Mar 04, 2015 4:39 pm

change background color to white

#1 Post 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

Admiror Gallery 5 - Fundraising Campaign

User avatar
Vasiljevski
Developer
Developer
Posts: 1258
Joined: Sat Aug 14, 2010 9:31 pm
Location: Novi Sad, Serbia
Contact:

Re: change background color to white

#2 Post 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"});
});
');
Help Admiror Gallery become even better,
give us a review on JED

Post Reply