issue59, fixed position of photo-index navigation after removing html tables
[phpfspot.git] / themes / default / templates / photo_index.tpl
index 05d0ecd0f0b3264c3efbc4fb3d225abbd618b33d..6453725af647cd154311222bcc557b739c9677a1 100644 (file)
@@ -41,7 +41,7 @@
  </div>
 </div>
 
-<div>
+<div id="index">
  {section name="row" loop=$rows step=1}
   {section name="col" loop=$columns step=1}
    {if $images[row][col] }
 </div>
 <br class="clearboth" />
 <div style="width: 100%; margin-top: 20px;">
+
+ <!-- the right nav arrow -->
+ <div style="float: right; width: 40px; margin-right: 0px; padding-right: 10px;">
+ { if $next_url == "" }
+  { if $count != 0 }
+   <img src="resources/arrow_right_gray.png" alt="last page reached" />
+  { /if }
+ { else }
+  <a href="{$next_url}">
+   <img src="resources/arrow_right.png" alt="next photo" />
+  </a>
+ { /if}
+ </div>
+
+ <!-- the left nav arrow -->
  <div style="float: left; margin: 0px; padding-left: 10px; width: 40px;">
  { if $previous_url == "" }
   { if $count != 0 }
   </a>
  { /if }
  </div>
- <div style="float: left; margin: 0px;">
+
+ <!-- the middle page selector -->
+ <div style="text-align: center;">
  { if $page_selector != "" }
   {$page_selector}
  { /if}
  </div>
- <div style="width: 40px; margin-right: 0px; padding-right: 10px;">
- { if $next_url == "" }
-  { if $count != 0 }
-   <img src="resources/arrow_right_gray.png" alt="last page reached" />
-  { /if }
- { else }
-  <a href="{$next_url}">
-   <img src="resources/arrow_right.png" alt="next photo" />
-  </a>
- { /if}
- </div>
 </div>
 <br class="clearboth" />
 <script type="text/javascript">