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
| import gql from 'graphql-tag' | |
| import { client } from '../utils/apollo-client' | |
| const { parse } = wp.blocks; | |
| const { select, subscribe, dispatch } = wp.data; | |
| const GET_PAGE_BLOCK_TEMPLATE = gql` | |
| query GET_PAGE_BLOCK_TEMPLATE($id: ID!, $template: String) { | |
| page( id: $id ) { | |
| blockTemplate( pageTemplate: $template ) | |
| } | |
| } |
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
| apiVersion: v1 | |
| kind: ReplicationController | |
| metadata: | |
| name: nginx | |
| spec: | |
| replicas: 1 | |
| selector: | |
| app: nginx | |
| template: | |
| metadata: |
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
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |
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
| /** | |
| * This file adds the Home Page to the Parallax Pro Theme. | |
| * | |
| * @author Brad Dalton | |
| * @package Parallax | |
| * @subpackage Customizations | |
| */ | |
| add_action( 'genesis_meta', 'parallax_home_genesis_meta' ); | |
| /** |
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 | |
| /* | |
| Additional notes for this gist: | |
| - You'll see that half of the constants are commented out. Nice to | |
| have them there when needed. | |
| - Using a non-standard WP directory structure. | |
| - See BuB note below. Possible items to change during migration: | |
| - $table_prefix | |
| - $dbname, $dbuser, $dbpass | |
| */ |
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 | |
| /** | |
| * Move Genesis child theme style sheet to a much later priority to give any plugins a chance to load first. | |
| * @author Alain Schlesser (alain.schlesser@gmail.com) | |
| * | |
| * @see http://docs.garyjones.co.uk/genesis/2.0.0/function-genesis_load_stylesheet.html | |
| */ | |
| function as_postpone_genesis_stylesheet() { |
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
| // Make Font Awesome available | |
| add_action( 'wp_enqueue_scripts', 'enqueue_font_awesome' ); | |
| function enqueue_font_awesome() { | |
| wp_enqueue_style( 'font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css' ); | |
| } |
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
| // Remove WooCommerce Theme Support admin message | |
| add_theme_support( 'woocommerce' ); |
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 | |
| /** | |
| * "Friendlier, Safer WordPress Admin Areas" | |
| * Presented by Cliff Seal at WordCamp Atlanta 2015 | |
| * Slides: http://www.slideshare.net/cliffseal/wp-admin | |
| * | |
| * Plugin Name: A Better Admin Experience | |
| * Plugin URI: http://evermo.re | |
| * Description: Cleans up and sanitizes the WordPress admin area | |
| * Version: 1.0 |