It is currently Tue Aug 21, 2018 6:02 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Nov 23, 2012 6:23 pm 
Offline

Joined: Fri Nov 23, 2012 6:18 pm
Posts: 3
Hi, Fantastic component, It's just I was looking for.
Is there any way for editing listed plain template, to show the original images instead of thumbnails with or without popups?.


Top
 Profile  
 
 Post subject: Listed-plain with big images
PostPosted: Fri Nov 23, 2012 6:23 pm 
Top  
PostPosted: Mon Nov 26, 2012 11:00 am 
Offline
Developer
Developer
User avatar

Joined: Sat Aug 14, 2010 9:31 pm
Posts: 1241
Location: Novi Sad, Serbia
Well the simplest answer is Yes :)

You need to edit plugins\content\admirorgallery\admirorgallery\templates\listed\index.php and change this part:
Code:
    <tr><td class="ag_thumbTd">
    <span class="ag_thumb'.$AG->params['template'].'">';
    $html.= $AG->writePopupThumb($imageName);
    $html .='</span></td>


To something like:
Code:
    <tr><td class="ag_thumbTd">
    <span class="ag_thumb'.$AG->params['template'].'">';
    $html.= '<img src="'.$AG->sitePath.$AG->params['rootFolder'].$AG->imagesFolderName.'/'.$imageName.'" alt="" />';
    $html .='</span></td>


I didn't try this out, so it might be that it won't work "out of the box" but basically this is the idea :)

_________________
Help Admiror Gallery become even better,
give us a review on JED


Top
 Profile  
 
PostPosted: Tue Dec 18, 2012 8:25 pm 
Offline

Joined: Fri Nov 23, 2012 6:18 pm
Posts: 3
Thank you very much, it works.
Now I'm trying to create a template that exchanges between classic view and this one when you click a button.
So far I've created this (not much):
Code:
<?php



// Joomla security code

defined('_JEXEC') or die('Restricted access');



// Load CSS from current template folder

$AG->loadCSS($AG->currTemplateRoot.'template.css');

$AG->loadCSS($AG->currTemplateRoot.'albums/albums.css');

$AG->loadCSS($AG->currTemplateRoot.'pagination/pagination.css');







// Reset $html variable from previous entery and load it with scripts needed for Popups

$html=$AG->initPopup();



// Form HTML code, with unique ID and Class Name

$html.='<!-- ======================= Admiror Gallery -->

<style type="text/css">

     .AG_classic .ag_imageThumb{border-color:#'.$AG->params['foregroundColor'].'}

     .AG_classic .ag_imageThumb:hover{background-color:#'.$AG->params['highliteColor'].'}

</style>

<div class="ag_button_wrap">
   <a class="ag_button_list" href="#" onclick=""></a>
   <a class="ag_button_gallery" href="#" onclick=""></a>
</div>

<div id="AG_'.$AG->getGalleryID().'" class="AG_'.$AG->params['template'].'">

  <table cellspacing="0" cellpadding="0" border="0">

    <tbody>

      <tr>

   <td>';



   // Loops over the array of images inside target gallery folder, adding wrapper with SPAN tag and write Popup thumbs inside this wrapper

   foreach ($AG->images as $imageKey => $imageName){

      $html.= '<span class="ag_thumb'.$AG->params['template'].'">';

      $html.= $AG->writePopupThumb($imageName);

      $html.='</span>';

   }



   $html .='

   </td>

      </tr>

    </tbody>

  </table>

</div>

';

$html .= '

    <table border="0" cellspacing="0" cellpadding="0" width="100%" class="ag_item">

    <tbody>

     <tr><td class="ag_thumbTd">
    <span class="ag_thumb'.$AG->params['template'].'">';
    $html.= '<img src="'.$AG->sitePath.$AG->params['rootFolder'].$AG->imagesFolderName.'/'.$imageName.'" alt="" width="705px" />';
    $html .='</span></td>

    </tr></tbody></table>';


// Support for Pagination

$html.= $AG->writePagination();



// Support for Albums

if(!empty($AG->folders) && $AG->params['albumUse']){

     $html.= '<h1>'.JText::_( 'Albums' ).'</h1>'."\n";

     $html.= $AG->writeFolderThumb("albums/album.png", $AG->params['thumbHeight']);

}



// Loads scripts needed for Popups, after gallery is created

$html.=$AG->endPopup();


Any Idea?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 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