filesite
4 weeks ago
6 changed files with 58 additions and 17 deletions
@ -1,16 +1,28 @@
@@ -1,16 +1,28 @@
|
||||
<div class="indexes"> |
||||
<?php |
||||
if (!empty($viewData['titles'])) { |
||||
foreach($viewData['titles'] as $title) { |
||||
$link = urlencode($title['name']); |
||||
echo <<<eof |
||||
<{$title['heading']}><a href="#{$link}">{$title['name']}</a></{$title['heading']}> |
||||
foreach($viewData['titles'] as $title) { |
||||
$link = urlencode($title['name']); |
||||
echo <<<eof |
||||
<{$title['heading']}><a href="#{$link}">{$title['name']}</a></{$title['heading']}> |
||||
eof; |
||||
} |
||||
} |
||||
} |
||||
?> |
||||
<div class="author"> |
||||
<?php |
||||
if (!empty($viewData['author'])) { |
||||
echo <<<eof |
||||
作者:<small>{$viewData['author']}</small> |
||||
<br> |
||||
eof; |
||||
} |
||||
?> |
||||
发布:<small><?php echo date('Y-m-d H:i:s', $viewData['publishTime']); ?></small> |
||||
<br>修改:<small><?php echo date('Y-m-d H:i:s', $viewData['updateTime']); ?></small> |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="content markdown-body"> |
||||
<?php echo $viewData['html']; ?> |
||||
<?php echo $viewData['html']; ?> |
||||
</div> |
@ -1,17 +1,29 @@
@@ -1,17 +1,29 @@
|
||||
<div class="indexes"> |
||||
<p><a href="javascript:history.back(-1);"><<返回</a></p> |
||||
<p><a href="javascript:history.back(-1);"><<返回</a></p> |
||||
<?php |
||||
if (!empty($viewData['titles'])) { |
||||
foreach($viewData['titles'] as $title) { |
||||
$link = urlencode($title['name']); |
||||
echo <<<eof |
||||
<{$title['heading']}><a href="#{$link}">{$title['name']}</a></{$title['heading']}> |
||||
foreach($viewData['titles'] as $title) { |
||||
$link = urlencode($title['name']); |
||||
echo <<<eof |
||||
<{$title['heading']}><a href="#{$link}">{$title['name']}</a></{$title['heading']}> |
||||
eof; |
||||
} |
||||
} |
||||
} |
||||
?> |
||||
<div class="author"> |
||||
<?php |
||||
if (!empty($viewData['author'])) { |
||||
echo <<<eof |
||||
作者:<small>{$viewData['author']}</small> |
||||
<br> |
||||
eof; |
||||
} |
||||
?> |
||||
发布:<small><?php echo date('Y-m-d H:i:s', $viewData['publishTime']); ?></small> |
||||
<br>修改:<small><?php echo date('Y-m-d H:i:s', $viewData['updateTime']); ?></small> |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="content markdown-body"> |
||||
<?php echo $viewData['html']; ?> |
||||
<?php echo $viewData['html']; ?> |
||||
</div> |
Loading…
Reference in new issue