<?xml version="1.0" encoding="UTF-8"?>
<form class="wpfdparams" method="POST" action="admin.php?page=wpfd-config&amp;task=config.saveconfig">
    <input
            type="heading"
            label="Main settings"
            value=""
            class="inputbox input-block-level"
            namespace="Joomunited\WP_File_Download\Admin\Fields\"
    />
    <input
            name="allowedext"
            id="allowedext"
            type="textarea"
            label="Allowed extensions"
            value="7z,ace,bz2,dmg,gz,rar,tgz,zip,csv,doc,docx,html,key,keynote,odp,ods,odt,pages,pdf,pps,ppt,pptx,rtf,tex,txt,xls,xlsx,xml,bmp,exif,gif,ico,jpeg,jpg,png,psd,tif,tiff,aac,aif,aiff,alac,amr,au,cdda,flac,m3u,m4a,m4p,mid,mp3,mp4,mpa,ogg,pac,ra,wav,wma,3gp,asf,avi,flv,m4v,mkv,mov,mpeg,mpg,rm,swf,vob,wmv,css,img"
            class="inputbox input-block-level ju-input ju-large-text"
            
            tooltip="File format allowed to be uploaded"
            namespace="Joomunited\WP_File_Download\Admin\Fields\"
    />
    <input
            name="uri"
            id="uri"
            type="Seourl"
            label="SEO URL"
            value="download"
            class="inputbox input-block-level ju-input ju-large-text"
            
            tooltip="Prefix placed in all the file download URL"
            namespace="Joomunited\WP_File_Download\Admin\Fields\"
    />
    <input
            name="maxinputfile"
            type="maxinputfile"
            label="Max upload file size (Mb)"
            value="10"
            class="inputbox input-block-level ju-input ju-large-text"
            
            tooltip="Max file size to be uploaded. Check upload_max_filesize and post_max_size in your php.ini if you encounter any problem"
            namespace="Joomunited\WP_File_Download\Admin\Fields\"
    />
    <input
            name="extension_viewer"
            type="text2"
            label="Extensions to open with viewer"
            value="pdf,ppt,doc,xls,dxf,ps,eps,xps,psd,tif,tiff,bmp,svg,pages,ai,dxf,ttf,txt,mp3,mp4"
            class="inputbox input-block-level ju-input ju-large-text"
            
            tooltip="Allow or limit file format to be previewed"
            namespace="Joomunited\WP_File_Download\Admin\Fields\"
    />
    <input
            name="deletefiles"
            type="switcher"
            label="Delete all files on uninstall"
            value="0"
            class="inputbox input-block-level ju-input"
            
            tooltip="Caution! If set to Yes, on plugin uninstall all the data will be removed"
            namespace="Joomunited\WP_File_Download\Admin\Fields\"
    >
        <option value="1">Yes</option>
        <option value="0">No</option>
    </input>

    <input
            name="close_categories"
            type="switcher"
            label="Close categories"
            value="0"
            class="inputbox input-block-level ju-input"
            
            tooltip="By default, load all categories and all subcategories with accordion level closed"
            namespace="Joomunited\WP_File_Download\Admin\Fields\"
    >
        <option value="1">Yes</option>
        <option value="0">No</option>
    </input>

    <input
            name="new_category_position"
            type="select2"
            label="New file category position"
            value="0"
            class="inputbox input-block-level ju-input"

            tooltip="When creating a new file category: it can be added on top or the end of the list"
            namespace="Joomunited\WP_File_Download\Admin\Fields\"
    >
        <option value="end">At the end</option>
        <option value="top">On top</option>
    </input>

    <input
            name="catparameters"
            type="switcher"
            label="Theme per categories"
            value="1"
            class="inputbox input-block-level ju-input"
            
            tooltip="Possbility to change and configure theme in each file category"
            namespace="Joomunited\WP_File_Download\Admin\Fields\"
    >
        <option value="0">No</option>
        <option value="1">Yes</option>
    </input>
    <input
            name="defaultthemepercategory"
            type="theme"
            label="Default theme per category"
            value="default"
            class="inputbox input-block-level ju-input"
            tooltip="If theme per category is set to No above, select a theme to apply to all your categories by default"
            namespace="Joomunited\WP_File_Download\Admin\Fields\"
    />

    <input
            name="date_format"
            type="text2"
            label="Date format"
            help="&lt;a href=&quot;https://codex.wordpress.org/Formatting_Date_and_Time&quot; target=&quot;__blank&quot;&gt;Date Format&lt;/a&gt;"
            value="d-m-Y"
            class="inputbox input-block-level ju-input ju-large-text"
            
            tooltip="Upload and modified file date format"
            namespace="Joomunited\WP_File_Download\Admin\Fields\"
    >
    </input>
    <input
            name="versionlimit"
            type="versionlimit"
            label="File history count (0 to 100)"
            value="5"
            class="inputbox input-block-level shorttext ju-input ju-large-text"
            
            tooltip="WP File Download stores history of files when you update them in order to restore them later. Setup the number of version to store per file."
            namespace="Joomunited\WP_File_Download\Admin\Fields\"
    />
    <input
            name="use_google_viewer"
            type="select2"
            label="Use viewer"
            value="lightbox"
            class="inputbox input-block-level ju-input"
            
            tooltip="Possibility to preview the files. Use the Google viewer, not all format can be previewed"
            namespace="Joomunited\WP_File_Download\Admin\Fields\"
    >
        <option value="lightbox">Open in a lightbox</option>
        <option value="tab">Open in a new tab</option>
        <option value="no">No</option>
    </input>


    <input
            name="open_pdf_in"
            type="switcher"
            label="Open PDF in browser"
            value="0"
            class="inputbox input-block-level ju-input"
            
            tooltip="Open PDF in a new browser tab instead of the Google drive viewer"
            namespace="Joomunited\WP_File_Download\Admin\Fields\"
    >
        <option value="1">Yes</option>
        <option value="0">No</option>
    </input>



    <input
            name="show_file_import"
            type="switcher"
            label="Show files import"
            value="0"
            class="inputbox input-block-level ju-input"
            
            tooltip="Load an import tool to browse your server and import files in a category"
            namespace="Joomunited\WP_File_Download\Admin\Fields\"
    >
        <option value="0">No</option>
        <option value="1">Yes</option>
    </input>
    <input
            name="add_remote_file"
            type="switcher"
            label="Add remote file"
            value="0"
            class="inputbox input-block-level ju-input"
            
            tooltip="Add a button to add distant files (not on your server) as dowloadable file"
            namespace="Joomunited\WP_File_Download\Admin\Fields\"
    >
        <option value="0">No</option>
        <option value="1">Yes</option>
    </input>
    <input
            name="ga_download_tracking"
            type="switcher"
            label="GA download tracking"
            value="0"
            class="inputbox input-block-level ju-input"
            
            tooltip="Track download using Google Analytics. Analytics tracking code must be already loaded in WordPress"
            namespace="Joomunited\WP_File_Download\Admin\Fields\"
    >
        <option value="0">No</option>
        <option value="1">Yes</option>
    </input>
    <input
            name="restrictfile"
            type="switcher"
            label="Single user restriction"
            value="0"
            class="inputbox input-block-level ju-input"
            
            tooltip="Add the possibility to give access to a file for a single user (to pickup from Wordpress users)"
            namespace="Joomunited\WP_File_Download\Admin\Fields\"
    >
        <option value="0">No</option>
        <option value="1">Yes</option>
    </input>
    <input
            name="useeditor"
            type="switcher"
            label="Use WYSIWYG editor"
            value="0"
            class="inputbox input-block-level ju-input"
            
            tooltip="Use WYSIWYG editor in file description"
            namespace="Joomunited\WP_File_Download\Admin\Fields\"
    >
        <option value="0">No</option>
        <option value="1">Yes</option>
    </input>
    <input
            name="enablewpfd"
            type="switcher"
            label="Load the plugin on frontend"
            value="0"
            class="inputbox input-block-level ju-input"
            
            tooltip="Load the plugin in page builder on frontend"
            namespace="Joomunited\WP_File_Download\Admin\Fields\"
    >
        <option value="0">No</option>
        <option value="1">Yes</option>
    </input>
    <input
            name="categoryown"
            type="switcher"
            label="Category owner"
            value="0"
            class="inputbox input-block-level ju-input"
            
            tooltip="Add user as Category owner"
            namespace="Joomunited\WP_File_Download\Admin\Fields\"
    >
        <option value="0">No</option>
        <option value="1">Yes</option>
    </input>

    <input
            name="shortcodecat"
            type="switcher"
            label="Display shortcode in category"
            value="1"
            class="inputbox input-block-level ju-input"
            
            tooltip="Display the shortcode to load a category of files in editor"
            namespace="Joomunited\WP_File_Download\Admin\Fields\"
    >
        <option value="0">No</option>
        <option value="1">Yes</option>
    </input>
    <input
            name="paginationnunber"
            type="select2"
            label="Pagination number"
            value="100"
            class="inputbox input-block-level ju-input"
            
            tooltip="Display the number of files per page"
            namespace="Joomunited\WP_File_Download\Admin\Fields\"
    >
        <option value="10">10</option>
        <option value="20">20</option>
        <option value="50">50</option>
        <option value="100">100</option>
    </input>

    <input
            name="custom_icon"
            type="switcher"
            label="Custom icon"
            value="1"
            class="inputbox input-block-level ju-input"
            
            tooltip="Possibility to upload a custom image or icon for single files"
            namespace="Joomunited\WP_File_Download\Admin\Fields\"
    >
        <option value="0">No</option>
        <option value="1">Yes</option>
    </input>

    <input
            name="download_category"
            type="switcher"
            label="Download category"
            value="0"
            class="inputbox input-block-level ju-input"
            
            tooltip="Allow users to download all the files from a category as a global .zip file using a button"
            namespace="Joomunited\WP_File_Download\Admin\Fields\"
    >
        <option value="0">No</option>
        <option value="1">Yes</option>
    </input>
    <input
            name="download_selected"
            type="switcher"
            label="Download file selection"
            value="0"
            class="inputbox input-block-level ju-input"

            tooltip="Users can make a file selection using checkboxes them download them as .zip file. Not applicable to cloud file categories"
            namespace="Joomunited\WP_File_Download\Admin\Fields\"
    >
        <option value="0">No</option>
        <option value="1">Yes</option>
    </input>
    <input
            name="file_count"
            type="switcher"
            label="File count"
            value="0"
            class="inputbox input-block-level ju-input"
            
            tooltip="Display the number of files above each file category name"
            namespace="Joomunited\WP_File_Download\Admin\Fields\"
    >
        <option value="0">No</option>
        <option value="1">Yes</option>
    </input>

    <input
        name="rmdownloadext"
        type="hidden"
        namespace="Joomunited\WP_File_Download\Admin\Fields\"
        />
    <input
            name="admin_theme"
            type="select2"
            label="Admin file list theme"
            value="0"
            class="ju-input"

            tooltip="Select theme for backend."
            namespace="Joomunited\WP_File_Download\Admin\Fields\"
    >
        <option value="table">Table - Default</option>
        <option value="alternative">Alternative - Large</option>
    </input>
    <input
            name="statistics_storage"
            id="statistics_storage"
            type="statisticsstorage"
            label="Statistics storage"
            value="0"
            class="ju-input"
            tooltip="Define the duration of the download statistics storage. Note that Forever option may generate huge database tables."
            namespace="Joomunited\WP_File_Download\Admin\Fields\"
    >
        <option value="forever">Forever!</option>
        <option value="years">Year(s)</option>
        <option value="months">Month(s)</option>
        <option value="days">Day(s)</option>
    </input>
    <input type="hidden" name="statistics_storage_times" namespace="Joomunited\WP_File_Download\Admin\Fields\"/>
    <input type="hidden" name="statistics_storage_duration" namespace="Joomunited\WP_File_Download\Admin\Fields\"/>
    <button
            type="submit"
            value="Save"
            class="ju-button orange-button"
            namespace="Joomunited\WP_File_Download\Admin\Fields\"
    />

</form>
