Adam H
Young Flying Bird
Just a suggestion but to help style xenword it would be great to naturally contain certain elements such as in xenword-xf-thread-all-forums-widget.php
The avatar and discussionlist item I personally think would be better served with either a container or in list format ( entirely up to you ) instead of two entirely separate elements. You will see below ive added a simple div class to wrap the discussion list and avatar holder allowing better control of styling.
I feel there is quite alot though out the whole plugin that could be adjusted to make it naturally friendlier to style with CSS alone rather than editing and adding classes outside of the core plugin default files.
The avatar and discussionlist item I personally think would be better served with either a container or in list format ( entirely up to you ) instead of two entirely separate elements. You will see below ive added a simple div class to wrap the discussion list and avatar holder allowing better control of styling.
Code:
// Use this function to display the avatar where ever you want.
echo ("<div class='threadListcontain'><div class='threadListAvatar'>" . get_avatar( $thread['user_id'], 35 ) . " </div>");
echo(
"<div class='threadListItem'><a href='"
. XenForo_Link::buildPublicLink( 'canonical:threads', $thread )
. "'>"
. XenForo_Helper_String::wholeWordTrim( $thread['title'], 40 )
. "</a>"
);
echo '<br />posted ' . date_i18n( get_option('date_format'), $thread['post_date'] );
$node = XenForo_Model::create( 'XenForo_Model_Node')->getNodeById($thread['node_id'] );
echo ' in ' . $node['title'];
echo '</div></div>';
I feel there is quite alot though out the whole plugin that could be adjusted to make it naturally friendlier to style with CSS alone rather than editing and adding classes outside of the core plugin default files.