{if $smarty.get.collection} {assign var=c value=$cbphoto->collection->get_collection($smarty.get.collection)} {if $cbphoto->is_addable($c.collection_id)}
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 !$c}
    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}