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
| <!-- | |
| TO DO: Replace the value {{CONTACT.EMAIL_ADDRESS}} with whatever templating tag you use to insert the | |
| receiver's email address into the email. | |
| --> | |
| <!-- Begin MailChimp Signup Form --> | |
| <style type="text/css"> | |
| #mc-embedded-subscribe:hover, #mc-embedded-subscribe:focus {background: #333;} | |
| </style> | |
| <form action="https://velocitize.us1.list-manage.com/subscribe/post?u=97713b16d0e25d9d4cc92a2a9&id=c42a252727" method="post" target="_blank"> |
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 | |
| /** | |
| * Functions for Ryan Hoover Child | |
| */ | |
| namespace RSH; | |
| define( 'RSH_PATH', get_stylesheet_directory() ); | |
| define( 'RSH_URL', get_stylesheet_directory_uri() ); |
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 | |
| get_header(); | |
| while ( have_posts() ) : the_post(); | |
| the_title(); | |
| the_content(); | |
| // If comments are open or we have at least one comment, load up the comment template. | |
| if ( comments_open() || get_comments_number() ) : |
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
| # Ignore everything in the root except the "wp-content" directory. | |
| /* | |
| !.git* | |
| !wp-content/ | |
| !circle.yml | |
| !composer.json | |
| !auth.json | |
| !package.json | |
| !Gruntfile.js |
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
| machine: | |
| environment: | |
| WPE_INSTALL: myinstallname | |
| php: | |
| version: 7.0.17 | |
| ## Wordpress Code standard | |
| dependencies: | |
| pre: | |
| # Grunt v 1.0.1 only passes installation if it's installed globally |
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 | |
| /** | |
| * Find the number of unminified CSS files on a website | |
| * @param string $url The root URL of the website to test | |
| * @param integer $lines_per_file What's the max number of lines a minified CSS file should have? | |
| * @return integer Number of CSS files on a website that aren't minified | |
| */ | |
| function how_many_unminified_css_files( $url, $lines_per_file = 3 ) | |
| $unminimized_css_files = 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
| <?php | |
| // !! Don't paste the <?php line above !! | |
| /** | |
| * Redirect any pricing pages to my country's pricing page | |
| */ | |
| function redirect_pricing_page() { | |
| $path = $_SERVER['REQUEST_URI']; |
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
| #!/bin/bash | |
| default_path='.' | |
| pluginpath=${1:-$default_path} | |
| declare -a types=("full" "source") | |
| for type in ${types[@]} | |
| do | |
| echo Running PHPCS report: ${type} |
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
| # Continuous Integration to a WP Engine install | |
| # PHP CircleCI 2.1 configuration file | |
| # Requirements: | |
| # 1. In CircleCI settings, add environment variables for your site's installs: | |
| # * WPE_PRODUCTION_INSTALL=thenameofyourproductioninstall | |
| # * WPE_STAGING_INSTALL=thenameofyourstaginginstall | |
| # * WPE_DEVELOPMENT_INSTALL=thenameofyourdevelopmentinstall | |
| # 2. In your repo, have two files | |
| # * `./.gitignores/__default` -- Excludes any compiled files |
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 | |
| /** | |
| * Plugin Name: Shayda's WooCommerce Tweaks | |
| * Plugin URI: http://dinewithshayda.com | |
| * Description: Makes WooCommerce do what Shayda demands it should do. | |
| * Version: 1.0 | |
| * Author: shayda | |
| * Author URI: http://dinewithshayda.com | |
| * | |
| * @package woocommerce-shayda |