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 | |
/** set up redirects from old structure */ | |
function aly_post_redirects() { | |
if ( ! is_user_logged_in() ) | |
return; | |
if ( is_404() ) : | |
$slug = $_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
<?php | |
echo '<tr class="addon-file-field">'; | |
echo '<th>'; | |
echo '<label for="addon-file">'.__( 'ZIP file', '' ).'</label>'; | |
echo '</th>'; | |
echo '<td>'; | |
echo '<input type="text" name="addon-meta[file]" id="addon-file" class="widefat" value="'.esc_url( $file ).'">'; | |
echo '</td>'; | |
echo '</tr>'; |
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 | |
add_action ( 'wp_enqueue_scripts', 'bootstrap_cdn_scripts_styles', 10 ); | |
function bootstrap_cdn_scripts_styles() { | |
wp_enqueue_style( 'bootstrap-css', '//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css', array(), '3.0.3', 'all' ); | |
wp_enqueue_script( 'bootstrap-js', '//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js', array(), '3.0.3', true ); | |
} |
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 | |
add_filter( 'gppro_preview_url', 'gpp_user_logged_in' ); | |
function gpp_user_logged_in( $url ) { | |
$url['adminbar'] = 'on'; | |
return $url; | |
} |
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
* 2 C. Bisquick | |
* 2/3 C. milk | |
* 1/2 C. shredded Cheddar Cheese | |
* 1/2 C. butter melted | |
* 1/4 tsp. dried parsley | |
* 1/4 tsp. garlic powder | |
Preparation - | |
Mix bisquick, milk and cheese together to form a soft biscuit dough. |
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: Norcross Debug Functions | |
Plugin URI: https://gist.github.com/norcross/7864205/ | |
Description: A set of functions I use on all sites while building | |
Author: Andrew Norcross | |
Version: 0.0.2 | |
Requires at least: 6.0 | |
Author URI: http://andrewnorcross.com | |
*/ |
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
// ************************************************************** | |
// bind Iris to color picker input | |
// ************************************************************** | |
$( 'input.gppro-picker' ).each(function() { | |
var block = $( this ).parents( 'div.gppro-input' ); | |
var target = $( block ).find( 'input.gppro-color-value' ).data( 'target' ); | |
var type = $( block ).find( 'input.gppro-color-value' ).data( 'type' ); | |
var view = $( block ).find( 'input.gppro-color-value' ).data( 'view' ); |
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 | |
/** | |
* set up dropdown for states | |
* | |
* @return states | |
*/ | |
static function states_select( $name = 'niica_member_state', $user_id = 0 ) { | |
// fetch the current status |