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
function xTabsToggleAccordionItem(e,t,a=!0){let r=0,l=a?t.duration:0;!0!==t.closeSibling&&e.closest(".x-tabs_content")&&e.closest(".x-tabs_content").querySelectorAll(".x-tabs_toggle[aria-expanded=true]").forEach((t,a)=>{let r=null!=t.nextElementSibling?t.nextElementSibling:t.closest(".x-tabs_content-item").querySelector(".x-tabs_panel");t!=e&&(t.setAttribute("aria-expanded","false"),r.xslideUp(l))});let s=null!=e.nextElementSibling?e.nextElementSibling:!!e.closest(".x-tabs_content-item")&&!!e.closest(".x-tabs_content-item").querySelector(".x-tabs_panel")&&e.closest(".x-tabs_content-item").querySelector(".x-tabs_panel");e.parentElement&&e.parentElement.parentElement&&(r=[...e.parentElement.parentElement.children].indexOf(e.parentElement)),s&&("true"!==e.getAttribute("aria-expanded")?(e.setAttribute("aria-expanded","true"),s.xslideDown(l),window.dispatchEvent(new Event("resize")),s.querySelector(".x-read-more_content")&&(s.querySelector(".x-read-more_content").style.maxHeight="",setTimeout(()=>{"function"==type |
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 | |
/* allow iframe tags */ | |
add_filter( 'wp_kses_allowed_html', 'acf_add_allowed_iframe_tag', 10, 2 ); | |
function acf_add_allowed_iframe_tag( $tags, $context ) { | |
if ( $context === 'post' ) { | |
$tags['iframe'] = 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 ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
class X_Lottie extends \Bricks\Element { | |
// Element properties | |
public $category = 'extras'; | |
public $name = 'xlottie'; | |
public $icon = 'ti-image'; |
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
document.addEventListener("DOMContentLoaded", () => { | |
setTimeout(() => { | |
window.dispatchEvent(new Event('resize')) | |
}, 1000) | |
}); |
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
{echo:get_field('field_name')} |
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 | |
/* custom function for checking status of user in membership (add to code snippets or child theme) | |
* @return bool True if user has the status in that memberhip. | |
*/ | |
function rcp_member_status( $membership_level, $status ) { | |
$customer = rcp_get_customer_by_user_id( get_current_user_id() ); | |
if ($customer) { |
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(($) => { | |
const headingText = "New York Tipps - "; | |
tocbot.options.headingLabelCallback = (string) => { | |
return string.replace(headingText, ""); | |
} | |
tocbot.refresh() | |
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(($) => { | |
$('#%%ELEMENT_ID%% .oxy-dynamic-tabs_panel-group').on('keydown', (e) => { | |
if ( 65 === e.keyCode || 68 === e.keyCode ) { | |
e.stopPropagation() | |
} | |
}) | |
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($) { | |
$('.oxy-lightbox').on('extras_lightbox:close', () => { | |
$(this).find('presto-player').stop(); | |
}) | |
}) |
NewerOlder