It is currently Tue Dec 12, 2017 7:36 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sat Apr 25, 2015 8:05 pm 
Offline

Joined: Wed Mar 04, 2015 4:39 pm
Posts: 3
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


Top
 Profile  
 
 Post subject: change background color to white
PostPosted: Sat Apr 25, 2015 8:05 pm 
Top  
PostPosted: Sun Sep 27, 2015 10:40 am 
Offline
Developer
Developer
User avatar

Joined: Sat Aug 14, 2010 9:31 pm
Posts: 1241
Location: Novi Sad, Serbia
I noticed that background color for GalleryView is hard-coded to black, so you need to edit:
Code:
admirorgallery\templates\galleryView\index.php

and change:
Code:
$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:
$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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

 


All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

This is the official Admiror Joomla! Community Forum. You are welcome to join the Admiror Joomla! Community. All Admiror Joomla! Extensions Users, Joomla! Developers, PHP or mySQL Developers are welcome to support & contribute to Admiror Joomla! Projects.

Joomla! is a free and open source content management system (CMS) for publishing content on the World Wide Web and intranets. With a vibrant volunteer community, user-friendly features and plenty of power, Joomla is perfect for your website!

Joomla! is written in PHP, uses object-oriented programming (OOP) techniques and software patterns, stores data in a MySQL database, and includes features such as page caching, RSS feeds, printable versions of pages, news flashes, blogs, polls, search, and support for language internationalization.

Joomla! is the property of Open Source Matters, Inc. All rights reserved. Read more about Joomla! at http://www.joomla.org/.


Protected by Anti-Spam ACP Powered by phpBB® Forum Software © phpBB Group