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 custom_excerpt($text) { // custom 'read more' link | |
if (strpos($text, '[...]')) { | |
$excerpt = strip_tags(str_replace('[...]', '... <a href="'.get_permalink().'">read more...</a>', $text), "<a>"); | |
} else { | |
$excerpt = '<p>' . $text . ' <a href="'.get_permalink().'">read more...</a></p>'; | |
} | |
return $excerpt; | |
} | |
add_filter('the_excerpt', 'custom_excerpt'); | |
?> |
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 excerpt_read_more_link($output) { | |
global $post; | |
return $output . '<a href="'. get_permalink($post->ID) . '"> Read More...</a>'; | |
} | |
add_filter('the_excerpt', 'excerpt_read_more_link'); |
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
{ | |
"vars": { | |
"@gray-darker": "lighten(#000, 13.5%)", | |
"@gray-dark": "lighten(#000, 20%)", | |
"@gray": "lighten(#000, 33.5%)", | |
"@gray-light": "lighten(#000, 46.7%)", | |
"@gray-lighter": "lighten(#000, 93.5%)", | |
"@brand-primary": "#428bca", | |
"@brand-success": "#5cb85c", | |
"@brand-info": "#5bc0de", |
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
@font-face{ | |
font-family:FontAwesome; | |
src:url(https://netdna.bootstrapcdn.com/font-awesome/2.0/font//fontawesome-webfont.eot?#iefix) format('eot'), | |
url(https://netdna.bootstrapcdn.com/font-awesome/2.0/font//fontawesome-webfont.woff) format('woff'), | |
url(https://netdna.bootstrapcdn.com/font-awesome/2.0/font//fontawesome-webfont.ttf) format('truetype'), | |
url(https://netdna.bootstrapcdn.com/font-awesome/2.0/font//fontawesome-webfont.svg#FontAwesome) format('svg'); | |
font-weight:400;font-style:normal;} | |
.select-wrapper { | |
font-family: Arial, sans-serif; |
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
.select-wrapper { | |
float: left; /*or right*/ | |
position: relative; | |
} | |
select { | |
border: 1px solid #ccc; | |
height: 26px; | |
line-height: 18px; | |
margin: 0; |
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
.logo { | |
height: 80px; | |
width: 100%; | |
max-width: 290px; | |
} | |
/*Using Scott Kellum CSS image replacement technique and based on this tut: http://tutvid.com/webdesign/css-tutorial-image-replacementlink-logo-to-homepage/*/ | |
.logo-image { | |
display: block; | |
background: url(../imgs/logo.png) no-repeat; |
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
$.preloadImages = function() { | |
for (var i = 0; i < arguments.length; i++) { | |
$("<img />").attr("src", arguments[i]); | |
} | |
} | |
$.preloadImages([ | |
"hoverimage1.jpg", | |
"hoverimage2.jpg" | |
]); |
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 makeIncrementer(x) { | |
return function() { | |
return x++; | |
}; | |
} | |
var increment = makeIncrementer(0); | |
console.log(increment()); //0 | |
console.log(increment()); //1 |
OlderNewer