php js css php js css

Edit Dynamic Template

Close
For:   Use Variant:
  • HTML
  • CSS
  • Preview
  • Changes
<div class="post-list--col" onclick="document.location = '[? $post['post_content_url']?]'; return false;"> <logic:if test="$post['post_icon']"> <div class="post-list--img"> <standard:image src="[? $post['post_icon'] ?]" alt="[? $post['post_title'] ?]" lazy="true" /> </div> </logic:if> <div style="padding: 2rem"> <hr /> <h3><span style="color: #333333;"><strong>[? $post['post_title'] ?]</strong></span></h3> <logic:if test="$post['post_category_id'] == 1"> <table border="0" width="100%"> <tr> <td width="30px" style="vertical-align: top;"> <standard:icon library="fontawesome" iconstyle="solid" iconname="calendar" style="width: 15px; height: 15px;" /> </td> <td width="auto"> <logic:if test="$post['post_event_start_date']"> <logic:if test="formatDate($post['post_event_start_date'], 'yyyy') == date('Y')"> [? formatDate($post['post_event_start_date'], 'MMM dd') ?] </logic:if> <logic:else>[? formatDate($post['post_event_start_date']) ?]</logic:else> </logic:if> <logic:if test="$post['post_event_end_date']"> <logic:if test="formatDate($post['post_event_start_date']) != formatDate($post['post_event_end_date'])"> <logic:if test="formatDate($post['post_event_end_date'], 'yyyy') == date('Y')"> - [? formatDate($post['post_event_end_date'], 'MMM dd') ?] </logic:if> <logic:else>- [? formatDate($post['post_event_end_date']) ?]</logic:else> </logic:if> </logic:if> </td> </tr> </table> <table border="0" width="100%"> <tr> <td width="30px" style="vertical-align: top;"> <standard:icon library="fontawesome" iconstyle="solid" iconname="clock" style="width: 15px; height: 15px;" /> </td> <td width="auto"> [? formatDate($post['post_event_start_date']) ?] <logic:if test="formatDate($post['post_event_end_date'])"> - [? formatDate($post['post_event_end_date']) ?] </logic:if> </td> </tr> </table> <logic:if test="$post['post_event_location']"> <table border="0" width="100%"> <tr> <td width="30px" style="vertical-align: top;"> <standard:icon library="fontawesome" iconstyle="solid" iconname="location-dot" style="width: 15px; height: 15px;" /> </td> <td width="auto">[? $post['post_event_location'] ?]</td> </tr> </table> </logic:if> </logic:if> <logic:else> [?? $post['post_content_short'] ??] </logic:else> <br /><br /> <!--<logic:if test="$post['post_content_short']"> <p><small>[?? $post['post_content_short'] ??]</small></p> </logic:if> --> <br /><br /> <logic:if test="$post['post_content_url']"> <templates:button variant="Classic" bgcolor="#c41c32" color="#fff" borderRadius="0" href="[? $post['post_content_url'] ?]">Read More</templates:button> </logic:if> </div> </div>
Declared Variables
$post
  ['post_id']
  ['post_title']
  ['post_content_short']
  ['post_icon']
  ['post_content_type']
  ['post_content_url']
  ['post_created_page']
  ['post_date']
  ['post_is_offline']
  ['post_category_id']
  ['contact_id']
  ['post_overwrite_short_color']
  ['post_event_status']
  ['post_link_button']
  ['post_content_short_align']
  ['post_previous_event']
  ['post_event_start_date']
  ['post_event_end_date']
  ['post_event_location']
Common Tags