Collections functions
General functions
Node functions
Render functions
Theme permission functions
User 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 4620 to 4651

Definition

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

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

    
$form_action "{$baseurl_short}pages/collection_manage.php";
    
?>
    <div class="BasicsBox">
        <h1> echo escape($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 escape($lang["collectionname"]); ?></label>
                <input type="text" name="name" id="newcollection" maxlength="100" required="true"></input>
                <div class="clearleft"></div>
            </div>
            <div class="QuestionSubmit" >
                <input type="submit" name="create" value=" echo escape($lang["create"]); ?>"></input>
                <div class="clearleft"></div>
            </div>
        </form>
    </div>
    
    
}

This article was last updated 23rd July 2024 07:35 Europe/London time based on the source file dated 19th July 2024 16:55 Europe/London time.