Stránka 1 z 1

WordPress - NextGen gallery plugin

Napsal: 24 pro 2011 16:27
od .:M@rt!n:.
Hoj, ve wp mám plugin NextGen gallery. Generuje mě popis galerie u náhledu obrázku dané galerie pomocí tohoto kódu (album-extend.php):

Kód: Vybrat vše

<?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?><?php if (!empty ($galleries)) : ?>

<div class="ngg-albumoverview">   
   <!-- List of galleries -->
   <?php foreach ($galleries as $gallery) : ?>

   <div class="ngg-album">
      <div class="ngg-albumtitle"><a href="<?php echo $gallery->pagelink ?>"><?php echo $gallery->title ?></a></div>
         <div class="ngg-albumcontent">
            <div class="ngg-thumbnail">
               <a href="<?php echo $gallery->pagelink ?>"><img class="Thumb" alt="<?php echo $gallery->title ?>" src="<?php echo $gallery->previewurl ?>"/></a>
            </div>
            <div class="ngg-description">
           
                                  <p><?php echo $gallery->galdesc ?></p>
           
                                <?php if ($gallery->counter > 0) : ?>
            <!-- <p><strong><?php echo $gallery->counter ?></strong> <?php _e('Photos', 'nggallery') ?></p> -->
            <?php endif; ?>
                                 
         </div>
      </div>
   </div>

   <?php endforeach; ?>
   
   <!-- Pagination -->
   <?php echo $pagination ?>
   
</div>

<?php endif; ?>


Já bych potřeboval ten popis galerie hodit až přímo do ní (nad obrázky, které daná galerie obsahuje po rozkliknutí).
Čili do tohoto kódu, nějak dostat ten kód pro výpis(gallery.php):

Kód: Vybrat vše

    <?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?><?php if (!empty ($gallery)) : ?>
                 

    <div class="ngg-galleryoverview" id="<?php echo $gallery->anchor ?>">

    <?php if ($gallery->show_slideshow) { ?>
       <!-- Slideshow link -->
       <div class="slideshowlink">
          <a class="slideshowlink" href="<?php echo $gallery->slideshow_link ?>">
             <?php echo $gallery->slideshow_link_text ?>
          </a>
       </div>
    <?php } ?>


Poraďte pls jak na to. Už si nevím rady. Předem díky za reakce.