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 | |
/** | |
* Return a time difference of a given time in | |
* days, hours or minutes depending on the time | |
* difference. | |
* | |
* @param $time (required) | |
*/ | |
function get_time_difference( $time ) { | |
$current_time = new DateTime( current_time( 'mysql' ) ); |
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 $current_user; | |
get_currentuserinfo(); | |
echo get_avatar( $current_user->ID, 128 ); | |
?> |
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 new_excerpt_length($length) { | |
return 200; | |
} | |
add_filter('excerpt_length', 'new_excerpt_length'); |
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://twitter.com/home?status=[TITLE]+[URL] | |
Digg | |
http://www.digg.com/submit?phase=2&url=[URL]&title=[TITLE] | |
http://www.facebook.com/share.php?u=[URL]&title=[TITLE] | |
StumbleUpon |