aboutsummaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rw-r--r--public/inc/dotenv.php16
-rw-r--r--public/inc/tracker.php9
-rw-r--r--public/index.php17
-rw-r--r--public/legal-notice.php17
-rw-r--r--public/license.php17
-rw-r--r--public/mentions-legales.php17
6 files changed, 76 insertions, 17 deletions
diff --git a/public/inc/dotenv.php b/public/inc/dotenv.php
index eb297e8..e5f2d61 100644
--- a/public/inc/dotenv.php
+++ b/public/inc/dotenv.php
@@ -1,6 +1,14 @@
<?php
/**
- * Dotenv helper.
+ * Dotenv helpers.
+ * php version 7.4
+ *
+ * @category Controller
+ * @package DAP
+ * @author Armand Philippot <contact@armandphilippot.com>
+ * @copyright 2022 Armand Philippot
+ * @license MIT <https://opensource.org/licenses/MIT>
+ * @link https://demo.armandphilippot.com/
*/
/**
@@ -13,11 +21,11 @@
function dap_get_current_env()
{
if (file_exists(dirname(__DIR__) . '/vendor/autoload.php')) {
- require_once dirname(__DIR__) . '/vendor/autoload.php';
+ include_once dirname(__DIR__) . '/vendor/autoload.php';
$dotenv = Dotenv\Dotenv::createImmutable(dirname(__DIR__));
$dotenv->safeLoad();
- $current_env = $_ENV['CURRENT_ENV'];
- return $current_env;
+
+ return $_ENV['CURRENT_ENV'];
} else {
return '';
}
diff --git a/public/inc/tracker.php b/public/inc/tracker.php
index 12aaa3c..b78cef7 100644
--- a/public/inc/tracker.php
+++ b/public/inc/tracker.php
@@ -1,12 +1,19 @@
<?php
/**
* Matomo tracking code.
+ * php version 7.4
+ *
+ * @category Controller
+ * @package DAP
+ * @author Armand Philippot <contact@armandphilippot.com>
+ * @copyright 2022 Armand Philippot
+ * @license MIT <https://opensource.org/licenses/MIT>
+ * @link https://demo.armandphilippot.com/
*/
?>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
- /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDoNotTrack", true]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
diff --git a/public/index.php b/public/index.php
index 7656f00..e2561ef 100644
--- a/public/index.php
+++ b/public/index.php
@@ -1,5 +1,16 @@
<?php
-require_once('./inc/dotenv.php');
+/**
+ * Homepage view.
+ * php version 7.4
+ *
+ * @category View
+ * @package DAP
+ * @author Armand Philippot <contact@armandphilippot.com>
+ * @copyright 2022 Armand Philippot
+ * @license MIT <https://opensource.org/licenses/MIT>
+ * @link https://demo.armandphilippot.com/
+ */
+require_once './inc/dotenv.php';
$dap_current_env = dap_get_current_env();
?>
@@ -51,7 +62,7 @@ $dap_current_env = dap_get_current_env();
</h1>
<p class="branding__description">Front-end developer</p>
</div>
- <nav class="nav">
+ <nav class="nav" aria-label="Main">
<p class="nav__label">App list:</p>
<ul class="nav__list"></ul>
</nav>
@@ -69,7 +80,7 @@ $dap_current_env = dap_get_current_env();
</noscript>
</main>
<footer class="footer">
- <nav class="nav nav--footer">
+ <nav class="nav nav--footer" aria-label="Footer">
<ul class="nav__list">
<li class="nav__item">
<a href="legal-notice.php" class="nav__link nav__link--legal">
diff --git a/public/legal-notice.php b/public/legal-notice.php
index 3d368a6..202b3ae 100644
--- a/public/legal-notice.php
+++ b/public/legal-notice.php
@@ -1,5 +1,16 @@
<?php
-require_once('./inc/dotenv.php');
+/**
+ * Legal notice view.
+ * php version 7.4
+ *
+ * @category View
+ * @package DAP
+ * @author Armand Philippot <contact@armandphilippot.com>
+ * @copyright 2022 Armand Philippot
+ * @license MIT <https://opensource.org/licenses/MIT>
+ * @link https://demo.armandphilippot.com/
+ */
+require_once './inc/dotenv.php';
$dap_current_env = dap_get_current_env();
?>
@@ -51,7 +62,7 @@ $dap_current_env = dap_get_current_env();
</h1>
<p class="branding__description">Front-end developer</p>
</div>
- <nav class="nav">
+ <nav class="nav" aria-label="Main">
<p class="nav__label">App list:</p>
<ul class="nav__list"></ul>
</nav>
@@ -93,7 +104,7 @@ $dap_current_env = dap_get_current_env();
</div>
</main>
<footer class="footer">
- <nav class="nav nav--footer">
+ <nav class="nav nav--footer" aria-label="Footer">
<ul class="nav__list">
<li class="nav__item">
<a href="legal-notice.php" class="nav__link nav__link--legal">
diff --git a/public/license.php b/public/license.php
index 1166c5b..c83af97 100644
--- a/public/license.php
+++ b/public/license.php
@@ -1,5 +1,16 @@
<?php
-require_once('./inc/dotenv.php');
+/**
+ * License view.
+ * php version 7.4
+ *
+ * @category View
+ * @package DAP
+ * @author Armand Philippot <contact@armandphilippot.com>
+ * @copyright 2022 Armand Philippot
+ * @license MIT <https://opensource.org/licenses/MIT>
+ * @link https://demo.armandphilippot.com/
+ */
+require_once './inc/dotenv.php';
$dap_current_env = dap_get_current_env();
?>
@@ -51,7 +62,7 @@ $dap_current_env = dap_get_current_env();
</h1>
<p class="branding__description">Front-end developer</p>
</div>
- <nav class="nav">
+ <nav class="nav" aria-label="Main">
<p class="nav__label">App list:</p>
<ul class="nav__list"></ul>
</nav>
@@ -85,7 +96,7 @@ $dap_current_env = dap_get_current_env();
</div>
</main>
<footer class="footer">
- <nav class="nav nav--footer">
+ <nav class="nav nav--footer" aria-label="Footer">
<ul class="nav__list">
<li class="nav__item">
<a href="legal-notice.php" class="nav__link nav__link--legal">
diff --git a/public/mentions-legales.php b/public/mentions-legales.php
index 99b7dc1..1a59cfb 100644
--- a/public/mentions-legales.php
+++ b/public/mentions-legales.php
@@ -1,5 +1,16 @@
<?php
-require_once('./inc/dotenv.php');
+/**
+ * Legal notice view: French version.
+ * php version 7.4
+ *
+ * @category View
+ * @package DAP
+ * @author Armand Philippot <contact@armandphilippot.com>
+ * @copyright 2022 Armand Philippot
+ * @license MIT <https://opensource.org/licenses/MIT>
+ * @link https://demo.armandphilippot.com/
+ */
+require_once './inc/dotenv.php';
$dap_current_env = dap_get_current_env();
?>
@@ -51,7 +62,7 @@ $dap_current_env = dap_get_current_env();
</h1>
<p class="branding__description">Front-end developer</p>
</div>
- <nav class="nav">
+ <nav class="nav" aria-label="Main">
<p class="nav__label">App list:</p>
<ul class="nav__list"></ul>
</nav>
@@ -93,7 +104,7 @@ $dap_current_env = dap_get_current_env();
</div>
</main>
<footer class="footer">
- <nav class="nav nav--footer">
+ <nav class="nav nav--footer" aria-label="Footer">
<ul class="nav__list">
<li class="nav__item">
<a href="legal-notice.php" class="nav__link nav__link--legal">