changeset 132:5ffc84b7da1a

Add class parameter to mgGetPageInfoHeaderStart().
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 04 Sep 2017 12:28:17 +0300
parents a6c173e3a175
children 1d06f301ec6c
files mgallery.php
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mgallery.php	Fri Sep 01 00:45:11 2017 +0300
+++ b/mgallery.php	Mon Sep 04 12:28:17 2017 +0300
@@ -404,9 +404,9 @@
 }
 
 
-function mgGetPageInfoHeaderStart()
+function mgGetPageInfoHeaderStart($class = NULL)
 {
-  return "<div id=\"pageInfoHeader\">\n";
+  return "<div id=\"pageInfoHeader\"".($class != NULL ? " class=\"".$class."\"" : "").">\n";
 }
 
 
@@ -594,7 +594,7 @@
   $pageTitle = $galTitlePrefix.$galTitleSep.mgGetTrans($galData["caption"])." - ".$galImage;
   mgPrintPageHeader($pageTitle);
   echo
-    mgGetPageInfoHeaderStart().
+    mgGetPageInfoHeaderStart("imagePageHeader").
     "<h1>".chentities($pageTitle)."</h1>\n";
 
   if ($ctrlFlags & MGF_BREADCRUMBS)