This file contains hidden or 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
<nav> | |
<a href="#home" class="nav-link">Home</a> | |
<a href="#about" class="nav-link" aria-describedby="current">About</a> | |
<a href="#services" class="nav-link">Services</a> | |
<a href="#contact" class="nav-link">Contact</a> | |
</nav> | |
<div hidden id="current"> | |
Current Page | |
</div> |
This file contains hidden or 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
{ | |
"id":"6ce4a00a-677d-4265-8144-4873d3d0075d", | |
"url":"https://api.filepreviews.io/v2/previews/6ce4a00a-677d-4265-8144-4873d3d0075d/", | |
"status":"success", | |
"preview":{ | |
"original_size":{ | |
"width":"1280", | |
"height":"1024" | |
}, | |
"page":1, |
This file contains hidden or 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
{ | |
"sample":[ | |
{ | |
"description":"Lady with a red umbrella", | |
"image-url":"https://i.imgur.com/pwpWaWu.jpg" | |
}, | |
{ | |
"description":"Flowers and some fruits", | |
"image-url":"https://i.imgur.com/KIPtISY.jpg" | |
}, |
This file contains hidden or 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="parallax"> | |
<h1>Parallax Effect</h1> | |
</div> | |
<div class="parallax p-2"> | |
<h1>I’m at a place in my life when errands are starting to count as going out.</h1> | |
</div> | |
<div class="parallax p-3"> | |
<h1>I don’t believe in astrology;<br> I’m a Sagittarius and we’re skeptical.</h1> |
This file contains hidden or 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
// Media Queries in Sass 3.2 | |
// | |
// These mixins make media queries a breeze with Sass. | |
// The media queries from mobile up until desktop all | |
// trigger at different points along the way | |
// | |
// And important point to remember is that and width | |
// over the portrait width is considered to be part of the | |
// landscape width. This allows us to capture widths of devices | |
// that might not fit the dimensions exactly. This means the break |
This file contains hidden or 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 | |
//Get the images ids from the post_metadata | |
$images = acf_photo_gallery('images', $post->ID); | |
//Check if return array has anything in it | |
if( count($images) ): | |
//Cool, we got some data so now let's loop over it | |
foreach($images as $image): | |
$id = $image['id']; // The attachment id of the media |
This file contains hidden or 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
install extensions via npm | |
npm install popper.js --save | |
//Require dependencies | |
var | |
gulp = require('gulp'), | |
sass = require('gulp-sass'), | |
sourcemaps = require('gulp-sourcemaps'), | |
concat = require('gulp-concat'), |
This file contains hidden or 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 url($path = '/') { | |
$siteUrl = 'http://localhost/glass-services-html/'; // Site URL goes here | |
echo $siteUrl . $path; | |
} | |
?> |
This file contains hidden or 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 | |
/** | |
* Template Name: blog feed | |
*/ | |
get_header(); | |
$blogPosts = handleJsonCache(array( | |
'expirySeconds' => -1, | |
'fileName' => 'blog-feed' | |
), function () { |
NewerOlder