Difference between pages "Template:News" and "Widget:NewsDisplay"

(Difference between pages)
 
 
Line 1: Line 1:
<noinclude>
+
<div class="media"><a class="pull-left" href="<!--{$user|escape:'url'}-->"><img class="media-object" src="<!--{$gravatar_url|escape:'html'}-->" alt="<!--{$user|escape:'html'}-->"></a>
Use like so:
+
<div class="media-body">
 
+
<a href="<!--{$article_url|escape:'html'}-->"><h4 class="media-heading"><!--{$title|escape:'html'}--></h4></a>
<pre>
+
<!--{$body|escape:'html'}-->
{{News
+
</div>
|Summary=Test News Item
+
<div style="float: right; text-align: right; display: inline-block;">
|News Category=General
+
<span style="color: #888; font-size: 10px;"><!--{$date|escape:'html'}--> by <a href="<!--{$user|escape:'html'}-->"><!--{$user|escape:'html'}--></a></span>
|Author=Drobbins
+
</div>
|Publication Status=Draft
+
</div>
|Publication Date=2014/10/16
+
}}
+
</pre>
+
 
+
</noinclude><includeonly>
+
<div class="container" style="margin-top: 20px;"><div class="row"><div class="col-xs-12">
+
= {{PAGENAME}} =
+
<span style="font-size: 1.5em; color: #888; font-variant: small-caps;">News: {{{News Category}}}</span>
+
{{#ifeq:{{{Publication Status|}}|Draft|{{NotYetPublished}}}}{{#set:Summary={{{Summary|}}}|News Category={{{News Category|}}}|Publication Status={{{Publication Status|}}}|Publication Date={{{Publication Date|}}}}}{{#arraymap:{{{Author|}}}|,|x|{{#set:Author=User:x|Gravatar MD5={{#show: User:x | ?Gravatar MD5}}}}}}
+
__NOTITLE__
+
</div></div><div class="row"><div class="col-xs-12 col-sm-4 col-sm-push-8">
+
{{TableStart}}
+
<tr><th colspan=2 class="active">Information</th></tr>
+
<tr><th class="active">Date</th><td>{{{Publication Date|}}}</td></tr>
+
<tr><th class="active">Category</th><td>{{{News Category|}}}</td></tr>
+
{{TableEnd}}
+
</div><div class="col-xs-12 col-sm-8 col-sm-pull-4">
+
</includeonly>
+

Revision as of 03:18, October 20, 2014

<a class="pull-left" href=""></a>
<a href="">

</a>

by <a href=""></a>