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 if(function_exists('wp_pagenavi')) { // if PageNavi is activated ?> | |
<?php wp_pagenavi(); // Use PageNavi ?> | |
<?php } else { // Otherwise, use traditional Navigation ?> | |
<?php if ( get_next_posts_link() ) : ?> | |
<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'glasses' ) ); ?></div> | |
<?php endif; ?> |
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
/*opacity-hack*/ | |
selector { | |
filter: alpha(opacity=60); /* MSIE/PC */ | |
-moz-opacity: 0.6; /* Mozilla 1.6 and older */ | |
opacity: 0.6; | |
} | |
/* clear float */ | |
.clear { |
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
# force www in url | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} !^www\.example\.com [NC] | |
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L] | |
# END force www in url | |
Report |
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
function isEmail(str){ | |
var reg = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((\.[a-zA-Z0-9_-]{2,3}){1,2})$/; | |
return reg.test(str); | |
} | |
function IsNumeric(input) | |
{ | |
return (input - 0) == input && input.length > 0; | |
} |
NewerOlder