78 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			PHP
		
	
	
	
			
		
		
	
	
			78 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			PHP
		
	
	
	
| <?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
 | |
| 
 | |
|         </div><!-- end .row -->
 | |
|     </div>
 | |
| </div><!-- end #body -->
 | |
| 
 | |
| <!-- Advanced styles -->
 | |
| <script>
 | |
|     $(document).ready(function(){
 | |
|         $("article .post-content img").addClass("img-fluid mx-auto d-block shadow rounded");
 | |
|         $("article blockquote").addClass("shadow rounded");
 | |
|         $("article pre").addClass("shadow rounded");
 | |
|         $("table").addClass("table");
 | |
|     });
 | |
| </script>
 | |
| 
 | |
| <!-- lately.js -->
 | |
| <script>Lately({'target' : '.lately'});</script>
 | |
| 
 | |
| <!-- KaTeX js via jsDelivr -->
 | |
| <script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.18/dist/katex.min.js"></script>
 | |
| <script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.18/dist/contrib/auto-render.min.js"></script>
 | |
| <script>
 | |
|     function triggerRenderingLaTeX(element) {
 | |
|         renderMathInElement(
 | |
|             element,
 | |
|             {
 | |
|                 delimiters: [
 | |
|                     {left: "$$", right: "$$", display: true},
 | |
|                     {left: "$", right: "$", display: false},
 | |
|                 ]
 | |
|             }
 | |
|         );
 | |
|     }
 | |
|     document.addEventListener("DOMContentLoaded", function() {
 | |
|         triggerRenderingLaTeX(document.body);
 | |
|     });
 | |
|     document.addEventListener("DOMContentLoaded", function() {
 | |
|         var wmdPreviewLink = document.querySelector("a[href='#wmd-preview']");
 | |
|         var wmdPreviewContainer = document.querySelector("#wmd-preview");
 | |
|         if(wmdPreviewLink && wmdPreviewContainer) {
 | |
|             wmdPreviewLink.onclick = function() {
 | |
|                 triggerRenderingLaTeX(wmdPreviewContainer);
 | |
|             };
 | |
|         }
 | |
|     });
 | |
| </script>
 | |
| 
 | |
| <footer class="mt-5 mb-5" id="footer" role="footer">
 | |
|     <div class="container">
 | |
|         <hr>
 | |
|         <div class="text-center">
 | |
|             <p>
 | |
|                 <?php if ($this->options->nisInfo != ""): ?>
 | |
|                 <a id="nis" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=<?php echo mb_substr($this->options->nisInfo, 5, 14) ?>" target="_blank">
 | |
|                     <?php echo $this->options->nisInfo ?>
 | |
|                 </a> | <?php endif; ?>
 | |
|                 <?php if ($this->options->icpInfo != ""): ?>
 | |
|                 <a href="https://beian.miit.gov.cn/" target="_blank"><?php echo $this->options->icpInfo ?></a>
 | |
|                 <?php endif; ?>
 | |
|                 <?php if ($this->options->bottomLinks != ""): ?>
 | |
|                     <?php Links_Plugin::output($pattern=' | <a href="{url}" title="{title}" target="_blank">{name}</a>', $links_num=0, $sort=$this->options->bottomLinks); ?>
 | |
|                 <?php endif; ?>
 | |
|             </p>
 | |
|             <!-- <p>© <?php #echo date('Y');?> <?php #$this->options->title(); ?> ♥ <?php #Typecho_Widget::widget('Widget_Stat')->to($stat); ?><?php #$stat->publishedPostsNum() ?> Posts <?php #allOfCharacters();?> Words crafted</p> -->
 | |
|             <p>© <?php echo date('Y');?> <?php $this->options->title(); ?> <i class="fas fa-heart text-danger"></i> <?php Typecho_Widget::widget('Widget_Stat')->to($stat); ?><?php $stat->publishedPostsNum() ?> Posts <?php allOfCharacters();?> Words crafted</p>
 | |
|             <p>Powered by <a href="https://www.typecho.org">Typecho</a> | Theme <a href="https://github.com/Skywt2003/sky">Sky</a> by <a href="https://skywt.cn/">SkyWT</a></p>
 | |
|         </div>
 | |
|     </div>
 | |
| </footer><!-- end #footer -->
 | |
| 
 | |
| <!--<pre><?php #print_r($this); ?></pre>-->
 | |
| 
 | |
| <?php $this->footer(); ?>
 | |
| 
 | |
| </body>
 | |
| </html>
 |