Well, it's difficult to say what exactly this is
It may be a feature or a bug

In general galleryView is not designed for Album support.
You can add one image in the folder containing "photojournalism" and "performances" directory's, this way you won't have just a black square.
In other case you could just add a check to see if there is any image, and omit the instance of the gallery in case no image available:
Go to: plugins/admirorgallery/admirorgallery/templates/galleryView
Open: index,php
Find this part:
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"});
});
');
Edit it like:
Code: Select all
if(isset($AG->images[0]))
{
$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"});
});
');
}
Now when you open you gallery page you will only see albums, empty black box will not be visible.