Description: Replace non-free stylesheets
 The css files defining the documentation pages layout are fetched from php.net
 during build time. These css files are not licensed under a free license and
 are replaced here by a modification of the debian.css file provided by the
 Debian's maint-guide package.
Author: Athos Ribeiro <athos.ribeiro@canonical.com>
Bug: https://github.com/php/web-php/issues/711
Forwarded: not-needed
Last-Update: 2022-10-05
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/phd/phpdotnet/phd/Package/PHP/ChunkedXHTML.php
+++ b/phd/phpdotnet/phd/Package/PHP/ChunkedXHTML.php
@@ -29,7 +29,7 @@
   <title>$title</title>
 {$cssLinks}
  </head>
- <body class="docs">
+ <body>
 HEADER;
         $nextLink = $prevLink = $upLink = '';
         if ($prevId = Format::getPrevious($id)) {
@@ -57,23 +57,29 @@
         }
 
         $nav = <<<NAV
-<div class="navbar navbar-fixed-top">
-  <div class="navbar-inner clearfix">
-    <ul class="nav" style="width: 100%">
-      {$prevLink}
-      {$nextLink}
-    </ul>
-  </div>
+<div class="navheader">
+  <table width="100%" summary="Navigation header">
+    <tr>
+      <th colspan="3" align="center">{$title}</th>
+    </tr>
+    <tr>
+      <td align="left">{$prevLink}</td>
+      <th width="60%" align="center"> </th>
+      <td align="right">{$nextLink}</td>
+    </tr>
+    <tr>
+      <td align="center">
+          <ul>
+            <li><a href="index.html">PHP Manual</a></li>
+            {$upLink}
+            <li>{$title}</li>
+          </ul>
+    </td>
+    </tr>
+  </table>
+  <hr/>
 </div>
-<div id="breadcrumbs" class="clearfix">
-  <ul class="breadcrumbs-container">
-    <li><a href="index.html">PHP Manual</a></li>
-    {$upLink}
-    <li>{$title}</li>
-  </ul>
-</div>
-<div id="layout">
-  <div id="layout-content">
+<div class="chapter">
 NAV;
         $header .= $nav;
         return $header;
@@ -81,6 +87,6 @@
 
     public function footer($id)
     {
-        return '</div></div></body></html>';
+        return '</div></body></html>';
     }
 }
--- a/phd/phpdotnet/phd/Package/PHP/XHTML.php
+++ b/phd/phpdotnet/phd/Package/PHP/XHTML.php
@@ -220,8 +220,7 @@
 
         if ($this->config->css() === []) {
             $this->config->setCss(array(
-                "http://www.php.net/styles/theme-base.css",
-                "http://www.php.net/styles/theme-medium.css",
+                "debian/debian.css",
             ));
         }
     }
