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
<script> | |
//Loop Posts Slider | |
//NOTE:IF using custom code in Elementor Settings, this needs to be wrapped in window.addEventListener('load', ()=>{}) to ensure all Elementor scripts are loaded | |
window.addEventListener('load',()=>{ | |
const sContainer = document.querySelector(".your-class-name .elementor-widget-container"); | |
const sWrapper = document.querySelector(".your-class-name .elementor-loop-container"); | |
let sSlide = document.querySelectorAll('.e-loop-item'); | |
sContainer.classList.add("swiper-container"); | |
sWrapper.classList.add("swiper-wrapper"); |
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 | |
use Elementor\Controls_Manager; | |
use Elementor\Element_Base; | |
use Elementor\Core\Files\CSS\Post; | |
use Elementor\Core\DynamicTags\Dynamic_CSS; | |
// Exit if accessed directly | |
if (!defined('ABSPATH')) { | |
exit; |
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 | |
// Flush Cache from Admin bar | |
function flush_memcache_button() { | |
global $wp_admin_bar; | |
// If User isnt even logged in or if admin bar is disabled | |
if ( !is_user_logged_in() || !is_admin_bar_showing() ) | |
return false; |
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
ssh -f -N -L LOCAL_PORT:FROM_HOST_TO_WHERE:REMOTE_PORT gateway.host | |
sshfs -p LOCAL_PORT user@localhost:/nfs_mount /local/mountpoint -o reconnect |