Comment UI / Special:Memberlist: UI consistency for Send PM/Add Buddy links in Memberlist and comment display UI
--- a/includes/clientside/static/comments.js Wed May 13 09:41:24 2009 -0400
+++ b/includes/clientside/static/comments.js Wed May 13 09:43:00 2009 -0400
@@ -209,10 +209,10 @@
tplvars.USER_LEVEL += $lang.get(this_comment.rank_title);
// Send PM link
- tplvars.SEND_PM_LINK=(this_comment.user_id>1)?'<a onclick="window.open(this.href); return false;" href="'+ makeUrlNS('Special', 'PrivateMessages/Compose/To/' + ( this_comment.name.replace(/ /g, '_') )) +'">' + $lang.get('comment_btn_send_privmsg') + '</a><br />':'';
+ tplvars.SEND_PM_LINK=(this_comment.user_id>1)?'<a class="abutton icon abutton_blue" style="background-image: url(' + cdnPath + '/images/icons/send_pm.png);" onclick="window.open(this.href); return false;" href="'+ makeUrlNS('Special', 'PrivateMessages/Compose/To/' + ( this_comment.name.replace(/ /g, '_') )) +'">' + $lang.get('comment_btn_send_privmsg') + '</a><br /><br />':'';
// Add buddy link
- tplvars.ADD_BUDDY_LINK=(this_comment.user_id>1)?'<a onclick="window.open(this.href); return false;" href="'+ makeUrlNS('Special', 'PrivateMessages/FriendList/Add/' + ( this_comment.name.replace(/ /g, '_') )) +'">' + $lang.get('comment_btn_add_buddy') + '</a><br />':'';
+ tplvars.ADD_BUDDY_LINK=(this_comment.user_id>1)?'<a class="abutton icon abutton_green" style="background-image: url(' + cdnPath + '/images/icons/add_buddy.png);" onclick="window.open(this.href); return false;" href="'+ makeUrlNS('Special', 'PrivateMessages/FriendList/Add/' + ( this_comment.name.replace(/ /g, '_') )) +'">' + $lang.get('comment_btn_add_buddy') + '</a><br />':'';
// Edit link
tplvars.EDIT_LINK='<a href="#edit_'+i+'" onclick="editComment(\''+i+'\', this); return false;" id="cmteditlink_'+i+'">' + $lang.get('comment_btn_edit') + '</a>';
--- a/language/english/core.json Wed May 13 09:41:24 2009 -0400
+++ b/language/english/core.json Wed May 13 09:43:00 2009 -0400
@@ -186,8 +186,8 @@
lbl_subject: 'Subject',
lbl_mod_options: 'Moderator options:',
heading: 'Article comments',
- btn_send_privmsg: 'Send private message',
- btn_add_buddy: 'Add to buddy list',
+ btn_send_privmsg: 'Send PM',
+ btn_add_buddy: 'Add buddy',
btn_edit: 'edit',
btn_delete: 'delete',
btn_mod_approve: 'Approve',
@@ -594,7 +594,8 @@
edit_acl: 'Edit access control lists'
},
plugin: {
- specialadmin_title: 'Runt - the Enano administration panel',
+ author_enano: 'Enano CMS Project',
+ specialadmin_title: 'Administration panel',
specialadmin_desc: 'Provides the page Special:Administration, which is the AJAX frontend to the various Admin pagelets. This plugin cannot be disabled.',
privatemessages_title: 'Private Message frontend',
privatemessages_desc: 'Provides the page Special:PrivateMessages, which is used to manage private message functions. Also handles buddy lists.',
@@ -613,7 +614,9 @@
specialuserprefs_title: 'User control panel',
specialuserprefs_desc: 'Provides the page Special:Preferences.',
speciallog_title: 'Log displayer',
- speciallog_desc: 'Provides the page Special:Log, which is used to view modifications to pages on the site.'
+ speciallog_desc: 'Provides the page Special:Log, which is used to view modifications to pages on the site.',
+ tagcloud_title: 'Tag cloud sidebar block',
+ tagcloud_desc: 'Brings back the "tag cloud" sidebar block that was removed in Enano 1.1.6.'
},
paginate: {
lbl_page: 'Page:',
--- a/plugins/SpecialUserFuncs.php Wed May 13 09:41:24 2009 -0400
+++ b/plugins/SpecialUserFuncs.php Wed May 13 09:43:00 2009 -0400
@@ -1895,8 +1895,8 @@
$bit .= '<small>' . htmlspecialchars($lang->get($rank_data['rank_title'])) . '</small><br />';
$bit .= '<div style="text-align: right;">
- <a href="' . makeUrlNS('Special', "PrivateMessages/Compose/To/{$row['username']}", false, true) . '" class="abutton abutton_blue"><img alt=" " src="' . cdnPath . '/images/icons/send_pm.png" /> ' . $lang->get('comment_btn_send_privmsg') . '</a>
- <a href="' . makeUrlNS('Special', "PrivateMessages/FriendList/Add/{$row['username']}", false, true) . '" class="abutton abutton_green"><img alt=" " src="' . cdnPath . '/images/icons/add_buddy.png" /> ' . $lang->get('comment_btn_add_buddy') . '</a>
+ <a href="' . makeUrlNS('Special', "PrivateMessages/Compose/To/{$row['username']}", false, true) . '" class="abutton icon abutton_blue" style="background-image: url(' . cdnPath . '/images/icons/send_pm.png);">' . $lang->get('comment_btn_send_privmsg') . '</a>
+ <a href="' . makeUrlNS('Special', "PrivateMessages/FriendList/Add/{$row['username']}", false, true) . '" class="abutton icon abutton_green" style="background-image: url(' . cdnPath . '/images/icons/add_buddy.png);">' . $lang->get('comment_btn_add_buddy') . '</a>
</div>';
return $bit;