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
.ir { | |
border:0; | |
font: 0/0 a; | |
text-shadow: none; | |
color: transparent; | |
background-color: transparent; | |
} |
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
/** | |
* Design Shack 3D Text Mixin | |
*/ | |
@mixin threedeetext($color) { | |
color: $color; | |
text-shadow: | |
0 2px 0 darken($color, 14%), | |
0 4px 0 darken($color, 16%), | |
0 6px 0 darken($color, 18%), |
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 feed_copyright_disclaimer($content) { | |
if(is_feed()) { | |
$permalink = get_permalink(); | |
$author = get_the_author(); | |
$title = get_bloginfo('name'); | |
$output = '<p>This post is originally written by ' . $author . ' at <a href="' . $title . '">' . $permalink . '</a>. Please respect his authoritah.</p>'; | |
$content = $content.$output; | |
} | |
return $content; |
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 authors_post_list_in_feed($content) { | |
if(is_feed()) { | |
global $post; | |
$author = get_the_author(); | |
$author_id = $post->post_author; | |
$the_posts = get_posts('author=' . $author_id . '&numberposts=5'); | |
$output = '<h3>More From ' . $author . '</h3>'; | |
$output .= '<ul>'; | |
foreach($the_posts as $post) { |
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 my_user_contactmethods($user_contactmethods){ | |
$user_contactmethods['twitter'] = 'Twitter Username'; | |
$user_contactmethods['facebook'] = 'Facebook Username'; | |
return $user_contactmethods; | |
} | |
add_filter('user_contactmethods', 'my_user_contactmethods'); |
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
$.fn.fade1by1 = function(options) { | |
var opt = $.extend({ | |
'delay': 500, | |
'speed': 500, | |
'ease': 'linear' | |
}, options); | |
var that = this; | |
for (var i = 0, d = 0, l = that.length; i < l; i++, d += opt.delay) { | |
that.eq(i).delay(d).fadeIn(opt.speed, opt.ease); | |
} |
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
UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldsite.com', 'http://www.newsite.com') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
UPDATE wp_posts SET guid = replace(guid, 'http://www.oldsite.com','http://www.newsite.com'); | |
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.oldsite.com', 'http://www.newsite.com'); | |
UPDATE wp_postmeta SET meta_value = replace(meta_value, 'http://www.oldsite.com', 'http://www.newsite.com'); |
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 if (have_posts()) : ?> | |
<?php while (have_posts()) : the_post(); ?> | |
<div class="post" id="post-"> | |
<h2><a href="" rel="bookmark" title="Permanent Link to | |
<?php the_title(); ?>"><?php the_title(); ?></a></h2> | |
<small><?php the_time('F jS, Y') ?> <!-- by --></small> | |
<div class="entry"> | |
<?php the_content('Read the rest of this entry »'); ?> | |
</div> |
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 | |
if (have_posts()) : while (have_posts()) : the_post(); | |
the_content('Read the rest of this entry »'); | |
?> | |
<?php | |
endwhile; | |
else: | |
echo 'Sorry, no posts were found.'; | |
endif; | |
?> |
OlderNewer