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 | |
/** | |
* Plugin Name: Elementor Linkable Columns | |
* Description: Elementor extension that enables linkable columns. | |
* Version: 1.0.1 | |
* Author: Rayken | |
* Text Domain: elementor-linkable-columns | |
*/ | |
/* |
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 | |
/* highlight keywords */ | |
function my_highlight_search( $text ) { | |
if( is_search() ){ | |
$keys = implode( '|', explode( ' ', get_search_query() ) ); | |
$text = preg_replace( '/(' . preg_quote ( $keys ) .')/iu', '<span class="search-term">\0</span>', $text ); | |
} | |
return $text; | |
} |
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 | |
// Example: [zippy url="http://www5.zippyshare.com/v/13844744/file.html/"] | |
function zippyshare_shortcode( $atts ) { | |
extract( shortcode_atts( array( | |
'url' => null, | |
'textColor' => '#ffffff', | |
'bgColor' => '#000000', | |
'playColor' => '#f58300', | |
'waveColor' => '#ffffff', | |
'borderColor' => '#000000', |
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 | |
/** | |
* WordPress Console Debug | |
* | |
* Debug PHP using the JavaScript console. | |
* Enable this plugin and view your console for more information on how to use it. | |
* | |
* @package WP_console_debug | |
* @author DRSK | |
* @license WTFPL |