Advertisement Manager

{assign var='ads' value=$adsObj->get_advertisements()}
{foreach $ads as $ad} {/foreach}
# Name Impressions Placement Date
{$ad.ad_id} {$ad.ad_name}
{if $ad.ad_status=='1'}Active{else} inactive {/if}
{$ad.ad_impressions|number_format} {$adsObj->get_placement_name($ad.ad_placement)} {$ad.date_added|niceTime}
{if !$ads}
There are no ads...
{/if}
{if $ads} {foreach $ads as $ad} {$ad_data=$ad} {/foreach} {/if}