{assign var='challengeStatus' value=$category->data['category_archived']} {assign var='challengeLocked' value=$category->options['challengeLocked']}
  • {'This appears with the heading on the homepage slider'|gettext}

{if $category->data.category_parent eq 0 && ( (isset($smarty.request.sourceForm) && intval($smarty.request.sourceForm) eq 0) || (!isset($smarty.request.sourceForm)) )}
{* Smaller main image *}

{'Challenge listing image'|gettext}

{'We accept jpg, gif and png files'|gettext}
{'For best results upload a 464px by 302px image'|gettext}

{'Click the button below to attach an image'|gettext}

{'Attach Image'|gettext} {if isset($mirpURL)} {else} {cl_image_upload_tag('image_id', ['callback' => $vars.cloudinaryConfig.callback, 'use_filename'=>true, 'allowed_formats' =>['jpg', 'gif', 'png'], 'html' => ['multiple'=>false, 'class'=>'cloudinary-challenge-smaller-file-upload']])} {/if}

{* Supporting files *}

{'Other files or media'|gettext}

{'We accept jpg, gif, png, office docs, txt, pdf, zip, mp4, mov files'|gettext}

{'Attach files'|gettext} {if isset($mirpURL)} {else} {*cl_image_upload_tag('image_id', ['callback' => $vars.cloudinaryConfig.callback, 'use_filename'=>true, 'allowed_formats' =>File::getAllowedExtensions(), 'html' => ['multiple'=>true, 'class'=>'cloudinary-challenge-files-upload']])*} {cl_image_upload_tag('image_id', ['chunk_size' => 20000000, 'callback' => $vars.cloudinaryConfig.callback, 'eager'=>[['format' => 'webm'], ['format' => 'mp4' ]], 'eager_async'=> true, 'eager_notification_url' => File::getEagerNotificationUrl(), 'use_filename'=>true, 'allowed_formats' =>File::getAllowedExtensions(), 'html' => ['multiple'=>true, 'class'=>'cloudinary-challenge-files-upload', 'id'=>'filesUpload']])} {/if}

File type icon
fileName.pdf
{counter start=0 print=false} {foreach from=$selectedFilesV2.nonHeader item=f} {counter assign=itemNum}
{if in_array($f->data['file_extension'], File::$allowedImageExtensions)} {else} {/if}
{$f->data['file_name']}
{/foreach}
{/if}

{if $challengeStatus eq 0} {'Publishing'|gettext} {else} {'Publish this challenge?'|gettext} {/if}

  • {if $category->id && in_array($user->user_usertype->id, [1,2])}
  • {/if}
{if $challengeLocked && !in_array($user->user_usertype->id, [1,2])}

{'This challenge has been locked by a community administrator. You can make changes to the challenge but it cannot be published until unlocked.'|gettext}

{/if}
data.category_phased eq 1}style="display:none;"{/if}>

{'Challenge access'|gettext}

{include file=Template::get("access/listbox.html") prepopulate=$accessData accessFor='category' accessForId=$category->data.category_id title='Access to this challenge' id="challengeAccessSelector`$category->data.category_id`" catCreator=$category->data['category_createdby']}

{'Challenge options'|gettext}

{include file=Template::get("access/options.html") accessObjects=$accessCategoryObjects accessType='category' isIncubatorChallenge=$category->isIncubatorChallenge()}
{if $vars.ajax eq true} {/if}