<?php
/* Smarty version 3.1.33, created on 2021-05-02 05:49:15
  from '/home/mycopjya/admin.mycodingassignment.com/content/themes/dashboard/system/uploads.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_608e3d5b0da317_69035407',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '540358a8cfdfa4a1ece55d350651baae5fd97daa' => 
    array (
      0 => '/home/mycopjya/admin.mycodingassignment.com/content/themes/dashboard/system/uploads.tpl',
      1 => 1592297058,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_608e3d5b0da317_69035407 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_loadInheritance();
$_smarty_tpl->inheritance->init($_smarty_tpl, true);
?>
 

<?php 
$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_555356613608e3d5b0b3137_44890202', 'content_wrapper');
$_smarty_tpl->inheritance->endChild($_smarty_tpl, 'dashboard/layout.tpl');
}
/* {block 'content_wrapper'} */
class Block_555356613608e3d5b0b3137_44890202 extends Smarty_Internal_Block
{
public $subBlocks = array (
  'content_wrapper' => 
  array (
    0 => 'Block_555356613608e3d5b0b3137_44890202',
  ),
);
public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
?>

<div class="card">
    <!-- card-header -->
    <div class="card-header with-icon with-nav">
        <!-- panel title -->
        <div class="mb20">
            <i class="fa fa-cog mr10"></i>Settings &rsaquo; Uploads
        </div>
        <!-- panel title -->

        <!-- panel nav -->
        <ul class="nav nav-tabs">
            <li class="nav-item">
                <a class="nav-link active" href="#General" data-toggle="tab">
                    <i class="fa fa-upload fa-fw mr5"></i><strong class="pr5">General</strong>
                </a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="#S3" data-toggle="tab">
                    <i class="fab fa-amazon fa-fw mr5"></i><strong class="pr5">Amazon S3</strong>
                </a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="#DigitalOcean" data-toggle="tab">
                    <i class="fab fa-digital-ocean fa-fw mr5"></i><strong class="pr5">DigitalOcean</strong>
                </a>
            </li>
        </ul>
        <!-- panel nav -->
    </div>
    <!-- card-header -->

    <!-- tabs content -->
    <div class="tab-content">
        <!-- General -->
        <div class="tab-pane active" id="General">
            <form class="js_ajax-forms" data-url="/admin/settings?edit=uploads">
                <div class="card-body">
                    <div class="alert alert-warning"> 
                        <div class="icon"> 
                            <i class="fa fa-exclamation-triangle fa-2x"></i> 
                        </div> 
                        <div class="text">
                            Your server max upload size = <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['max_upload_size']->value, ENT_QUOTES, 'UTF-8');?>
<br>
                            You can't upload files larger than <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['max_upload_size']->value, ENT_QUOTES, 'UTF-8');?>
 - To upload larger files, contact your hosting provider
                        </div> 
                    </div>

                    <div class="form-table-row"> 
                        <div> 
                            <div class="form-control-label h5">Internal File Storage</div> 
                            <div class="form-text d-none d-sm-block">Allow each site to store it's own files. Enable this option if your sites are hosted in separate cPanel accounts.</div> 
                        </div> 
                        <div class="text-right"> 
                            <label class="switch" for="internal_file_storage"> 
                                <input type="checkbox" name="internal_file_storage" id="internal_file_storage" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['INTERNAL_FILE_STORAGE']) {?>checked=""<?php }?>> 
                                <span class="slider round"></span> 
                            </label> 
                        </div> 
                    </div>

                    <div class="divider"></div>

                    <div class="form-group form-row">
                        <label class="col-sm-3 control-label">
                            File Extensions
                        </label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" name="file_extensions" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['ALLOWED_EXTENSIONS'], ENT_QUOTES, 'UTF-8');?>
">
                            <span class="help-block">
                                Allowed file extensions without the dot (separated with comma ',)
                            </span>
                        </div>
                    </div>

                    <div class="form-group form-row">
                        <div class="col-sm-9 offset-sm-3">
                            <!-- success -->
                            <div class="alert alert-success mt10 x-hidden" role="alert"></div>
                            <!-- success -->

                            <!-- error -->
                            <div class="alert alert-danger mt10 x-hidden" role="alert"></div>
                            <!-- error -->

                        </div>
                    </div>
                </div>
                <div class="card-footer text-right">
                    <button type="submit" class="btn btn-info">Save Changes</button>
                </div>
            </form>
        </div>
        <!-- General -->

        <!-- S3 -->
        <div class="tab-pane" id="S3">
            <form class="js_ajax-forms " data-url="/admin/settings?edit=s3">
                <div class="card-body">
                    <div class="alert alert-info">
                        <div class="icon">
                            <i class="fab fa-amazon fa-2x"></i>
                        </div>
                        <div class="text">
                            <strong>Amazon S3 Storage</strong><br>
                            Before enabling Amazon S3, make sure you upload the whole 'uploads' folder to your bucket.<br>
                            Before disabling Amazon S3, make sure you download the whole 'uploads' folder to your server.
                        </div>
                    </div>

                    <div class="form-table-row">
                        <div>
                            <div class="form-control-label h5">Amazon S3 Storage</div>
                            <div class="form-text d-none d-sm-block">
                                Enable Amazon S3 storage (Note: Enable this will disable all other options)
                            </div>
                        </div>
                        <div class="text-right">
                            <label class="switch" for="s3_enabled">
                                <input type="checkbox" name="s3_enabled" id="s3_enabled" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['S3_ENABLED']) {?>checked<?php }?>>
                                <span class="slider round"></span>
                            </label>
                        </div>
                    </div>

                    <div class="form-group form-row">
                        <label class="col-md-3 form-control-label">
                            Bucket Name
                        </label>
                        <div class="col-md-9">
                            <input type="text" class="form-control" name="s3_bucket" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['S3_BUCKET'], ENT_QUOTES, 'UTF-8');?>
