<?php /* Smarty version Smarty-3.0.4, created on 2020-03-03 07:10:44
         compiled from "C:/Domains/troskovnik.hr/wwwroot/manager/templates/default/welcome.tpl" */ ?>
<?php /*%%SmartyHeaderCode:250325e5df4e446d1f1-45576707%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ce207a09a346340036857a5a3f082d06cbc5f266' => 
    array (
      0 => 'C:/Domains/troskovnik.hr/wwwroot/manager/templates/default/welcome.tpl',
      1 => 1311242358,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '250325e5df4e446d1f1-45576707',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_modifier_date_format')) include 'C:\Domains\troskovnik.hr\wwwroot/core/model/smarty/plugins\modifier.date_format.php';
if (!is_callable('smarty_function_cycle')) include 'C:\Domains\troskovnik.hr\wwwroot/core/model/smarty/plugins\function.cycle.php';
?><div id="modx-panel-welcome-div"></div>

<div id="welcome_tabs"></div>

<div id="modx-news">
    <?php  $_smarty_tpl->tpl_vars['article'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('newsfeed')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['article']->key => $_smarty_tpl->tpl_vars['article']->value){
?>
    <div class="news_article" style="padding: 15px;">
        <h2><a href="<?php echo (isset($_smarty_tpl->tpl_vars['article']->value['link']) ? $_smarty_tpl->tpl_vars['article']->value['link'] : null);?>
" target="_blank"><?php echo (isset($_smarty_tpl->tpl_vars['article']->value['title']) ? $_smarty_tpl->tpl_vars['article']->value['title'] : null);?>
</a></h2>
        <p><?php echo (isset($_smarty_tpl->tpl_vars['article']->value['description']) ? $_smarty_tpl->tpl_vars['article']->value['description'] : null);?>
</p>
        <span class="date_stamp"><?php echo smarty_modifier_date_format((isset($_smarty_tpl->tpl_vars['article']->value['pubdate']) ? $_smarty_tpl->tpl_vars['article']->value['pubdate'] : null));?>
</span>
    </div>
    <?php }} ?>
</div>

<div id="modx-security">
    <?php  $_smarty_tpl->tpl_vars['article'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('securefeed')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['article']->key => $_smarty_tpl->tpl_vars['article']->value){
?>
    <div class="news_article" style="padding: 15px;">
        <h2><a href="<?php echo (isset($_smarty_tpl->tpl_vars['article']->value['link']) ? $_smarty_tpl->tpl_vars['article']->value['link'] : null);?>
" target="_blank"><?php echo (isset($_smarty_tpl->tpl_vars['article']->value['title']) ? $_smarty_tpl->tpl_vars['article']->value['title'] : null);?>
</a></h2>
        <br /><?php echo (isset($_smarty_tpl->tpl_vars['article']->value['description']) ? $_smarty_tpl->tpl_vars['article']->value['description'] : null);?>

        <span class="date_stamp"><?php echo smarty_modifier_date_format((isset($_smarty_tpl->tpl_vars['article']->value['pubdate']) ? $_smarty_tpl->tpl_vars['article']->value['pubdate'] : null));?>
</span>
    </div>
    <?php }} ?>
</div>

<!-- system check -->
<div id="modx-config">
    <?php echo $_smarty_tpl->getVariable('config_check_results')->value;?>

</div>

<!-- user info -->
<div id="modx-info">
    <?php echo (isset($_smarty_tpl->getVariable('_lang')->value['yourinfo_message']) ? $_smarty_tpl->getVariable('_lang')->value['yourinfo_message'] : null);?>

    <br /><br />
    <table class="classy" style="width: 100%;">
    <thead>
    <tr>
        <th><?php echo (isset($_smarty_tpl->getVariable('_lang')->value['yourinfo_username']) ? $_smarty_tpl->getVariable('_lang')->value['yourinfo_username'] : null);?>
</th>
        <th><?php echo (isset($_smarty_tpl->getVariable('_lang')->value['yourinfo_previous_login']) ? $_smarty_tpl->getVariable('_lang')->value['yourinfo_previous_login'] : null);?>
</th>
        <th><?php echo (isset($_smarty_tpl->getVariable('_lang')->value['yourinfo_total_logins']) ? $_smarty_tpl->getVariable('_lang')->value['yourinfo_total_logins'] : null);?>
</th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td><?php echo $_smarty_tpl->getVariable('modx')->value->getLoginUserName();?>
</td>
        <td><?php echo $_smarty_tpl->getVariable('previous_login')->value;?>
</td>
        <td><?php echo $_smarty_tpl->getVariable('modx')->value->user->getOne('Profile')->get('logincount')+1;?>
</td>
    </tr>
    </tbody>
    </table>
</div>

<!-- online info -->
<div id="modx-online">
    <?php echo $_smarty_tpl->getVariable('online_users_msg')->value;?>

    <br /><br />

    <table class="classy" style="width: 100%;">
    <thead>
    <tr>
        <th><?php echo (isset($_smarty_tpl->getVariable('_lang')->value['onlineusers_user']) ? $_smarty_tpl->getVariable('_lang')->value['onlineusers_user'] : null);?>
</th>
        <th><?php echo (isset($_smarty_tpl->getVariable('_lang')->value['onlineusers_userid']) ? $_smarty_tpl->getVariable('_lang')->value['onlineusers_userid'] : null);?>
</th>
        <th><?php echo (isset($_smarty_tpl->getVariable('_lang')->value['onlineusers_ipaddress']) ? $_smarty_tpl->getVariable('_lang')->value['onlineusers_ipaddress'] : null);?>
</th>
        <th><?php echo (isset($_smarty_tpl->getVariable('_lang')->value['onlineusers_lasthit']) ? $_smarty_tpl->getVariable('_lang')->value['onlineusers_lasthit'] : null);?>
</th>
        <th><?php echo (isset($_smarty_tpl->getVariable('_lang')->value['onlineusers_action']) ? $_smarty_tpl->getVariable('_lang')->value['onlineusers_action'] : null);?>
</th>
    </tr>
    </thead>
    <tbody>
    <?php  $_smarty_tpl->tpl_vars['user'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('ausers')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['user']->key => $_smarty_tpl->tpl_vars['user']->value){
?>
    <tr class="<?php echo smarty_function_cycle(array('values'=>',odd'),$_smarty_tpl);?>
">
            <td><?php echo $_smarty_tpl->getVariable('user')->value->username;?>
</td>
            <td><?php echo $_smarty_tpl->getVariable('user')->value->internalKey;?>
</td>
            <td><?php echo $_smarty_tpl->getVariable('user')->value->ip;?>
</td>
            <td><?php echo $_smarty_tpl->getVariable('user')->value->get('lastseen');?>
</td>
            <td><?php echo $_smarty_tpl->getVariable('user')->value->get('currentaction');?>
</td>
    </tr>
    <?php }} else { ?>
    <tr>
        <th colspan="5"><?php echo (isset($_smarty_tpl->getVariable('_lang')->value['active_users_none']) ? $_smarty_tpl->getVariable('_lang')->value['active_users_none'] : null);?>
</th>
    </tr>
    <?php } ?>
    </tbody>
    </table>
</div>