Header images for sidebar boxes and entry link separator

Jul 18, 2010 23:51

I am currently in the process of making a new layout for a friend, and just like every other time I made something new in opal, I came across some issues.

(I really need to learn to stick to just changing colors and slapping a new header on a layout that already works!)

Problem 1: in the sidebar, all boxes have a little header image instead of ( Read more... )

Leave a comment

Comments 3

julzroguenine July 19 2010, 03:07:51 UTC
This should fix #1:

If all you see in a Theme layer is something like $this->, it's calling code from somewhere else. In this case, it's drawing code from the Source Layer. You are usually safe in grabbing the source code to edit. That is what's included in the edited code below.

You'll probably have to mess with the CSS or code to make the Summary look ok (it currently cuts text off). You'll also have to change the images for the Summary and Link List.

Add this:
function Page::lay_print_summary ( ... )

Reply

julzroguenine July 19 2010, 03:09:37 UTC
And this should fix # 2:

The issue was that there were 2 bits of code trying to control the linkbar (one in Entry::print_linkbar() and the other in Page::print_entry(). Since Entry::print_linkbar() is what you want (and it's much user friendly to customize), I got rid of the other one.

I also added CommentInfo::print_readlink and CommentInfo::print_postlink because Entry::print_linkbar() does not control the # comments/comment part. I added the "|" in those sections to make the entry links all look uniform.

Add this:
function CommentInfo::print_postlink ( ... )

Reply

voressima July 19 2010, 18:04:40 UTC
My dear Julz, as per usual, you totally rock! :D Both solutions worked like a charm (and after some slightly frustrating tinkering, managed to whip the summary into playing nice and staying within the confines of the sidebar). Thanks a million!

Everyone using Opal owes you so much cookies, you'd better invest in a elastic waistband pair o'pants right now! ;)

Reply


Leave a comment

Up