- Download webfont package from https://gwfh.mranftl.com/fonts
- Copy the generated css and add font-display. ie:
@font-face {
font-family: 'Advent Pro';
font-style: normal;
font-weight: 400;
font-display: swap;
@font-face {
font-family: 'Advent Pro';
font-style: normal;
font-weight: 400;
font-display: swap;
| $twig = new Twig_Environment($loader, array('debug' => DEBUG)); | |
| /////////////// | |
| // Variables // | |
| /////////////// | |
| $twig->addGlobal('session', $_SESSION); | |
| --- | |
| $template->render(array('nav' => $nav)); | |
| --- |
| { | |
| "Accessibility": [ | |
| "fab fa-accessible-icon", | |
| "fas fa-american-sign-language-interpreting", | |
| "fas fa-assistive-listening-systems", | |
| "fas fa-audio-description", | |
| "fas fa-blind", | |
| "fas fa-braille", | |
| "fas fa-closed-captioning", | |
| "far fa-closed-captioning", |
| /*===================================================================================== | |
| = Bootstrap 4 Images & Thumbs dimensions for e-commerce website = | |
| =====================================================================================*/ | |
| categories | |
| ---------- | |
| banner |
| # Apache configuration file | |
| # https://gist.github.com/migliori/1ae6137b8b7009d067fa383e8ce92e3d | |
| RewriteEngine on | |
| RewriteBase / | |
| Options +FollowSymLinks | |
| # Rewrite to https + www | |
| RewriteCond %{REMOTE_ADDR} !127.0.0.1 | |
| RewriteCond %{HTTP_HOST} !^www\. |
| <script defer src="documentation/assets/js/jquery-1.12.4.min.js"></script> | |
| <script type="text/javascript"> | |
| window.onload = function () { // domready | |
| } | |
| </script> |
| # ---------------------------------------------------------------------- | |
| # Adaptive-Images | |
| # ---------------------------------------------------------------------- | |
| # Add any directories you wish to omit from the Adaptive-Images process on a new line, as follows: | |
| # RewriteCond %{REQUEST_URI} !ignore-this-directory | |
| # RewriteCond %{REQUEST_URI} !and-ignore-this-directory-too | |
| RewriteCond %{REMOTE_ADDR} !127.0.0.1 |
https://www.npmjs.com/package/npm-check
list the unused packages in package.json
| display_errors = On | |
| html_errors = On | |
| error_reporting = E_ALL | |
| max_execution_time = 30 | |
| max_input_time = 60 | |
| memory_limit = 128M | |
| ;Xdebug | |
| zend_extension="{$path}\php-5.6\lib\php_xdebug.dll" |
| <script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js"></script> | |
| <script type="text/javascript"> | |
| WebFont.load({ | |
| google: { | |
| families: ['Roboto:300,400,500', 'Francois+One'] | |
| } | |
| }); | |
| </script> |