aboutsummaryrefslogtreecommitdiffstats
path: root/license.php
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-02-20 16:11:50 +0100
committerArmand Philippot <git@armandphilippot.com>2022-02-20 16:15:08 +0100
commit73a5c7fae9ffbe9ada721148c8c454a643aceebe (patch)
treec8fad013ed9b5dd589add87f8d45cf02bbfc6e91 /license.php
parentb01239fbdcc5bbc5921f73ec0e8fee7bedd5c8e8 (diff)
chore!: restructure repo
I separated public files from the config/dev files. It improves repo readability. I also moved dotenv helper to public/inc directory and extract the Matomo tracker in the same directory.
Diffstat (limited to 'license.php')
-rw-r--r--license.php129
1 files changed, 0 insertions, 129 deletions
diff --git a/license.php b/license.php
deleted file mode 100644
index 776450c..0000000
--- a/license.php
+++ /dev/null
@@ -1,129 +0,0 @@
-<?php
-require_once('./config/dotenv.php');
-
-$dap_current_env = dap_get_current_env();
-?>
-<!DOCTYPE html>
-<html lang="en">
-
- <head>
- <meta charset="UTF-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>License | Demo | Armand Philippot</title>
- <link rel="apple-touch-icon" sizes="180x180" href="/assets/images/favicon/apple-touch-icon.png" />
- <link rel="icon" type="image/png" sizes="32x32" href="/assets/images/favicon/favicon-32x32.png" />
- <link rel="icon" type="image/png" sizes="16x16" href="/assets/images/favicon/favicon-16x16.png" />
- <link rel="manifest" href="/assets/images/favicon/site.webmanifest" />
- <link rel="mask-icon" href="/assets/images/favicon/safari-pinned-tab.svg" color="#194476" />
- <link rel="shortcut icon" type="image/x-icon" href="/assets/images/favicon/favicon.ico" />
- <meta name="msapplication-TileColor" content="#194476">
- <meta name="msapplication-config" content="/assets/images/favicon/browserconfig.xml">
- <meta name="theme-color" content="#194476">
- <?php
- if ($dap_current_env === 'production') {
- echo '<link rel="stylesheet" href="assets/css/style.css" />';
- } else {
- echo '<script src="assets/js/style.js"></script>';
- }
- ?>
- </head>
-
- <body class="body">
- <div class="toolbar">
- <button type="button" class="toolbar__options btn btn--menu">Menu</button>
- <button type="button" class="toolbar__options btn btn--details">
- About app
- </button>
- </div>
- <header class="header">
- <div class="branding">
- <div class="branding__logo logo">
- <a href="/" rel="home" class="logo__link">
- <img src="./assets/images/armand-philippot.jpg" alt="Back to homepage"
- class="logo__image logo__image--front" />
- <img src="./assets/images/armand-philippot-logo.svg" alt="Back to homepage"
- class="logo__image logo__image--back" />
- </a>
- </div>
- <h1 class="branding__title">
- <a href="/" rel="home" class="branding__link">Armand Philippot</a>
- </h1>
- <p class="branding__description">Front-end developer</p>
- </div>
- <nav class="nav">
- <p class="nav__label">App list:</p>
- <ul class="nav__list"></ul>
- </nav>
- </header>
- <main class="main">
- <div class="legal-notice">
- <h2>MIT License</h2>
- <p>Copyright (c) 2021 Armand Philippot</p>
- <p>
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
- </p>
- <p>
- The above copyright notice and this permission notice shall be
- included in all copies or substantial portions of the Software.
- </p>
- <p>
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- </p>
- </div>
- </main>
- <footer class="footer">
- <nav class="nav nav--footer">
- <ul class="nav__list">
- <li class="nav__item">
- <a href="legal-notice.php" class="nav__link nav__link--legal">
- Legal notice
- </a>
- </li>
- </ul>
- </nav>
- <div class="copyright">
- <span class="copyright__license" title="License MIT">MIT</span>
- <span class="copyright__date">2021.</span>
- <a href="https://www.armandphilippot.com/" class="copyright__author">Armand Philippot.</a>
- </div>
- </footer>
- <script src="./assets/js/runtime.js"></script>
- <script src="./assets/js/app.js"></script>
- <!-- 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']);
- (function() {
- var u = "//demo.armandphilippot.com/";
- _paq.push(["setTrackerUrl", u + "matomo/matomo.php"]);
- _paq.push(["setSiteId", "3"]);
- var d = document,
- g = d.createElement("script"),
- s = d.getElementsByTagName("script")[0];
- g.type = "text/javascript";
- g.async = true;
- g.defer = true;
- g.src = u + "matomo/matomo.php";
- s.parentNode.insertBefore(g, s);
- })();
- </script>
- <!-- End Matomo Code -->
- </body>
-
-</html>