">
                            <span class="form-text">
                                Your Amazon S3 bucket name
                            </span>
                        </div>
                    </div>

                    <div class="form-group form-row">
                        <label class="col-md-3 form-control-label">
                            Bucket Region
                        </label>
                        <div class="col-md-9">
                            <select name="s3_region" class="form-control">
                                <option value="us-east-2" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['S3_REGION'] == "us-east-2") {?>selected<?php }?>>US East (Ohio)</option>
                                <option value="us-east-1" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['S3_REGION'] == "us-east-1") {?>selected<?php }?>>US East (N. Virginia)</option>
                                <option value="us-west-1" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['S3_REGION'] == "us-west-1") {?>selected<?php }?>>US West (N. California)</option>
                                <option value="us-west-2" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['S3_REGION'] == "us-west-2") {?>selected<?php }?>>US West (Oregon)</option>
                                <option value="ap-east-1" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['S3_REGION'] == "ap-east-1") {?>selected<?php }?>>Asia Pacific (Hong Kong)</option>
                                <option value="ap-south-1" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['S3_REGION'] == "ap-south-1") {?>selected<?php }?>>Asia Pacific (Mumbai)</option>
                                <option value="ap-northeast-3" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['S3_REGION'] == "ap-northeast-3") {?>selected<?php }?>>Asia Pacific (Osaka-Local)</option>
                                <option value="ap-northeast-2" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['S3_REGION'] == "ap-northeast-2") {?>selected<?php }?>>Asia Pacific (Seoul)</option>
                                <option value="ap-southeast-1" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['S3_REGION'] == "ap-southeast-1") {?>selected<?php }?>>Asia Pacific (Singapore)</option>
                                <option value="ap-southeast-2" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['S3_REGION'] == "ap-southeast-2") {?>selected<?php }?>>Asia Pacific (Sydney)</option>
                                <option value="ap-northeast-1" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['S3_REGION'] == "ap-northeast-1") {?>selected<?php }?>>Asia Pacific (Tokyo)</option>
                                <option value="ca-central-1" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['S3_REGION'] == "ca-central-1") {?>selected<?php }?>>Canada (Central)</option>
                                <option value="eu-central-1" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['S3_REGION'] == "eu-central-1") {?>selected<?php }?>>EU (Frankfurt)</option>
                                <option value="eu-west-1" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['S3_REGION'] == "eu-west-1") {?>selected<?php }?>>EU (Ireland)</option>
                                <option value="eu-west-2" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['S3_REGION'] == "eu-west-2") {?>selected<?php }?>>EU (London)</option>
                                <option value="eu-west-3" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['S3_REGION'] == "eu-west-3") {?>selected<?php }?>>EU (Paris)</option>
                                <option value="eu-north-1" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['S3_REGION'] == "eu-north-1") {?>selected<?php }?>>Europe (Stockholm)</option>
                                <option value="me-south-1" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['S3_REGION'] == "me-south-1") {?>selected<?php }?>>Middle East (Bahrain)</option>
                                <option value="sa-east-1" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['S3_REGION'] == "sa-east-1") {?>selected<?php }?>>South America (São Paulo)</option>
                            </select>
                            <span class="form-text">
                                Your Amazon S3 bucket region
                            </span>
                        </div>
                    </div>

                    <div class="form-group form-row">
                        <label class="col-md-3 form-control-label">
                            Access Key ID
                        </label>
                        <div class="col-md-9">
                            <input type="text" class="form-control" name="s3_key" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['S3_KEY'], ENT_QUOTES, 'UTF-8');?>
">
                            <span class="form-text">
                                Your Amazon S3 Access Key ID
                            </span>
                        </div>
                    </div>

                    <div class="form-group form-row">
                        <label class="col-md-3 form-control-label">
                            Access Key Secret
                        </label>
                        <div class="col-md-9">
                            <input type="text" class="form-control" name="s3_secret" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['S3_SECRET'], ENT_QUOTES, 'UTF-8');?>
