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
/* Box sizing rules */ | |
*, | |
*::before, | |
*::after { | |
box-sizing: border-box; | |
} | |
/* Remove default margin */ | |
body, | |
h1, |
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
@keyframes smoothscroll1 { | |
from, | |
to { | |
scroll-behavior: smooth; | |
} | |
} | |
@keyframes smoothscroll2 { | |
from, | |
to { |
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 | |
if ( ! defined( 'ABSPATH' ) ) { die( 'You are not allowed to call this file directly.' ); } | |
global $post; | |
$ad_id = get_the_ID(); | |
$ad_target = get_post_meta( $ad_id, '_target', true ); | |
$ad_permalink = get_permalink( $ad_id ); | |
$ad_size = get_post_meta( $ad_id, '_size', true ); |
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
<template> | |
<div> | |
<h1 v-html="$page.oneGraph.spotify.me.id" /> | |
<ul> | |
<li v-for="(item, index) in $page.oneGraph.spotify.me.playlists" :key="index"> | |
<g-link :to="item.externalUrls.spotify">{{item.name}}</g-link> | |
<img :src="item.images[0].url" :height="300" :width="300" /> | |
</li> | |
</ul> |
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
// Posts.vue template | |
<template> | |
<Layout> | |
<div class="markdown-body"> | |
<h1>{{ $page.post.title }}</h1> | |
{{ $page.post.content }} | |
{{ $page.post.popularity }} | |
<br /> | |
{{ $page.post.genre_ids }} |
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 | |
$image = get_field('my_image'); | |
if( !empty($image) ): | |
// vars | |
$size = 'large'; | |
$url = $image['url']; |
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
on_submit: "$(document).ajaxComplete(function() {$('#modalResponse').modal({backdrop: 'static', keyboard: false});$('#modalResponse .modal-body').html('<div class="alert alert-danger"><p>'+data.message+'</p></div>');}); $('.wpcf7-response-output').ajaxComplete(function(){$(this).delay(3000).fadeOut('slow');});" |
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
// ## Globals | |
var argv = require('minimist')(process.argv.slice(2)); | |
var autoprefixer = require('gulp-autoprefixer'); | |
var browserSync = require('browser-sync').create(); | |
var changed = require('gulp-changed'); | |
var concat = require('gulp-concat'); | |
var flatten = require('gulp-flatten'); | |
var gulp = require('gulp'); | |
var gulpif = require('gulp-if'); | |
var imagemin = require('gulp-imagemin'); |