RSGallery2 Support Forums
Welcome, Guest. Please login or register.

Login with username, password and session length
  Home    Forum    Help    Search    Login    Register  
*
News : December 04, 2008, 12:24:34 pm
+  RSGallery2 Support Forums
|-+  RSgallery2 support forums
| |-+  Display and Templates (Moderators: Jonah, Tomislav Ribicic, Daniel Tulp, Ronald Smit)
| | |-+  How do I get the Latest Images table to the top of the page.
Advanced search
  « previous next »
Pages 1
Author
Topic: How do I get the Latest Images table to the top of the page.  (Read 1282 times)
« on: March 03, 2008, 06:55:55 pm »
Leonna Offline
Newbie
*
Posts: 2



The Latest images box are at the bottom of the main gallery page and I want to move them to the top.

Can anyone please help me with this.

Thank you

Below is the code I have now on gallery.php

<?php defined('_JEXEC') or die('Restricted access'); ?>

<?php

global $ItemId;

//Show My Galleries link
if ($rsgConfig->get('show_mygalleries')) {
   echo $this->showRsgHeader();
}
//show search box
$this->showSearchBox();

//Show introduction text
?>
<div class="intro_text"><?php echo $rsgConfig->get('intro_text');?></div>
<?php
//Show limitbox
if( $this->pageNav ):
?>
   <div class="rsg2-pagenav-limitbox">
      <?php echo $this->getGalleryLimitBox(); ?>
   </div>
<?php
endif;

foreach( $this->kids as $kid ):
?>
<div class="rsg_galleryblock">
   <div class="rsg2-galleryList-status"><?php echo $kid->status;?></div>
   <div class="rsg2-galleryList-thumb">
      <?php echo $kid->thumbHTML; ?>
   </div>
   <div class="rsif($this->gallery->id == 0){
 echo $kid->galleryName;?>
      <span class='rsg2-galleryList-newImages'>
         <sup><?php if( $this->gallery->hasNewImages() ) echo _RSGALLERY_NEW; ?></sup>
      </span>
      <?php echo $this->_showGalleryDetails( $kid );?>
      <div class="rsg2-galleryList-description"><?php echo $kid->description;?>
      </div>
   </div>
   <div class="rsg_sub_url_single">
      <?php $this->_subGalleryList( $kid ); ?>
   </div>
</div>
<?php
endforeach;
?>
<div class="rsg2-clr"></div>
<?php
if($this->gallery->id == 0){

   // show random and latest only in the top gallery
   
   //Show block with random images
   $this->showImages("random", 3);
   //Show block with latest images
   $this->showImages("latest", 3);
}
if( $this->pageNav ):
?>

<div class="rsg2-pageNav">
   <?php echo $this->getGalleryPageLinks(); ?>
   <br/>
   <?php echo $this->getGalleryPagesCounter(); ?>
</div>
<div class='rsg2-clr'>&nbsp;</div>
<?php endif; ?>
Logged
 
Print  Pages 1
« previous next »
Jump to: