are there any ways to change position of “Current Mode”?
-
The moody plugin adds a current mood after the entry’s day and i wonder if there’s a way to change the current mood to the end of the entry? Or if I should paste certain part of the following code to my Main Template? Advices are appreciated and thanks.
<?php
/*
Plugin Name: Moody
Plugin URI: https://www.gudlyf.com/index.php?p=365
Description: Adds a "Current Mood" icon to each post after the date. Borrowed icons from https://www.wholenotherthing.com/ which can be grabbed from https://www.gudlyf.com/media/moods.zip. Unzip moods into wp-content/plugins/moods and activate plugin. Add Custom field "mood" to posts to use one of the icons (posts with no mood show a default icon).
Version: 1.1
Author: Keith McDuffee
Author URI: https://www.gudlyf.com/
*/function moody($original) {
$mood_icon_dir = $curpath . "/wp-content/plugins/moods/";
$mood_icon_ext = '.gif';$values = get_post_custom_values('mood');
$mood = $values[0];/* Print original text first */
print $original;if(!empty($mood)) {
print ' ';
print '(Current Mood: ';
print '<img src="' . get_settings('siteurl') . $mood_icon_dir . $mood . $mood_icon_ext . '" alt="' . $mood . '" title="' . $mood . '" />)';
}
}add_filter('the_time', 'moody');
?>
- The topic ‘are there any ways to change position of “Current Mode”?’ is closed to new replies.