Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

new_featured_collection_form()

Description

Render the new featured collection form

Parameters

ColumnTypeDefaultDescription
$parent int Featured collection parent. Use zero for root featured collection category

Return

void

Location

include/collections_functions.php lines 3555 to 3594

Definition

 
function new_featured_collection_form(int $parent)
    {
    global 
$baseurl_short$lang$collection_allow_creation;

    if(!
$collection_allow_creation)
        {
        return;
        }

    if(!
checkperm('h'))
        {
        
http_response_code(401);
        exit(
$lang['error-permissiondenied']);
        }

    
$form_action "{$baseurl_short}pages/collection_manage.php";
    
?>
    <div class="BasicsBox">
        <h1> echo $lang["createnewcollection"]; ?></h1>
        <form name="new_collection_form" id="new_collection_form" class="modalform"
              method="POST" action=" echo $form_action?>" onsubmit="return CentralSpacePost(this, true);">
             generateFormToken("new_collection_form"); ?>
            <input type="hidden" name="call_to_action_tile" value="true"></input>
            <input type="hidden" name="parent" value=" echo $parent?>"></input>
            <div class="Question">
                <label for="newcollection" > echo $lang["collectionname"]; ?></label>
                <input type="text" name="name" id="newcollection" maxlength="100" required="true"></input>
                <div class="clearleft"></div>
            </div>
            <div class="QuestionSubmit" >
                <label></label>
                <input type="submit" name="create" value=" echo $lang["create"]; ?>"></input>
                <div class="clearleft"></div>
            </div>
        </form>
    </div>
    

    
return;
    }

This article was last updated 26th November 2020 04:35 Europe/London time based on the source file dated 25th November 2020 10:35 Europe/London time.