Beispiel #1
0
<?php

/**
 * @author 		Remco van der Velde
 * @since 		19-07-2015
 * @version		1.0
 * @changeLog	
 * 	-	all	
 */
require_once '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'autoload.php';
$app = new Priya\Application($autoload);
$app->run();
    function content_56589e17196bf6_40125148($_smarty_tpl)
    {
        if (!is_callable('smarty_function_priya_parse')) {
            require_once '/DataVolume/shares/Remco/System/vendor/Priya/Plugin/Smarty/function.priya_parse.php';
        }
        $_smarty_tpl->properties['nocache_hash'] = '162866756156589e15b448d0_48982433';
        if (!empty($_smarty_tpl->tpl_vars['request']->value) && !empty($_smarty_tpl->tpl_vars['request']->value['data'])) {
            ?>
	<?php 
            $_from = $_smarty_tpl->tpl_vars['request']->value['data'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $_smarty_tpl->tpl_vars['attribute'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['attribute']->_loop = false;
            $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
            foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['attribute']->value) {
                $_smarty_tpl->tpl_vars['attribute']->_loop = true;
                $foreach_attribute_Sav = $_smarty_tpl->tpl_vars['attribute'];
                ?>
		
		<?php 
                if ($_smarty_tpl->tpl_vars['request']->value['method'] == 'GET') {
                    ?>
		
			<?php 
                    if (is_string($_smarty_tpl->tpl_vars['attribute']->value['value'])) {
                        ?>
					
				<?php 
                        ob_start();
                        echo html_entity_decode(urldecode($_smarty_tpl->tpl_vars['attribute']->value['value']));
                        $_tmp6 = ob_get_clean();
                        $_smarty_tpl->tpl_vars['' . $_smarty_tpl->tpl_vars['attribute']->value['name']] = new Smarty_Variable($_tmp6, null, 0);
                        ?>
			<?php 
                    } else {
                        ?>
			
				<?php 
                        $_smarty_tpl->tpl_vars['' . $_smarty_tpl->tpl_vars['attribute']->value['name']] = new Smarty_Variable($_smarty_tpl->tpl_vars['attribute']->value['value'], null, 0);
                        ?>
			<?php 
                    }
                    ?>
			
		<?php 
                } else {
                    ?>
			<?php 
                    $_smarty_tpl->tpl_vars['' . $_smarty_tpl->tpl_vars['attribute']->value['name']] = new Smarty_Variable($_smarty_tpl->tpl_vars['attribute']->value['value'], null, 0);
                    ?>
		<?php 
                }
                ?>
	<?php 
                $_smarty_tpl->tpl_vars['attribute'] = $foreach_attribute_Sav;
            }
        }
        if (!empty($_smarty_tpl->tpl_vars['node']->value) && !empty($_smarty_tpl->tpl_vars['node']->value['content']) && !empty($_smarty_tpl->tpl_vars['node']->value['content']['head'])) {
            $_smarty_tpl->tpl_vars['head'] = new Smarty_Variable($_smarty_tpl->tpl_vars['node']->value['content']['head'], null, 0);
            ?>
 
<?php 
        }
        ?>

<?php 
        if (!empty($_smarty_tpl->tpl_vars['node']->value) && !empty($_smarty_tpl->tpl_vars['node']->value['content']) && !empty($_smarty_tpl->tpl_vars['node']->value['content']['title'])) {
            $_smarty_tpl->tpl_vars['title'] = new Smarty_Variable($_smarty_tpl->tpl_vars['node']->value['content']['title'], null, 0);
            ?>
 
<?php 
        }
        ?>

<?php 
        if (!empty($_smarty_tpl->tpl_vars['node']->value) && !empty($_smarty_tpl->tpl_vars['node']->value['content']) && !empty($_smarty_tpl->tpl_vars['node']->value['content']['icon'])) {
            $_smarty_tpl->tpl_vars['icon'] = new Smarty_Variable($_smarty_tpl->tpl_vars['node']->value['content']['icon'], null, 0);
            ?>
 
<?php 
        }
        ?>


<?php 
        if (empty($_smarty_tpl->tpl_vars['head']->value) && empty($_smarty_tpl->tpl_vars['icon']->value)) {
            ob_start();
            echo ($tmp = @$_smarty_tpl->tpl_vars['title']->value) === null || $tmp === '' ? '{$title|default:"Dialog"}' : $tmp;
            $_tmp7 = ob_get_clean();
            $_smarty_tpl->tpl_vars['head'] = new Smarty_Variable("\n\t<ul class=\"button\">\n\t\t<li class=\"dialog-minimize\"><i class=\"material-icons dp48\">remove</i></li>\n\t\t<li class=\"dialog-maximize\"><i class=\"material-icons dp48\">content_copy</i></li>\n\t\t<li class=\"dialog-close\"><i class=\"material-icons dp48\">clear</i></li>\n\t</ul>\n\t<h2 class=\"title\">" . $_tmp7 . "</h2>\n", null, 0);
        } elseif (empty($_smarty_tpl->tpl_vars['head']->value) && !empty($_smarty_tpl->tpl_vars['icon']->value)) {
            ob_start();
            echo ($tmp = @$_smarty_tpl->tpl_vars['title']->value) === null || $tmp === '' ? '{$title|default:"Dialog"}' : $tmp;
            $_tmp8 = ob_get_clean();
            $_smarty_tpl->tpl_vars['head'] = new Smarty_Variable("\n\t<ul class=\"button\">\n\t\t<li class=\"dialog-minimize\"><i class=\"material-icons dp48\">remove</i></li>\n\t\t<li class=\"dialog-maximize\"><i class=\"material-icons dp48\">content_copy</i></li>\n\t\t<li class=\"dialog-close\"><i class=\"material-icons dp48\">clear</i></li>\n\t</ul>\n\t<ul class=\"title\">\t\n\t\t<li class=\"icon\">" . (string) $_smarty_tpl->tpl_vars['icon']->value . "</i></li>\n\t\t<li class=\"text\"><h2 class=\"title\">" . $_tmp8 . "</h2></li>\n\t</ul>\n", null, 0);
        }
        if (!empty($_smarty_tpl->tpl_vars['node']->value) && !empty($_smarty_tpl->tpl_vars['node']->value['content']) && !empty($_smarty_tpl->tpl_vars['node']->value['content']['html'])) {
            ?>
	
	<?php 
            if (!empty($_smarty_tpl->tpl_vars['node']->value['content']['method']) && !empty($_smarty_tpl->tpl_vars['node']->value['content']['target']) && $_smarty_tpl->tpl_vars['node']->value['content']['target'] == 'body') {
                ?>
		<?php 
                if ($_smarty_tpl->tpl_vars['node']->value['content']['method'] == 'append') {
                    ?>
			<?php 
                    if (empty($_smarty_tpl->tpl_vars['body']->value)) {
                        ?>
				<?php 
                        $_smarty_tpl->tpl_vars['body'] = new Smarty_Variable($_smarty_tpl->tpl_vars['node']->value['content']['html'], null, 0);
                        ?>
			<?php 
                    } else {
                        ?>
				<?php 
                        $_smarty_tpl->tpl_vars['body'] = new Smarty_Variable((string) $_smarty_tpl->tpl_vars['body']->value . (string) $_smarty_tpl->tpl_vars['node']->value['content']['html'], null, 0);
                        ?>
			<?php 
                    }
                    ?>
	
		<?php 
                } elseif ($_smarty_tpl->tpl_vars['node']->value['content']['method'] == 'replace-with') {
                    ?>
			<?php 
                    $_smarty_tpl->tpl_vars['body'] = new Smarty_Variable($_smarty_tpl->tpl_vars['node']->value['content']['html'], null, 0);
                    ?>
		<?php 
                }
                ?>
	
	<?php 
            }
            ?>
	
<?php 
        }
        ?>

<?php 
        if (empty($_smarty_tpl->tpl_vars['body']->value)) {
            $_smarty_tpl->tpl_vars['body'] = new Smarty_Variable('<h1>Todo:</h1><p>- Fix resize<br></p>', null, 0);
        } elseif (is_array($_smarty_tpl->tpl_vars['body']->value)) {
            ob_start();
            echo Priya\Application::object($_smarty_tpl->tpl_vars['body']->value, 'json');
            $_tmp9 = ob_get_clean();
            $_smarty_tpl->tpl_vars['body'] = new Smarty_Variable("<pre>" . $_tmp9 . "</pre>", null, 0);
        }
        if (empty($_smarty_tpl->tpl_vars['footer']->value)) {
            $_smarty_tpl->tpl_vars['footer'] = new Smarty_Variable('<button class="dialog-close mdl-button mdl-js-button mdl-button--raised mdl-button--colored">Ok</button>', null, 0);
        }
        if (empty($_smarty_tpl->tpl_vars['name']->value)) {
            $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable($_smarty_tpl->tpl_vars['class']->value, null, 0);
        }
        $_smarty_tpl->tpl_vars['lower'] = new Smarty_Variable(strtolower($_smarty_tpl->tpl_vars['name']->value), null, 0);
        $_smarty_tpl->createLocalArrayVariable('node', null, 0);
        $_smarty_tpl->tpl_vars['node']->value['id'] = (string) $_smarty_tpl->tpl_vars['node']->value['class'] . "-" . (string) $_smarty_tpl->tpl_vars['jid']->value;
        ?>

<?php 
        if (!empty($_smarty_tpl->tpl_vars['node']->value) && !empty($_smarty_tpl->tpl_vars['node']->value['content']) && !empty($_smarty_tpl->tpl_vars['node']->value['content']['class'])) {
            $_smarty_tpl->createLocalArrayVariable('node', null, 0);
            $_smarty_tpl->tpl_vars['node']->value['class'] = "dialog " . (string) $_smarty_tpl->tpl_vars['node']->value['class'] . " " . (string) $_smarty_tpl->tpl_vars['node']->value['content']['class'];
        } else {
            if (!empty($_smarty_tpl->tpl_vars['class']->value)) {
                $_smarty_tpl->createLocalArrayVariable('node', null, 0);
                $_smarty_tpl->tpl_vars['node']->value['class'] = $_smarty_tpl->tpl_vars['class']->value;
            } else {
                $_smarty_tpl->createLocalArrayVariable('node', null, 0);
                $_smarty_tpl->tpl_vars['node']->value['class'] = "dialog " . (string) $_smarty_tpl->tpl_vars['node']->value['class'];
            }
        }
        ?>

<?php 
        if (empty($_smarty_tpl->tpl_vars['menu']->value)) {
            $_smarty_tpl->tpl_vars['menu'] = new Smarty_Variable('', null, 0);
        }
        ob_start();
        echo $_smarty_tpl->tpl_vars['head']->value;
        $_tmp10 = ob_get_clean();
        ob_start();
        echo smarty_function_priya_parse(array('value' => $_tmp10), $_smarty_tpl);
        $_tmp11 = ob_get_clean();
        $_smarty_tpl->tpl_vars['head'] = new Smarty_Variable($_tmp11, null, 0);
        ?>
<div id="<?php 
        echo $_smarty_tpl->tpl_vars['node']->value['id'];
        ?>
" class="<?php 
        echo $_smarty_tpl->tpl_vars['node']->value['class'];
        ?>
 hidden">
	<div class="<?php 
        echo $_smarty_tpl->tpl_vars['node']->value['head']['class'];
        ?>
"><?php 
        ob_start();
        echo smarty_function_priya_parse(array('value' => (string) $_smarty_tpl->tpl_vars['head']->value), $_smarty_tpl);
        $_tmp12 = ob_get_clean();
        echo ($tmp = @$_smarty_tpl->tpl_vars['node']->value['head']['html']) === null || $tmp === '' ? $_tmp12 : $tmp;
        ?>
</div>
	<div class="<?php 
        echo $_smarty_tpl->tpl_vars['node']->value['body']['class'];
        ?>
"><?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['menu']->value) === null || $tmp === '' ? '' : $tmp;
        echo ($tmp = @$_smarty_tpl->tpl_vars['node']->value['body']['html']) === null || $tmp === '' ? (string) $_smarty_tpl->tpl_vars['body']->value : $tmp;
        ?>
</div>
	<div class="<?php 
        echo $_smarty_tpl->tpl_vars['node']->value['footer']['class'];
        ?>
"><?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['node']->value['footer']['html']) === null || $tmp === '' ? (string) $_smarty_tpl->tpl_vars['footer']->value : $tmp;
        ?>
</div>
</div>
<?php 
        $_smarty_tpl->tpl_vars['ignore'] = new Smarty_Variable(array(), null, 0);
        $_smarty_tpl->createLocalArrayVariable('ignore', null, 0);
        $_smarty_tpl->tpl_vars['ignore']->value['request'] = true;
        $_smarty_tpl->createLocalArrayVariable('ignore', null, 0);
        $_smarty_tpl->tpl_vars['ignore']->value['link'] = true;
        $_smarty_tpl->createLocalArrayVariable('ignore', null, 0);
        $_smarty_tpl->tpl_vars['ignore']->value['script'] = true;
        $_smarty_tpl->createLocalArrayVariable('ignore', null, 0);
        $_smarty_tpl->tpl_vars['ignore']->value['target'] = true;
        $_smarty_tpl->createLocalArrayVariable('ignore', null, 0);
        $_smarty_tpl->tpl_vars['ignore']->value['method'] = true;
        $_smarty_tpl->createLocalArrayVariable('ignore', null, 0);
        $_smarty_tpl->tpl_vars['ignore']->value['title'] = true;
        $_smarty_tpl->createLocalArrayVariable('ignore', null, 0);
        $_smarty_tpl->tpl_vars['ignore']->value['url'] = true;
        $_smarty_tpl->createLocalArrayVariable('ignore', null, 0);
        $_smarty_tpl->tpl_vars['ignore']->value['dir'] = true;
        $_smarty_tpl->createLocalArrayVariable('ignore', null, 0);
        $_smarty_tpl->tpl_vars['ignore']->value['template'] = true;
        $_from = $_smarty_tpl->tpl_vars['node']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['value']->_loop = false;
        $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
        foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['value']->value) {
            $_smarty_tpl->tpl_vars['value']->_loop = true;
            $foreach_value_Sav = $_smarty_tpl->tpl_vars['value'];
            ?>
	<?php 
            if (isset($_smarty_tpl->tpl_vars['ignore']->value[$_smarty_tpl->tpl_vars['key']->value])) {
                ?>
		<?php 
                continue 1;
                ?>
	<?php 
            }
            ?>
	<?php 
            $_smarty_tpl->createLocalArrayVariable('dialog', null, 1);
            $_smarty_tpl->tpl_vars['dialog']->value[$_smarty_tpl->tpl_vars['key']->value] = $_smarty_tpl->tpl_vars['value']->value;
            if ($_smarty_tpl->parent != null) {
                $_smarty_tpl->parent->tpl_vars['dialog'] = clone $_smarty_tpl->tpl_vars['dialog'];
            }
            ?>
	
<?php 
            $_smarty_tpl->tpl_vars['value'] = $foreach_value_Sav;
        }
        $_smarty_tpl->createLocalArrayVariable('dialog', null, 1);
        $_smarty_tpl->tpl_vars['dialog']->value['jid'] = $_smarty_tpl->tpl_vars['jid']->value;
        if ($_smarty_tpl->parent != null) {
            $_smarty_tpl->parent->tpl_vars['dialog'] = clone $_smarty_tpl->tpl_vars['dialog'];
        }
        $_smarty_tpl->createLocalArrayVariable('dialog', null, 1);
        $_smarty_tpl->tpl_vars['dialog']->value['name'] = $_smarty_tpl->tpl_vars['name']->value;
        if ($_smarty_tpl->parent != null) {
            $_smarty_tpl->parent->tpl_vars['dialog'] = clone $_smarty_tpl->tpl_vars['dialog'];
        }
        ?>

<?php 
        $_smarty_tpl->_capture_stack[0][] = array('default', null, "script");
        ob_start();
        echo '<script';
        ?>
 type="text/javascript">
$(document).ready(
	function(){				
		//change to priya.dom('#<?php 
        echo $_smarty_tpl->tpl_vars['node']->value['id'];
        ?>
 .dialog-close').on('click',function
		$('#<?php 
        echo $_smarty_tpl->tpl_vars['node']->value['id'];
        ?>
 .dialog-close').bind('click', function() {
		console.log('click');			
			var data = {};
			data.id = "<?php 
        echo $_smarty_tpl->tpl_vars['node']->value['id'];
        ?>
";					
			priya.dialog('remove', data);			
		});		
		$('#<?php 
        echo $_smarty_tpl->tpl_vars['node']->value['id'];
        ?>
 .dialog-minimize').bind('click', function() {
			var data = {};
			data.id = "<?php 
        echo $_smarty_tpl->tpl_vars['node']->value['id'];
        ?>
";			
			priya.dialog('minimize', data);			
		});
		$('#<?php 
        echo $_smarty_tpl->tpl_vars['node']->value['id'];
        ?>
 .dialog-maximize').bind('click', function() {
			var data = {};
			data.id = "<?php 
        echo $_smarty_tpl->tpl_vars['node']->value['id'];
        ?>
";		
			priya.dialog('maximize', data);			
		});
		$('#<?php 
        echo $_smarty_tpl->tpl_vars['node']->value['id'];
        ?>
 .dialog-restore').bind('click', function() {
			var data = {};
			data.id = "<?php 
        echo $_smarty_tpl->tpl_vars['node']->value['id'];
        ?>
";		
			priya.dialog('restore', data);			
		});		
	}		
);
<?php 
        echo '</script';
        ?>
