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
<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> |
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 | |
/* | |
* 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 |
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
/** | |
* 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 |
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 /** | |
* 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 { |
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 | |
/** | |
* Template Name: Blog | |
* The template for displaying post archives | |
* | |
* @package Layers | |
* @since Layers 1.0.0 | |
*/ | |
get_header(); |
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 | |
/** | |
* 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' ; | |
/** |
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
/* | |
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. |
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
add_action('layers_after_logo_inner', 'mytheme_social_icons'); | |
function mytheme_social_icons() { ?> | |
YOUR HTML GOES HERE | |
<?php } |