">
                            <span class="form-text">
                                Your Amazon S3 Access Key Secret
                            </span>
                        </div>
                    </div>

                    <div class="form-group form-row">
                        <div class="col-sm-9 offset-sm-3">
                            <!-- success -->
                            <div class="alert alert-success mt10 x-hidden" role="alert"></div>
                            <!-- success -->

                            <!-- error -->
                            <div class="alert alert-danger mt10 x-hidden" role="alert"></div>
                            <!-- error -->

                        </div>
                    </div>
                </div>
                <div class="card-footer text-right">
                    <button type="button" class="btn btn-danger js_admin-tester" data-handle="s3">
                        <i class="fa fa-bolt mr10"></i> Test Connection
                    </button>
                    <button type="submit" class="btn btn-info">Save Changes</button>
                </div>
            </form>
        </div>
        <!-- S3 -->

        <!-- DigitalOcean -->
        <div class="tab-pane" id="DigitalOcean">
            <form class="js_ajax-forms " data-url="/admin/settings?edit=digitalocean">
                <div class="card-body">
                    <div class="alert alert-info">
                        <div class="icon">
                            <i class="fab fa-digital-ocean fa-2x"></i>
                        </div>
                        <div class="text">
                            <strong>DigitalOcean</strong><br>
                            Before enabling DigitalOcean Space, make sure you upload the whole 'uploads' folder to your space.<br>
                            Before disabling DigitalOcean Space, make sure you download the whole 'uploads' folder to your server.
                        </div>
                    </div>

                    <div class="form-table-row">
                        <div>
                            <div class="form-control-label h5">DigitalOcean Space</div>
                            <div class="form-text d-none d-sm-block">
                                Enable DigitalOcean storage (Note: Enable this will disable all other options)
                            </div>
                        </div>
                        <div class="text-right">
                            <label class="switch" for="digitalocean_enabled">
                                <input type="checkbox" name="digitalocean_enabled" id="digitalocean_enabled" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['DIGITALOCEAN_ENABLED']) {?>checked<?php }?>>
                                <span class="slider round"></span>
                            </label>
                        </div>
                    </div>

                    <div class="form-group form-row">
                        <label class="col-md-3 form-control-label">
                            Space Name
                        </label>
                        <div class="col-md-9">
                            <input type="text" class="form-control" name="digitalocean_space_name" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['DIGITALOCEAN_SPACE_NAME'], ENT_QUOTES, 'UTF-8');?>
">
                            <span class="form-text">
                                Your DigitalOcean space name
                            </span>
                        </div>
                    </div>

                    <div class="form-group form-row">
                        <label class="col-md-3 form-control-label">
                            Space Region
                        </label>
                        <div class="col-md-9">
                            <select name="digitalocean_space_region" class="form-control">
                                <option value="sfo2" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['DIGITALOCEAN_SPACE_REGION'] == "sfo2") {?>selected<?php }?>>San Francisco</option>
                                <option value="nyc3" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['DIGITALOCEAN_SPACE_REGION'] == "nyc3") {?>selected<?php }?>>New York</option>
                                <option value="ams3" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['DIGITALOCEAN_SPACE_REGION'] == "ams3") {?>selected<?php }?>>Amsterdam</option>
                                <option value="sgp1" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['DIGITALOCEAN_SPACE_REGION'] == "sgp1") {?>selected<?php }?>>Singapore</option>
                                <option value="fra1" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['DIGITALOCEAN_SPACE_REGION'] == "fra1") {?>selected<?php }?>>Frankfurt</option>
                            </select>
                            <span class="form-text">
                                Your DigitalOcean space region
                            </span>
                        </div>
                    </div>

                    <div class="form-group form-row">
                        <label class="col-md-3 form-control-label">
                            Access Key ID
                        </label>
                        <div class="col-md-9">
                            <input type="text" class="form-control" name="digitalocean_key" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['DIGITALOCEAN_KEY'], ENT_QUOTES, 'UTF-8');?>
">
                            <span class="form-text">
                                Your DigitalOcean Access Key ID
                            </span>
                        </div>
                    </div>

                    <div class="form-group form-row">
                        <label class="col-md-3 form-control-label">
                            Access Key Secret
                        </label>
                        <div class="col-md-9">
                            <input type="text" class="form-control" name="digitalocean_secret" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['DIGITALOCEAN_SECRET'], ENT_QUOTES, 'UTF-8');?>
">
                            <span class="form-text">
                                Your DigitalOcean Access Key Secret
                            </span>
                        </div>
                    </div>

                    <div class="form-group form-row">
                        <div class="col-sm-9 offset-sm-3">
                            <!-- success -->
                            <div class="alert alert-success mt10 x-hidden" role="alert"></div>
                            <!-- success -->

                            <!-- error -->
                            <div class="alert alert-danger mt10 x-hidden" role="alert"></div>
                            <!-- error -->

                        </div>
                    </div>
                </div>
                <div class="card-footer text-right">
                    <button type="button" class="btn btn-danger js_admin-tester" data-handle="digitalocean">
                        <i class="fa fa-bolt mr10"></i> Test Connection
                    </button>
                    <button type="submit" class="btn btn-info">Save Changes</button>
                </div>
            </form>
        </div>
        <!-- DigitalOcean -->

    </div>
</div>
<?php
}
}
/* {/block 'content_wrapper'} */
}
