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 if(get_field('some-field', 'option') == 'on') { ?> | |
<?php } else { ?> | |
<?php } ?> |
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
function woocommerce_template_loop_product_thumbnail() { | |
$image_src = wp_get_attachment_image_src( get_post_thumbnail_id(),'full' ); | |
echo '<img data-original="' . $image_src[0] . '" width="400" height="900" class="attachment-shop_catalog wp-post-image lazy"><noscript><img src="' . $image_src[0] . '" width="400" height="900" class="attachment-shop_catalog wp-post-image lazy"></noscript>'; | |
} |
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
// Disable scroll zooming and bind back the click event | |
var onMapMouseleaveHandler = function (event) { | |
var that = $(this); | |
that.on('click', onMapClickHandler); | |
that.off('mouseleave', onMapMouseleaveHandler); | |
that.find('iframe').css("pointer-events", "none"); | |
// pointer-events needs to be added as a style on the iframe | |
} |
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
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteCond %{HTTP_REFERER} ^http://.*backgroundpictures\.net/ [NC,OR] | |
RewriteCond %{HTTP_REFERER} ^http://.*embedle\.com/ [NC,OR] | |
RewriteCond %{HTTP_REFERER} ^http://.*extener\.com/ [NC,OR] | |
RewriteCond %{HTTP_REFERER} ^http://.*fbfreegifts\.com/ [NC,OR] | |
RewriteCond %{HTTP_REFERER} ^http://.*feedouble\.com/ [NC,OR] | |
RewriteCond %{HTTP_REFERER} ^http://.*feedouble\.net/ [NC,OR] | |
RewriteCond %{HTTP_REFERER} ^http://.*joinandplay\.me/ [NC,OR] | |
RewriteCond %{HTTP_REFERER} ^http://.*joingames\.org/ [NC,OR] |
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
.hide-bullets { | |
list-style:none; | |
margin-left: -40px; | |
margin-top:20px; | |
} |
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 if (have_rows('ad_page')) { ?> | |
<?php while (have_rows('ad_page')) { | |
the_row(); | |
?> | |
<h2><?php the_sub_field('page_title'); ?></h2> | |
<h3><?php the_sub_field('page_description'); ?></h3> | |
<?php the_sub_field('page_content'); ?> | |
<?php $carousel = get_sub_field('do_you_want_a_carousel'); | |
//this section has been added if you want a carousel to display, and verbiage to display if none is set |
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 | |
$image = get_field('image'); // assigns the image field to the variable of $image | |
if( !empty($image) ){ ?> <!-- if the $image variable isn't empty, display the following: --> | |
<img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" /> <!--displays the URL for the image variable and also the alt tag which is entered in the WordPress media library--> | |
<?php }; ?> <!--ends the if statement --> |