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 | |
$imagearray = wp_get_attachment_image_src( get_post_thumbnail_id(), 'medium' ); | |
?> | |
<a href="<?php the_permalink(); ?>"> | |
<img class="img-responsive" src="<?php echo $imagearray[0]; ?>"> | |
</a> |
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
<a href="<?php echo WC()->cart->get_cart_url(); ?>" class="mini-card-icon"> | |
<?php echo sprintf (_n( '%d', '%d', WC()->cart->cart_contents_count ), WC()->cart->cart_contents_count ); ?> | |
</a> |
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
.woocommerce #payment #place_order, .woocommerce-page #payment #place_order { | |
position:relative; | |
top:80px; | |
} | |
#payment .terms { | |
position:relative; | |
top:-40px; | |
} |
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
// settings page | |
$footerid = fw_get_db_settings_option('element'); | |
// get page option | |
$post_id = get_the_ID(); | |
$o = fw_get_db_post_option($post_id, 'opdrachtgever', $default_value = null); |
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
/** | |
* Auto Complete all WooCommerce orders. | |
* Add to theme functions.php file | |
*/ | |
add_action( 'woocommerce_thankyou', 'custom_woocommerce_auto_complete_order', 1, 1 ); | |
function custom_woocommerce_auto_complete_order( $order_id ) { | |
global $woocommerce; | |
if ( !$order_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
## EXPIRES CACHING ## | |
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresByType image/jpg "access 1 year" | |
ExpiresByType image/jpeg "access 1 year" | |
ExpiresByType image/gif "access 1 year" | |
ExpiresByType image/png "access 1 year" | |
ExpiresByType text/css "access 1 month" | |
ExpiresByType application/pdf "access 1 month" | |
ExpiresByType text/x-javascript "access 1 month" |
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
$value = $_POST['woocommerce-sort-by-columns']; | |
add_filter( 'loop_shop_per_page', create_function( '$cols', 'return ' . $value . ';' ), 20 ); | |
function woocommerce_catalog_page_ordering($value) { | |
$amounts = array( | |
20, | |
30, | |
80, | |
160, |
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
$buildwith = fw_ext_page_builder_is_builder_post( get_the_ID() ); | |
if($buildwith == 1){ | |
the_content(); | |
} |
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
# XML-RPC DDoS PROTECTION | |
<FilesMatch "^(xmlrpc\.php)"> | |
Order Deny,Allow | |
Deny from all | |
</FilesMatch> | |
# XML-RPC DDoS & TRACKBACK/PINGBACK PROTECTION | |
# Also block Pingbacks and Trackbacks | |
<FilesMatch "^(xmlrpc\.php|wp-trackback\.php)"> | |
Order Deny,Allow | |
Deny from all |
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
on_sent_ok: "location.replace('http://paintballgelderland.nl/boeking-dank-je-wel');" |