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 | |
| //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 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
| <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 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 | |
| $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 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 | |
| //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 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 | |
| //* 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 |
OlderNewer