>
<?php 
        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
        if (!empty($_capture_buffer)) {
            if (isset($_capture_assign)) {
                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
            }
            if (isset($_capture_append)) {
                $_smarty_tpl->append($_capture_append, ob_get_contents());
            }
            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
        } else {
            $_smarty_tpl->capture_error();
        }
    }
    function content_5658a8bca50555_61702869($_smarty_tpl)
    {
        if (!is_callable('smarty_block_block_content')) {
            require_once '/DataVolume/shares/Remco/System/vendor/Priya/Plugin/Smarty/block.block_content.php';
        }
        if (!is_callable('smarty_modifier_date_format')) {
            require_once '/DataVolume/shares/Remco/System/vendor/Smarty/libs/plugins/modifier.date_format.php';
        }
        if (!is_callable('smarty_function_priya_filetype')) {
            require_once '/DataVolume/shares/Remco/System/vendor/Priya/Plugin/Smarty/function.priya_filetype.php';
        }
        if (!is_callable('smarty_modifier_byte')) {
            require_once '/DataVolume/shares/Remco/System/vendor/Priya/Plugin/Smarty/modifier.byte.php';
        }
        $_smarty_tpl->properties['nocache_hash'] = '11552627615658a8bb681822_72160687';
        if (empty($_smarty_tpl->tpl_vars['action']->value)) {
            ?>
	<div class="file-view-head">
		<table class="file-list-head">
			<thead>
				<tr class="node-head">
					<th class="node-title node-icon"></th>
					<th class="node-title node-name" data-sort-by="ASC"><span><i class="glyphicon glyphicon-menu-down"></i></span><span>Name</span></th>
					<th class="node-title node-mtime"><span>Date modified</span></th>
					<th class="node-title node-type"><span>Type</span></th>
					<th class="node-title node-size"><span>Size</span></th>		
				</tr>				
			</thead>
		</table>	
	</div>
	<?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('block_content', array('name' => "script_capture"));
            $_block_repeat = true;
            echo smarty_block_block_content(array('name' => "script_capture"), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>
			
	<?php 
                echo '<script';
                ?>
 type="text/javascript">							
		$(document).ready(
			function(){			
				priya.sort('init',{
					"class":"file-list",
					"target":".file-list tbody",					
					"list": {
						".node-title.node-icon":"td.node-icon",
						".node-title.node-name":"td.node-name",
						".node-title.node-mtime":"td.node-mtime",
						".node-title.node-type":"td.node-type",
						".node-title.node-size":"td.node-size"					
					}					
				});			
		});											
	<?php 
                echo '</script';
                ?>
>
	<?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_block_content(array('name' => "script_capture"), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

	
	<?php 
            $_smarty_tpl->createLocalArrayVariable('script', null, 2);
            $_smarty_tpl->tpl_vars['script']->value[] = $_smarty_tpl->tpl_vars['script_capture']->value;
            $_ptr = $_smarty_tpl->parent;
            while ($_ptr != null) {
                $_ptr->tpl_vars['script'] = clone $_smarty_tpl->tpl_vars['script'];
                $_ptr = $_ptr->parent;
            }
            ?>
		
	<div class="file-view-body-scroll">
<?php 
        }
        $_smarty_tpl->smarty->_tag_stack[] = array('block_content', array('name' => "script_capture"));
        $_block_repeat = true;
        echo smarty_block_block_content(array('name' => "script_capture"), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>
			
<?php 
            echo '<script';
            ?>
 type="text/javascript">							
	$(document).ready(
		function(){			
			var child = 1;
			var width = 0;												
			var item = {};
			var th;
			$('.file-list tr:first td').each(function(){																	
				item.id = this.id;				
				item.width = $(this).outerWidth();
				width += item.width;				
				item.height = $(this).outerHeight();				
				th = $('.file-list-head th:nth-child('+child+')');
				th.css('width', item.width + 'px');								
				child++;					 					
			});						
			var outerWidth = $('.file-view-body-scroll').outerWidth();
			if(outerWidth - width > 0 ){
				if(!empty(item) && !empty(th)){									
					item.width += outerWidth - width;										
					th.css('width', item.width + 'px');					
				}
			}			
			$('.file-view-head').css('width', outerWidth + 'px');	//maybe innerWidth or width			
	});											
<?php 
            echo '</script';
            ?>
>
<?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_block_content(array('name' => "script_capture"), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>


<?php 
        $_smarty_tpl->createLocalArrayVariable('script', null, 2);
        $_smarty_tpl->tpl_vars['script']->value[] = $_smarty_tpl->tpl_vars['script_capture']->value;
        $_ptr = $_smarty_tpl->parent;
        while ($_ptr != null) {
            $_ptr->tpl_vars['script'] = clone $_smarty_tpl->tpl_vars['script'];
            $_ptr = $_ptr->parent;
        }
        ?>
<table class="file-list">
<!-- 
<thead>
	<tr class="node-head">
		<th class="node-title node-icon"></th>
		<th class="node-title node-name"><span><i class="glyphicon glyphicon-menu-down"></i></span><span>Name</span></th>
		<th class="node-title node-mtime"><span>Date modified</span></th>
		<th class="node-title node-type"><span>Type</span></th>
		<th class="node-title node-size"><span>Size</span></th>		
	</tr>				
</thead>
//-->
<tbody>
<?php 
        if (!empty($_smarty_tpl->tpl_vars['node']->value['file']) && !empty($_smarty_tpl->tpl_vars['node']->value['file']['list'])) {
            $_from = $_smarty_tpl->tpl_vars['node']->value['file']['list'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $_smarty_tpl->tpl_vars['file'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['file']->_loop = false;
            $_smarty_tpl->tpl_vars['nr'] = new Smarty_Variable();
            foreach ($_from as $_smarty_tpl->tpl_vars['nr']->value => $_smarty_tpl->tpl_vars['file']->value) {
                $_smarty_tpl->tpl_vars['file']->_loop = true;
                $foreach_file_Sav = $_smarty_tpl->tpl_vars['file'];
                ?>
	<?php 
                ob_start();
                echo str_replace('.', '-dot-', $_smarty_tpl->tpl_vars['node']->value['file']['name']);
                $_tmp5 = ob_get_clean();
                $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                $_smarty_tpl->tpl_vars['file']->value['id'] = "file-" . $_tmp5 . "-" . (string) $_smarty_tpl->tpl_vars['nr']->value;
                ?>
	<?php 
                $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                $_smarty_tpl->tpl_vars['file']->value['dir'] = array();
                ?>
	<?php 
                ob_start();
                echo str_replace('.', '-dot-', $_smarty_tpl->tpl_vars['node']->value['file']['name']);
                $_tmp6 = ob_get_clean();
                $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                $_smarty_tpl->tpl_vars['file']->value['dir']['id'] = "directory-" . $_tmp6 . "-" . (string) $_smarty_tpl->tpl_vars['nr']->value;
                ?>
	<tr id="<?php 
                echo $_smarty_tpl->tpl_vars['file']->value['id'];
                ?>
" class="node-body node-row" onclick="console.log('test');">				
	<?php 
                if (!empty($_smarty_tpl->tpl_vars['file']->value['link'])) {
                    ?>
	
		<?php 
                    if ($_smarty_tpl->tpl_vars['file']->value['type'] == 'dir') {
                        ?>
			<td class="node-<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['type'];
                        ?>
 node-link node-icon"><span><i class="glyphicon glyphicon-folder-close"></i></span></td>
		<?php 
                    } else {
                        ?>
			<td class="node-<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['type'];
                        ?>
 node-link node-icon"><span><i class="glyphicon glyphicon-file"></i></span></td>
		<?php 
                    }
                    ?>
									
	<?php 
                } else {
                    ?>
	
		<?php 
                    if ($_smarty_tpl->tpl_vars['file']->value['type'] == 'dir') {
                        ?>
		<td class="node-<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['type'];
                        ?>
 node-icon"><span><i class="glyphicon glyphicon-folder-close"></i></span></td>
		<?php 
                    } else {
                        ?>
		<td class="node-<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['type'];
                        ?>
 node-icon"><span><i class="glyphicon glyphicon-file"></i></span></td>
		<?php 
                    }
                    ?>
										
	<?php 
                }
                ?>
		<td class="node-<?php 
                echo $_smarty_tpl->tpl_vars['file']->value['type'];
                ?>
 node-name" data-sort="<?php 
                echo $_smarty_tpl->tpl_vars['file']->value['type'];
                ?>
-<?php 
                echo $_smarty_tpl->tpl_vars['file']->value['name'];
                ?>
" data-sort-flag="SORT_NATURAL"><span><?php 
                echo $_smarty_tpl->tpl_vars['file']->value['name'];
                ?>
</span></td>
		<?php 
                ob_start();
                echo smarty_modifier_date_format(filemtime($_smarty_tpl->tpl_vars['file']->value['url']), "%Y-%m-%d %H:%M:%S");
                $_tmp7 = ob_get_clean();
                $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                $_smarty_tpl->tpl_vars['file']->value['mtime'] = $_tmp7;
                ?>
								
		<td class="node-<?php 
                echo $_smarty_tpl->tpl_vars['file']->value['type'];
                ?>
 node-mtime" data-sort="<?php 
                echo $_smarty_tpl->tpl_vars['file']->value['type'];
                ?>
-<?php 
                echo $_smarty_tpl->tpl_vars['file']->value['mtime'];
                ?>
-<?php 
                echo $_smarty_tpl->tpl_vars['file']->value['name'];
                ?>
"><span><?php 
                echo $_smarty_tpl->tpl_vars['file']->value['mtime'];
                ?>
</span></td>
		<?php 
                if ($_smarty_tpl->tpl_vars['file']->value['type'] == 'dir') {
                    ?>
			<?php 
                    if (!empty($_smarty_tpl->tpl_vars['file']->value['link'])) {
                        ?>
				<?php 
                        ob_start();
                        echo smarty_function_priya_filetype(array('value' => 'dir link'), $_smarty_tpl);
                        $_tmp8 = ob_get_clean();
                        $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                        $_smarty_tpl->tpl_vars['file']->value['filetype'] = $_tmp8;
                        ?>
				<td class="node-<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['type'];
                        ?>
 node-link node-type" data-sort="<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['type'];
                        ?>
-<?php 
                        ob_start();
                        echo $_smarty_tpl->tpl_vars['file']->value['name'];
                        $_tmp9 = ob_get_clean();
                        echo $_smarty_tpl->tpl_vars['file']->value['filetype'] - $_tmp9;
                        ?>
" data-sort-flag="SORT_NATURAL"><span><?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['filetype'];
                        ?>
</span></td>
			<?php 
                    } else {
                        ?>
				<?php 
                        ob_start();
                        echo smarty_function_priya_filetype(array('value' => 'dir'), $_smarty_tpl);
                        $_tmp10 = ob_get_clean();
                        $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                        $_smarty_tpl->tpl_vars['file']->value['filetype'] = $_tmp10;
                        ?>
				<td class="node-<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['type'];
                        ?>
 node-type" data-sort="<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['type'];
                        ?>
-<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['filetype'];
                        ?>
-<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['name'];
                        ?>
" data-sort-flag="SORT_NATURAL"><span><?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['filetype'];
                        ?>
</span></td>
			<?php 
                    }
                    ?>
			<?php 
                    $_smarty_tpl->smarty->_tag_stack[] = array('block_content', array('name' => "script_capture"));
                    $_block_repeat = true;
                    echo smarty_block_block_content(array('name' => "script_capture"), null, $_smarty_tpl, $_block_repeat);
                    while ($_block_repeat) {
                        ob_start();
                        ?>
			
			<?php 
                        echo '<script';
                        ?>
 type="text/javascript">							
				$(document).ready(
					function(){				
						priya.dom('#<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['id'];
                        ?>
').on('dblclick', function(){
							this.trigger('open'); //fires .on('open');
							this.select('#<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['dir']['id'];
                        ?>
').trigger('open');							
						});
																						
						priya.dom('#<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['id'];
                        ?>
').on('dblclick', function(){												
							this.addClass('node-loader node-selected');																
							var offset = $('#<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['dir']['id'];
                        ?>
').offset();
							offset.root = $(".directory-list.node-root").offset();							
							var width = $(".directory-list.node-root").outerWidth();															
							var top = offset.top - offset.root.top;																							
							$('.node-selector').css('top', top + 'px');
							$('.node-selector').css('width', width + 'px');
							$('.node-hover').css('width', width + 'px');
							$('.node-selector').removeClass('hidden');		
							$('.node-selector').addClass('node-loader');		
							$('.node-selected').removeClass('node-selected');																							
							$(this).addClass('node-selected');			
							$('#<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['dir']['id'];
                        ?>
 .node-with-subdir i').addClass('spinner linear ease');							
							$('#<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['dir']['id'];
                        ?>
 .node-icon i').addClass('glyphicon-folder-open');										
							<?php 
                        $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                        $_smarty_tpl->tpl_vars['file']->value['request'] = array();
                        ?>
							<?php 
                        $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                        $_smarty_tpl->tpl_vars['file']->value['request']['type'] = 'post';
                        ?>
							<?php 
                        $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                        $_smarty_tpl->tpl_vars['file']->value['request']['url'] = (string) $_smarty_tpl->tpl_vars['url']->value;
                        ?>
							<?php 
                        $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                        $_smarty_tpl->tpl_vars['file']->value['request']['data'] = array();
                        ?>
							<?php 
                        $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                        $_smarty_tpl->tpl_vars['file']->value['request']['data']['selected'] = $_smarty_tpl->tpl_vars['file']->value;
                        ?>
							<?php 
                        $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                        $_smarty_tpl->tpl_vars['file']->value['request']['data']['target'] = "#" . (string) $_smarty_tpl->tpl_vars['file']->value['dir']['id'];
                        ?>
							<?php 
                        $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                        $_smarty_tpl->tpl_vars['file']->value['request']['data']['method'] = 'replace-with';
                        ?>
							<?php 
                        $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                        $_smarty_tpl->tpl_vars['file']->value['request']['data']['action'] = 'directory-list-open';
                        ?>
							
							var request = <?php 
                        echo Priya\Application::object($_smarty_tpl->tpl_vars['file']->value['request'], 'json');
                        ?>
;			
							priya.request(request);	
							$('#<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['id'];
                        ?>
').off('click');
							$('#<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['dir']['id'];
                        ?>
').off('click');								
							setTimeout(function(){
								$('#<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['id'];
                        ?>
 .node-icon i').addClass('glyphicon-folder-open');						
								$('#<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['id'];
                        ?>
 .node-icon i').removeClass('glyphicon-folder-close');
							},200);
													
						
							
												
					});																
				});											
			<?php 
                        echo '</script';
                        ?>
>
			<?php 
                        $_block_content = ob_get_clean();
                        $_block_repeat = false;
                        echo smarty_block_block_content(array('name' => "script_capture"), $_block_content, $_smarty_tpl, $_block_repeat);
                    }
                    array_pop($_smarty_tpl->smarty->_tag_stack);
                    ?>

			
			<?php 
                    $_smarty_tpl->createLocalArrayVariable('script', null, 2);
                    $_smarty_tpl->tpl_vars['script']->value[] = $_smarty_tpl->tpl_vars['script_capture']->value;
                    $_ptr = $_smarty_tpl->parent;
                    while ($_ptr != null) {
                        $_ptr->tpl_vars['script'] = clone $_smarty_tpl->tpl_vars['script'];
                        $_ptr = $_ptr->parent;
                    }
                    ?>
						
		<?php 
                } else {
                    ?>
			<?php 
                    ob_start();
                    echo smarty_function_priya_filetype(array('value' => $_smarty_tpl->tpl_vars['file']->value['name']), $_smarty_tpl);
                    $_tmp11 = ob_get_clean();
                    $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                    $_smarty_tpl->tpl_vars['file']->value['filetype'] = $_tmp11;
                    ?>
			<td class="node-<?php 
                    echo $_smarty_tpl->tpl_vars['file']->value['type'];
                    ?>
 node-type" data-sort="<?php 
                    echo $_smarty_tpl->tpl_vars['file']->value['type'];
                    ?>
-<?php 
                    echo $_smarty_tpl->tpl_vars['file']->value['filetype'];
                    ?>
-<?php 
                    echo $_smarty_tpl->tpl_vars['file']->value['name'];
                    ?>
" data-sort-flag="SORT_NATURAL"><span><?php 
                    echo $_smarty_tpl->tpl_vars['file']->value['filetype'];
                    ?>
</span></td>
		<?php 
                }
                ?>
		
		<?php 
                ob_start();
                echo filesize($_smarty_tpl->tpl_vars['file']->value['url']);
                $_tmp12 = ob_get_clean();
                $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                $_smarty_tpl->tpl_vars['file']->value['size'] = $_tmp12;
                ?>
		<td class="node-<?php 
                echo $_smarty_tpl->tpl_vars['file']->value['type'];
                ?>
 node-size" data-sort="<?php 
                echo $_smarty_tpl->tpl_vars['file']->value['type'];
                ?>
-<?php 
                echo $_smarty_tpl->tpl_vars['file']->value['size'];
                ?>
-<?php 
                echo $_smarty_tpl->tpl_vars['file']->value['name'];
                ?>
" data-sort-flag="SORT_NATURAL"><span><?php 
                echo smarty_modifier_byte($_smarty_tpl->tpl_vars['file']->value['size']);
                ?>
</span></td>
		<?php 
                $_smarty_tpl->smarty->_tag_stack[] = array('block_content', array('name' => "script_capture"));
                $_block_repeat = true;
                echo smarty_block_block_content(array('name' => "script_capture"), null, $_smarty_tpl, $_block_repeat);
                while ($_block_repeat) {
                    ob_start();
                    ?>
			
		<?php 
                    echo '<script';
                    ?>
 type="text/javascript">							
			$(document).ready(
				function(){
					/*
					$('#<?php 
                    echo $_smarty_tpl->tpl_vars['file']->value['id'];
                    ?>
').on('click', function() {
						$('.file-list .node-selected:not(#<?php 
                    echo $_smarty_tpl->tpl_vars['file']->value['id'];
                    ?>
)').removeClass('node-selected');
						$(this).toggleClass('node-selected');										
					});
					*/
					/*
					priya.dom('#<?php 
                    echo $_smarty_tpl->tpl_vars['file']->value['id'];
                    ?>
').on('click', function(){
						this.trigger('select');
												
					});					
					*/										
					priya.dom('#<?php 
                    echo $_smarty_tpl->tpl_vars['file']->value['id'];
                    ?>
').on('click', function(){
						//this.trigger('open'); //fires .on('open');
						//this.select('#<?php 
                    echo $_smarty_tpl->tpl_vars['file']->value['dir']['id'];
                    ?>
').trigger('open');
						//add request to initiate the app
						console.log('open app');
						//this.trigger('open'); //fires .on('open');
						//this.select('#<?php 
                    echo $_smarty_tpl->tpl_vars['file']->value['dir']['id'];
                    ?>
').trigger('open');						
						var request = {};
						request.type = 'post';
						request.url = "{$web_application}file/open/process/";
						request.data = {};
						request.data.url = "<?php 
                    echo $_smarty_tpl->tpl_vars['file']->value['url'];
                    ?>
";						
						priya.request(request);																																
					});
						
					
					
					/*	
					priya.dom('#<?php 
                    echo $_smarty_tpl->tpl_vars['file']->value['id'];
                    ?>
').on('click', function(){
						//when ctrl is pressed we dont want to removeClass
						//var nodes = document.querySelectorAll( selector+':not([class="no-flip"])' );
						priya.dom('.file-list .node-selected:not(#<?php 
                    echo $_smarty_tpl->tpl_vars['file']->value['id'];
                    ?>
)').removeClass('node-selected');
						this.toggleClass('node-selected');
						//should be the
						priya.dom('.directory-view .node-selected').addClass('node-blur');
												
					});
					*/
					
			});											
		<?php 
                    echo '</script';
                    ?>
>
		<?php 
                    $_block_content = ob_get_clean();
                    $_block_repeat = false;
                    echo smarty_block_block_content(array('name' => "script_capture"), $_block_content, $_smarty_tpl, $_block_repeat);
                }
                array_pop($_smarty_tpl->smarty->_tag_stack);
                ?>

		
		<?php 
                $_smarty_tpl->createLocalArrayVariable('script', null, 2);
                $_smarty_tpl->tpl_vars['script']->value[] = $_smarty_tpl->tpl_vars['script_capture']->value;
                $_ptr = $_smarty_tpl->parent;
                while ($_ptr != null) {
                    $_ptr->tpl_vars['script'] = clone $_smarty_tpl->tpl_vars['script'];
                    $_ptr = $_ptr->parent;
                }
                ?>
			
	</tr>		
<?php 
                $_smarty_tpl->tpl_vars['file'] = $foreach_file_Sav;
            }
        } else {
            ?>
	<tr class="node-body node-row node-empty">
		<td class="node-icon node-empty"><span><i class="glyphicon glyphicon-exclamation-sign"></i></span></td>
		<td class="node-name node-empty"><span>Dir (empty)</span></td>		
	</tr>	
<?php 
        }
        ?>
</tbody>
</table>
<?php 
        if (empty($_smarty_tpl->tpl_vars['action']->value)) {
            ?>
	</div>
<?php 
        }
    }
    function content_5658a8be437364_77969348($_smarty_tpl)
    {
        if (!is_callable('smarty_block_block_content')) {
            require_once '/DataVolume/shares/Remco/System/vendor/Priya/Plugin/Smarty/block.block_content.php';
        }
        $_smarty_tpl->properties['nocache_hash'] = '10865452585658a8bcbc4976_93486818';
        if (!empty($_smarty_tpl->tpl_vars['node']->value['file']) && !empty($_smarty_tpl->tpl_vars['node']->value['file']['list'])) {
            ?>
	<?php 
            $_smarty_tpl->tpl_vars['html'] = new Smarty_Variable(false, null, 0);
            ?>
	
	<?php 
            if (!empty($_smarty_tpl->tpl_vars['action']->value) && $_smarty_tpl->tpl_vars['action']->value == 'directory-list-open') {
                ?>
	
	<?php 
                if (!empty($_smarty_tpl->tpl_vars['node']->value['file']['selected']) && !empty($_smarty_tpl->tpl_vars['node']->value['file']['selected']['url']) && !empty($_smarty_tpl->tpl_vars['target']->value)) {
                    ?>
		<?php 
                    $_smarty_tpl->tpl_vars['file'] = new Smarty_Variable($_smarty_tpl->tpl_vars['node']->value['file']['selected'], null, 0);
                    ?>
	
		<?php 
                    ob_start();
                    echo substr($_smarty_tpl->tpl_vars['target']->value, 1);
                    $_tmp13 = ob_get_clean();
                    $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                    $_smarty_tpl->tpl_vars['file']->value['id'] = $_tmp13;
                    ?>
		
	<tr id="<?php 
                    echo $_smarty_tpl->tpl_vars['file']->value['id'];
                    ?>
" class="directory-list-row node-row">
	<td>
	<button>
		
		<?php 
                    if (!empty($_smarty_tpl->tpl_vars['file']->value['hasSubDir']) && $_smarty_tpl->tpl_vars['file']->value['hasSubDir'] != 'false') {
                        ?>
<span class="node-<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['type'];
                        ?>
 node-link node-has-subdir node-with-subdir-collapse"><i class="glyphicon glyphicon-menu-down"></i></span><?php 
                    } else {
                        ?>
<span class="node-<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['type'];
                        ?>
 node-link node-has-subdir node-without-subdir"><i class="glyphicon glyphicon-menu-down"></i></span><?php 
                    }
                    if (!empty($_smarty_tpl->tpl_vars['file']->value['link'])) {
                        ?>
<span class="node-<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['type'];
                        ?>
 node-link node-icon"><i class="glyphicon glyphicon-folder-open"></i></span><span class="node-<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['type'];
                        ?>
 node-link node-name"><?php 
                        echo basename($_smarty_tpl->tpl_vars['file']->value['url']);
                        ?>
</span><?php 
                    } else {
                        ?>
<span class="node-<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['type'];
                        ?>
 node-icon"><i class="glyphicon glyphicon-folder-open"></i></span><span class="node-<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['type'];
                        ?>
 node-name"><?php 
                        echo basename($_smarty_tpl->tpl_vars['file']->value['url']);
                        ?>
</span><?php 
                    }
                    ?>
		<?php 
                    $_smarty_tpl->smarty->_tag_stack[] = array('block_content', array('name' => "script_capture"));
                    $_block_repeat = true;
                    echo smarty_block_block_content(array('name' => "script_capture"), null, $_smarty_tpl, $_block_repeat);
                    while ($_block_repeat) {
                        ob_start();
                        ?>
			
		<?php 
                        echo '<script';
                        ?>
 type="text/javascript">							
			$(document).ready(
				function(){
					var offset = $('#<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['id'];
                        ?>
').offset();
					offset.root = $(".directory-list.node-root").offset();																																									
					var top = offset.top - offset.root.top;																							
					$('.node-selector').css('top', top + 'px');
					$('.node-hover').css('top', top + 'px');
					var width = $(".directory-list.node-root").outerWidth();
					$('.node-selector').css('width', width + 'px');
					$('.node-hover').css('width', width + 'px');
					$('.node-selector').removeClass('node-loader');
					$('.node-selected').removeClass('node-selected');
					$('#<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['id'];
                        ?>
').addClass('node-selected');															
					$('#<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['id'];
                        ?>
').on('mouseenter', function() {						
						var offset = $(this).offset();
						offset.root = $(".directory-list.node-root").offset();							
						var width = $(".directory-list.node-root").outerWidth();															
						var top = offset.top - offset.root.top;																												
						$('.node-hover').css('top', top + 'px');
						$('.node-hover').css('width', width + 'px');
						$('.node-hover').removeClass('hidden');	
					});
					$('#<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['id'];
                        ?>
').on('mouseleave', function() {
						$('.node-hover').addClass('hidden');
					});																							
					$('#<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['id'];
                        ?>
').off('click');															
					$('#<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['id'];
                        ?>
').on('click', function() {
						var offset = $(this).offset();
						offset.root = $(".directory-list.node-root").offset();																																									
						var top = offset.top - offset.root.top;																							
						$('.node-selector').css('top', top + 'px');						
						$('.node-selector').removeClass('hidden');	
						$('.node-selected').removeClass('node-selected');
						$('.node-blur').removeClass('node-blur');																										
						$(this).addClass('node-selected');						
						$('#<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['id'];
                        ?>
 .node-icon i').addClass('glyphicon-folder-close');						
						$('#<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['id'];
                        ?>
 .node-icon i').removeClass('glyphicon-folder-open');						
						$('#<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['id'];
                        ?>
-directory-list').remove();
						$('#<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['id'];
                        ?>
 .node-with-subdir-collapse').addClass('node-with-subdir');
						$('#<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['id'];
                        ?>
 .node-with-subdir').removeClass('node-with-subdir-collapse');						
						$('#<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['id'];
                        ?>
 .node-with-subdir i').addClass('glyphicon-menu-right');
						$('#<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['id'];
                        ?>
 .node-with-subdir i').removeClass('glyphicon-menu-down');
						var width = $(".directory-list.node-root").outerWidth();
						$('.node-selector').css('width', width + 'px');	
						$('.node-hover').css('width', width + 'px');					
						$(this).off('click');
						$(this).on('click', function() {
							var offset = $(this).offset();
							offset.root = $(".directory-list.node-root").offset();																													
							var top = offset.top - offset.root.top;																							
							$('.node-selector').css('top', top + 'px');
							$('.node-selector').css('width', width + 'px');
							$('.node-selector').removeClass('hidden');
							$('.node-selector').addClass('node-loader');
							$('#<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['id'];
                        ?>
 .node-with-subdir i').addClass('spinner linear ease');
							$('.node-selected').removeClass('node-selected');																																														
							$(this).addClass('node-selected');													
							<?php 
                        $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                        $_smarty_tpl->tpl_vars['file']->value['request'] = array();
                        ?>
							<?php 
                        $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                        $_smarty_tpl->tpl_vars['file']->value['request']['type'] = 'post';
                        ?>
							<?php 
                        $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                        $_smarty_tpl->tpl_vars['file']->value['request']['url'] = (string) $_smarty_tpl->tpl_vars['url']->value;
                        ?>
							<?php 
                        $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                        $_smarty_tpl->tpl_vars['file']->value['request']['data'] = array();
                        ?>
							<?php 
                        $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                        $_smarty_tpl->tpl_vars['file']->value['request']['data']['selected'] = $_smarty_tpl->tpl_vars['file']->value;
                        ?>
							<?php 
                        $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                        $_smarty_tpl->tpl_vars['file']->value['request']['data']['target'] = "#" . (string) $_smarty_tpl->tpl_vars['file']->value['id'];
                        ?>
							<?php 
                        $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                        $_smarty_tpl->tpl_vars['file']->value['request']['data']['method'] = 'replace-with';
                        ?>
							<?php 
                        $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                        $_smarty_tpl->tpl_vars['file']->value['request']['data']['action'] = 'directory-list-open';
                        ?>
							
							var request = <?php 
                        echo Priya\Application::object($_smarty_tpl->tpl_vars['file']->value['request'], 'json');
                        ?>
;			
							priya.request(request);		
							var width = $(".directory-list.node-root").outerWidth();
							$('.node-selector').css('width', width + 'px');
							$('.node-hover').css('width', width + 'px');
							$(this).off('click');	
							setTimeout(function(){
								$('#<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['id'];
                        ?>
 .node-icon i').addClass('glyphicon-folder-open');						
								$('#<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['id'];
                        ?>
 .node-icon i').removeClass('glyphicon-folder-close');
							},200);			
						});
						
																																			
					});																
				}
			);
		<?php 
                        echo '</script';
                        ?>
>				
		<?php 
                        $_block_content = ob_get_clean();
                        $_block_repeat = false;
                        echo smarty_block_block_content(array('name' => "script_capture"), $_block_content, $_smarty_tpl, $_block_repeat);
                    }
                    array_pop($_smarty_tpl->smarty->_tag_stack);
                    ?>

		
		<?php 
                    $_smarty_tpl->createLocalArrayVariable('script', null, 2);
                    $_smarty_tpl->tpl_vars['script']->value[] = $_smarty_tpl->tpl_vars['script_capture']->value;
                    $_ptr = $_smarty_tpl->parent;
                    while ($_ptr != null) {
                        $_ptr->tpl_vars['script'] = clone $_smarty_tpl->tpl_vars['script'];
                        $_ptr = $_ptr->parent;
                    }
                    ?>
	</button>			
	</td>
	</tr>	
	<?php 
                }
                ?>
	<?php 
            }
            ?>
			
	<?php 
            $_from = $_smarty_tpl->tpl_vars['node']->value['file']['list'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $_smarty_tpl->tpl_vars['file'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['file']->_loop = false;
            $_smarty_tpl->tpl_vars['nr'] = new Smarty_Variable();
            foreach ($_from as $_smarty_tpl->tpl_vars['nr']->value => $_smarty_tpl->tpl_vars['file']->value) {
                $_smarty_tpl->tpl_vars['file']->_loop = true;
                $foreach_file_Sav = $_smarty_tpl->tpl_vars['file'];
                ?>
	
			<?php 
                if ($_smarty_tpl->tpl_vars['file']->value['type'] != 'dir') {
                    ?>
				<?php 
                    continue 1;
                    ?>
			<?php 
                }
                ?>
			<?php 
                $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                $_smarty_tpl->tpl_vars['file']->value['hasSubDir'] = false;
                ?>
			<?php 
                if (empty($_smarty_tpl->tpl_vars['html']->value)) {
                    ?>
				<?php 
                    if (!empty($_smarty_tpl->tpl_vars['action']->value) && $_smarty_tpl->tpl_vars['action']->value == 'directory-list-open') {
                        ?>
					<tr id="<?php 
                        echo $_smarty_tpl->tpl_vars['node']->value['file']['selected']['id'];
                        ?>
-directory-list" class="directory-list-row node-row">
					<td>
					<table class="directory-list">
				<?php 
                    } else {
                        ?>
					<div class="node-selector hidden"></div>
					<div class="node-hover hidden"></div>																
					<table class="directory-list node-root">					
				<?php 
                    }
                    ?>
									
				<?php 
                    $_smarty_tpl->tpl_vars['html'] = new Smarty_Variable(true, null, 0);
                    ?>
			<?php 
                }
                ?>
				
			<?php 
                ob_start();
                echo str_replace('.', '-dot-', $_smarty_tpl->tpl_vars['node']->value['file']['name']);
                $_tmp14 = ob_get_clean();
                $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                $_smarty_tpl->tpl_vars['file']->value['id'] = "directory-" . $_tmp14 . "-" . (string) $_smarty_tpl->tpl_vars['nr']->value;
                ?>
			<?php 
                if (!empty($_smarty_tpl->tpl_vars['file']->value['class'])) {
                    ?>
				<tr id="<?php 
                    echo $_smarty_tpl->tpl_vars['file']->value['id'];
                    ?>
" class="<?php 
                    echo $_smarty_tpl->tpl_vars['file']->value['class'];
                    ?>
">				
			<?php 
                } else {
                    ?>
				<tr id="<?php 
                    echo $_smarty_tpl->tpl_vars['file']->value['id'];
                    ?>
" class="directory-list-row node-row mdl-js-ripple-effect">
			<?php 
                }
                ?>
			<td>
			<button>
			<?php 
                if (!empty($_smarty_tpl->tpl_vars['file']->value['list'])) {
                    ?>
				
				<?php 
                    $_from = $_smarty_tpl->tpl_vars['file']->value['list'];
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    $_smarty_tpl->tpl_vars['file_list_file'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['file_list_file']->_loop = false;
                    $_smarty_tpl->tpl_vars['file_list_nr'] = new Smarty_Variable();
                    foreach ($_from as $_smarty_tpl->tpl_vars['file_list_nr']->value => $_smarty_tpl->tpl_vars['file_list_file']->value) {
                        $_smarty_tpl->tpl_vars['file_list_file']->_loop = true;
                        $foreach_file_list_file_Sav = $_smarty_tpl->tpl_vars['file_list_file'];
                        ?>
	
				<?php 
                        if ($_smarty_tpl->tpl_vars['file_list_file']->value['type'] != 'dir') {
                            ?>
					<?php 
                            continue 1;
                            ?>
				<?php 
                        }
                        ?>
				
				
				<?php 
                        $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                        $_smarty_tpl->tpl_vars['file']->value['hasSubDir'] = true;
                        ?>
				<?php 
                        $_smarty_tpl->tpl_vars['file_list_file'] = $foreach_file_list_file_Sav;
                    }
                    ?>
			
			<?php 
                }
                ?>
									
			<?php 
                if (!empty($_smarty_tpl->tpl_vars['file']->value['link'])) {
                    ?>
						
				<?php 
                    if (!empty($_smarty_tpl->tpl_vars['file']->value['hasSubDir'])) {
                        ?>
<span class="node-<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['type'];
                        ?>
 node-link node-has-subdir node-with-subdir"><i class="glyphicon glyphicon-menu-right"></i></span><?php 
                    } else {
                        ?>
<span class="node-<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['type'];
                        ?>
 node-link node-has-subdir node-without-subdir"><i class="glyphicon glyphicon-menu-left"></i></span><?php 
                    }
                    ?>
<span class="node-<?php 
                    echo $_smarty_tpl->tpl_vars['file']->value['type'];
                    ?>
 node-link node-icon"><i class="glyphicon glyphicon-folder-close"></i></span><span class="node-<?php 
                    echo $_smarty_tpl->tpl_vars['file']->value['type'];
                    ?>
 node-link node-name"><?php 
                    echo $_smarty_tpl->tpl_vars['file']->value['name'];
                    ?>
</span>
			<?php 
                } else {
                    ?>
				
				<?php 
                    if (!empty($_smarty_tpl->tpl_vars['file']->value['hasSubDir'])) {
                        ?>
<span class="node-<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['type'];
                        ?>
 node-link node-has-subdir node-with-subdir"><i class="glyphicon glyphicon-menu-right"></i></span><?php 
                    } else {
                        ?>
<span class="node-<?php 
                        echo $_smarty_tpl->tpl_vars['file']->value['type'];
                        ?>
 node-link node-has-subdir node-without-subdir"><i class="glyphicon glyphicon-menu-left"></i></span><?php 
                    }
                    ?>
<span class="node-<?php 
                    echo $_smarty_tpl->tpl_vars['file']->value['type'];
                    ?>
 node-icon"><i class="glyphicon glyphicon-folder-close"></i></span><span class="node-<?php 
                    echo $_smarty_tpl->tpl_vars['file']->value['type'];
                    ?>
 node-name"><?php 
                    echo $_smarty_tpl->tpl_vars['file']->value['name'];
                    ?>
</span>													
			<?php 
                }
                ?>
	
			</button>
			</td>
			</tr>
			<?php 
                $_smarty_tpl->smarty->_tag_stack[] = array('block_content', array('name' => "script_capture"));
                $_block_repeat = true;
                echo smarty_block_block_content(array('name' => "script_capture"), null, $_smarty_tpl, $_block_repeat);
                while ($_block_repeat) {
                    ob_start();
                    ?>
			
			<?php 
                    echo '<script';
                    ?>
 type="text/javascript">							
				$(document).ready(
					function(){
						$('#<?php 
                    echo $_smarty_tpl->tpl_vars['file']->value['id'];
                    ?>
').on('mouseenter', function() {
							var offset = $(this).offset();
							offset.root = $(".directory-list.node-root").offset();								
							var width = $(".directory-list.node-root").outerWidth();																								
							var top = offset.top - offset.root.top;																							
							$('.node-hover').css('top', top + 'px');
							$('.node-hover').css('width', width + 'px');
							$('.node-hover').removeClass('hidden');													
						});
						$('#<?php 
                    echo $_smarty_tpl->tpl_vars['file']->value['id'];
                    ?>
').on('mouseleave', function() {
							$('.node-hover').addClass('hidden');							
						});																					
						$('#<?php 
                    echo $_smarty_tpl->tpl_vars['file']->value['id'];
                    ?>
').on('click', function() {	
							$('.node-blur').removeClass('node-blur');						
							var offset = $(this).offset();
							offset.root = $(".directory-list.node-root").offset();							
							var width = $(".directory-list.node-root").outerWidth();															
							var top = offset.top - offset.root.top;																							
							$('.node-selector').css('top', top + 'px');
							$('.node-selector').css('width', width + 'px');
							$('.node-hover').css('width', width + 'px');
							$('.node-selector').removeClass('hidden');		
							$('.node-selector').addClass('node-loader');		
							$('.node-selected').removeClass('node-selected');																							
							$(this).addClass('node-selected');			
							$('#<?php 
                    echo $_smarty_tpl->tpl_vars['file']->value['id'];
                    ?>
 .node-with-subdir i').addClass('spinner linear ease');							
							$('#<?php 
                    echo $_smarty_tpl->tpl_vars['file']->value['id'];
                    ?>
 .node-icon i').addClass('glyphicon-folder-open');										
							<?php 
                    $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                    $_smarty_tpl->tpl_vars['file']->value['request'] = array();
                    ?>
							<?php 
                    $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                    $_smarty_tpl->tpl_vars['file']->value['request']['type'] = 'post';
                    ?>
							<?php 
                    $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                    $_smarty_tpl->tpl_vars['file']->value['request']['url'] = (string) $_smarty_tpl->tpl_vars['url']->value;
                    ?>
							<?php 
                    $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                    $_smarty_tpl->tpl_vars['file']->value['request']['data'] = array();
                    ?>
							<?php 
                    $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                    $_smarty_tpl->tpl_vars['file']->value['request']['data']['selected'] = $_smarty_tpl->tpl_vars['file']->value;
                    ?>
							<?php 
                    $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                    $_smarty_tpl->tpl_vars['file']->value['request']['data']['target'] = "#" . (string) $_smarty_tpl->tpl_vars['file']->value['id'];
                    ?>
							<?php 
                    $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                    $_smarty_tpl->tpl_vars['file']->value['request']['data']['method'] = 'replace-with';
                    ?>
							<?php 
                    $_smarty_tpl->createLocalArrayVariable('file', null, 0);
                    $_smarty_tpl->tpl_vars['file']->value['request']['data']['action'] = 'directory-list-open';
                    ?>
							
							var request = <?php 
                    echo Priya\Application::object($_smarty_tpl->tpl_vars['file']->value['request'], 'json');
                    ?>
;			
							priya.request(request);	
							$(this).off('click');								
							setTimeout(function(){
								$('#<?php 
                    echo $_smarty_tpl->tpl_vars['file']->value['id'];
                    ?>
 .node-icon i').addClass('glyphicon-folder-open');						
								$('#<?php 
                    echo $_smarty_tpl->tpl_vars['file']->value['id'];
                    ?>
 .node-icon i').removeClass('glyphicon-folder-close');
							},200);
													
						});					
					}
				);
			<?php 
                    echo '</script';
                    ?>
>				
			<?php 
                    $_block_content = ob_get_clean();
                    $_block_repeat = false;
                    echo smarty_block_block_content(array('name' => "script_capture"), $_block_content, $_smarty_tpl, $_block_repeat);
                }
                array_pop($_smarty_tpl->smarty->_tag_stack);
                ?>

			
			<?php 
                $_smarty_tpl->createLocalArrayVariable('script', null, 2);
                $_smarty_tpl->tpl_vars['script']->value[] = $_smarty_tpl->tpl_vars['script_capture']->value;
                $_ptr = $_smarty_tpl->parent;
                while ($_ptr != null) {
                    $_ptr->tpl_vars['script'] = clone $_smarty_tpl->tpl_vars['script'];
                    $_ptr = $_ptr->parent;
                }
                ?>
		<?php 
                $_smarty_tpl->tpl_vars['file'] = $foreach_file_Sav;
            }
            ?>
		<?php 
            if (!empty($_smarty_tpl->tpl_vars['html']->value)) {
                ?>
					
			</table>
			<?php 
                if (!empty($_smarty_tpl->tpl_vars['action']->value) && $_smarty_tpl->tpl_vars['action']->value == 'directory-list-open') {
                    ?>
				</td>
				</tr>
			<?php 
                }
                ?>
		<?php 
            }
            ?>
	
<?php 
        } else {
            ?>
		<table class="directory-list node-empty">
			<tr>
			<td>
			<span class="node-icon node-empty"><i class="glyphicon glyphicon-exclamation-sign"></i></span>
			<span class="node-name node-empty">Dir (empty)</span>
			</td>
			</tr>				
		</table>	
<?php 
        }
    }
    function content_5645c62cae2ff8_54274438($_smarty_tpl)
    {
        $_smarty_tpl->properties['nocache_hash'] = '18690707005645c62c7a8208_61321804';
        $_smarty_tpl->_capture_stack[0][] = array('default', null, "script");
        ob_start();
        echo '<script';
        ?>
 type="text/javascript">
$(document).ready(
	function(){		
		priya.data('url',<?php 
        echo Priya\Application::object($_smarty_tpl->tpl_vars['data']->value['Priya\\Url'], 'json');
        ?>
);		
		var viewportHeight = $(window).height();   
		var menuHeight = 48;//$('.welcome-header').height();		
		var pageHeight = viewportHeight - menuHeight;
		$('.welcome-main').css('max-height', pageHeight);
		$('.welcome-menu-navigation .item').bind('click', function() {			
			$('.welcome-menu').removeClass('is-visible');
		});					
	}	
);
<?php 
        echo '</script';
        ?>
>
<?php 
        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
        if (!empty($_capture_buffer)) {
            if (isset($_capture_assign)) {
                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
            }
            if (isset($_capture_append)) {
                $_smarty_tpl->append($_capture_append, ob_get_contents());
            }
            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
        } else {
            $_smarty_tpl->capture_error();
        }
        ?>
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header hidden">
	<header class="mdl-layout__header welcome-header">
		
		<div class="mdl-layout__tab-bar mdl-js-ripple-effect welcome-tab">
				<a href="#scroll-tab-1" class="mdl-layout__tab is-active">Tab 1</a>
				<a href="#scroll-tab-2" class="mdl-layout__tab">Tab 2</a>
				<a href="#scroll-tab-3" class="mdl-layout__tab">Tab 3</a>
				<a href="#scroll-tab-4" class="mdl-layout__tab">Tab 4</a>
				<a href="#scroll-tab-5" class="mdl-layout__tab">Tab 5</a>
				<a href="#scroll-tab-6" class="mdl-layout__tab">Tab 6</a>
		</div>
	</header>
	
	<div class="mdl-layout__drawer welcome-menu">
		<span class="mdl-layout-title"><?php 
        echo $_smarty_tpl->tpl_vars['web_application']->value;
        ?>
</span>
		<nav class="mdl-navigation welcome-menu-navigation">							
			<?php 
        $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable(array(), null, 0);
        ?>
			<?php 
        $_smarty_tpl->createLocalArrayVariable('item', null, 0);
        $_smarty_tpl->tpl_vars['item']->value['url'] = (string) $_smarty_tpl->tpl_vars['web_application']->value . "file/manager/";
        ?>
				
			<a href="javascript:priya.dialog('create','<?php 
        echo Priya\Application::object($_smarty_tpl->tpl_vars['item']->value, 'json_data');
        ?>
');" class="mdl-navigation__link item"><i class="material-icons dp48">folder_open</i><span>File Manager</span></a>
			
			<?php 
        $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable(array(), null, 0);
        ?>
			<?php 
        $_smarty_tpl->createLocalArrayVariable('item', null, 0);
        $_smarty_tpl->tpl_vars['item']->value['url'] = (string) $_smarty_tpl->tpl_vars['web_application']->value . "music/player/";
        ?>
			<a href="javascript:priya.dialog('create','<?php 
        echo Priya\Application::object($_smarty_tpl->tpl_vars['item']->value, 'json_data');
        ?>
');" class="mdl-navigation__link item"><i class="material-icons dp48">folder_open</i><span>Music player</span></a>
																
			<?php 
        $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable(array(), null, 0);
        ?>
			<?php 
        $_smarty_tpl->createLocalArrayVariable('item', null, 0);
        $_smarty_tpl->tpl_vars['item']->value['url'] = (string) $_smarty_tpl->tpl_vars['web_application']->value . "font/preview/mdl/";
        ?>
			
			<a href="javascript:priya.dialog('create','<?php 
        echo Priya\Application::object($_smarty_tpl->tpl_vars['item']->value, 'json_data');
        ?>
');" class="mdl-navigation__link item"><i class="material-icons dp48">folder_open</i><span>Icon Material Design Preview</span></a>
			
			<?php 
        $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable(array(), null, 0);
        ?>
			<?php 
        $_smarty_tpl->createLocalArrayVariable('item', null, 0);
        $_smarty_tpl->tpl_vars['item']->value['url'] = (string) $_smarty_tpl->tpl_vars['web_application']->value . "font/preview/bootstrap/";
        ?>
			<a href="javascript:priya.dialog('create','<?php 
        echo Priya\Application::object($_smarty_tpl->tpl_vars['item']->value, 'json_data');
        ?>
');" class="mdl-navigation__link item"><i class="material-icons dp48">folder_open</i><span>Icon Bootstrap Preview</span></a>
						
		</nav>										
	</div>
 	<main class="mdl-layout__content welcome-main">
		<section class="mdl-layout__tab-panel is-active" id="scroll-tab-1">
			<div class="page-content">tab1<!-- Your content goes here --></div>
		</section>
		<section class="mdl-layout__tab-panel" id="scroll-tab-2">
			<div class="page-content">tab2<!-- Your content goes here --></div>
		</section>
		<section class="mdl-layout__tab-panel" id="scroll-tab-3">
			<div class="page-content">tab3<!-- Your content goes here --></div>
		</section>
		<section class="mdl-layout__tab-panel" id="scroll-tab-4">
			<div class="page-content">tab4<!-- Your content goes here --></div>
		</section>
		<section class="mdl-layout__tab-panel" id="scroll-tab-5">
			<div class="page-content">tab5<!-- Your content goes here --></div>
		</section>
		<section class="mdl-layout__tab-panel" id="scroll-tab-6">
			<div class="page-content">tab6<!-- Your content goes here --></div>
		</section>
  </main>  
</div>
<!--
<div id="p2" class="mdl-progress mdl-js-progress mdl-progress__indeterminate"></div>

--><?php 
    }