Created
December 27, 2020 09:44
-
-
Save KittenCodes/de38c21ee7b568cde8b35d956d0084cf to your computer and use it in GitHub Desktop.
Decoded PHP
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
Post: 13135 | |
<?php | |
wp_enqueue_style('splide-css'); | |
wp_enqueue_script('splide'); | |
?> | |
<?php | |
//echo "hello world!"; | |
?> | |
Post: 63 | |
<?php | |
$displayed_posts = []; // Create empty array for our post IDs | |
// For every post link found, add the ID of post to our array | |
add_filter('post_link', 'track_displayed_posts_main'); | |
function track_displayed_posts_main($url) { | |
global $displayed_posts; | |
$displayed_posts[] = get_the_ID(); // add ID of posts in loops | |
return $url; | |
} | |
// Filter the queries to exclude posts with these IDs | |
add_action('pre_get_posts','remove_already_displayed_posts_main'); | |
function remove_already_displayed_posts_main($query) { | |
global $displayed_posts; | |
$displayed_posts[] = get_the_ID(); // Include the current post ID also | |
$query->set('post__not_in', $displayed_posts); // Exclude this IDs from query | |
} | |
?> | |
<div class='oxy-post'> | |
<a class='oxy-post-image' href='<?php the_permalink(); ?>'> | |
<div class='oxy-post-image-fixed-ratio' style='background-image: url(<?php echo get_the_post_thumbnail_url(); ?>);'> | |
</div> | |
</a> | |
<div class='oxy-post-wrap'> | |
<a class='oxy-post-title' href='<?php the_permalink(); ?>'><?php the_title(); ?></a> | |
<div class='oxy-post-meta'> | |
<!--div class='oxy-post-meta-date oxy-post-meta-item'> | |
<?php the_time(get_option('date_format')); ?> | |
</div--> | |
<!--div class='oxy-post-meta-comments oxy-post-meta-item'> | |
<a href='<?php comments_link(); ?>'><?php comments_number(); ?></a> | |
</div--> | |
</div> | |
</div> | |
</div> | |
<div class='oxy-post'> | |
<a class='oxy-post-image' href='<?php the_permalink(); ?>'> | |
<div class='oxy-post-image-fixed-ratio' style='background-image: url(<?php echo get_the_post_thumbnail_url(); ?>);'> | |
</div> | |
</a> | |
<div class='oxy-post-wrap'> | |
<a class='oxy-post-title' href='<?php the_permalink(); ?>'><?php the_title(); ?></a> | |
<div class='oxy-post-meta'> | |
<!--div class='oxy-post-meta-date oxy-post-meta-item'> | |
<?php the_time(get_option('date_format')); ?> | |
</div--> | |
<!--div class='oxy-post-meta-comments oxy-post-meta-item'> | |
<a href='<?php comments_link(); ?>'><?php comments_number(); ?></a> | |
</div--> | |
</div> | |
</div> | |
</div> | |
<?php | |
remove_filter('post_link', 'track_displayed_posts'); | |
remove_action('pre_get_posts','remove_already_displayed_posts'); | |
?> | |
Post 13157 | |
<?php | |
$displayed_posts = []; // Create empty array for our post IDs | |
// For every post link found, add the ID of post to our array | |
add_filter('post_link', 'track_displayed_posts_home'); | |
function track_displayed_posts_home($url) { | |
global $displayed_posts; | |
$displayed_posts[] = get_the_ID(); // add ID of posts in loops | |
return $url; | |
} | |
// Filter the queries to exclude posts with these IDs | |
add_action('pre_get_posts','remove_already_displayed_posts_home'); | |
function remove_already_displayed_posts_home($query) { | |
global $displayed_posts; | |
$displayed_posts[] = get_the_ID(); // Include the current post ID also | |
$query->set('post__not_in', $displayed_posts); // Exclude this IDs from query | |
} | |
?> | |
<div class='oxy-post'> | |
<a class='oxy-post-image' href='<?php the_permalink(); ?>'> | |
<div class='oxy-post-image-fixed-ratio' style='background-image: url(<?php echo get_the_post_thumbnail_url(); ?>);'> | |
</div> | |
</a> | |
<div class='oxy-post-wrap'> | |
<a class='oxy-post-title' href='<?php the_permalink(); ?>'><?php the_title(); ?></a> | |
<div class='oxy-post-meta'> | |
<!--div class='oxy-post-meta-date oxy-post-meta-item'> | |
<?php the_time(get_option('date_format')); ?> | |
</div--> | |
<!--div class='oxy-post-meta-comments oxy-post-meta-item'> | |
<a href='<?php comments_link(); ?>'><?php comments_number(); ?></a> | |
</div--> | |
</div> | |
</div> | |
</div> | |
<div class='oxy-post'> | |
<a class='oxy-post-image' href='<?php the_permalink(); ?>'> | |
<div class='oxy-post-image-fixed-ratio' style='background-image: url(<?php echo get_the_post_thumbnail_url(); ?>);'> | |
</div> | |
</a> | |
<div class='oxy-post-wrap'> | |
<a class='oxy-post-title' href='<?php the_permalink(); ?>'><?php the_title(); ?></a> | |
<div class='oxy-post-meta'> | |
<!--div class='oxy-post-meta-date oxy-post-meta-item'> | |
<?php the_time(get_option('date_format')); ?> | |
</div--> | |
<!--div class='oxy-post-meta-comments oxy-post-meta-item'> | |
<a href='<?php comments_link(); ?>'><?php comments_number(); ?></a> | |
</div--> | |
</div> | |
</div> | |
</div> | |
<?php | |
remove_filter('post_link', 'track_displayed_posts'); | |
remove_action('pre_get_posts','remove_already_displayed_posts'); | |
?> | |
<?php | |
wp_enqueue_style('splide-css'); | |
wp_enqueue_script('splide'); | |
?> | |
Post 13511 | |
<?php | |
// echo "hello world!"; | |
?> | |
<?php echo do_shortcode ( '[add_to_cart id="' . get_the_ID() . '" show_price="false" style=""]' ); ?> | |
<?php echo do_shortcode ( '[add_to_cart id="' . get_the_ID() . '" show_price="false" style=""]' ); ?> | |
<?php echo do_shortcode ( '[add_to_cart id="' . get_the_ID() . '" show_price="false" style=""]' ); ?> | |
<?php echo do_shortcode ( '[add_to_cart id="' . get_the_ID() . '" show_price="false" style=""]' ); ?> | |
<?php | |
// echo "hello world!"; | |
?> | |
<?php | |
wp_enqueue_style('splide-css'); | |
wp_enqueue_script('splide'); | |
?> | |
<?php | |
add_theme_support( 'html5', array( 'search-form' ) ); | |
add_filter( 'get_search_form', 'lit_search_form_placeholder_text' ); | |
function lit_search_form_placeholder_text( $html ) { | |
$html = str_replace( 'placeholder="Search ', 'placeholder="Search something', $html ); | |
return $html; | |
} | |
?> | |
<div class="payment-methods text-align-left"> <svg class="payment-icon" viewBox="0 0 38 24" xmlns="http://www.w3.org/2000/svg" role="img" width="38" height="24" aria-labelledby="pi-visa"><title id="pi-visa">Visa</title><path opacity=".07" d="M35 0H3C1.3 0 0 1.3 0 3v18c0 1.7 1.4 3 3 3h32c1.7 0 3-1.3 3-3V3c0-1.7-1.4-3-3-3z"></path><path fill="#fff" d="M35 1c1.1 0 2 .9 2 2v18c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h32"></path><path d="M28.3 10.1H28c-.4 1-.7 1.5-1 3h1.9c-.3-1.5-.3-2.2-.6-3zm2.9 5.9h-1.7c-.1 0-.1 0-.2-.1l-.2-.9-.1-.2h-2.4c-.1 0-.2 0-.2.2l-.3.9c0 .1-.1.1-.1.1h-2.1l.2-.5L27 8.7c0-.5.3-.7.8-.7h1.5c.1 0 .2 0 .2.2l1.4 6.5c.1.4.2.7.2 1.1.1.1.1.1.1.2zm-13.4-.3l.4-1.8c.1 0 .2.1.2.1.7.3 1.4.5 2.1.4.2 0 .5-.1.7-.2.5-.2.5-.7.1-1.1-.2-.2-.5-.3-.8-.5-.4-.2-.8-.4-1.1-.7-1.2-1-.8-2.4-.1-3.1.6-.4.9-.8 1.7-.8 1.2 0 2.5 0 3.1.2h.1c-.1.6-.2 1.1-.4 1.7-.5-.2-1-.4-1.5-.4-.3 0-.6 0-.9.1-.2 0-.3.1-.4.2-.2.2-.2.5 0 .7l.5.4c.4.2.8.4 1.1.6.5.3 1 .8 1.1 1.4.2.9-.1 1.7-.9 2.3-.5.4-.7.6-1.4.6-1.4 0-2.5.1-3.4-.2-.1.2-.1.2-.2.1zm-3.5.3c.1-.7.1-.7.2-1 .5-2.2 1-4.5 1.4-6.7.1-.2.1-.3.3-.3H18c-.2 1.2-.4 2.1-.7 3.2-.3 1.5-.6 3-1 4.5 0 .2-.1.2-.3.2M5 8.2c0-.1.2-.2.3-.2h3.4c.5 0 .9.3 1 .8l.9 4.4c0 .1 0 .1.1.2 0-.1.1-.1.1-.1l2.1-5.1c-.1-.1 0-.2.1-.2h2.1c0 .1 0 .1-.1.2l-3.1 7.3c-.1.2-.1.3-.2.4-.1.1-.3 0-.5 0H9.7c-.1 0-.2 0-.2-.2L7.9 9.5c-.2-.2-.5-.5-.9-.6-.6-.3-1.7-.5-1.9-.5L5 8.2z" fill="#142688"></path></svg> <svg class="payment-icon" viewBox="0 0 38 24" xmlns="http://www.w3.org/2000/svg" role="img" width="38" height="24" aria-labelledby="pi-master"><title id="pi-master">Mastercard</title><path opacity=".07" d="M35 0H3C1.3 0 0 1.3 0 3v18c0 1.7 1.4 3 3 3h32c1.7 0 3-1.3 3-3V3c0-1.7-1.4-3-3-3z"></path><path fill="#fff" d="M35 1c1.1 0 2 .9 2 2v18c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h32"></path><circle fill="#EB001B" cx="15" cy="12" r="7"></circle><circle fill="#F79E1B" cx="23" cy="12" r="7"></circle><path fill="#FF5F00" d="M22 12c0-2.4-1.2-4.5-3-5.7-1.8 1.3-3 3.4-3 5.7s1.2 4.5 3 5.7c1.8-1.2 3-3.3 3-5.7z"></path></svg> <svg class="payment-icon" xmlns="http://www.w3.org/2000/svg" role="img" viewBox="0 0 38 24" width="38" height="24" aria-labelledby="pi-american_express"><title id="pi-american_express">American Express</title><g fill="none"><path fill="#000" d="M35,0 L3,0 C1.3,0 0,1.3 0,3 L0,21 C0,22.7 1.4,24 3,24 L35,24 C36.7,24 38,22.7 38,21 L38,3 C38,1.3 36.6,0 35,0 Z" opacity=".07"></path><path fill="#006FCF" d="M35,1 C36.1,1 37,1.9 37,3 L37,21 C37,22.1 36.1,23 35,23 L3,23 C1.9,23 1,22.1 1,21 L1,3 C1,1.9 1.9,1 3,1 L35,1"></path><path fill="#FFF" d="M8.971,10.268 L9.745,12.144 L8.203,12.144 L8.971,10.268 Z M25.046,10.346 L22.069,10.346 L22.069,11.173 L24.998,11.173 L24.998,12.412 L22.075,12.412 L22.075,13.334 L25.052,13.334 L25.052,14.073 L27.129,11.828 L25.052,9.488 L25.046,10.346 L25.046,10.346 Z M10.983,8.006 L14.978,8.006 L15.865,9.941 L16.687,8 L27.057,8 L28.135,9.19 L29.25,8 L34.013,8 L30.494,11.852 L33.977,15.68 L29.143,15.68 L28.065,14.49 L26.94,15.68 L10.03,15.68 L9.536,14.49 L8.406,14.49 L7.911,15.68 L4,15.68 L7.286,8 L10.716,8 L10.983,8.006 Z M19.646,9.084 L17.407,9.084 L15.907,12.62 L14.282,9.084 L12.06,9.084 L12.06,13.894 L10,9.084 L8.007,9.084 L5.625,14.596 L7.18,14.596 L7.674,13.406 L10.27,13.406 L10.764,14.596 L13.484,14.596 L13.484,10.661 L15.235,14.602 L16.425,14.602 L18.165,10.673 L18.165,14.603 L19.623,14.603 L19.647,9.083 L19.646,9.084 Z M28.986,11.852 L31.517,9.084 L29.695,9.084 L28.094,10.81 L26.546,9.084 L20.652,9.084 L20.652,14.602 L26.462,14.602 L28.076,12.864 L29.624,14.602 L31.499,14.602 L28.987,11.852 L28.986,11.852 Z"></path></g></svg> <svg class="payment-icon" viewBox="0 0 38 24" xmlns="http://www.w3.org/2000/svg" width="38" height="24" role="img" aria-labelledby="pi-paypal"><title id="pi-paypal">PayPal</title><path opacity=".07" d="M35 0H3C1.3 0 0 1.3 0 3v18c0 1.7 1.4 3 3 3h32c1.7 0 3-1.3 3-3V3c0-1.7-1.4-3-3-3z"></path><path fill="#fff" d="M35 1c1.1 0 2 .9 2 2v18c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h32"></path><path fill="#003087" d="M23.9 8.3c.2-1 0-1.7-.6-2.3-.6-.7-1.7-1-3.1-1h-4.1c-.3 0-.5.2-.6.5L14 15.6c0 .2.1.4.3.4H17l.4-3.4 1.8-2.2 4.7-2.1z"></path><path fill="#3086C8" d="M23.9 8.3l-.2.2c-.5 2.8-2.2 3.8-4.6 3.8H18c-.3 0-.5.2-.6.5l-.6 3.9-.2 1c0 .2.1.4.3.4H19c.3 0 .5-.2.5-.4v-.1l.4-2.4v-.1c0-.2.3-.4.5-.4h.3c2.1 0 3.7-.8 4.1-3.2.2-1 .1-1.8-.4-2.4-.1-.5-.3-.7-.5-.8z"></path><path fill="#012169" d="M23.3 8.1c-.1-.1-.2-.1-.3-.1-.1 0-.2 0-.3-.1-.3-.1-.7-.1-1.1-.1h-3c-.1 0-.2 0-.2.1-.2.1-.3.2-.3.4l-.7 4.4v.1c0-.3.3-.5.6-.5h1.3c2.5 0 4.1-1 4.6-3.8v-.2c-.1-.1-.3-.2-.5-.2h-.1z"></path></svg> <svg class="payment-icon" viewBox="0 0 38 24" xmlns="http://www.w3.org/2000/svg" role="img" width="38" height="24" aria-labelledby="pi-diners_club"><title id="pi-diners_club">Diners Club</title><path opacity=".07" d="M35 0H3C1.3 0 0 1.3 0 3v18c0 1.7 1.4 3 3 3h32c1.7 0 3-1.3 3-3V3c0-1.7-1.4-3-3-3z"></path><path fill="#fff" d="M35 1c1.1 0 2 .9 2 2v18c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h32"></path><path d="M12 12v3.7c0 .3-.2.3-.5.2-1.9-.8-3-3.3-2.3-5.4.4-1.1 1.2-2 2.3-2.4.4-.2.5-.1.5.2V12zm2 0V8.3c0-.3 0-.3.3-.2 2.1.8 3.2 3.3 2.4 5.4-.4 1.1-1.2 2-2.3 2.4-.4.2-.4.1-.4-.2V12zm7.2-7H13c3.8 0 6.8 3.1 6.8 7s-3 7-6.8 7h8.2c3.8 0 6.8-3.1 6.8-7s-3-7-6.8-7z" fill="#3086C8"></path></svg> <svg class="payment-icon" xmlns="http://www.w3.org/2000/svg" role="img" viewBox="0 0 38 24" width="38" height="24" aria-labelledby="pi-discover"><title id="pi-discover">Discover</title><path d="M35 0H3C1.3 0 0 1.3 0 3v18c0 1.7 1.4 3 3 3h32c1.7 0 3-1.3 3-3V3c0-1.7-1.4-3-3-3z" fill="#000" opacity=".07"></path><path d="M35 1c1.1 0 2 .9 2 2v18c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h32" fill="#FFF"></path><path d="M37 16.95V21c0 1.1-.9 2-2 2H23.228c7.896-1.815 12.043-4.601 13.772-6.05z" fill="#EDA024"></path><path fill="#494949" d="M9 11h20v2H9z"></path><path d="M22 12c0 1.7-1.3 3-3 3s-3-1.4-3-3 1.4-3 3-3c1.7 0 3 1.3 3 3z" fill="#EDA024"></path></svg></div> | |
Post: 13512 | |
<?php | |
// echo "hello world!"; | |
?> | |
<?php echo do_shortcode ( '[add_to_cart id="' . get_the_ID() . '" show_price="false" style=""]' ); ?> | |
<?php echo do_shortcode ( '[add_to_cart id="' . get_the_ID() . '" show_price="false" style=""]' ); ?> | |
<?php echo do_shortcode ( '[add_to_cart id="' . get_the_ID() . '" show_price="false" style=""]' ); ?> | |
<?php echo do_shortcode ( '[add_to_cart id="' . get_the_ID() . '" show_price="false" style=""]' ); ?> | |
Post: 13521 | |
<?php | |
wp_enqueue_style('splide-css'); | |
wp_enqueue_script('splide'); | |
?> | |
<?php | |
add_theme_support( 'html5', array( 'search-form' ) ); | |
add_filter( 'get_search_form', 'lit_search_form_placeholder_text' ); | |
function lit_search_form_placeholder_text( $html ) { | |
$html = str_replace( 'placeholder="Search ', 'placeholder="Search something', $html ); | |
return $html; | |
} | |
?> | |
<?php | |
// echo "hello world!"; | |
?> | |
<?php echo do_shortcode ( '[add_to_cart id="' . get_the_ID() . '" show_price="false" style=""]' ); ?> | |
Post: 6975 | |
<?php | |
// echo "hello world!"; | |
?> | |
<?php echo do_shortcode ( '[add_to_cart id="' . get_the_ID() . '" show_price="false" style=""]' ); ?> | |
<?php echo do_shortcode ( '[add_to_cart id="' . get_the_ID() . '" show_price="false" style=""]' ); ?> | |
<?php echo do_shortcode ( '[add_to_cart id="' . get_the_ID() . '" show_price="false" style=""]' ); ?> | |
<?php echo do_shortcode ( '[add_to_cart id="' . get_the_ID() . '" show_price="false" style=""]' ); ?> | |
<?php | |
// echo "hello world!"; | |
?> | |
<?php | |
wp_enqueue_style('splide-css'); | |
wp_enqueue_script('splide'); | |
?> | |
<?php | |
add_theme_support( 'html5', array( 'search-form' ) ); | |
add_filter( 'get_search_form', 'lit_search_form_placeholder_text' ); | |
function lit_search_form_placeholder_text( $html ) { | |
$html = str_replace( 'placeholder="Search ', 'placeholder="Search something', $html ); | |
return $html; | |
} | |
?> | |
<div class="payment-methods text-align-left"> <svg class="payment-icon" viewBox="0 0 38 24" xmlns="http://www.w3.org/2000/svg" role="img" width="38" height="24" aria-labelledby="pi-visa"><title id="pi-visa">Visa</title><path opacity=".07" d="M35 0H3C1.3 0 0 1.3 0 3v18c0 1.7 1.4 3 3 3h32c1.7 0 3-1.3 3-3V3c0-1.7-1.4-3-3-3z"></path><path fill="#fff" d="M35 1c1.1 0 2 .9 2 2v18c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h32"></path><path d="M28.3 10.1H28c-.4 1-.7 1.5-1 3h1.9c-.3-1.5-.3-2.2-.6-3zm2.9 5.9h-1.7c-.1 0-.1 0-.2-.1l-.2-.9-.1-.2h-2.4c-.1 0-.2 0-.2.2l-.3.9c0 .1-.1.1-.1.1h-2.1l.2-.5L27 8.7c0-.5.3-.7.8-.7h1.5c.1 0 .2 0 .2.2l1.4 6.5c.1.4.2.7.2 1.1.1.1.1.1.1.2zm-13.4-.3l.4-1.8c.1 0 .2.1.2.1.7.3 1.4.5 2.1.4.2 0 .5-.1.7-.2.5-.2.5-.7.1-1.1-.2-.2-.5-.3-.8-.5-.4-.2-.8-.4-1.1-.7-1.2-1-.8-2.4-.1-3.1.6-.4.9-.8 1.7-.8 1.2 0 2.5 0 3.1.2h.1c-.1.6-.2 1.1-.4 1.7-.5-.2-1-.4-1.5-.4-.3 0-.6 0-.9.1-.2 0-.3.1-.4.2-.2.2-.2.5 0 .7l.5.4c.4.2.8.4 1.1.6.5.3 1 .8 1.1 1.4.2.9-.1 1.7-.9 2.3-.5.4-.7.6-1.4.6-1.4 0-2.5.1-3.4-.2-.1.2-.1.2-.2.1zm-3.5.3c.1-.7.1-.7.2-1 .5-2.2 1-4.5 1.4-6.7.1-.2.1-.3.3-.3H18c-.2 1.2-.4 2.1-.7 3.2-.3 1.5-.6 3-1 4.5 0 .2-.1.2-.3.2M5 8.2c0-.1.2-.2.3-.2h3.4c.5 0 .9.3 1 .8l.9 4.4c0 .1 0 .1.1.2 0-.1.1-.1.1-.1l2.1-5.1c-.1-.1 0-.2.1-.2h2.1c0 .1 0 .1-.1.2l-3.1 7.3c-.1.2-.1.3-.2.4-.1.1-.3 0-.5 0H9.7c-.1 0-.2 0-.2-.2L7.9 9.5c-.2-.2-.5-.5-.9-.6-.6-.3-1.7-.5-1.9-.5L5 8.2z" fill="#142688"></path></svg> <svg class="payment-icon" viewBox="0 0 38 24" xmlns="http://www.w3.org/2000/svg" role="img" width="38" height="24" aria-labelledby="pi-master"><title id="pi-master">Mastercard</title><path opacity=".07" d="M35 0H3C1.3 0 0 1.3 0 3v18c0 1.7 1.4 3 3 3h32c1.7 0 3-1.3 3-3V3c0-1.7-1.4-3-3-3z"></path><path fill="#fff" d="M35 1c1.1 0 2 .9 2 2v18c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h32"></path><circle fill="#EB001B" cx="15" cy="12" r="7"></circle><circle fill="#F79E1B" cx="23" cy="12" r="7"></circle><path fill="#FF5F00" d="M22 12c0-2.4-1.2-4.5-3-5.7-1.8 1.3-3 3.4-3 5.7s1.2 4.5 3 5.7c1.8-1.2 3-3.3 3-5.7z"></path></svg> <svg class="payment-icon" xmlns="http://www.w3.org/2000/svg" role="img" viewBox="0 0 38 24" width="38" height="24" aria-labelledby="pi-american_express"><title id="pi-american_express">American Express</title><g fill="none"><path fill="#000" d="M35,0 L3,0 C1.3,0 0,1.3 0,3 L0,21 C0,22.7 1.4,24 3,24 L35,24 C36.7,24 38,22.7 38,21 L38,3 C38,1.3 36.6,0 35,0 Z" opacity=".07"></path><path fill="#006FCF" d="M35,1 C36.1,1 37,1.9 37,3 L37,21 C37,22.1 36.1,23 35,23 L3,23 C1.9,23 1,22.1 1,21 L1,3 C1,1.9 1.9,1 3,1 L35,1"></path><path fill="#FFF" d="M8.971,10.268 L9.745,12.144 L8.203,12.144 L8.971,10.268 Z M25.046,10.346 L22.069,10.346 L22.069,11.173 L24.998,11.173 L24.998,12.412 L22.075,12.412 L22.075,13.334 L25.052,13.334 L25.052,14.073 L27.129,11.828 L25.052,9.488 L25.046,10.346 L25.046,10.346 Z M10.983,8.006 L14.978,8.006 L15.865,9.941 L16.687,8 L27.057,8 L28.135,9.19 L29.25,8 L34.013,8 L30.494,11.852 L33.977,15.68 L29.143,15.68 L28.065,14.49 L26.94,15.68 L10.03,15.68 L9.536,14.49 L8.406,14.49 L7.911,15.68 L4,15.68 L7.286,8 L10.716,8 L10.983,8.006 Z M19.646,9.084 L17.407,9.084 L15.907,12.62 L14.282,9.084 L12.06,9.084 L12.06,13.894 L10,9.084 L8.007,9.084 L5.625,14.596 L7.18,14.596 L7.674,13.406 L10.27,13.406 L10.764,14.596 L13.484,14.596 L13.484,10.661 L15.235,14.602 L16.425,14.602 L18.165,10.673 L18.165,14.603 L19.623,14.603 L19.647,9.083 L19.646,9.084 Z M28.986,11.852 L31.517,9.084 L29.695,9.084 L28.094,10.81 L26.546,9.084 L20.652,9.084 L20.652,14.602 L26.462,14.602 L28.076,12.864 L29.624,14.602 L31.499,14.602 L28.987,11.852 L28.986,11.852 Z"></path></g></svg> <svg class="payment-icon" viewBox="0 0 38 24" xmlns="http://www.w3.org/2000/svg" width="38" height="24" role="img" aria-labelledby="pi-paypal"><title id="pi-paypal">PayPal</title><path opacity=".07" d="M35 0H3C1.3 0 0 1.3 0 3v18c0 1.7 1.4 3 3 3h32c1.7 0 3-1.3 3-3V3c0-1.7-1.4-3-3-3z"></path><path fill="#fff" d="M35 1c1.1 0 2 .9 2 2v18c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h32"></path><path fill="#003087" d="M23.9 8.3c.2-1 0-1.7-.6-2.3-.6-.7-1.7-1-3.1-1h-4.1c-.3 0-.5.2-.6.5L14 15.6c0 .2.1.4.3.4H17l.4-3.4 1.8-2.2 4.7-2.1z"></path><path fill="#3086C8" d="M23.9 8.3l-.2.2c-.5 2.8-2.2 3.8-4.6 3.8H18c-.3 0-.5.2-.6.5l-.6 3.9-.2 1c0 .2.1.4.3.4H19c.3 0 .5-.2.5-.4v-.1l.4-2.4v-.1c0-.2.3-.4.5-.4h.3c2.1 0 3.7-.8 4.1-3.2.2-1 .1-1.8-.4-2.4-.1-.5-.3-.7-.5-.8z"></path><path fill="#012169" d="M23.3 8.1c-.1-.1-.2-.1-.3-.1-.1 0-.2 0-.3-.1-.3-.1-.7-.1-1.1-.1h-3c-.1 0-.2 0-.2.1-.2.1-.3.2-.3.4l-.7 4.4v.1c0-.3.3-.5.6-.5h1.3c2.5 0 4.1-1 4.6-3.8v-.2c-.1-.1-.3-.2-.5-.2h-.1z"></path></svg> <svg class="payment-icon" viewBox="0 0 38 24" xmlns="http://www.w3.org/2000/svg" role="img" width="38" height="24" aria-labelledby="pi-diners_club"><title id="pi-diners_club">Diners Club</title><path opacity=".07" d="M35 0H3C1.3 0 0 1.3 0 3v18c0 1.7 1.4 3 3 3h32c1.7 0 3-1.3 3-3V3c0-1.7-1.4-3-3-3z"></path><path fill="#fff" d="M35 1c1.1 0 2 .9 2 2v18c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h32"></path><path d="M12 12v3.7c0 .3-.2.3-.5.2-1.9-.8-3-3.3-2.3-5.4.4-1.1 1.2-2 2.3-2.4.4-.2.5-.1.5.2V12zm2 0V8.3c0-.3 0-.3.3-.2 2.1.8 3.2 3.3 2.4 5.4-.4 1.1-1.2 2-2.3 2.4-.4.2-.4.1-.4-.2V12zm7.2-7H13c3.8 0 6.8 3.1 6.8 7s-3 7-6.8 7h8.2c3.8 0 6.8-3.1 6.8-7s-3-7-6.8-7z" fill="#3086C8"></path></svg> <svg class="payment-icon" xmlns="http://www.w3.org/2000/svg" role="img" viewBox="0 0 38 24" width="38" height="24" aria-labelledby="pi-discover"><title id="pi-discover">Discover</title><path d="M35 0H3C1.3 0 0 1.3 0 3v18c0 1.7 1.4 3 3 3h32c1.7 0 3-1.3 3-3V3c0-1.7-1.4-3-3-3z" fill="#000" opacity=".07"></path><path d="M35 1c1.1 0 2 .9 2 2v18c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h32" fill="#FFF"></path><path d="M37 16.95V21c0 1.1-.9 2-2 2H23.228c7.896-1.815 12.043-4.601 13.772-6.05z" fill="#EDA024"></path><path fill="#494949" d="M9 11h20v2H9z"></path><path d="M22 12c0 1.7-1.3 3-3 3s-3-1.4-3-3 1.4-3 3-3c1.7 0 3 1.3 3 3z" fill="#EDA024"></path></svg></div> | |
Post: 13527 | |
<!--?php | |
echo "hello world!"; | |
?--> | |
<!--?php | |
echo "hello world!"; | |
?--> | |
<script type="text/javascript" src="https://platform-api.sharethis.com/js/sharethis.js#property=5f469c4c8137b900121ca10b&product=inline-share-buttons" async="async"></script> | |
<div class="sharethis-inline-share-buttons"></div> | |
<?php | |
global $product; | |
if ( ! is_object( $product)) $product = wc_get_product( get_the_ID() ); | |
$attachment_ids = array(); | |
$product_image = $product->get_image_id(); | |
$gallery_images = $product->get_gallery_image_ids(); | |
if (!empty($product_image)) | |
{ | |
$attachment_ids[] = $product_image; | |
} | |
if (!empty($gallery_images)) | |
{ | |
$attachment_ids = array_merge($attachment_ids, $gallery_images); | |
} | |
echo '<div id="primary-slider" class="splide">'; | |
echo '<div class="splide__track">'; | |
echo '<ul class="splide__list">'; | |
foreach ($attachment_ids as $attachment_id) | |
{ | |
echo '<li class="splide__slide">'; | |
echo wp_get_attachment_image($attachment_id, 'full'); | |
echo '</li>'; | |
} | |
echo '</ul>'; | |
echo '</div>'; | |
echo '</div>'; | |
echo '<div id="secondary-slider" class="splide">'; | |
echo '<div class="splide__track">'; | |
echo '<ul class="splide__list">'; | |
if (!empty($gallery_images)) { | |
foreach ($attachment_ids as $attachment_id) | |
{ | |
echo '<li class="splide__slide">'; | |
echo wp_get_attachment_image($attachment_id, 'thumbnail'); | |
echo '</li>'; | |
} | |
} | |
echo '</ul>'; | |
echo '</div>'; | |
echo '</div>'; | |
?> | |
<div class="payment-methods text-align-left"> <svg class="payment-icon" viewBox="0 0 38 24" xmlns="http://www.w3.org/2000/svg" role="img" width="38" height="24" aria-labelledby="pi-visa"><title id="pi-visa">Visa</title><path opacity=".07" d="M35 0H3C1.3 0 0 1.3 0 3v18c0 1.7 1.4 3 3 3h32c1.7 0 3-1.3 3-3V3c0-1.7-1.4-3-3-3z"></path><path fill="#fff" d="M35 1c1.1 0 2 .9 2 2v18c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h32"></path><path d="M28.3 10.1H28c-.4 1-.7 1.5-1 3h1.9c-.3-1.5-.3-2.2-.6-3zm2.9 5.9h-1.7c-.1 0-.1 0-.2-.1l-.2-.9-.1-.2h-2.4c-.1 0-.2 0-.2.2l-.3.9c0 .1-.1.1-.1.1h-2.1l.2-.5L27 8.7c0-.5.3-.7.8-.7h1.5c.1 0 .2 0 .2.2l1.4 6.5c.1.4.2.7.2 1.1.1.1.1.1.1.2zm-13.4-.3l.4-1.8c.1 0 .2.1.2.1.7.3 1.4.5 2.1.4.2 0 .5-.1.7-.2.5-.2.5-.7.1-1.1-.2-.2-.5-.3-.8-.5-.4-.2-.8-.4-1.1-.7-1.2-1-.8-2.4-.1-3.1.6-.4.9-.8 1.7-.8 1.2 0 2.5 0 3.1.2h.1c-.1.6-.2 1.1-.4 1.7-.5-.2-1-.4-1.5-.4-.3 0-.6 0-.9.1-.2 0-.3.1-.4.2-.2.2-.2.5 0 .7l.5.4c.4.2.8.4 1.1.6.5.3 1 .8 1.1 1.4.2.9-.1 1.7-.9 2.3-.5.4-.7.6-1.4.6-1.4 0-2.5.1-3.4-.2-.1.2-.1.2-.2.1zm-3.5.3c.1-.7.1-.7.2-1 .5-2.2 1-4.5 1.4-6.7.1-.2.1-.3.3-.3H18c-.2 1.2-.4 2.1-.7 3.2-.3 1.5-.6 3-1 4.5 0 .2-.1.2-.3.2M5 8.2c0-.1.2-.2.3-.2h3.4c.5 0 .9.3 1 .8l.9 4.4c0 .1 0 .1.1.2 0-.1.1-.1.1-.1l2.1-5.1c-.1-.1 0-.2.1-.2h2.1c0 .1 0 .1-.1.2l-3.1 7.3c-.1.2-.1.3-.2.4-.1.1-.3 0-.5 0H9.7c-.1 0-.2 0-.2-.2L7.9 9.5c-.2-.2-.5-.5-.9-.6-.6-.3-1.7-.5-1.9-.5L5 8.2z" fill="#142688"></path></svg> <svg class="payment-icon" viewBox="0 0 38 24" xmlns="http://www.w3.org/2000/svg" role="img" width="38" height="24" aria-labelledby="pi-master"><title id="pi-master">Mastercard</title><path opacity=".07" d="M35 0H3C1.3 0 0 1.3 0 3v18c0 1.7 1.4 3 3 3h32c1.7 0 3-1.3 3-3V3c0-1.7-1.4-3-3-3z"></path><path fill="#fff" d="M35 1c1.1 0 2 .9 2 2v18c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h32"></path><circle fill="#EB001B" cx="15" cy="12" r="7"></circle><circle fill="#F79E1B" cx="23" cy="12" r="7"></circle><path fill="#FF5F00" d="M22 12c0-2.4-1.2-4.5-3-5.7-1.8 1.3-3 3.4-3 5.7s1.2 4.5 3 5.7c1.8-1.2 3-3.3 3-5.7z"></path></svg> <svg class="payment-icon" xmlns="http://www.w3.org/2000/svg" role="img" viewBox="0 0 38 24" width="38" height="24" aria-labelledby="pi-american_express"><title id="pi-american_express">American Express</title><g fill="none"><path fill="#000" d="M35,0 L3,0 C1.3,0 0,1.3 0,3 L0,21 C0,22.7 1.4,24 3,24 L35,24 C36.7,24 38,22.7 38,21 L38,3 C38,1.3 36.6,0 35,0 Z" opacity=".07"></path><path fill="#006FCF" d="M35,1 C36.1,1 37,1.9 37,3 L37,21 C37,22.1 36.1,23 35,23 L3,23 C1.9,23 1,22.1 1,21 L1,3 C1,1.9 1.9,1 3,1 L35,1"></path><path fill="#FFF" d="M8.971,10.268 L9.745,12.144 L8.203,12.144 L8.971,10.268 Z M25.046,10.346 L22.069,10.346 L22.069,11.173 L24.998,11.173 L24.998,12.412 L22.075,12.412 L22.075,13.334 L25.052,13.334 L25.052,14.073 L27.129,11.828 L25.052,9.488 L25.046,10.346 L25.046,10.346 Z M10.983,8.006 L14.978,8.006 L15.865,9.941 L16.687,8 L27.057,8 L28.135,9.19 L29.25,8 L34.013,8 L30.494,11.852 L33.977,15.68 L29.143,15.68 L28.065,14.49 L26.94,15.68 L10.03,15.68 L9.536,14.49 L8.406,14.49 L7.911,15.68 L4,15.68 L7.286,8 L10.716,8 L10.983,8.006 Z M19.646,9.084 L17.407,9.084 L15.907,12.62 L14.282,9.084 L12.06,9.084 L12.06,13.894 L10,9.084 L8.007,9.084 L5.625,14.596 L7.18,14.596 L7.674,13.406 L10.27,13.406 L10.764,14.596 L13.484,14.596 L13.484,10.661 L15.235,14.602 L16.425,14.602 L18.165,10.673 L18.165,14.603 L19.623,14.603 L19.647,9.083 L19.646,9.084 Z M28.986,11.852 L31.517,9.084 L29.695,9.084 L28.094,10.81 L26.546,9.084 L20.652,9.084 L20.652,14.602 L26.462,14.602 L28.076,12.864 L29.624,14.602 L31.499,14.602 L28.987,11.852 L28.986,11.852 Z"></path></g></svg> <svg class="payment-icon" viewBox="0 0 38 24" xmlns="http://www.w3.org/2000/svg" width="38" height="24" role="img" aria-labelledby="pi-paypal"><title id="pi-paypal">PayPal</title><path opacity=".07" d="M35 0H3C1.3 0 0 1.3 0 3v18c0 1.7 1.4 3 3 3h32c1.7 0 3-1.3 3-3V3c0-1.7-1.4-3-3-3z"></path><path fill="#fff" d="M35 1c1.1 0 2 .9 2 2v18c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h32"></path><path fill="#003087" d="M23.9 8.3c.2-1 0-1.7-.6-2.3-.6-.7-1.7-1-3.1-1h-4.1c-.3 0-.5.2-.6.5L14 15.6c0 .2.1.4.3.4H17l.4-3.4 1.8-2.2 4.7-2.1z"></path><path fill="#3086C8" d="M23.9 8.3l-.2.2c-.5 2.8-2.2 3.8-4.6 3.8H18c-.3 0-.5.2-.6.5l-.6 3.9-.2 1c0 .2.1.4.3.4H19c.3 0 .5-.2.5-.4v-.1l.4-2.4v-.1c0-.2.3-.4.5-.4h.3c2.1 0 3.7-.8 4.1-3.2.2-1 .1-1.8-.4-2.4-.1-.5-.3-.7-.5-.8z"></path><path fill="#012169" d="M23.3 8.1c-.1-.1-.2-.1-.3-.1-.1 0-.2 0-.3-.1-.3-.1-.7-.1-1.1-.1h-3c-.1 0-.2 0-.2.1-.2.1-.3.2-.3.4l-.7 4.4v.1c0-.3.3-.5.6-.5h1.3c2.5 0 4.1-1 4.6-3.8v-.2c-.1-.1-.3-.2-.5-.2h-.1z"></path></svg> <svg class="payment-icon" viewBox="0 0 38 24" xmlns="http://www.w3.org/2000/svg" role="img" width="38" height="24" aria-labelledby="pi-diners_club"><title id="pi-diners_club">Diners Club</title><path opacity=".07" d="M35 0H3C1.3 0 0 1.3 0 3v18c0 1.7 1.4 3 3 3h32c1.7 0 3-1.3 3-3V3c0-1.7-1.4-3-3-3z"></path><path fill="#fff" d="M35 1c1.1 0 2 .9 2 2v18c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h32"></path><path d="M12 12v3.7c0 .3-.2.3-.5.2-1.9-.8-3-3.3-2.3-5.4.4-1.1 1.2-2 2.3-2.4.4-.2.5-.1.5.2V12zm2 0V8.3c0-.3 0-.3.3-.2 2.1.8 3.2 3.3 2.4 5.4-.4 1.1-1.2 2-2.3 2.4-.4.2-.4.1-.4-.2V12zm7.2-7H13c3.8 0 6.8 3.1 6.8 7s-3 7-6.8 7h8.2c3.8 0 6.8-3.1 6.8-7s-3-7-6.8-7z" fill="#3086C8"></path></svg> <svg class="payment-icon" xmlns="http://www.w3.org/2000/svg" role="img" viewBox="0 0 38 24" width="38" height="24" aria-labelledby="pi-discover"><title id="pi-discover">Discover</title><path d="M35 0H3C1.3 0 0 1.3 0 3v18c0 1.7 1.4 3 3 3h32c1.7 0 3-1.3 3-3V3c0-1.7-1.4-3-3-3z" fill="#000" opacity=".07"></path><path d="M35 1c1.1 0 2 .9 2 2v18c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h32" fill="#FFF"></path><path d="M37 16.95V21c0 1.1-.9 2-2 2H23.228c7.896-1.815 12.043-4.601 13.772-6.05z" fill="#EDA024"></path><path fill="#494949" d="M9 11h20v2H9z"></path><path d="M22 12c0 1.7-1.3 3-3 3s-3-1.4-3-3 1.4-3 3-3c1.7 0 3 1.3 3 3z" fill="#EDA024"></path></svg></div> | |
<?php | |
function dynamic_category_query( $query ) { | |
global $post; | |
if ( $query->query['post_type'][0] == 'product' ) { | |
$cat = wp_get_post_terms( $post->ID , 'product_cat', array( 'fields' => 'slugs' ) )[0]; | |
$query->set( 'tax_query', array( | |
'relation' => 'AND', | |
array( | |
'taxonomy' => 'product_cat', | |
'field' => 'slug', | |
'terms' => $cat, | |
'include_children' => false | |
) | |
) ); | |
$query->set( 'orderby', 'rand' ); | |
$query->set( 'post__not_in', array($post->ID) ); | |
$query->set( 'no_found_rows', true ); | |
} | |
} | |
add_action( 'pre_get_posts', 'dynamic_category_query' ); | |
?> | |
<?php echo do_shortcode ( '[add_to_cart id="' . get_the_ID() . '" show_price="false" style=""]' ); ?> | |
<?php | |
remove_action( 'pre_get_posts', 'dynamic_category_query' ); | |
?> | |
Post: 13128 | |
<!-- CSS FOR STYLING THE FORM - USING PLUGIN FLUENT FORM --!> | |
Post: 13670 | |
<header class="header"> | |
<h1>Image Cards</h1> | |
<p>A collection of image cards with different hover effects. <br/> | |
Inspired by <a href="https://littlesnippets.net/">littlesnippets.net</a></p> | |
</header> | |
<section class="section-1"> | |
<div class="heading"> | |
<h1>Image Card Hover Effect #01</h1> | |
</div> | |
<div class="row"> | |
<figure class="figure"> | |
<img src="https://images.pexels.com/photos/2825578/pexels-photo-2825578.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940"> | |
<figcaption> | |
<h3>Buy Now</h3> | |
</figcaption> | |
<a href="#"></a> | |
</figure> | |
<figure class="figure"> | |
<img src="https://images.pexels.com/photos/1918246/pexels-photo-1918246.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940"> | |
<figcaption> | |
<h3>Read More</h3> | |
</figcaption> | |
<a href="#"></a> | |
</figure> | |
<figure class="figure"> | |
<img src="https://images.pexels.com/photos/1758144/pexels-photo-1758144.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940"> | |
<figcaption> | |
<h3>Join Us</h3> | |
</figcaption> | |
<a href="#"></a> | |
</figure> | |
</div> | |
</section> | |
<section class="section-2"> | |
<div class="heading"> | |
<h1>Image Card Hover Effect #02</h1> | |
</div> | |
<figure class="figure"> | |
<img src="https://images.pexels.com/photos/1510610/pexels-photo-1510610.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940"> | |
<figcaption> | |
<h3 class="title">Tokyo</h3> | |
<h3 class="hover">Read More</h3> | |
</figcaption> | |
<a href="#"></a> | |
</figure> | |
<figure class="figure"> | |
<img src="https://images.pexels.com/photos/1738994/pexels-photo-1738994.jpeg?auto=compress&cs=tinysrgb&dpr=3&h=750&w=1260"> | |
<figcaption> | |
<h3 class="title">Hong Kong</h3> | |
<h3 class="hover">Read More</h3> | |
</figcaption> | |
<a href="#"></a> | |
</figure> | |
<figure class="figure"> | |
<img src="https://images.pexels.com/photos/3031750/pexels-photo-3031750.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940"> | |
<figcaption> | |
<h3 class="title">Seoul</h3> | |
<h3 class="hover">Read More</h3> | |
</figcaption> | |
<a href="#"></a> | |
</figure> | |
</section> | |
<section class="section-3"> | |
<div class="heading"> | |
<h1>Image Card Hover Effect #03</h1> | |
</div> | |
<div class="row"> | |
<figure class="figure"> | |
<img src="https://images.pexels.com/photos/87477/winter-snow-tree-den-87477.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940"> | |
<figcaption> | |
<h3 class="title1">The</h3> | |
<h3 class="title2">Winter</h3> | |
<h3 class="title3">Collection</h3> | |
</figcaption> | |
<a href="#"></a> | |
</figure> | |
<figure class="figure"> | |
<img src="https://images.pexels.com/photos/1477199/pexels-photo-1477199.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940"> | |
<figcaption> | |
<h3 class="title1">The</h3> | |
<h3 class="title2">Autumn</h3> | |
<h3 class="title3">Collection</h3> | |
</figcaption> | |
<a href="#"></a> | |
</figure> | |
<figure class="figure"> | |
<img src="https://images.pexels.com/photos/2187322/pexels-photo-2187322.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940"> | |
<figcaption> | |
<h3 class="title1">The</h3> | |
<h3 class="title2">Spring</h3> | |
<h3 class="title3">Collection</h3> | |
</figcaption> | |
<a href="#"></a> | |
</figure> | |
</div> | |
</section> | |
<section class="section-4"> | |
<div class="heading"> | |
<h1>Image Card Hover Effect #04</h1> | |
</div> | |
<div class="row"> | |
<figure class="figure"> | |
<img src="https://images.pexels.com/photos/1955134/pexels-photo-1955134.jpeg?auto=compress&cs=tinysrgb&dpr=3&h=750&w=1260" alt=""> | |
<div> | |
<h3>Empty <span>Highway</span></h3> | |
<a href="#"></a> | |
</div> | |
</figure> | |
<figure class="figure"> | |
<img src="https://images.pexels.com/photos/1707820/pexels-photo-1707820.jpeg?auto=compress&cs=tinysrgb&dpr=3&h=750&w=1260" alt=""> | |
<div> | |
<h3>City <span>Roadway</span></h3> | |
<a href="#"></a> | |
</div> | |
</figure> | |
<figure class="figure"> | |
<img src="https://images.pexels.com/photos/775199/pexels-photo-775199.jpeg?auto=compress&cs=tinysrgb&dpr=3&h=750&w=1260" alt=""> | |
<div> | |
<h3>Forest <span>Road</span></h3> | |
<a href="#"></a> | |
</div> | |
</figure> | |
</div> | |
</section> | |
<section class="section-5"> | |
<div class="heading"> | |
<h1>Image Card Hover Effect #05</h1> | |
</div> | |
<div class="row"> | |
<figure class="figure"> | |
<img src="https://images.pexels.com/photos/1545743/pexels-photo-1545743.jpeg?auto=compress&cs=tinysrgb&dpr=3&h=750&w=1260" alt=""> | |
<figcaption> | |
<div class="icon"> | |
<span><ion-icon name="images"></ion-icon></span> | |
</div> | |
<h2>German <span>Collection</span></h2> | |
<div class="caption"> | |
<p>View the collection</p> | |
</div> | |
</figcaption> | |
<a href="#"></a> | |
</figure> | |
<figure class="figure"> | |
<img src="https://images.pexels.com/photos/1164778/pexels-photo-1164778.jpeg?auto=compress&cs=tinysrgb&dpr=3&h=750&w=1260" alt=""> | |
<figcaption> | |
<div class="icon"> | |
<span><ion-icon name="images"></ion-icon></span> | |
</div> | |
<h2>Japanese <span>Collection</span></h2> | |
<div class="caption"> | |
<p>View the collection</p> | |
</div> | |
</figcaption> | |
<a href="#"></a> | |
</figure> | |
<figure class="figure"> | |
<img src="https://images.pexels.com/photos/103287/pexels-photo-103287.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940" alt=""> | |
<figcaption> | |
<div class="icon"> | |
<span><ion-icon name="images"></ion-icon></span> | |
</div> | |
<h2>American <span>Collection</span></h2> | |
<div class="caption"> | |
<p>View the collection</p> | |
</div> | |
</figcaption> | |
<a href="#"></a> | |
</figure> | |
</div> | |
</section> | |
<section class="section-6"> | |
<div class="heading"> | |
<h1>Image Card Hover Effect #06</h1> | |
</div> | |
<div class="row"> | |
<figure class="figure"> | |
<img src="https://images.pexels.com/photos/2098427/pexels-photo-2098427.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940"> | |
<figcaption> | |
<h3>Isaac Asimov</h3> | |
<p>"But suppose we were to teach creationism. What would be the content of the teaching? Merely that a creatore formed the universe and all specias of life ready-made? Nothing? No details?"</p> | |
</figcaption> | |
<a href="#"></a> | |
</figure> | |
<figure class="figure"> | |
<img src="https://images.pexels.com/photos/1624438/pexels-photo-1624438.jpeg?auto=compress&cs=tinysrgb&dpr=3&h=750&w=1260"> | |
<figcaption> | |
<h3>Philip K. Dick</h3> | |
<p>"I, for one, bet on science as helping us. I have yet to see how it fundamentally endagers us, even with the H-bomb lurking about. Science has given us more lives than it has taken; we must remember that"</p> | |
</figcaption> | |
<a href="#"></a> | |
</figure> | |
<figure class="figure"> | |
<img src="https://images.pexels.com/photos/1499627/pexels-photo-1499627.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940"> | |
<figcaption> | |
<h3>Jules Verne</h3> | |
<p>"The moon, by her comparative proximity, and the constantly varying appearances produced by her several phases, has always occupied a considerable share of the attention of the inhabitants of Earth."</p> | |
</figcaption> | |
<a href="#"></a> | |
</figure> | |
</div> | |
</section> | |
<footer class="footer"> | |
<p>Codepen by Johan Grobler - October 12, 2019</p> | |
</footer> | |
<script src="https://unpkg.com/[email protected]/dist/ionicons.js"></script> | |
Post: 13672 | |
<?php | |
add_action( 'pre_get_posts', 'wpdd_exclude_current_post_and_same_cats' ); | |
/** | |
* Exclude current post. | |
* | |
* @param $query \WP_Query | |
*/ | |
function wpdd_exclude_current_post_and_same_cats( $query ) { | |
// remove the filter; the query is done. | |
remove_action( 'pre_get_posts', 'wpdd_exclude_current_post_and_same_cats' ); | |
// retrieve post categories. | |
$categories = get_the_category(); | |
// array of category IDs. | |
$post_categories = wp_list_pluck( $categories, 'term_id' ); | |
// comma separated category IDs. | |
$post_categories = implode( ',', $post_categories ); | |
$query->set( 'post__not_in', array( get_the_ID() ) ); | |
$query->set( 'cat', $post_categories ); | |
} | |
?> | |
<!--?php | |
echo "hello world!"; | |
?--!> | |
<?php | |
if (have_comments()) { | |
?> | |
<ol class="comments-list"> | |
<?php | |
wp_list_comments( | |
array( | |
'style' => 'ol', | |
'format' => 'html5', | |
'avatar_size' => '100' | |
) | |
); | |
?> | |
</ol> | |
<div class="comments-navigation"> | |
<div class='previous-comments-link'><?php previous_comments_link(); ?></div> | |
<div class='next-comments-link'><?php next_comments_link(); ?></div> | |
</div> | |
<?php | |
} | |
?> | |
Post: 13674 | |
<?php | |
// echo "hello world!"; | |
?> | |
<?php | |
add_filter( 'get_the_archive_title', 'my_theme_archive_title' ); | |
/** | |
* Remove archive labels. | |
* | |
* @param string $title Current archive title to be displayed. | |
* @return string Modified archive title to be displayed. | |
*/ | |
function my_theme_archive_title( $title ) { | |
if ( is_category() ) { | |
$title = single_cat_title( '', false ); | |
} elseif ( is_tag() ) { | |
$title = single_tag_title( '', false ); | |
} elseif ( is_author() ) { | |
$title = '<span class="vcard">' . get_the_author() . '</span>'; | |
} elseif ( is_post_type_archive() ) { | |
$title = post_type_archive_title( '', false ); | |
} elseif ( is_tax() ) { | |
$title = single_term_title( '', false ); | |
} | |
return $title; | |
} | |
?> | |
<?php | |
// sorting | |
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 ); | |
add_action( 'woo_custom_catalog_ordering', 'woocommerce_catalog_ordering', 30 ); | |
?> | |
<?php do_action( 'woo_custom_catalog_ordering' ); ?> | |
Post: 13682 | |
<p><?php | |
global $wp_query; | |
$posts_found = $wp_query->found_posts; | |
echo $posts_found; ?> posts found in: <?php | |
echo esc_html( get_search_query( false) ); | |
?></p> | |
Post: 13688 | |
<?php | |
$displayed_posts = []; // Create empty array for our post IDs | |
// For every post link found, add the ID of post to our array | |
add_filter('post_link', 'track_displayed_posts_main_blog'); | |
function track_displayed_posts_main_blog($url) { | |
global $displayed_posts; | |
$displayed_posts[] = get_the_ID(); // add ID of posts in loops | |
return $url; | |
} | |
// Filter the queries to exclude posts with these IDs | |
add_action('pre_get_posts','remove_already_displayed_posts_main_blog'); | |
function remove_already_displayed_posts_main_blog($query) { | |
global $displayed_posts; | |
$displayed_posts[] = get_the_ID(); // Include the current post ID also | |
$query->set('post__not_in', $displayed_posts); // Exclude this IDs from query | |
} | |
?> | |
<div class='oxy-post'> | |
<a class='oxy-post-image' href='<?php the_permalink(); ?>'> | |
<div class='oxy-post-image-fixed-ratio' style='background-image: url(<?php echo get_the_post_thumbnail_url(); ?>);'> | |
</div> | |
</a> | |
<div class='oxy-post-wrap'> | |
<a class='oxy-post-title' href='<?php the_permalink(); ?>'><?php the_title(); ?></a> | |
<div class='oxy-post-meta'> | |
<!--div class='oxy-post-meta-date oxy-post-meta-item'> | |
<?php the_time(get_option('date_format')); ?> | |
</div--> | |
<!--div class='oxy-post-meta-comments oxy-post-meta-item'> | |
<a href='<?php comments_link(); ?>'><?php comments_number(); ?></a> | |
</div--> | |
</div> | |
</div> | |
</div> | |
<div class='oxy-post'> | |
<a class='oxy-post-image' href='<?php the_permalink(); ?>'> | |
<div class='oxy-post-image-fixed-ratio' style='background-image: url(<?php echo get_the_post_thumbnail_url(); ?>);'> | |
</div> | |
</a> | |
<div class='oxy-post-wrap'> | |
<a class='oxy-post-title' href='<?php the_permalink(); ?>'><?php the_title(); ?></a> | |
<div class='oxy-post-meta'> | |
<!--div class='oxy-post-meta-date oxy-post-meta-item'> | |
<?php the_time(get_option('date_format')); ?> | |
</div--> | |
<!--div class='oxy-post-meta-comments oxy-post-meta-item'> | |
<a href='<?php comments_link(); ?>'><?php comments_number(); ?></a> | |
</div--> | |
</div> | |
</div> | |
</div> | |
Post: 13697 | |
<?php | |
$displayed_posts = []; // Create empty array for our post IDs | |
// For every post link found, add the ID of post to our array | |
add_filter('post_link', 'track_displayed_posts_blog_sidebar'); | |
function track_displayed_posts_blog_sidebar($url) { | |
global $displayed_posts; | |
$displayed_posts[] = get_the_ID(); // add ID of posts in loops | |
return $url; | |
} | |
// Filter the queries to exclude posts with these IDs | |
add_action('pre_get_posts','remove_already_displayed_posts_blog_sidebar'); | |
function remove_already_displayed_posts_blog_sidebar($query) { | |
global $displayed_posts; | |
$displayed_posts[] = get_the_ID(); // Include the current post ID also | |
$query->set('post__not_in', $displayed_posts); // Exclude this IDs from query | |
} | |
?> | |
<div class='oxy-post'> | |
<a class='oxy-post-image' href='<?php the_permalink(); ?>'> | |
<div class='oxy-post-image-fixed-ratio' style='background-image: url(<?php echo get_the_post_thumbnail_url(); ?>);'> | |
</div> | |
</a> | |
<div class='oxy-post-wrap'> | |
<a class='oxy-post-title' href='<?php the_permalink(); ?>'><?php the_title(); ?></a> | |
<div class='oxy-post-meta'> | |
<!--div class='oxy-post-meta-date oxy-post-meta-item'> | |
<?php the_time(get_option('date_format')); ?> | |
</div--> | |
<!--div class='oxy-post-meta-comments oxy-post-meta-item'> | |
<a href='<?php comments_link(); ?>'><?php comments_number(); ?></a> | |
</div--> | |
</div> | |
</div> | |
</div> | |
<div class='oxy-post'> | |
<a class='oxy-post-image' href='<?php the_permalink(); ?>'> | |
<div class='oxy-post-image-fixed-ratio' style='background-image: url(<?php echo get_the_post_thumbnail_url(); ?>);'> | |
</div> | |
</a> | |
<div class='oxy-post-wrap'> | |
<a class='oxy-post-title' href='<?php the_permalink(); ?>'><?php the_title(); ?></a> | |
<div class='oxy-post-meta'> | |
<!--div class='oxy-post-meta-date oxy-post-meta-item'> | |
<?php the_time(get_option('date_format')); ?> | |
</div--> | |
<!--div class='oxy-post-meta-comments oxy-post-meta-item'> | |
<a href='<?php comments_link(); ?>'><?php comments_number(); ?></a> | |
</div--> | |
</div> | |
</div> | |
</div> | |
Post: 13701 | |
<?php | |
remove_filter('post_link', 'track_displayed_posts'); | |
remove_action('pre_get_posts','remove_already_displayed_posts'); | |
?> | |
Post: 52 | |
<?php | |
?> | |
Post: 13707 | |
<?php | |
?> | |
Post: 55 | |
<!-- CSS FOR STYLING THE FORM - USING PLUGIN FLUENT FORM --!> | |
Post: 8504 | |
<?php | |
// echo "hello world!"; | |
?> | |
Post: 13727 | |
<?php | |
?> | |
Post: 13728 | |
<?php | |
?> | |
Post: 5076 | |
<?php | |
// echo "hello world!"; | |
?> | |
Post: 13925 | |
<?php | |
wp_enqueue_style('splide-css'); | |
wp_enqueue_script('splide'); | |
?> | |
Post: 14004 | |
<!-- Calendly inline widget begin --> | |
<div class="calendly-inline-widget" data-url="https://calendly.com/millennialindebt/personalfinancecoaching?hide_event_type_details=1&primary_color=f3cd05" style="min-width:320px;height:630px;"></div> | |
<script type="text/javascript" src="https://assets.calendly.com/assets/external/widget.js"></script> | |
<!-- Calendly inline widget end --> | |
Post: 14030 | |
<?php | |
//echo "hello world!"; | |
?> | |
Post: 14082 | |
<!-- Calendly inline widget begin --> | |
<div class="calendly-inline-widget" data-url="https://calendly.com/millennialindebt/personalfinancecoaching?hide_event_type_details=1&primary_color=f3cd05" style="min-width:320px;height:630px;"></div> | |
<script type="text/javascript" src="https://assets.calendly.com/assets/external/widget.js"></script> | |
<!-- Calendly inline widget end --> | |
Post: 14087 | |
<?php | |
$displayed_posts = []; // Create empty array for our post IDs | |
// For every post link found, add the ID of post to our array | |
add_filter('post_link', 'track_displayed_posts'); | |
function track_displayed_posts($url) { | |
global $displayed_posts; | |
$displayed_posts[] = get_the_ID(); // add ID of posts in loops | |
return $url; | |
} | |
// Filter the queries to exclude posts with these IDs | |
add_action('pre_get_posts','remove_already_displayed_posts'); | |
function remove_already_displayed_posts($query) { | |
global $displayed_posts; | |
$displayed_posts[] = get_the_ID(); // Include the current post ID also | |
$query->set('post__not_in', $displayed_posts); // Exclude this IDs from query | |
} | |
?> | |
<div class='oxy-post'> | |
<a class='oxy-post-image' href='<?php the_permalink(); ?>'> | |
<div class='oxy-post-image-fixed-ratio' style='background-image: url(<?php echo get_the_post_thumbnail_url(); ?>);'> | |
</div> | |
</a> | |
<div class='oxy-post-wrap'> | |
<a class='oxy-post-title' href='<?php the_permalink(); ?>'><?php the_title(); ?></a> | |
<div class='oxy-post-meta'> | |
<!--div class='oxy-post-meta-date oxy-post-meta-item'> | |
<?php the_time(get_option('date_format')); ?> | |
</div--> | |
<!--div class='oxy-post-meta-comments oxy-post-meta-item'> | |
<a href='<?php comments_link(); ?>'><?php comments_number(); ?></a> | |
</div--> | |
</div> | |
</div> | |
</div> | |
<div class='oxy-post'> | |
<a class='oxy-post-image' href='<?php the_permalink(); ?>'> | |
<div class='oxy-post-image-fixed-ratio' style='background-image: url(<?php echo get_the_post_thumbnail_url(); ?>);'> | |
</div> | |
</a> | |
<div class='oxy-post-wrap'> | |
<a class='oxy-post-title' href='<?php the_permalink(); ?>'><?php the_title(); ?></a> | |
<div class='oxy-post-meta'> | |
<!--div class='oxy-post-meta-date oxy-post-meta-item'> | |
<?php the_time(get_option('date_format')); ?> | |
</div--> | |
<!--div class='oxy-post-meta-comments oxy-post-meta-item'> | |
<a href='<?php comments_link(); ?>'><?php comments_number(); ?></a> | |
</div--> | |
</div> | |
</div> | |
</div> | |
Post: 14092 | |
<?php | |
$displayed_posts = []; // Create empty array for our post IDs | |
// For every post link found, add the ID of post to our array | |
add_filter('post_link', 'track_displayed_posts_money_hub'); | |
function track_displayed_posts_money_hub($url) { | |
global $displayed_posts; | |
$displayed_posts[] = get_the_ID(); // add ID of posts in loops | |
return $url; | |
} | |
// Filter the queries to exclude posts with these IDs | |
add_action('pre_get_posts','remove_already_displayed_posts_money_hub'); | |
function remove_already_displayed_posts_money_hub($query) { | |
global $displayed_posts; | |
$displayed_posts[] = get_the_ID(); // Include the current post ID also | |
$query->set('post__not_in', $displayed_posts); // Exclude this IDs from query | |
} | |
?> | |
<div class='oxy-post'> | |
<a class='oxy-post-image' href='<?php the_permalink(); ?>'> | |
<div class='oxy-post-image-fixed-ratio' style='background-image: url(<?php echo get_the_post_thumbnail_url(); ?>);'> | |
</div> | |
</a> | |
<div class='oxy-post-wrap'> | |
<a class='oxy-post-title' href='<?php the_permalink(); ?>'><?php the_title(); ?></a> | |
<div class='oxy-post-meta'> | |
<!--div class='oxy-post-meta-date oxy-post-meta-item'> | |
<?php the_time(get_option('date_format')); ?> | |
</div--> | |
<!--div class='oxy-post-meta-comments oxy-post-meta-item'> | |
<a href='<?php comments_link(); ?>'><?php comments_number(); ?></a> | |
</div--> | |
</div> | |
</div> | |
</div> | |
<div class='oxy-post'> | |
<a class='oxy-post-image' href='<?php the_permalink(); ?>'> | |
<div class='oxy-post-image-fixed-ratio' style='background-image: url(<?php echo get_the_post_thumbnail_url(); ?>);'> | |
</div> | |
</a> | |
<div class='oxy-post-wrap'> | |
<a class='oxy-post-title' href='<?php the_permalink(); ?>'><?php the_title(); ?></a> | |
<div class='oxy-post-meta'> | |
<!--div class='oxy-post-meta-date oxy-post-meta-item'> | |
<?php the_time(get_option('date_format')); ?> | |
</div--> | |
<!--div class='oxy-post-meta-comments oxy-post-meta-item'> | |
<a href='<?php comments_link(); ?>'><?php comments_number(); ?></a> | |
</div--> | |
</div> | |
</div> | |
</div> | |
Post: 14098 | |
<?php | |
$displayed_posts = []; // Create empty array for our post IDs | |
// For every post link found, add the ID of post to our array | |
add_filter('post_link', 'track_displayed_posts_archive'); | |
function track_displayed_posts_archive($url) { | |
global $displayed_posts; | |
$displayed_posts[] = get_the_ID(); // add ID of posts in loops | |
return $url; | |
} | |
// Filter the queries to exclude posts with these IDs | |
add_action('pre_get_posts','remove_already_displayed_posts_archive'); | |
function remove_already_displayed_posts_archive($query) { | |
global $displayed_posts; | |
$displayed_posts[] = get_the_ID(); // Include the current post ID also | |
$query->set('post__not_in', $displayed_posts); // Exclude this IDs from query | |
} | |
?> | |
<?php | |
remove_filter('post_link', 'track_displayed_posts'); | |
remove_action('pre_get_posts','remove_already_displayed_posts'); | |
?> | |
<div class='oxy-post'> | |
<a class='oxy-post-image' href='<?php the_permalink(); ?>'> | |
<div class='oxy-post-image-fixed-ratio' style='background-image: url(<?php echo get_the_post_thumbnail_url(); ?>);'> | |
</div> | |
</a> | |
<div class='oxy-post-wrap'> | |
<a class='oxy-post-title' href='<?php the_permalink(); ?>'><?php the_title(); ?></a> | |
<div class='oxy-post-meta'> | |
<!--div class='oxy-post-meta-date oxy-post-meta-item'> | |
<?php the_time(get_option('date_format')); ?> | |
</div--> | |
<!--div class='oxy-post-meta-comments oxy-post-meta-item'> | |
<a href='<?php comments_link(); ?>'><?php comments_number(); ?></a> | |
</div--> | |
</div> | |
</div> | |
</div> | |
<div class='oxy-post'> | |
<a class='oxy-post-image' href='<?php the_permalink(); ?>'> | |
<div class='oxy-post-image-fixed-ratio' style='background-image: url(<?php echo get_the_post_thumbnail_url(); ?>);'> | |
</div> | |
</a> | |
<div class='oxy-post-wrap'> | |
<a class='oxy-post-title' href='<?php the_permalink(); ?>'><?php the_title(); ?></a> | |
<div class='oxy-post-meta'> | |
<!--div class='oxy-post-meta-date oxy-post-meta-item'> | |
<?php the_time(get_option('date_format')); ?> | |
</div--> | |
<!--div class='oxy-post-meta-comments oxy-post-meta-item'> | |
<a href='<?php comments_link(); ?>'><?php comments_number(); ?></a> | |
</div--> | |
</div> | |
</div> | |
</div> | |
Post: 14103 | |
<!--?php | |
echo "hello world!"; | |
?--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment