[web-doc] master: the location of the code has changed (server is not reading these templates)

[email protected] (Nilgün Belma Bugüner) Fri, 14 Jan 2022 01:35:04 +0000
Newsgroups php.doc.web
Message-ID <[email protected]>
Author: Nilgün Belma Bugüner (nilgun)
Date: 2022-01-14T04:34:54+03:00

Commit: https://github.com/php/web-doc/commit/c99f57e0c690e055da8d67f8ec926885c7ca1380
Raw diff: https://github.com/php/web-doc/commit/c99f57e0c690e055da8d67f8ec926885c7ca1380.diff

the location of the code has changed (server is not reading these templates)

Changed paths:
  M  include/lib_general.inc.php
  M  shared/templates/footer.inc
  M  shared/templates/header.inc


Diff:

diff --git a/include/lib_general.inc.php b/include/lib_general.inc.php
index b9ac212..06f771d 100644
--- a/include/lib_general.inc.php
+++ b/include/lib_general.inc.php
@@ -40,13 +40,37 @@ function site_header()
     );
 
     require __DIR__ . '/../shared/templates/header.inc';
-
+   echo <<<END_OF_MULTILINE
+<style type="text/css">
+table { margin-left: auto; margin-right: auto; text-align: left; border-spacing: 2px; font-size:14px;}
+th { color: white; background-color: #666699; padding: 0.2em; text-align: center; vertical-align: middle; }
+td { padding: 0.2em 0.3em; }
+.oc { white-space: nowrap; overflow: hidden; max-width: 6em; }
+.copy { margin:0; padding: 0; font-size:small; }
+.copy:hover { text-transform: uppercase; }
+.copy:active { background: aqua; font-weight: bold; }
+.o { white-space: nowrap; overflow: hidden; max-width: 3em; }
+.c { text-align: center; }
+</style>
+END_OF_MULTILINE
     echo '<section class="mainscreen">';
 }
 
 function site_footer($SECONDSCREEN = false)
 {
     echo '</section>';
+   echo <<<END_OF_MULTILINE
+<script src="//cdn.jsdelivr.net/npm/[email protected]/dist/clipboard.min.js"></script>
+<script>
+  var clipboard = new ClipboardJS('.btn');
+  clipboard.on('success', function (e) {
+     console.log(e);
+  });
+  clipboard.on('error', function (e) {
+     console.log(e);
+  });
+</script>
+END_OF_MULTILINE;
     require __DIR__ . '/../shared/templates/footer.inc';
 }
 
diff --git a/shared/templates/footer.inc b/shared/templates/footer.inc
index 4934dc2..dee7e59 100644
--- a/shared/templates/footer.inc
+++ b/shared/templates/footer.inc
@@ -13,15 +13,6 @@
 <script src='//shared.php.net/js/external/mousetrap.min.js?filemtime=1421836947'></script>
 <script src='//shared.php.net/js/common.js?filemtime=1421836947'></script>
 <script src="//cdn.jsdelivr.net/npm/[email protected]/dist/clipboard.min.js"></script>
-<script>
-  var clipboard = new ClipboardJS('.btn');
-  clipboard.on('success', function (e) {
-     console.log(e);
-  });
-  clipboard.on('error', function (e) {
-     console.log(e);
-  });
-</script>
 </div><!-- .wrap -->
 </body>
 </html>
diff --git a/shared/templates/header.inc b/shared/templates/header.inc
index 9d2d12f..5ee1a82 100644
--- a/shared/templates/header.inc
+++ b/shared/templates/header.inc
@@ -14,51 +14,6 @@
 <!--[if lt IE 9]>
   <script src="//shared.php.net/js/html5shiv.js"></script>
 <![endif]-->
-
-<style type="text/css">
-table {
- margin-left: auto;
- margin-right: auto;
- text-align: left;
- border-spacing: 2px;
- font-size:14px;
-}
-th {
- color: white;
- background-color: #666699;
- padding: 0.2em;
- text-align: center;
- vertical-align: middle;
-}
-td {
- padding: 0.2em 0.3em;
-}
-.oc {
- white-space: nowrap;
- overflow: hidden;
- max-width: 6em;
-}
-.copy {
- margin:0;
- padding: 0;
- font-size:small;
- }
-.copy:hover {
- text-transform: uppercase;
-}
-.copy:active {
- background: aqua;
- font-weight: bold;
-}
-.o {
- white-space: nowrap;
- overflow: hidden;
- max-width: 3em;
-}
-.c {
- text-align: center;
-}
-</style>
 </head>
 <body id="doc">