This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Function courtesy of Chris McKee - https://gist.github.com/ChrisMcKee/1284052 | |
Get sute URL with protocol (http or https) | |
*/ | |
function siteURL() | |
{ | |
$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' | |
|| $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
.skip a{ | |
position:absolute; | |
left:10000px; | |
top:auto; | |
width:1px; | |
height:1px; | |
overflow:hidden; | |
font-size:2em; | |
background:white; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a { | |
text-decoration: none; | |
} | |
.container { | |
max-width: 1400px; | |
margin: auto; | |
} | |
#primary-nav .container { | |
padding: 0 10px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<header class="main"> | |
<nav id="primary-nav" aria-label="Main Navigation"> | |
<div class="container"> | |
<a href="/" class="logo-holder"> | |
<img class="logo" src="/assets/template/images/logo/logo.svg" alt="Homepage"> | |
</a> | |
</div> | |
<button id="hamburger" aria-expanded="true"> | |
<span>menu</span> | |
<span id="expanded">expanded</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="products_carousel" > | |
<amp-carousel height="418" | |
layout="fixed-height" | |
type="carousel" | |
class="category-carousel" | |
controls | |
> | |
<div class="slide"> | |
<figure style=""> | |
<a href="#" > |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="slide"> | |
<figure> | |
<a href="#" > | |
<amp-img src="https://picsum.photos/258/193?image=9" | |
width="258" | |
height="193" | |
alt="a sample image"></amp-img> | |
</a> | |
<figcaption> | |
<a href="#" class="block"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require 'scripts/functions.php'; | |
$domain_name = domainName(); // Example.com | |
$siteURL = siteURL(); //https://example.com | |
// Message | |
/* | |
AMP boilerplate CORS code and setting the content type as JSON | |
Since all errors / sucess messages will be encoded in JSON | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html ⚡4email> | |
<head> | |
<meta charset="utf-8"> | |
<script async src="https://cdn.ampproject.org/v0.js"></script> | |
<script async custom-element="amp-carousel" src="https://cdn.ampproject.org/v0/amp-carousel-0.1.js"></script> | |
<style amp4email-boilerplate>body{visibility:hidden}</style> | |
<style amp-custom> | |
h1 { | |
margin: 10px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<amp-list | |
src="https://fabulousnewwebsite.com/trucks.php" | |
layout="fixed-height" | |
height="200" | |
width="auto" | |
> | |
<template type="amp-mustache"> | |
<div> | |
<a href="{{url}}">{{title}}</a> |
NewerOlder