changeset 661:f1016ed4b05b

Add back to page top link for each compo description.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 05 Nov 2014 19:03:44 +0200
parents fe1ca8a26e78
children 2e0b11277f2f
files pages/compos.inc.php
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pages/compos.inc.php	Wed Nov 05 15:27:38 2014 +0200
+++ b/pages/compos.inc.php	Wed Nov 05 19:03:44 2014 +0200
@@ -6,7 +6,9 @@
 //
 if (stChkSetting("showCompos"))
 {
-  echo stGetSetting("compoDescription");
+  echo
+    "<div id=\"pageTop\"></div>\n".
+    stGetSetting("compoDescription");
 
   $sql = "SELECT id,name FROM compos WHERE visible<>0 ORDER BY id ASC";
 
@@ -31,6 +33,7 @@
       "<div id=\"compo".$item["id"]."\">\n".
       "<h2>".chentities($item["name"])."</h2>\n".
       stConvertCommonDesc($item["description"], FALSE).
+      "<div class=\"backToTop\"><a href=\"#pageTop\">Back</a></div>\n".
       "</div>\n";
     }
   }