Skip to content

Instantly share code, notes, and snippets.

@vailjoy
vailjoy / index.html
Last active January 6, 2017 15:06 — forked from anonymous/abgeor.markdown
split screen experiment
<main class="fullwidth">
<div id="west" class="column duo">
<div class="toggle">
</div>
<div class="menu closed">
<ul>
<li>Home</li>
<li>About</li>
<li>Stuff</li>
@vailjoy
vailjoy / demo-extension.php
Created June 30, 2016 11:16
Layers Extension Example
<?php
/*
* Plugin Name: Layers - Demo Extension
* Version: 1.0
* Plugin URI: http://www.yourpluginpage.com
* Description: What does your Extension do for Layers?
* Author: You
* Author URI: http://www.yoursite.com/
*
* Requires at least: 4.5
@vailjoy
vailjoy / functions.php
Created June 28, 2016 14:29
Layers: Filter Excerpts to show post content
/**
* List Excerpt
*/
if( !function_exists( 'layers_excerpt_action' ) ) {
function layers_excerpt_action() {
if( '' == get_the_content() ) return;
// Return if there's nothing to show
?>
<div class="story">
<?php
@vailjoy
vailjoy / post.php
Created May 9, 2016 13:55
Post Widget Mod to Show Content
<?php /**
* Post Widget
*
* This file is used to register and display the Layers - Post widget.
*
* @package Layers
* @since Layers 1.0.0
*/
if( !class_exists( 'Layers_Post_Widget' ) ) {
class Layers_Post_Widget extends Layers_Widget {
@vailjoy
vailjoy / template-blog.php
Created May 9, 2016 11:22
Layers Blog Fixed Pagination 1.5.1
<?php
/**
* Template Name: Blog
* The template for displaying post archives
*
* @package Layers
* @since Layers 1.0.0
*/
get_header();
@vailjoy
vailjoy / functions.php
Created April 1, 2016 10:46
Child Theme Functions Example
<?php
/**
* Layers Child Theme Custom Functions
* Replace layers_child in examples with your own child theme slug!
* http://docs.layerswp.com/child-theme-setup/
**/
require_once get_stylesheet_directory() . '/includes/presets.php' ;
require_once get_stylesheet_directory() . '/includes/custom-meta.php' ;
/**
@vailjoy
vailjoy / style.css
Created April 1, 2016 10:40
Child Theme Stylesheet Example
/*
Theme Name: Layers Child Demo
Description: Layers Child Theme Test: http://www.oboxthemes.com
Author: Obox Themes
Template: layerswp
Version: 1.0.1
License: GPL 2.0
License URI: http://www.gnu.org/licenses/gpl-2.0.html
This file is for demonstration and is intended as a teaching resource.
@vailjoy
vailjoy / functions.php
Last active March 1, 2016 14:34
Layers: layers_after_logo_inner hook example
add_action('layers_after_logo_inner', 'mytheme_social_icons');
function mytheme_social_icons() { ?>
YOUR HTML GOES HERE
<?php }