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 | |
/** | |
* Renders content before the blog starts. Using a reusable gutenberg block. | |
*/ | |
function generate_blog_intro() { | |
/** | |
* Make sure we are on the posts page. | |
*/ | |
if ( is_home() ) { | |
/** |
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
import sublime | |
import sublime_plugin | |
import webbrowser | |
class OpenUrlCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
s = self.view.sel()[0] | |
# Expand selection to possible URL |