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( $ ){ | |
| $(window).load(function() { | |
| var searchParams = new URLSearchParams(window.location.search); | |
| if(searchParams.has('sp_door_post')) { | |
| var sp_door_post = searchParams.get('sp_door_post'); | |
| var $door = $('.santapress-container').find('[data-postid='+sp_door_post+'] a.santapress-modal'); | |
| $door.click(); | |
| } | |
| }); | |
| }); |
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 | |
| public function getTemplatePart(string $file_path, ...$arguments) | |
| { | |
| $data = []; | |
| // Array containing possible paths to the template part | |
| $parts = (array) $file_path; | |
| if (is_array($arguments)) { |