function content_564711ce559054_47682937($_smarty_tpl) { if (!is_callable('smarty_block_block_content')) { require_once '/DataVolume/shares/Remco/Nas/vendor/Priya/Plugin/Smarty/block.block_content.php'; } $_smarty_tpl->properties['nocache_hash'] = '1014001207564711cd973d18_36592922'; ?> <?php if (!empty($_smarty_tpl->tpl_vars['node']->value)) { ?> <?php $_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['attribute'] = new Smarty_Variable(); foreach ($_from as $_smarty_tpl->tpl_vars['attribute']->value => $_smarty_tpl->tpl_vars['value']->value) { $_smarty_tpl->tpl_vars['value']->_loop = true; $foreach_value_Sav = $_smarty_tpl->tpl_vars['value']; ?> <?php $_smarty_tpl->tpl_vars['' . $_smarty_tpl->tpl_vars['attribute']->value] = new Smarty_Variable($_smarty_tpl->tpl_vars['value']->value, null, 1); if ($_smarty_tpl->parent != null) { $_smarty_tpl->parent->tpl_vars['' . $_smarty_tpl->tpl_vars['attribute']->value] = clone $_smarty_tpl->tpl_vars['' . $_smarty_tpl->tpl_vars['attribute']->value]; } ?> <?php $_smarty_tpl->tpl_vars['value'] = $foreach_value_Sav; } } ?> <?php 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'])); $_tmp1 = ob_get_clean(); $_smarty_tpl->tpl_vars['' . $_smarty_tpl->tpl_vars['attribute']->value['name']] = new Smarty_Variable($_tmp1, 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; } } ?> <?php $_smarty_tpl->createLocalArrayVariable('node', null, 1); $_smarty_tpl->tpl_vars['node']->value['class'] = (string) $_smarty_tpl->tpl_vars['node']->value['class'] . " file-process"; if ($_smarty_tpl->parent != null) { $_smarty_tpl->parent->tpl_vars['node'] = clone $_smarty_tpl->tpl_vars['node']; } ?> <?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 dialog = {}; dialog.url = "<?php echo $_smarty_tpl->tpl_vars['application']->value['url']; ?> "; priya.dialog('create',dialog); }); <?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; } }
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_564a7f82b092b5_70315149($_smarty_tpl) { if (!is_callable('smarty_block_block_content')) { require_once '/DataVolume/shares/Remco/Nas/vendor/Priya/Plugin/Smarty/block.block_content.php'; } $_smarty_tpl->properties['nocache_hash'] = '1377713666564a7f82134aa9_34814927'; ?> <?php if (!empty($_smarty_tpl->tpl_vars['node']->value)) { ?> <?php $_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['attribute'] = new Smarty_Variable(); foreach ($_from as $_smarty_tpl->tpl_vars['attribute']->value => $_smarty_tpl->tpl_vars['value']->value) { $_smarty_tpl->tpl_vars['value']->_loop = true; $foreach_value_Sav = $_smarty_tpl->tpl_vars['value']; ?> <?php $_smarty_tpl->tpl_vars['' . $_smarty_tpl->tpl_vars['attribute']->value] = new Smarty_Variable($_smarty_tpl->tpl_vars['value']->value, null, 1); if ($_smarty_tpl->parent != null) { $_smarty_tpl->parent->tpl_vars['' . $_smarty_tpl->tpl_vars['attribute']->value] = clone $_smarty_tpl->tpl_vars['' . $_smarty_tpl->tpl_vars['attribute']->value]; } ?> <?php $_smarty_tpl->tpl_vars['value'] = $foreach_value_Sav; } } ?> <?php 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'])); $_tmp1 = ob_get_clean(); $_smarty_tpl->tpl_vars['' . $_smarty_tpl->tpl_vars['attribute']->value['name']] = new Smarty_Variable($_tmp1, 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; } } ?> <?php if (empty($_smarty_tpl->tpl_vars['jid']->value)) { ob_start(); echo rand(1000, 9999); $_tmp2 = ob_get_clean(); ob_start(); echo rand(1000, 9999); $_tmp3 = ob_get_clean(); ob_start(); echo rand(1000, 9999); $_tmp4 = ob_get_clean(); ob_start(); echo rand(1000, 9999); $_tmp5 = ob_get_clean(); $_smarty_tpl->tpl_vars['jid'] = new Smarty_Variable($_tmp2 . "-" . $_tmp3 . "-" . $_tmp4 . "-" . $_tmp5, null, 0); } ?> <?php $_smarty_tpl->tpl_vars['id'] = new Smarty_Variable("audio-player-" . (string) $_smarty_tpl->tpl_vars['jid']->value, null, 0); $_smarty_tpl->tpl_vars['video_id'] = new Smarty_Variable("video-player-" . (string) $_smarty_tpl->tpl_vars['jid']->value, null, 0); ?> <div id="<?php echo $_smarty_tpl->tpl_vars['id']->value; ?> " class="audio-player"> <video id="<?php echo $_smarty_tpl->tpl_vars['video_id']->value; ?> " controls> <source id="audio-source-play" class="audio-play" src="" type="audio/mpeg"> <!-- playlist (.m3u file support); //--> <?php if (!empty($_smarty_tpl->tpl_vars['player']->value) && !empty($_smarty_tpl->tpl_vars['player']->value['list'])) { ?> <?php $_smarty_tpl->tpl_vars['song_nr'] = new Smarty_Variable(1, null, 0); ?> <?php $_from = $_smarty_tpl->tpl_vars['player']->value['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['location'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['location']->_loop = false; $_smarty_tpl->tpl_vars['nr'] = new Smarty_Variable(); foreach ($_from as $_smarty_tpl->tpl_vars['nr']->value => $_smarty_tpl->tpl_vars['location']->value) { $_smarty_tpl->tpl_vars['location']->_loop = true; $foreach_location_Sav = $_smarty_tpl->tpl_vars['location']; ?> <source id="audio-<?php echo $_smarty_tpl->tpl_vars['jid']->value; ?> -<?php echo $_smarty_tpl->tpl_vars['song_nr']->value; ?> " src="<?php echo $_smarty_tpl->tpl_vars['location']->value; ?> " type="audio/mpeg" data-sort="<?php echo $_smarty_tpl->tpl_vars['song_nr']->value; ?> "> <?php echo $_smarty_tpl->tpl_vars['song_nr']->value++; ?> <?php $_smarty_tpl->tpl_vars['location'] = $foreach_location_Sav; } ?> <?php } ?> </video> <button onclick="priya.dom('video').play()">Play</button> <button onclick="priya.dom('video').pause()">Pause</button> <button class="video-control previous">Previous</button> <button class="video-control next">Next</button> </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(){ var previous = priya.dom('.video-control.previous'); var next = priya.dom('.video-control.next'); var video = next.closest('video'); //first select the first source to play with... var play = video.select('#audio-source-play'); var source = play.next(); play.src = source.src; source.data('play',true); video.play(); previous.on('click', function(){ console.log('clicked'); video.pause(); video.currentTime = 0; var play = video.select('#audio-source-play'); var source = video.select('[data-play="true"]'); source.data('remove','play'); var source = source.previous(); source.data('play',true); play.src = source.src; for (attribute in video){ console.log(attribute); } video.load(); video.play(); }); next.on('click', function(){ console.log('clicked'); video.pause(); video.currentTime = 0; var play = video.select('#audio-source-play'); var source = video.select('[data-play="true"]'); source.data('remove','play'); var source = source.next(); source.data('play',true); play.src = source.src; for (attribute in video){ console.log(attribute); } video.load(); video.play(); }); }); <?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; } }
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_56589e0ea81537_66043195($_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_function_priya_parse')) { require_once '/DataVolume/shares/Remco/System/vendor/Priya/Plugin/Smarty/function.priya_parse.php'; } $_smarty_tpl->properties['nocache_hash'] = '41662740956589e0e30f0d1_53800099'; $_smarty_tpl->smarty->_tag_stack[] = array('block_content', array('name' => "head")); $_block_repeat = true; echo smarty_block_block_content(array('name' => "head"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title><?php echo $_smarty_tpl->tpl_vars['title']->value; ?> </title> <meta name="description" content="<?php echo $_smarty_tpl->tpl_vars['description']->value; ?> " /> <meta name="keywords" content="<?php echo $_smarty_tpl->tpl_vars['keywords']->value; ?> " /> <meta name="copyright" content="<?php echo $_smarty_tpl->tpl_vars['copyright']->value; ?> " /> <meta name="author" content="<?php echo ($tmp = @$_smarty_tpl->tpl_vars['author']->value) === null || $tmp === '' ? "Remco van der Velde (remco.pc@outlook.com)" : $tmp; ?> " /> <meta name="revisit-after" content="<?php echo ($tmp = @$_smarty_tpl->tpl_vars['revisit']->value) === null || $tmp === '' ? "1 Week" : $tmp; ?> " /> <meta name="rating" content="<?php echo ($tmp = @$_smarty_tpl->tpl_vars['rating']->value) === null || $tmp === '' ? "General" : $tmp; ?> " /> <?php if (!is_array($_smarty_tpl->tpl_vars['url']->value)) { ?> <meta name="Identifier-URL" content="<?php echo $_smarty_tpl->tpl_vars['url']->value; ?> " /> <?php } ?> <meta name="distribution" content="<?php echo ($tmp = @$_smarty_tpl->tpl_vars['distribution']->value) === null || $tmp === '' ? "Global" : $tmp; ?> " /> <link rel="shortcut icon" href="<?php echo ($tmp = @$_smarty_tpl->tpl_vars['icon']->value) === null || $tmp === '' ? "/favicon.ico" : $tmp; ?> " /> <?php if (!empty($_smarty_tpl->tpl_vars['link']->value)) { ?> <!-- <priya-link class="<?php echo $_smarty_tpl->tpl_vars['className']->value; ?> "> //--> <?php $_from = $_smarty_tpl->tpl_vars['link']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['linkInclude'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['linkInclude']->_loop = false; $_smarty_tpl->tpl_vars['nr'] = new Smarty_Variable(); foreach ($_from as $_smarty_tpl->tpl_vars['nr']->value => $_smarty_tpl->tpl_vars['linkInclude']->value) { $_smarty_tpl->tpl_vars['linkInclude']->_loop = true; $foreach_linkInclude_Sav = $_smarty_tpl->tpl_vars['linkInclude']; ob_start(); echo $_smarty_tpl->tpl_vars['class']->value; $_tmp5 = ob_get_clean(); echo smarty_function_priya_parse(array('value' => trim($_smarty_tpl->tpl_vars['linkInclude']->value), 'class' => array($_tmp5, 'Priya\\Url')), $_smarty_tpl); ?> <?php $_smarty_tpl->tpl_vars['linkInclude'] = $foreach_linkInclude_Sav; } ?> <!-- </priya-link> //--><?php } ?> <?php if (!empty($_smarty_tpl->tpl_vars['link_priority']->value)) { ?> <!-- <priya-link class="<?php echo $_smarty_tpl->tpl_vars['className']->value; ?> with-priority"> //--> <?php $_from = $_smarty_tpl->tpl_vars['link_priority']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['linkInclude'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['linkInclude']->_loop = false; $_smarty_tpl->tpl_vars['nr'] = new Smarty_Variable(); foreach ($_from as $_smarty_tpl->tpl_vars['nr']->value => $_smarty_tpl->tpl_vars['linkInclude']->value) { $_smarty_tpl->tpl_vars['linkInclude']->_loop = true; $foreach_linkInclude_Sav = $_smarty_tpl->tpl_vars['linkInclude']; ob_start(); echo $_smarty_tpl->tpl_vars['class']->value; $_tmp6 = ob_get_clean(); echo smarty_function_priya_parse(array('value' => trim($_smarty_tpl->tpl_vars['linkInclude']->value), 'class' => array($_tmp6, 'Priya\\Url')), $_smarty_tpl); ?> <?php $_smarty_tpl->tpl_vars['linkInclude'] = $foreach_linkInclude_Sav; } ?> <!-- </priya-link> //--><?php } ?> <?php if (!empty($_smarty_tpl->tpl_vars['script_internal']->value)) { ?> <!-- <priya-script class="<?php echo $_smarty_tpl->tpl_vars['className']->value; ?> core"> //--> <?php $_from = $_smarty_tpl->tpl_vars['script_internal']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['scriptInclude'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['scriptInclude']->_loop = false; $_smarty_tpl->tpl_vars['nr'] = new Smarty_Variable(); foreach ($_from as $_smarty_tpl->tpl_vars['nr']->value => $_smarty_tpl->tpl_vars['scriptInclude']->value) { $_smarty_tpl->tpl_vars['scriptInclude']->_loop = true; $foreach_scriptInclude_Sav = $_smarty_tpl->tpl_vars['scriptInclude']; ob_start(); echo $_smarty_tpl->tpl_vars['class']->value; $_tmp7 = ob_get_clean(); echo smarty_function_priya_parse(array('value' => trim($_smarty_tpl->tpl_vars['scriptInclude']->value), 'class' => array($_tmp7, 'Priya\\Url')), $_smarty_tpl); ?> <?php $_smarty_tpl->tpl_vars['scriptInclude'] = $foreach_scriptInclude_Sav; } ?> <!-- </priya-script> //--><?php } ?> <?php if (!empty($_smarty_tpl->tpl_vars['script']->value)) { ?> <!-- <priya-script class="<?php echo $_smarty_tpl->tpl_vars['className']->value; ?> "> //--> <?php $_from = $_smarty_tpl->tpl_vars['script']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['scriptInclude'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['scriptInclude']->_loop = false; $_smarty_tpl->tpl_vars['nr'] = new Smarty_Variable(); foreach ($_from as $_smarty_tpl->tpl_vars['nr']->value => $_smarty_tpl->tpl_vars['scriptInclude']->value) { $_smarty_tpl->tpl_vars['scriptInclude']->_loop = true; $foreach_scriptInclude_Sav = $_smarty_tpl->tpl_vars['scriptInclude']; ob_start(); echo $_smarty_tpl->tpl_vars['class']->value; $_tmp8 = ob_get_clean(); echo smarty_function_priya_parse(array('value' => trim($_smarty_tpl->tpl_vars['scriptInclude']->value), 'class' => array($_tmp8, 'Priya\\Url')), $_smarty_tpl); ?> <?php $_smarty_tpl->tpl_vars['scriptInclude'] = $foreach_scriptInclude_Sav; } ?> <!-- </priya-script> //--><?php } ?> <?php if (!empty($_smarty_tpl->tpl_vars['script_priority']->value)) { ?> <!-- <priya-script class="<?php echo $_smarty_tpl->tpl_vars['className']->value; ?> with-priority" //--> <?php $_from = $_smarty_tpl->tpl_vars['script_priority']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['scriptInclude'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['scriptInclude']->_loop = false; $_smarty_tpl->tpl_vars['nr'] = new Smarty_Variable(); foreach ($_from as $_smarty_tpl->tpl_vars['nr']->value => $_smarty_tpl->tpl_vars['scriptInclude']->value) { $_smarty_tpl->tpl_vars['scriptInclude']->_loop = true; $foreach_scriptInclude_Sav = $_smarty_tpl->tpl_vars['scriptInclude']; ob_start(); echo $_smarty_tpl->tpl_vars['class']->value; $_tmp9 = ob_get_clean(); echo smarty_function_priya_parse(array('value' => trim($_smarty_tpl->tpl_vars['scriptInclude']->value), 'class' => array($_tmp9, 'Priya\\Url')), $_smarty_tpl); ?> <?php $_smarty_tpl->tpl_vars['scriptInclude'] = $foreach_scriptInclude_Sav; } ?> <!-- </priya-script> //--><?php } ?> </head> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_block_content(array('name' => "head"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); echo $_smarty_tpl->tpl_vars['head']->value; }