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
<IfModule mod_deflate.c> | |
# compress text, html, javascript, css, xml: | |
AddOutputFilterByType DEFLATE text/plain | |
AddOutputFilterByType DEFLATE text/html | |
AddOutputFilterByType DEFLATE text/xml | |
AddOutputFilterByType DEFLATE text/css | |
AddOutputFilterByType DEFLATE application/xml | |
AddOutputFilterByType DEFLATE application/xhtml+xml | |
AddOutputFilterByType DEFLATE application/rss+xml | |
AddOutputFilterByType DEFLATE application/javascript |
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
<script type='text/javascript'> | |
/* <![CDATA[ */ | |
var wc_checkout_params = {"ajax_url":"\/maxbuttons\/wp-admin\/admin-ajax.php","ajax_loader_url":"\/\/localhost:8888\/maxbuttons\/wp-content\/plugins\/woocommerce\/assets\/images\/ajax-loader@2x.gif","update_order_review_nonce":"769c6b66f9","apply_coupon_nonce":"13a129c0bc","option_guest_checkout":"yes","checkout_url":"\/maxbuttons\/wp-admin\/admin-ajax.php?action=woocommerce_checkout","is_checkout":"0","session_expired_message":"<div class=\"woocommerce-error\">Sorry, your session has expired. <a href=\"http:\/\/localhost:8888\/maxbuttons\" class=\"wc-backward\">Return to homepage<\/a><\/div>"}; | |
var wc_checkout_params = {"ajax_url":"\/maxbuttons\/wp-admin\/admin-ajax.php","ajax_loader_url":"\/\/localhost:8888\/maxbuttons\/wp-content\/plugins\/woocommerce\/assets\/images\/ajax-loader@2x.gif","update_order_review_nonce":"769c6b66f9","apply_coupon_nonce":"13a129c0bc","option_guest_checkout":"yes","checkout_url":"\/maxbuttons\/wp-admin\/admin-ajax.php?action=woocomm |
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
PlaceImages: function(galH, galW) { | |
// galH and galW are specified width/height | |
// either input in the function or could use width/height of gallery | |
var gal = $('.hp-gallery-images'); | |
var imgs = $('.hp-gallery img'); | |
imgs.each( function (index, el) { | |
var randNum_T = Math.round(Math.random() * galH); | |
var randNum_L = Math.round(Math.random() * galW); |
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 all image elements replace the end with a trailing slash | |
find: <img(.*?)> | |
replace: <img\1 /> | |
# find all input elements replace the end with a trailing slash | |
find: <input(.*?)> | |
replace: <input\1 /> | |
# take all instances where extra / was made and trash it | |
find: / /> |
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
.hide-text { | |
height: ; | |
width: ; | |
display: block; | |
text-indent: 100%; | |
white-space: nowrap; | |
overflow: hidden; | |
} |
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
/* =WordPress Core | |
-------------------------------------------------------------- */ | |
.alignnone { | |
margin: 5px 20px 20px 0; | |
} | |
.aligncenter, div.aligncenter { | |
display:block; | |
margin: 5px auto 5px auto; | |
} |
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
.video-container { | |
position: relative; | |
padding-bottom: 56.25%; | |
padding-top: 30px; | |
height: 0; | |
overflow: hidden; | |
} | |
.video-container iframe, | |
.video-container object, |
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
// image | |
case 'image': | |
$image = get_template_directory_uri().'/images/image.png'; | |
echo '<span class="custom_default_image" style="display:none">'.$image.'</span>'; | |
if ($meta) { $image = wp_get_attachment_image_src($meta, 'medium'); $image = $image[0]; } | |
echo '<input name="'.$field['id'].'" type="hidden" class="custom_upload_image" value="'.$meta.'" /> | |
<img src="'.$image.'" class="custom_preview_image" alt="" /><br /> | |
<input class="custom_upload_image_button button" type="button" value="Choose Image" /> | |
<small> <a href="#" class="custom_clear_image_button">Remove Image</a></small> |
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 | |
$query = new WP_Query(array('post_type' => 'custom-post-type')); | |
while ($query->have_posts()) : $query->the_post(); | |
$terms = get_the_terms( $post->id, 'custom-taxonomy' ); // registered custom taxonomy in custom post type | |
$term_description = array(); | |
$term_name = array(); | |
if($terms) | |
{ | |
foreach( $terms as $term ) { |