This file contains 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 | |
//* Add offset for elementor anchor links with sticky site header | |
add_action( 'wp_footer', function() { | |
if ( ! defined( 'ELEMENTOR_VERSION' ) ) { | |
return; | |
} | |
?> | |
<script> | |
jQuery( function( $ ) { | |
// Add space for Elementor Menu Anchor link |
This file contains 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 | |
//Basic Wrapper Shortcode | |
function basic_wrapper_sc( $atts, $content = null) { | |
return '<div class="basic-wrapper-sc">' . $content . '</div>'; | |
} | |
add_shortcode('basic-wrapper-sc', 'basic_wrapper_sc'); | |
?> |
This file contains 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 | |
$secret = 'YOURSECRETKEY'; | |
$response=$_POST["g-recaptcha-response"]; | |
$verify=file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret={$secret}&response={$response}"); | |
$captcha_success=json_decode($verify); | |
?> |
This file contains 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
<IFModule mod_rewrite.c> | |
RewriteEngine on | |
Options +FollowSymlinks | |
RewriteBase / | |
RewriteCond %{HTTP_HOST} ORIGINALDOMAIN\.com | |
RewriteRule ^(.*) http://NEWDOMAIN.com/$1 [L,R=301] | |
</IfModule> |
This file contains 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 | |
//allow html in widget title | |
function md_change_widget_title($title) | |
{ | |
//convert square brackets to angle brackets | |
$title = str_replace('[', '<', $title); | |
$title = str_replace(']', '>', $title); | |
//strip tags other than the allowed set | |
$title = strip_tags($title, '<a><blink><br><span>'); |
This file contains 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 | |
//* Add this code to your plugin and it will register all templates defined in array on line 66 to your theme. | |
class PageTemplater { | |
/** | |
* A Unique Identifier | |
*/ | |
protected $plugin_slug; |
This file contains 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
/* | |
Tab Index Styles | |
---------------------------------------------------------------------------------------------------- */ | |
.tab-index-list { | |
margin-top: 0px; | |
} | |
.tab-index { | |
display: inline-block; |
This file contains 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
/** | |
* Copyright (c) 2007-2015 Ariel Flesler - aflesler<a>gmail<d>com | http://flesler.blogspot.com | |
* Licensed under MIT | |
* @author Ariel Flesler | |
* @version 1.4.0 | |
*/ | |
;(function(a){if(typeof define==='function'&&define.amd){define(['jquery'],a)}else{a(jQuery)}}(function($){var g=location.href.replace(/#.*/,'');var h=$.localScroll=function(a){$('body').localScroll(a)};h.defaults={duration:1000,axis:'y',event:'click',stop:true,target:window};$.fn.localScroll=function(a){a=$.extend({},h.defaults,a);if(a.hash&&location.hash){if(a.target)window.scrollTo(0,0);scroll(0,location,a)}return a.lazy?this.on(a.event,'a,area',function(e){if(filter.call(this)){scroll(e,this,a)}}):this.find('a,area').filter(filter).bind(a.event,function(e){scroll(e,this,a)}).end().end();function filter(){return!!this.href&&!!this.hash&&this.href.replace(this.hash,'')===g&&(!a.filter||$(this).is(a.filter))}};h.hash=function(){};function scroll(e,a,b){var c=a.hash.slice(1),elem=document.getElementById(c)||document.getElementsByName(c)[0];if( |
NewerOlder