rillebolle

article-cont.tpl

Jul 13th, 2013
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Smarty 3.11 KB | None | 0 0
  1.           <article class="art-item clearfix">
  2.                 <header>
  3.                   <hgroup>
  4.                         <h1>{{ $gimme->article->name }}</h1>
  5.                         {{ if $gimme->article->type_name == "news" }}
  6.                         <p><span class="right">{{ include file="_tpl/article-icons.tpl" }}</span>{{ #publishedOn# }} <time datetime="{{$gimme->article->publish_date|date_format:"%Y-%m-%dT%H:%MZ"}}">{{ $gimme->article->publish_date|camp_date_format:"%d %M %Y" }}</time> {{ #by# }} {{ list_article_authors }}{{ if $gimme->author->user->defined }}<a href="{{ $view->url(['username' => $gimme->author->user->uname], 'user') }}">{{ /if }}{{ $gimme->author->name }}{{ if $gimme->author->user->defined }}</a>{{ /if }} ({{ $gimme->author->type|lower }}){{ if !$gimme->current_list->at_end }}, {{ /if }}{{ /list_article_authors }}</p>
  7.                          {{ if $gimme->article->has_map }}
  8.                          {{ list_article_locations }}{{ if $gimme->current_list->at_beginning }}<p>{{ #locationS# }} {{ /if }}{{ if $gimme->location->enabled }}{{ $gimme->location->name }}{{ if $gimme->current_list->at_end }}</p>{{ else }}, {{ /if }}{{ /if }}{{ /list_article_locations }}
  9.                         {{ /if }}
  10.                        
  11.                         {{ list_article_topics }}{{ if $gimme->current_list->at_beginning }}<p>{{ #topicS# }} {{ /if }}<a href="{{ url options="template topic.tpl" }}">{{ $gimme->topic->name }}</a>{{ if $gimme->current_list->at_end }}</p>{{ else }}, {{ /if }}{{ /list_article_topics }}                        
  12.                        
  13.                         {{ /if }}
  14.                     </hgroup>
  15.                 </header>
  16.                
  17. {{ if $gimme->article->content_accessible }}                
  18.                
  19.                 {{ if $gimme->article->type_name == "news" }}
  20.                 <!-- if you want to use responsive images use {{ include file="_tpl/img/img_picturefill.tpl" }} -->
  21.                 {{ include file="_tpl/img/img_600x400.tpl" }}
  22.                
  23.         {{ /if }}
  24.                 {{ count }}
  25.                 <div class="clearfix">{{ include file="_tpl/_edit-article.tpl" }}{{ $gimme->articletype->news->ingress }}{{ $gimme->article->full_text }}</div>
  26.             </article>
  27.  
  28.     {{ if $gimme->article->type_name !== "page" }}
  29.             <div id="social-group">
  30.                 <div id="twitter">
  31.                     <script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
  32.                     <a href="http://twitter.com/share" class="twitter-share-button" data-text="{{ $gimme->article->name }}" data-via="{{ $gimme->publication->name }}">{{ #tweet# }}</a>
  33.                 </div><!-- /#twitter -->
  34.                 <div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=100924830001723&amp;xfbml=1"></script><fb:like href="http://{{ $gimme->publication->site }}{{ uri }}" send="true" width="385" show_faces="true" font=""></fb:like>      
  35.             </div><!-- /#social-group -->
  36.     {{ /if }}            
  37. {{ else }}        
  38.             <p>{{ #infoOnLockedArticles# }}</p>    
  39. {{ /if }}
Advertisement
Add Comment
Please, Sign In to add comment