-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathview.php
More file actions
34 lines (27 loc) · 674 Bytes
/
Copy pathview.php
File metadata and controls
34 lines (27 loc) · 674 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<script>
$(function() {
SelectorTest = {};
SelectorTest.pageData = <?php echo $initialData; ?>;
$('.selectortest-tree')
.each(function() {
$(this).tree('loadData', [SelectorTest.pageData[$(this).attr('data-id')]]);
});
});
</script>
<?php
echo $inputForm;
if($usedSelector) {
printf(_n('%d page found with selector', '%d pages found with selector', $resultCount), $resultCount);
echo '<span class="selectortest-used-selector">';
echo '"' . $usedSelector . '"';
echo '</span>';
echo '</br>';
if($fakeRole) {
printf(_('Page permissions for role %s'), $fakeRole);
}
if($resultCount > 0) {
echo $pager;
echo $resultTable;
echo $pager;
}
}