View functions.php
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://"; |
View skip_link.html
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; |
View furbaby_css.css
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; |
View furbaby-header.html
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> |
View amp-carousel-final-code.html
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="#" > |
View carousel-slide.html
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"> |
View trucks.php
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 | |
*/ |
View amp_email.html
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; |
View amp-list.html
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