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 | |
// Get the terms for the current post, using the Director taxonomy | |
$post_terms = get_the_terms( get_the_ID(), 'director' ); | |
// If there are terms | |
if ($post_terms) { | |
// Create an empty array to add links to | |
$terms_list = array(); |
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 | |
if( function_exists('oxygen_vsb_register_condition') && function_exists('pll_languages_list') ) { | |
$lang_list = pll_languages_list(); | |
oxygen_vsb_register_condition( | |
//Condition Name | |
'Locale', | |
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 | |
$terms = get_terms(['taxonomy' => 'product_cat', 'hide_empty' => false, 'parent' => 0]); | |
if ($terms) | |
{ ?> | |
<div id="-woo-product-categories-3-137" class="oxy-woo-product-categories oxy-woo-element"> | |
<div class="woocommerce columns-4"> | |
<ul class="products columns-4"> | |
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_check_published_posts($type) { | |
$post_id = get_the_ID(); | |
$acf_relationship_field = get_field('associations_formations_enseignants_et_evenements', $post_id); | |
if (empty($acf_relationship_field)) { | |
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
var ready = (callback) => { | |
if (document.readyState != 'loading') callback(); | |
else document.addEventListener('DOMContentLoaded', callback); | |
} | |
ready ( () => { | |
if (window.angular) { return; } | |
calcHeight(); | |
}) |
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
jQuery(document).ready( function() { | |
// If we're in the builder, return and don't execute. | |
if( window.angular ) { return; } | |
// Skip spans | |
$("span").parent().attr("toc-skip", "1"); | |
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
jQuery(document).ready(function() { | |
jQuery('a[href^="#"]').click(function() { | |
// smooth scroll | |
jQuery('html, body').animate({ | |
scrollTop: $($.attr(this, 'href')).offset().top | |
}, 500); | |
// close modal |
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 this to the CSS tab of the Code Block ABOVE the Repeater: | |
*/ | |
.thumbnail img { | |
box-sizing: border-box; | |
border: 1px solid #ddd; | |
padding: 2px; | |
margin: 0 1% 15px 0; | |
width: 32.6667%; |
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 | |
// Set your post type | |
$my_post_type = 'post'; | |
if( function_exists('oxygen_vsb_register_condition') ) { | |
global $oxy_condition_operators; | |
oxygen_vsb_register_condition('Contains Posts', array('options'=>array('true', 'false'), 'custom'=>false), array('=='), 'search_has_results_callback', 'Query Has Posts'); |
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
.category-post-container { | |
display: flex; | |
flex-direction: row; | |
flex-wrap: wrap; | |
} | |
.category-post { | |
width: 33.33%; | |
} |
NewerOlder