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 | |
| function your_custom_function() { | |
| $output = '<p>' . get_field( 'acf_field_one' ) . '</p>'; | |
| $output .= '<p>' . get_field( 'acf_field_two' ) . '</p>'; | |
| return $output; | |
| }; |
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 | |
| /** | |
| * FluentCart Product Transaction Hash Lookup | |
| * | |
| * @param int $product_id The product ID to check for | |
| * @return string The transaction hash if product was just purchased | |
| */ | |
| function get_fluentcart_product_trx_hash( $product_id ) { | |
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
| jQuery(document).ready(function($) { | |
| if($('html').attr('ng-app') == 'CTFrontendBuilder') return; | |
| var $carouselElement = $("#%%ELEMENT_ID%%"); | |
| var carousel = $carouselElement.find($carouselElement.children().data("carousel")); | |
| if (carousel && carousel.length) { | |
| var $carouselInner = $carouselElement.find('.oxy-carousel-builder_inner'); |
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
| // Watch for class changes on html tag | |
| if (!window.xClassChangeObserverAdded) { | |
| window.xClassChangeObserverAdded = true; | |
| let previousTheme = document.documentElement.classList.contains('cf-theme-dark') ? 'dark' : 'light'; | |
| const observer = new MutationObserver((mutations) => { | |
| mutations.forEach((mutation) => { | |
| if (mutation.type === 'attributes' && mutation.attributeName === 'class') { | |
| const classList = document.documentElement.classList; |
NewerOlder