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 | |
| // place this to mu-plugins folder under wp-content | |
| // set WP_DEBUG to true in wp_config.php to see all other errors | |
| error_reporting(E_ALL & ~( E_NOTICE | E_USER_NOTICE | E_STRICT | E_DEPRECATED | E_USER_DEPRECATED | E_WARNING | E_CORE_WARNING | E_USER_WARNING | E_COMPILE_WARNING | E_PARSE )); |
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
| function isScrolledIntoView(elem) | |
| { | |
| var $elem = $(elem); | |
| var $window = $(window); | |
| var docViewTop = $window.scrollTop(); | |
| var docViewBottom = docViewTop + $window.height(); | |
| var elemTop = $elem.offset().top; | |
| var elemBottom = elemTop + $elem.height(); |
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 | |
| function nice_search_redirect() { | |
| global $wp_rewrite; | |
| if ( !isset( $wp_rewrite ) || !is_object( $wp_rewrite ) || !$wp_rewrite->using_permalinks() ) | |
| return; | |
| $search_base = $wp_rewrite->search_base; | |
| if ( is_search() && !is_admin() && strpos( $_SERVER['REQUEST_URI'], "/{$search_base}/" ) === false ) { | |
| wp_redirect( home_url( "/{$search_base}/" . urlencode( get_query_var( 's' ) ) ) ); | |
| 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
| function replaceElementTag(targetSelector, newTagString) { | |
| $(targetSelector).each(function(){ | |
| var newElem = $(newTagString, {html: $(this).html()}); | |
| $.each(this.attributes, function() { | |
| newElem.attr(this.name, this.value); | |
| }); | |
| $(this).replaceWith(newElem); | |
| }); | |
| } |
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
| .container.no-gutters { | |
| padding-left: 0; | |
| padding-right: 0; | |
| } | |
| .container.no-gutters .row { | |
| margin-right: 0; | |
| margin-left: 0; | |
| } |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <configuration> | |
| <system.webServer> | |
| <rewrite> | |
| <rules> | |
| <clear /> | |
| <rule name="TempRewriteToWeb" stopProcessing="false"> | |
| <match url="^(web/)?(.*)$" /> | |
| <action type="Rewrite" url="web/{R:2}" logRewrittenUrl="true" /> | |
| </rule> |
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
| .col-xs-five, | |
| .col-sm-five, | |
| .col-md-five, | |
| .col-lg-five { | |
| position: relative; | |
| min-height: 1px; | |
| padding-right: 10px; | |
| padding-left: 10px; | |
| } |
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
| SET DIRECTORY_NAME="C:\OldWindows" | |
| TAKEOWN /f %DIRECTORY_NAME% /r /d y | |
| ICACLS %DIRECTORY_NAME% /reset /T | |
| PAUSE |
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
| .text-xs-left { | |
| text-align: left !important; | |
| } | |
| .text-xs-right { | |
| text-align: right !important; | |
| } | |
| .text-xs-center { | |
| text-align: center !important; |