filesite
4 weeks ago
6 changed files with 58 additions and 17 deletions
@ -1,16 +1,28 @@ |
|||||||
<div class="indexes"> |
<div class="indexes"> |
||||||
<?php |
<?php |
||||||
if (!empty($viewData['titles'])) { |
if (!empty($viewData['titles'])) { |
||||||
foreach($viewData['titles'] as $title) { |
foreach($viewData['titles'] as $title) { |
||||||
$link = urlencode($title['name']); |
$link = urlencode($title['name']); |
||||||
echo <<<eof |
echo <<<eof |
||||||
<{$title['heading']}><a href="#{$link}">{$title['name']}</a></{$title['heading']}> |
<{$title['heading']}><a href="#{$link}">{$title['name']}</a></{$title['heading']}> |
||||||
eof; |
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> |
||||||
|
|
||||||
<div class="content markdown-body"> |
<div class="content markdown-body"> |
||||||
<?php echo $viewData['html']; ?> |
<?php echo $viewData['html']; ?> |
||||||
</div> |
</div> |
@ -1,17 +1,29 @@ |
|||||||
<div class="indexes"> |
<div class="indexes"> |
||||||
<p><a href="javascript:history.back(-1);"><<返回</a></p> |
<p><a href="javascript:history.back(-1);"><<返回</a></p> |
||||||
<?php |
<?php |
||||||
if (!empty($viewData['titles'])) { |
if (!empty($viewData['titles'])) { |
||||||
foreach($viewData['titles'] as $title) { |
foreach($viewData['titles'] as $title) { |
||||||
$link = urlencode($title['name']); |
$link = urlencode($title['name']); |
||||||
echo <<<eof |
echo <<<eof |
||||||
<{$title['heading']}><a href="#{$link}">{$title['name']}</a></{$title['heading']}> |
<{$title['heading']}><a href="#{$link}">{$title['name']}</a></{$title['heading']}> |
||||||
eof; |
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> |
||||||
|
|
||||||
<div class="content markdown-body"> |
<div class="content markdown-body"> |
||||||
<?php echo $viewData['html']; ?> |
<?php echo $viewData['html']; ?> |
||||||
</div> |
</div> |
Loading…
Reference in new issue