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
/** | |
* Pre Select a dropdown choice/option in Gravity Forms | |
* | |
* Create a dynamic list of dropdown choices from a custom post type | |
* Based on the current page, pre-select a choice in the drop down | |
* | |
* @var howto_dynamic_field = the dynamic field set in Gravity Forms on the field group under the Advanced tab | |
* @var howto_post_type = Your custom post type you are listing in the drop down | |
* | |
*/ |
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
find . -type d -name .svn -exec rm -rf {} \; |
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
PS1='\e[42m\e[30m \u@\h \@ \e[47m\e[30m \w \e[m\]\n$ ' # LOCAL | |
PS1='\e[43m\e[30m \u@\h \@ \e[47m\e[30m \w \e[m\]\n$ ' # STAGING | |
PS1='\e[41m\e[1;37m \u@\h \@ \e[47m\e[30m \w \e[m\]\n$ ' # PRODUCTION |
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
# Require any additional compass plugins here. | |
# @link http://compass-style.org/help/tutorials/configuration-reference/ | |
# Set this to the root of your project when deployed: | |
http_path = "/" | |
css_dir = "/" | |
fonts_dir = "css/fonts" | |
sass_dir = "sass" | |
images_dir = "images" |
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
{ | |
"name": "vendor/theme-name", | |
"description": "Theme Name", | |
"license": "GPL-3.0+", | |
"repositories":[ | |
{ | |
"type":"composer", | |
"url":"http://wpackagist.org" | |
}, | |
{ |
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
/** | |
* Embed HealCode | |
* {@link https://www.healcode.com} | |
* Usage: [healcode id="_ID_" name="_NAME_"] | |
*/ | |
if ( ! function_exists(healcode_shortcode) ) { | |
function healcode_shortcode($atts, $content = null) { | |
extract(shortcode_atts(array( | |
'id' => '', |
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 Google Map via ACF Location field | |
* | |
* API added via @see theme/enqueue.php: https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false | |
* | |
* @param (int) $post_id | |
* @param (string) $width Width of the gmap to display | |
* @param (string) $height height of the gmap to display | |
* | |
* @return HTML for google map embed |
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
// Automated textshadow based on color being used | |
@mixin darkorlighttextshadow( $a, $opacity: 0.8 ) { | |
@if lightness( $a ) >= 65% { | |
@include text_shadow( 0, -1px, 0, rgba(0, 0, 0, $opacity) ); | |
} @else { | |
@include text_shadow( 0, 1px, 0, rgba(255, 255, 255, $opacity) ); | |
} | |
} |
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
// USAGE: ul.my-gallery {@include thumbnail-gallery(2)} | |
@mixin thumbnail-gallery($items: 4) {clear:both; list-style:none; padding:0; margin:0 -1%; width:auto; @extend group; | |
li {width:(100% - (2 * $items)) / $items; display:inline-block; margin:0 1% 1%; float:left; | |
a {text-align:center; display:block; margin:0 auto;} | |
img {display:block; width:100%; height:auto;} | |
} | |
} | |
// Clearfix | |
.group {zoom:1; |