|
1 | 1 | <?php |
2 | | -// invoke OnManagerTreeInit event |
3 | | -$evtOut = EvolutionCMS()->invokeEvent('OnManagerTreeInit', $_REQUEST); |
4 | | -if(is_array($evtOut)) { |
| 2 | +$evtOut = evo()->invokeEvent('OnManagerTreeInit', $_REQUEST); |
| 3 | +if (is_array($evtOut)) { |
5 | 4 | echo implode("\n", $evtOut); |
6 | 5 | }?> |
7 | 6 |
|
8 | 7 | <div class="treeframebody"> |
9 | 8 | <div id="treeMenu"> |
10 | 9 | <a class="treeButton" id="treeMenu_expandtree" onclick="modx.tree.expandTree();" title="{{ ManagerTheme::getLexicon('expand_tree') }}"><i class="{{ $_style['icon_arrow_down_circle'] }}"></i></a> |
11 | 10 | <a class="treeButton" id="treeMenu_collapsetree" onclick="modx.tree.collapseTree();" title="{{ ManagerTheme::getLexicon('collapse_tree') }}"><i class="{{ $_style['icon_arrow_up_circle'] }}"></i></a> |
12 | | - @if(EvolutionCMS()->hasPermission('new_document')) |
| 11 | + @if(evo()->hasPermission('new_document')) |
13 | 12 | <a class="treeButton" id="treeMenu_addresource" onclick="modx.tabs({url:'{{ MODX_MANAGER_URL }}?a=4', title: '{{ ManagerTheme::getLexicon('add_resource') }}'});" title="{{ ManagerTheme::getLexicon('add_resource') }}"><i class="{{ $_style['icon_document'] }}"></i></a> |
14 | 13 | <a class="treeButton" id="treeMenu_addweblink" onclick="modx.tabs({url:'{{ MODX_MANAGER_URL }}?a=72', title: '{{ ManagerTheme::getLexicon('add_weblink') }}'});" title="{{ ManagerTheme::getLexicon('add_weblink') }}"><i class="{{ $_style['icon_chain'] }}"></i></a> |
15 | 14 | @endif |
16 | 15 | <a class="treeButton" id="treeMenu_refreshtree" onclick="modx.tree.restoreTree();" title="{{ ManagerTheme::getLexicon('refresh_tree') }}"><i class="{{ $_style['icon_refresh'] }}"></i></a> |
17 | 16 | <a class="treeButton" id="treeMenu_sortingtree" onclick="modx.tree.showSorter(event);" title="{{ ManagerTheme::getLexicon('sort_tree') }}"><i class="{{ $_style['icon_sort'] }}"></i></a> |
18 | | - @if(EvolutionCMS()->hasPermission('edit_document') && EvolutionCMS()->hasPermission('save_document')) |
| 17 | + @if(evo()->hasPermission('edit_document') && evo()->hasPermission('save_document')) |
19 | 18 | <a class="treeButton" id="treeMenu_sortingindex" onclick="modx.tabs({url: '{{ MODX_MANAGER_URL }}?a=56&id=0', title: '{{ ManagerTheme::getLexicon('sort_menuindex') }}'});" title="{{ ManagerTheme::getLexicon('sort_menuindex') }}"><i class="{{ $_style['icon_sort_num_asc'] }}"></i></a> |
20 | 19 | @endif |
21 | | - @if(EvolutionCMS()->getConfig('use_browser') && EvolutionCMS()->hasPermission('assets_images')) |
| 20 | + {{-- @if(evo()->getConfig('use_browser') && evo()->hasPermission('assets_images')) |
22 | 21 | <a class="treeButton" id="treeMenu_openimages" title="{{ ManagerTheme::getLexicon('images_management') }}
{{ ManagerTheme::getLexicon('em_button_shift') }}"><i class="{{ $_style['icon_camera'] }}"></i></a> |
23 | | - @endif |
24 | | - @if(EvolutionCMS()->getConfig('use_browser') && EvolutionCMS()->hasPermission('assets_files')) |
| 22 | + @endif --}} |
| 23 | + {{--@if(evo()->getConfig('use_browser') && evo()->hasPermission('assets_files')) |
25 | 24 | <a class="treeButton" id="treeMenu_openfiles" title="{{ ManagerTheme::getLexicon('files_management') }}
{{ ManagerTheme::getLexicon('em_button_shift') }}"><i class="{{ $_style['icon_files'] }}"></i></a> |
26 | | - @endif |
27 | | - @if(EvolutionCMS()->hasPermission('edit_template') || EvolutionCMS()->hasPermission('edit_snippet') || EvolutionCMS()->hasPermission('edit_chunk') || EvolutionCMS()->hasPermission('edit_plugin')) |
| 25 | + @endif --}} |
| 26 | + {{-- @if(evo()->hasPermission('edit_template') || evo()->hasPermission('edit_snippet') || evo()->hasPermission('edit_chunk') || evo()->hasPermission('edit_plugin')) |
28 | 27 | <a class="treeButton" id="treeMenu_openelements" title="{{ ManagerTheme::getLexicon('element_management') }}
{{ ManagerTheme::getLexicon('em_button_shift') }}"><i class="{{ $_style['icon_elements'] }}"></i></a> |
29 | | - @endif |
30 | | - @if(EvolutionCMS()->hasPermission('empty_trash')) |
| 28 | + @endif --}} |
| 29 | + @if(evo()->hasPermission('empty_trash')) |
31 | 30 | <a class="treeButton treeButtonDisabled" id="treeMenu_emptytrash" title="{{ ManagerTheme::getLexicon('empty_recycle_bin_empty') }}"><i class="{{ $_style['icon_trash'] }}"></i></a> |
32 | 31 | @endif |
33 | 32 | <a class="treeButton" id="treeMenu_theme_dark" onclick="modx.tree.toggleTheme(event)" title="{{ ManagerTheme::getLexicon('manager_theme_mode_title') }}"><i class="{{ $_style['icon_theme'] }}"></i></a> |
34 | 33 | </div> |
35 | 34 |
|
36 | 35 | <div id="treeHolder"> |
37 | 36 | <?php |
38 | | - // invoke OnManagerTreePrerender event |
39 | | - $evtOut = EvolutionCMS()->invokeEvent('OnManagerTreePrerender', $_REQUEST); |
| 37 | + $evtOut = evo()->invokeEvent('OnManagerTreePrerender', $_REQUEST); |
40 | 38 | if(is_array($evtOut)) { |
41 | 39 | echo implode("\n", $evtOut); |
42 | 40 | } |
43 | | - $siteName = EvolutionCMS()->getPhpCompat()->entities(EvolutionCMS()->getConfig('site_name')); |
| 41 | + $siteName = evo()->getPhpCompat()->entities(evo()->getConfig('site_name')); |
44 | 42 | ?> |
45 | 43 |
|
46 | 44 | <div id="node0" class="rootNode"><a class="node" onclick="modx.tree.treeAction(event, 0)" data-id="0" data-title-esc="{{ $siteName }}"><span class="icon"><i class="{{ $_style['icon_sitemap'] }}"></i></span><span class="title">{{ $siteName }}</span></a> |
|
49 | 47 | <div id="treeRoot0" class="treeRoot"></div> |
50 | 48 |
|
51 | 49 | <?php |
52 | | - // invoke OnManagerTreeRender event |
53 | | - $evtOut = EvolutionCMS()->invokeEvent('OnManagerTreeRender', $_REQUEST); |
54 | | - if(is_array($evtOut)) { |
| 50 | + $evtOut = evo()->invokeEvent('OnManagerTreeRender', $_REQUEST); |
| 51 | + if (is_array($evtOut)) { |
55 | 52 | echo implode("\n", $evtOut); |
56 | 53 | } ?> |
57 | 54 | </div> |
|
0 commit comments