Emlog TangStyle模板结构介绍header.php
本文为Emlog-TangStyle中的header.php结构简介
<?php /* Template Name:TangStyle Description:响应式Web设计,自适应电脑、平板电脑、移动设备。 Version:2.0 Author:留日记 Author Url:作者的网址 ForEmlog:5.1.2 */ if(!defined('EMLOG_ROOT')) {exit('error!');} require_once View::getView('module'); ?>
<head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title><?php echo $site_title; ?></title> <meta name="keywords" content="<?php echo $site_key; ?>" /> <meta name="description" content="<?php echo $site_description; ?>" /> <meta name="generator" content="emlog" /> <link rel="EditURI" type="application/rsd+xml" title="RSD" href="<?php echo BLOG_URL; ?>xmlrpc.php?rsd" /> <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="<?php echo BLOG_URL; ?>wlwmanifest.xml" /> <link rel="alternate" type="application/rss+xml" title="RSS" href="<?php echo BLOG_URL; ?>rss.php" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <link href="<?php echo TEMPLATE_URL; ?>style.css" rel="stylesheet" type="text/css" /> <script src="<?php echo TEMPLATE_URL; ?>jquery.min.js"></script> <script src="<?php echo TEMPLATE_URL; ?>theme.js"></script> <script src="<?php echo BLOG_URL; ?>include/lib/js/common_tpl.js"></script> <?php doAction('index_head'); ?> </head>
上面的代码为Header中的网页信息,记录了网页的标题(echo $site_title)、关键词(<?php echo $site_key; ?>" />)、描述(<?php echo $site_description; ?>" />),并引用了common_tpl.js和theme.js以及jquery.min.js。
<ul class="my"> <li><a href="#"><i class="iconfont">Ą</i>关注我</a> <ul> <li><a href="<?php echo BLOG_URL; ?>rss.php" rel="external nofollow" target="_blank"><i class="iconfont">ǣ</i>RSS订阅</a> <ul> <li><a href="<?php echo BLOG_URL; ?>rss.php" rel="external nofollow" target="_blank">RSS Feed</a></li> <li><a href="http://mail.qq.com/cgi-bin/feed?u=<?php echo BLOG_URL; ?>rss.php" rel="external nofollow" target="_blank">订阅到 QQ邮箱</a></li> <li><a href="http://reader.youdao.com/b.do?keyfrom=bookmarklet&url=<?php echo BLOG_URL; ?>rss.php" rel="external nofollow" target="_blank">订阅到 有道阅读</a></li> <li><a href="http://xianguo.com/subscribe?url=<?php echo BLOG_URL; ?>rss.php" rel="external nofollow" target="_blank">订阅到 鲜果</a></li> <li><a href="http://www.zhuaxia.com/add_channel.php?sourceid=102&url=<?php echo BLOG_URL; ?>rss.php" rel="external nofollow" target="_blank">订阅到 抓虾</a></li> <li><a href="http://www.google.com/ig/add?feedurl=<?php echo BLOG_URL; ?>rss.php" rel="external nofollow" target="_blank">订阅到 iGoogle</a></li> </ul> </li> <li><a href="http://t.qq.com/liuhaotian0520" rel="external nofollow" target="_blank"><i class="iconfont">ǔ</i>新浪微博</a></li> <li><a href="http://weibo.com/u/1597089980" rel="external nofollow" target="_blank"><i class="iconfont">Ǖ</i>腾讯微博</a></li> </ul> </li> </ul>
这是TangStyle中的Rss订阅功能,大家可以分别设置到自己的微博空间上,也可以将其删除。