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 var_dump_pre( $var ) { | |
$str = "<pre>$var</pre>"; | |
echo $str; | |
} |
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
@uico-plum: #913d88; | |
@uico-seance: #9a12b3; | |
@uico-medium-purple: #bf55ec; | |
@uico-light-wisteria: #be90d4; | |
@uico-studio: #8e44ad; | |
@uico-wisteria: #9b59b6; | |
@uico-new-york-pink: #e08283; | |
@uico-pomegranate: #f22613; | |
@uico-red: #ff0000; | |
@uico-sunglo: #e26a6a; |
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
@mdc-red-50: #ffebee; | |
@mdc-red-100: #ffcdd2; | |
@mdc-red-200: #ef9a9a; | |
@mdc-red-300: #e57373; | |
@mdc-red-400: #ef5350; | |
@mdc-red-500: #f44336; | |
@mdc-red-600: #e53935; | |
@mdc-red-700: #d32f2f; | |
@mdc-red-800: #c62828; | |
@mdc-red-900: #b71c1c; |
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 to https | |
RewriteEngine On | |
RewriteCond %{HTTPS} !=on | |
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] |
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
$('[data-placeholder]').focus(function() { | |
if ($(this).val() == $(this).attr('data-placeholder')) { | |
$(this).removeClass('inactive'); | |
$(this).val(''); | |
} | |
}); | |
$('[data-placeholder]').blur(function() { | |
if ($(this).val() == '') { | |
$(this).addClass('inactive'); |
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 placeholder attributes to Gravity Form inputs. | |
*/ | |
function my_standard_settings($position, $form_id) { | |
if ($position == 25) : ?> | |
<li class="admin_label_setting field_setting" style="display:list-item;"> | |
<label for="field_placeholder">Placeholder Text | |
<a href="javascript:void(0);" class="tooltip tooltip_form_field_placeholder" tooltip="<h6>Placeholder</h6>Enter the placeholder/default text for this field.">(?)</a> | |
</label> |
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
function get_posts_page_title() { | |
if (get_option('show_on_front') == 'page') { | |
return get_the_title(get_option('page_for_posts')); | |
} | |
return false; | |
} |
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 | |
$html = wp_page_menu( array( | |
'echo' => false, | |
'depth' => 2 | |
) ); | |
$html = str_replace( ' page_item_has_children', ' menu-item-has-children', $html ); | |
$html = str_replace( ' current_page_item', ' current-menu-item', $html ); | |
$html = str_replace( ' page-item-', ' menu-item-', $html ); |
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
function classIfOffset(element, class, offset) { | |
var scroll = $(window).scrollTop(); | |
if (scroll > offset) { | |
element.addClass(class); | |
} else { | |
element.removeClass(class); | |
} | |
} |
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 my_nav_wrap() { | |
$wrap = '<ul id="%1$s" class="%2$s">'; | |
$wrap .= '%3$s'; | |
$wrap .= '<li class="cart">'; | |
$wrap .= '<a href="' . WC()->cart->get_cart_url() . '"> class="cart_totals">'; | |
$wrap .= WC()->cart->get_cart_total(); | |
$wrap .= '</a>'; | |
$wrap .= '</li>'; |