{if $c} {if $cbphoto->is_addable($c)}
You are about to add new photos in {$c.collection_name}
Total Items: {$c.total_objects}
Views: {$c.views|number_format}
Date Added: {$c.date_added|niceTime}
{else}
You can not add new photos in collection because of following reasons:
  • Collection does not exist.
  • It is unactive.
  • It is private.
  • Your are not own of collection.
  • You can select collection once your photos have been uploaded.
  • {/if} {else} {if !$has_collection}
    Create Collection
    {assign var='reqFields' value=$cbcollection->load_required_fields()}
    {foreach from=$reqFields item=field} {if $field.id != 'type'}
      {$formObj->createField($field)}
    {/if} {/foreach}
    {/if} {/if}