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() { | |
| $("#findstore").bind("keydown", function(e) { | |
| if (e.keyCode == 13) { | |
| return false; | |
| } | |
| }); | |
| }); |
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
| foreach($array as $key => $item){ | |
| echo $key . ":" . $item . "<br>"; | |
| } |
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
| #301 Redirects for .htaccess | |
| #Redirect a single page: | |
| Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
| #Redirect an entire site: | |
| Redirect 301 / http://www.domain.com/ | |
| #Redirect an entire site to a sub folder | |
| Redirect 301 / http://www.domain.com/subfolder/ |
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://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/ | |
| in the wpml settings insert parameters |
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 images = ['<?=implode("', '", $cachedImages)?>']; |
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 preloadImages(array) { | |
| if (!preloadImages.list) { | |
| preloadImages.list = []; | |
| } | |
| var list = preloadImages.list; | |
| for (var i = 0; i < array.length; i++) { | |
| var img = new Image(); | |
| img.onload = function() { | |
| var index = list.indexOf(this); | |
| if (index !== -1) { |
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
| # This tag ensures the rewrite module is loaded | |
| <IfModule mod_rewrite.c> | |
| # enable the rewrite engine | |
| RewriteEngine On | |
| # Set your root directory | |
| RewriteBase / | |
| # remove the .html extension | |
| RewriteCond %{THE_REQUEST} ^GET\ (.*)\.html\ HTTP | |
| RewriteRule (.*)\.html$ $1 [R=301] |
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
| <!DOCTYPE html> | |
| <html lang="en-US"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| <meta name="robots" content="noodp, noydir" /> | |
| <link rel="dns-prefetch" href="//cdnjs.cloudflare.com"> | |
| <link rel="canonical" href="http://mysite.com/" /> | |
| <link rel="stylesheet" href="http://mysite.com/style.css" type="text/css" /> |
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 widget( $args, $instance ) { | |
| extract($args); | |
| $title = apply_filters( 'widget_title', empty($instance['title']) ? '' : $instance['title'], $instance ); | |
| } |
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
| [class$="test"] | |
| elements that have a class that ends with “test” | |
| [class*=“test"] | |
| elements that have a class that contain “test” | |
| [class~=“test”] | |
| elements that have a class that contain at least class“test” | |
| [class|=“test”] |