No, you don't actually have to make the whole popup, that is one of the great things about Admiror Gallery that is not used as much.
You just need to find some JS popup code and wrap it in a Admiror Gallery popup plugin.
The easiest way is to check how the "slimbox" is added to Admiror Gallery, and build on that.
There is a API description here in manuals section :
http://www.admiror-design-studio.com/en ... extensions
Basically, every script uses some kind of method to hook on images, link, or something else on the page.
Depending on what is required for the script to run properly you need to add that in your code.
If we take slimbox as an example (index.php in slimbox folder), for it to work we need to include some files :
Code: Select all
// Load JavaScript from current popup folder
$this->loadJS($this->currPopupRoot.'js/slimbox2.js');
// Load CSS from current popup folder
$this->loadCSS($this->currPopupRoot.'css/slimbox2.css');
Admiror Gallery provides loadJS() and loadCSS() functions(API documentation lists all functions available) for adding JS files and CSS files to the document head.
Now, for slimbox to bind to an image, the image has to have specific "rel" tag, so we add it in the next line:
Code: Select all
// Set REL attribute needed for Popup engine
$this->popupEngine->rel = 'lightbox[AdmirorGallery'.$this->getGalleryID().']';
You can see that in slimbox folder we have all the files necessary for slimbox to run properly, this came with slimbox package.
preview.jpg and details.xml are used for some basic information about the popup. But this is only if you want to share your popup with the community and details.xml enables you to make installable packages and share your work.
If you need more help let me know.