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
Set up the Single Event template: | |
- Go to Oxygen > Templates and create a template applied to Singular > mec-events | |
- Copy the JSON from "single-event.json" and paste it into the +JSON box on the template | |
- You can then edit the template in Oxygen and move the items around as needed | |
Set up the Events Archive template: | |
- Go to Oxygen > Templates and create a template applied to Archive > Post Types > Events | |
- Copy the JSON from "event-archive.json" and paste it into the +JSON box on the template |
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
/* these root values can be adjusted. You can then use them in Oxygen like this: var(-gap-xs) */ | |
:root { | |
/* Gap */ | |
--gap-xs: 4px; | |
--gap-s: 8px; | |
--gap-m: 16px; | |
--gap-l: 32px; | |
--gap-xl: 64px; | |
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%; |
NewerOlder