viewgit/inc/functions.php:22 Function utf8_encode() is deprecated [8192]

margin settings forr Wiki Page Lists, a-chris

Chris Pollett [2020-08-05 04:Aug:th]
margin settings forr Wiki  Page Lists, a-chris
Filename
src/css/search.css
src/views/elements/WikiElement.php
diff --git a/src/css/search.css b/src/css/search.css
index 07c17d469..0960bb5ab 100755
--- a/src/css/search.css
+++ b/src/css/search.css
@@ -1686,6 +1686,12 @@ body.mobile
     padding: 0;
     width: 7in;
 }
+.page-list-header-footer
+{
+    padding: 0;
+    margin: 0 auto 0 auto;
+    width: 7in;
+}
 .group-result
 {
     border-radius:5px;
diff --git a/src/views/elements/WikiElement.php b/src/views/elements/WikiElement.php
index 099b90256..1bf0815fc 100644
--- a/src/views/elements/WikiElement.php
+++ b/src/views/elements/WikiElement.php
@@ -1223,10 +1223,11 @@ class WikiElement extends Element implements CrawlConstants
             $controller, $group_id)) . $token_string . "&arg=edit";
         $paging_query = htmlentities(B\wikiUrl("pages", true, $controller,
             $group_id)) . $token_string;
-        ?><h2><?=tl("wiki_element_wiki_page_list", $data["GROUP"]["GROUP_NAME"])
+        ?><h2 class="page-list-header-footer"><?=
+            tl("wiki_element_wiki_page_list", $data["GROUP"]["GROUP_NAME"])
         ?></h2><?php
         ?>
-        <form id="editpageForm" method="get">
+        <form id="editpageForm" method="get" class="page-list-header-footer">
         <input type="hidden" name="c" value="<?=$data['CONTROLLER'] ?>" />
         <input type="hidden" name="<?= C\CSRF_TOKEN ?>" value="<?=
             $data[C\CSRF_TOKEN] ?>" />
@@ -1234,7 +1235,7 @@ class WikiElement extends Element implements CrawlConstants
         <input type="hidden" name="arg" value="pages" />
         <input type="hidden" name="group_id" value="<?=
             $data['GROUP']['GROUP_ID'] ?>" />
-        <input type="text" name="filter" class="extra-wide-field"
+        <input type="search" name="filter" class="extra-wide-field"
             maxlength="<?= C\SHORT_TITLE_LEN ?>"
             placeholder="<?= tl("wiki_element_filter_or_create")
             ?>" value="<?= $data['FILTER'] ?>" />
@@ -1280,10 +1281,12 @@ class WikiElement extends Element implements CrawlConstants
                 </div>
                 <div>&nbsp;</div>
                 <?php
-            }
+            }?>
+            <div class="page-list-header-footer"><?php
             $this->view->helper("pagination")->render(
-                $paging_query,
-                $data['LIMIT'], $data['RESULTS_PER_PAGE'], $data['TOTAL_ROWS']);
+                $paging_query, $data['LIMIT'], $data['RESULTS_PER_PAGE'],
+                $data['TOTAL_ROWS']);?>
+            </div><?php
         }
         if (empty($data['PAGES'])) {
             ?><div><?=tl('wiki_element_no_pages', "<b>".L\getLocaleTag().
ViewGit