<?php
/* Smarty version 3.1.33, created on 2020-08-20 07:50:55
  from '/home/superior/public_html/constantwriters.com/content/themes/dashboard/system/updates.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_5f3e2b5f089fd2_66731947',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'a1cf98dfa8160b275be21820c21f8be18812c009' => 
    array (
      0 => '/home/superior/public_html/constantwriters.com/content/themes/dashboard/system/updates.tpl',
      1 => 1597221840,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:updates/changelog.tpl' => 1,
  ),
),false)) {
function content_5f3e2b5f089fd2_66731947 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_loadInheritance();
$_smarty_tpl->inheritance->init($_smarty_tpl, true);
?>
 

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

    <div class="card">
        <div class="card-header with-icon">
            <i class="fas fa-sync mr10"></i>
            <strong>System Updates</strong>
        </div>

        <div class="card-body">
            <?php if ($_smarty_tpl->tpl_vars['last_version_check']->value) {?>
                <p>Last checked on <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['last_version_check']->value, ENT_QUOTES, 'UTF-8');?>
. &nbsp; <a class="btn btn-default" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_uri']->value, ENT_QUOTES, 'UTF-8');?>
/updates?force-check=1">Check Again</a></p>
            <?php }?>

            <?php if ($_smarty_tpl->tpl_vars['check_for_update']->value) {?>
                <?php if ($_smarty_tpl->tpl_vars['update_available']->value) {?>
                    <p>A newer version of Proxim is available: <strong><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['new_update_version']->value, ENT_QUOTES, 'UTF-8');?>
</strong></p>
                    <a class="btn btn-info" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_uri']->value, ENT_QUOTES, 'UTF-8');?>
/upgrader">Install Update</a>
                <?php } else { ?>
                    <p>You have the latest version of Proxim: <strong><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['system_version']->value, ENT_QUOTES, 'UTF-8');?>
</strong></p>
                <?php }?>
            <?php } else { ?>
                <p>Your current Proxim version: <strong><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['system_version']->value, ENT_QUOTES, 'UTF-8');?>
</strong></p>
                <a class="btn btn-info" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_uri']->value, ENT_QUOTES, 'UTF-8');?>
/updates?force-check=1">Check for Updates</a>
            <?php }?>
            
        </div>
    </div>

    <div class="card">
        <div class="card-header with-icon">
            <i class="fa fa-stopwatch mr10"></i>
            <strong>Changelog</strong>
        </div>

        <div class="card-body">
            <?php if (count($_smarty_tpl->tpl_vars['sites']->value)) {?>
                <div class="table-responsive">
                    <table class="table <?php if ($_smarty_tpl->tpl_vars['theme_mode_night']->value) {?>table-dark<?php }?> table-striped table-bordered table-hover js_dataTable">
                        <thead>
                            <tr>
                                <td>Site Name</td>
                                <td>Version</td>
                                <td>Last Update</td>
                                <td>Actions</td>
                            </tr>
                        </thead>
                        <tbody>
                            <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['sites']->value, 'site');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['site']->value) {
?>
                                <tr>
                                    <td><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_uri']->value, ENT_QUOTES, 'UTF-8');?>
/my-sites/<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['site']->value['id'], ENT_QUOTES, 'UTF-8');?>
/edit"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['site']->value['name'], ENT_QUOTES, 'UTF-8');?>
</a></td>
                                    <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['site']->value['version'], ENT_QUOTES, 'UTF-8');?>
</td>
                                    <td>
                                        <span class="js_moment" data-time="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['site']->value['last_update'], ENT_QUOTES, 'UTF-8');?>
"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['site']->value['last_update'], ENT_QUOTES, 'UTF-8');?>
</span>
                                    </td>
                                    <td>
                                        <a target="_blank" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['site']->value['domain'], ENT_QUOTES, 'UTF-8');?>
/updates?force-check=1" class="btn btn-xs btn-success">
                                            <i class="fa fa-sync"></i> Update
                                        </a>
                                    </td>
                                </tr>
                            <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                        </tbody>
                    </table>
                </div>
            <?php } else { ?>
                <div class="text-center x-muted"> 
                    <i class="fa fa-globe fa-4x"></i>
                    <p class="mb10"><strong>No sites to show</strong></p>
                </div>
            <?php }?>
        </div>
    </div>

    <div class="card">
        <div class="card-header with-icon">
            <i class="fa fa-stopwatch mr10"></i>
            <strong>Changelog</strong>
        </div>

        <div class="card-body">
            <?php $_smarty_tpl->_subTemplateRender("file:updates/changelog.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
        </div>
    </div>
<?php
}
}
/* {/block 'content_wrapper'} */
}
