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
#!/bin/sh | |
# | |
# Run JSHint validation before commit. | |
files=$(git diff --cached --name-only --diff-filter=ACMR -- *.js **/*.js) | |
pass=true | |
if [ "$files" != "" ]; then | |
for file in ${files}; do |
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 | |
/** | |
* This is responsible for setting the theme's configurable options. | |
* | |
* @package BoldGrid Theme | |
*/ | |
/** | |
* Set the Theme's Configuration Options. | |
* |
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 | |
// Include compiler if class isn't loaded. | |
if ( ! class_exists( '\Leafo\ScssPhp\Compiler' ) ) { | |
require get_theme_file_path( 'vendor/scssphp/scss.inc.php' ); | |
} | |
// Create compiler instance. | |
$scss = new Compiler(); |
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 | |
function getDocumentation( $class ) { | |
$reflection = new \ReflectionClass( $class ); | |
$comments = array(); | |
foreach ( $reflection->getMethods() as $method ) { | |
if ( $method->isPublic() && ! $method->isConstructor() ) { | |
$methodDetails = array( | |
'class' => $method->class, | |
'method' => $method->name, |
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 | |
/** | |
* Add Banner to the ambition_header hook. | |
*/ | |
add_action( 'ambition_header', 'ambition_child_add_banner', 15 ); | |
function ambition_child_add_banner() { | |
?> | |
<img id="single-program-banner" src="<?php the_field( 'banner' ); ?>" alt="" /> | |
<?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 | |
/** | |
* Prints HTML with meta information for the current post-date/time and author. | |
* | |
* @see: https://www.boldgrid.com/support/question/in-the-blog-how-can-i-remove-the-posted-on-date-text/ | |
*/ | |
function boldgrid_posted_on() { | |
if ( is_archive() ) { | |
return; | |
} |
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
/** | |
* We don't want the site title and tagline to be in the same block for "site branding" | |
* on this theme. | |
* | |
* We will want to override the default site_title/tagline action included, | |
* and make our own. The default action is added in the header locations of | |
* the config as '[action]boldgrid_site_identity', so we will put our own | |
* custom override in as '[action]venetian_site_title'. | |
* | |
* This is what the markup is being displayed as currently in venetian: |
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
/*================================================== | |
= Bootstrap 3 Media Queries = | |
==================================================*/ | |
/*========== Mobile First Method ==========*/ | |
/* Custom, iPhone Retina */ | |
@media only screen and (min-width : 320px) { | |
} |
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: BoldGrid Filter to Dev | |
* Description: Filter AJAX Requests and WP calls to BGAPI to Dev. | |
* Plugin URI: https://github.com/timelsass | |
* Author: Tim Elsass | |
* Author URI: https://tim.ph | |
*/ | |
// Filter BoldGrid HTTP Requests made via WordPress. | |
function bg_filter_wp_to_dev( $preempt, $r, $url ) { |
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
http://🚚.la |
OlderNewer