Skip to content
Browse files

Fixes for featured item handling

  • Loading branch information...
1 parent 261e947 commit 37ab1ec998eead9b1f37f2a8d14904ac1cf86c99 @tvroom tvroom committed
View
3 plugins/FireHose/FireHose.pm
@@ -1995,7 +1995,8 @@ sub dispFireHose {
vote => $options->{vote},
bodycontent_include => $options->{bodycontent_include},
nostorylinkwrapper => $options->{nostorylinkwrapper},
- view_mode => $options->{view_mode}
+ view_mode => $options->{view_mode},
+ featured => $options->{featured}
}, { Page => "firehose", Return => 1 });
if ($mcd) {
View
2 plugins/FireHose/templates/dispFireHose;firehose;default
@@ -111,7 +111,7 @@ END %]
<a href="#" class="down" title="Vote this item down">-</a>
</span>
[% END %]
- [% PROCESS formatHoseTitle the_user = the_user item = item url = url adminmode=adminmode options = options link_url = link_url %]
+ [% PROCESS formatHoseTitle the_user = the_user item = item url = url adminmode=adminmode options = options link_url = link_url featured = featured %]
[% title_type = "firehose" %]
[% IF item.type == "story";
title_type = "story";
View
2 plugins/FireHose/templates/formatHoseTitle;misc;default
@@ -71,7 +71,7 @@ IF !link_url;
END;
title_href=link_url;
-IF form.index;
+IF form.index || featured;
onclick="";
IF item.type == "story";
story = Slash.db.getStory(item.srcid);
View
3 themes/slashcode/templates/u2MainView;users;default
@@ -22,9 +22,10 @@ __template__
[% IF firehose_marquee.defined %]
[% IF firehose_marquee && firehose_marquee.id %]
+ <a name="articles"></a>
[% fh = Slash.getObject("Slash::FireHose") %]
[% item = fh.getFireHose(firehose_marquee.id) %]
- [% fh.dispFireHose(item, { mode => 'full', featured => 1}) %]
+ [% fh.dispFireHose(item, { mode => "item", tags_top => fh.getFireHoseTagsTop(item), options => options, bodycontent_include => 1, featured => 1}) %]
[% ELSE %]
<h3>[% useredit.nickname | strip_literal %] doesn't seem to be particularly active.</h3>

0 comments on commit 37ab1ec

Please sign in to comment.
Something went wrong with that request. Please try again.