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 | |
$gallery_images = get_field('gallery'); | |
?> | |
<div class="gallery js-flickity" data-flickity-options='{ "autoPlay": 6000, "pageDots": false, "imagesLoaded": false, "prevNextButtons": false, "lazyLoad": false, "accessibility": false, "draggable": false, "wrapAround": true }'> | |
<?php foreach($gallery_images as $image) { | |
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 echo file_get_contents( get_stylesheet_directory_uri() . '/img/awesome.svg' ); ?> |
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
<!-- temp lightbox for special event --> | |
<!-- Add fancyBox main JS and CSS files --> | |
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.pack.js"></script> | |
<link rel="stylesheet" type="text/css" href="//cdn.rawgit.com/rugor/fancy-quick/master/jquery.fancybox.css?v=2.1.5" media="screen" /> | |
<script type="text/javascript"> | |
jQuery(document).ready(function ($) { | |
var cookie = document.cookie; | |
if (cookie.indexOf('visited=', 0) == -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
# ----------------------------------------------------------------- | |
# .gitignore for WordPress | |
# Bare Minimum Git | |
# http://ironco.de/bare-minimum-git/ | |
# ver 20150227 | |
# | |
# This file is tailored for a WordPress project | |
# using the default directory structure | |
# | |
# This file specifies intentionally untracked files to ignore |
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
// ssh into ec2 instance, info from 'instances' panel in ec2 dashboard | |
ssh -i /path/to/key.pem user@public_dns | |
// run command to show container ids and ports | |
docker ps | |
// prints something like the following | |
961ed99341b meteorhacks/meteord:base "/bin/sh -c 'bash $ME" 18 hours ago Up 18 hours 0.0.0.0:80->80/tcp demo | |
124a407de468 mongo "/entrypoint.sh mongo" 18 hours ago Up 18 hours 127.0.0.1:27017->27017/tcp mongodb |
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
<h3>REPRESENTATION</h3> | |
<dl> | |
<dt>Birch Contemporary</dt> | |
<dd>129 Tecumseth Street</dd> | |
<dd>Toronto, Canada M6J 2H2</dd> | |
<dd><a href="#">www.birchcontemporary.com</a></dd> | |
</dl> | |
<dl> | |
<dt>Christophe Guye Galerie</dt> | |
<dd>129 Tecumseth Street</dd> |
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
function wpdocs_filter_gallery_img_atts( $atts, $attachment ) { | |
if ( $full_size = wp_get_attachment_image_src( $attachment->ID, 'full' ) ) { | |
if ( ! empty( $full_size[0] ) ) { | |
$atts['data-full-size'] = $full_size[0]; | |
} | |
} | |
$atts['data-width'] = $full_size[1]; | |
$atts['data-height'] = $full_size[2]; |
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
add_action('admin_enqueue_scripts', 'chrome_fix'); | |
function chrome_fix() { | |
if ( strpos( $_SERVER['HTTP_USER_AGENT'], 'Chrome' ) !== false ) | |
wp_add_inline_style( 'wp-admin', '#adminmenu { transform: translateZ(0); }' ); | |
} |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="icon" href="favicon.ico"> | |
<title>Foo</title> |
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
// browser-sync options | |
browsersync: { | |
files: [build+'/**', '!'+build+'/**.map'] | |
, notify: true | |
, open: true | |
//, port: 3000 // Port number for the live version of the site; default: 3000 | |
//, proxy: 'test.dev' // Using a proxy instead of the built-in server as we have server-side rendering to do via WordPress | |
, watchOptions: { | |
debounceDelay: 2000 // Delay for events called in succession for the same file/event |