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
img#wpstats{width:0px;height:0px;padding:0px;border:none;overflow:hidden} | |
/* If you are using THESIS, just head to custom.css and paste in */ | |
.custom img#wpstats{width:0px;height:0px;padding:0px;border:none;overflow:hidden} |
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 | |
global $wpdb; | |
$sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type,comment_author_url, SUBSTRING(comment_content,1,30) AS com_excerpt FROM $wpdb->comments LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID = $wpdb->posts.ID) WHERE comment_approved = '1' AND comment_type = '' AND post_password = '' ORDER BY comment_date_gmt DESC LIMIT 10"; | |
$comments = $wpdb->get_results($sql); | |
$output = $pre_HTML; | |
$output .= "n<ul>"; | |
foreach ($comments as $comment) { | |
$output .= "n<li>".strip_tags($comment->comment_author) .":" . "<a href="" . get_permalink($comment->ID)."#comment-" . $comment->comment_ID . "" title="on ".$comment->post_title . "">" . strip_tags($comment->com_excerpt)."</a></li>"; | |
} |
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 query_posts('showposts=5'); ?> | |
<ul> | |
<?php while (have_posts()) : the_post(); ?> | |
<li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li> | |
<?php endwhile;?> | |
</ul> |
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
//http://www.narga.net/making-awesome-forms-inline-labels-with-jquery | |
<form id="signup" name="signup"> | |
<label for="email">Email Address</label> | |
<input class="text" name="email" type="text" /> | |
<label for="username">Username</label> | |
<input class="text username" name="username" type="text" /> | |
<input class="btn" type="submit" value="Sign Up" /> | |
</form> |
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
//http://www.narga.net/making-awesome-forms-inline-labels-with-jquery | |
$.fn.setCursorPosition = function(pos) { | |
if ($(this).get(0).setSelectionRange) { | |
$(this).get(0).setSelectionRange(pos, pos); | |
} else if ($(this).get(0).createTextRange) { | |
var range = $(this).get(0).createTextRange(); | |
range.collapse(true); | |
range.moveEnd('character', pos); | |
range.moveStart('character', pos); | |
range.select(); |
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
//http://www.narga.net/making-awesome-forms-inline-labels-with-jquery | |
$("#signup label").each(function (i) { | |
$(this).next("input").attr("value",$(this).html()+"..." | |
$(this).hide(); | |
}); |
OlderNewer