-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathfooter.php
25 lines (23 loc) · 917 Bytes
/
footer.php
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
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
</div><!-- end .row -->
</div>
<script class="tmp">
main.loadtime = <?php timer_stop(true,4); ?>
</script>
</div><!-- end #body -->
<footer id="footer" role="contentinfo">
<?php if (inArray('hitokoto', $this->options->advanced)): ?>
<div><a id="hitokoto" rel="nofollow" target="_blank"></a></div>
<?php endif; ?>
<?php
$footer = !empty($this->options->footer)?$this->options->footer:NULL;
if ($footer !== NULL) {
$search = ['{Y}','{siteUrl}','{title}','{inf}'];
$replace = [date('Y'),$this->options->siteUrl,$this->options->title,'Processed in <span id="loadtime">'.timer_stop(false,4).'</span> second(s), Gzip '.(is_Gzip()?'ON':'OFF').', SSL '.(is_SSL()?'ON':'OFF').'.'];
echo str_replace($search,$replace,$footer);
}
?>
</footer><!-- end #footer -->
<?php $this->footer(); ?>
</body>
</html>