32 lines
724 B
Cheetah
32 lines
724 B
Cheetah
<%doc>
|
|
Return communication item
|
|
|
|
Template engine: Mako
|
|
|
|
Usage:
|
|
|
|
{{% comm [type=<type>] [date=<date>] [media=<media>] [link=<link>] <text> %}}
|
|
|
|
where <type> is one of press, video, audio, socal, photo, image or other
|
|
|
|
Example:
|
|
</%doc>
|
|
|
|
% if type == 'press':
|
|
<% t = 'fa-file-alt' %>
|
|
% elif type == 'video':
|
|
<% t = 'fa-video' %>
|
|
% elif type == 'audio':
|
|
<% t = 'fa-microphone' %>
|
|
% elif type == 'social':
|
|
<% t = 'fa-comment-alt' %>
|
|
% elif type == 'photo':
|
|
<% t = 'fa-camera' %>
|
|
% elif type == 'image':
|
|
<% t = 'fa-file-image' %>
|
|
% else:
|
|
<% t = 'fa-bullhorn' %>
|
|
% endif
|
|
|
|
<i class="fas ${t} mr-2"></i> <i>${date}</i>, <strong>${media}</strong>: <a href="${link}">${_args[0]}</a>
|