Source code of filesite.io. https://filesite.io
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

42 lines
1.1 KiB

<div class="menu">
<?php
$selectedIndex = 0;
if (!empty($viewData['menus'])) {
foreach($viewData['menus'] as $index => $item) {
$selected = $index == $selectedIndex ? 'selected' : '';
echo <<<eof
<a href="{$item['path']}" class="{$selected}">{$item['directory']}</a>
eof;
}
}
?>
</div>
<div class="hr"></div>
<div class="content markdown-body">
<?php
$cateId = $viewData['menus'][$selectedIndex]['id'];
$category = $viewData['scanResults'][$cateId];
if (!empty($category['files'])) {
foreach($category['files'] as $file) {
echo <<<eof
<img src="{$file['path']}" alt="{$file['filename']}">
eof;
}
}
?>
</div>
<div class="modal-mask" id="modal_about">
<div class="modal-about">
<div class="modal-head">
<h3>关于GoogleImage</h3>
<span class="btn-close" role="button"><svg width="24" height="24" viewBox="0 0 24 24" focusable="false" class=" NMm5M"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"></path></svg></span>
</div>
<div class="hr"></div>
<div class="modal-body markdown-body">
<?php echo $viewData['html']; ?>
</div>
</div>
</div>