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
| # https redirection | |
| RewriteEngine On | |
| RewriteCond %{HTTPS} !on | |
| RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L] | |
| # www to non-www | |
| RewriteEngine On | |
| RewriteCond %{HTTP_HOST} ^www\.(.+) | |
| RewriteRule ^(.*)$ https://%1%{REQUEST_URI} [R,L] |
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
| if (!window.debug){ | |
| if (!window.console) window.console = {}; | |
| var methods = ["log", "debug", "warn", "info"]; | |
| for (var i=0;i<methods.length;i++){ | |
| console[methods[i]] = function(){}; | |
| } |
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 | |
| /** | |
| * The LOCAL configuration. | |
| * | |
| * This file has the following configurations: MySQL settings. | |
| * | |
| * @package WordPress | |
| */ | |
| // ** MySQL Einstellungen - diese Angaben bekommst du von deinem Webhoster. ** // |
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
| var ReqAF = function($){ | |
| var reqAnimationFrame = function(){ | |
| // Detect request animation frame | |
| var reqAnimationFrame = window.requestAnimationFrame || | |
| window.webkitRequestAnimationFrame || | |
| window.mozRequestAnimationFrame || | |
| window.msRequestAnimationFrame || |
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
| // prevent ugly stuttering when user starts to scroll during animation | |
| $(window).bind("scroll mousedown DOMMouseScroll mousewheel keyup", function(e){ | |
| if ( e.which > 0 || e.type === "mousedown" || e.type === "mousewheel"){ | |
| $('html, body').stop(); | |
| } | |
| }); |
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
| // used by encode_emails | |
| // available in wp-core | |
| function antispambot( $email_address, $hex_encoding = 0 ) { | |
| $email_no_spam_address = ''; | |
| for ( $i = 0; $i < strlen( $email_address ); $i++ ) { | |
| $j = rand( 0, 1 + $hex_encoding ); | |
| if ( $j == 0 ) { | |
| $email_no_spam_address .= '&#' . ord( $email_address[$i] ) . ';'; |
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
| if (!function_exists('write_log')) { | |
| function write_log ( $log ) { | |
| if ( true === WP_DEBUG ) { | |
| if ( is_array( $log ) || is_object( $log ) ) { | |
| error_log( print_r( $log, true ) ); | |
| } else { | |
| error_log( $log ); | |
| } | |
| } | |
| } |
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
| // no updates for this plugin due to its hacked version | |
| add_filter('site_transient_update_plugins', 'dd_remove_update_nag'); | |
| function dd_remove_update_nag($value) { | |
| unset($value->response[ plugin_basename(__FILE__) ]); | |
| return $value; | |
| } |