更新
This commit is contained in:
		
							parent
							
								
									9aca51ef5a
								
							
						
					
					
						commit
						fe479844bc
					
				| @ -117,7 +117,8 @@ function themeFields($layout) | ||||
|         'SEO关键词(非常重要!)', | ||||
|         '介绍:用于设置当前页SEO关键词 <br /> | ||||
|          注意:多个关键词使用英文逗号进行隔开 <br /> | ||||
|          例如:Typecho,Typecho主题,Typecho模板' | ||||
|          例如:Typecho,Typecho主题,Typecho模板 <br /> | ||||
|          其他:如果不填写此项,则默认取文章标签' | ||||
|     ); | ||||
|     $layout->addItem($keywords); | ||||
| 
 | ||||
| @ -127,7 +128,8 @@ function themeFields($layout) | ||||
|         NULL, | ||||
|         'SEO描述语(非常重要!)', | ||||
|         '介绍:用于设置当前页SEO描述语 <br /> | ||||
|          注意:SEO描述语不应当过长也不应当过少' | ||||
|          注意:SEO描述语不应当过长也不应当过少 <br /> | ||||
|          其他:如果不填写此项,则默认截取文章片段' | ||||
|     ); | ||||
|     $layout->addItem($description); | ||||
| 
 | ||||
|  | ||||
| @ -3,7 +3,7 @@ | ||||
| /* 获取主题当前版本号 */ | ||||
| function _getVersion() | ||||
| { | ||||
|     return "5.2.4"; | ||||
|     return "5.2.5"; | ||||
| }; | ||||
| 
 | ||||
| /* 判断是否是手机 */ | ||||
| @ -185,7 +185,7 @@ function _getAbstract($item, $type = true) | ||||
|         if ($item->fields->abstract) { | ||||
|             $abstract = $item->fields->abstract; | ||||
|         } else { | ||||
|             $abstract = strip_tags($item->excerpt); | ||||
|             $abstract = Typecho_Common::subStr(strip_tags($item->excerpt), 0, 180, '...');; | ||||
|         } | ||||
|     } | ||||
|     if ($abstract === '') $abstract = "暂无简介"; | ||||
| @ -310,4 +310,4 @@ function _checkSensitiveWords($words_str, $str) | ||||
|         } | ||||
|     } | ||||
|     return false; | ||||
| } | ||||
| } | ||||
|  | ||||
| @ -43,8 +43,8 @@ | ||||
| <link rel="shortcut icon" href="<?php $this->options->JFavicon() ?>" /> | ||||
| <title><?php $this->archiveTitle(array('category' => '分类 %s 下的文章', 'search' => '包含关键字 %s 的文章', 'tag' => '标签 %s 下的文章', 'author' => '%s 发布的文章'), '', ' - '); ?><?php $this->options->title(); ?></title>
 | ||||
| <?php if ($this->is('single')) : ?>
 | ||||
|     <meta name="description" content="<?php $this->fields->description(); ?>" /> | ||||
|     <meta name="keywords" content="<?php $this->fields->keywords(); ?>" /> | ||||
|     <meta name="keywords" content="<?php echo $this->fields->keywords ? $this->fields->keywords : htmlspecialchars($this->_keywords); ?>" /> | ||||
|     <meta name="description" content="<?php echo $this->fields->description ? $this->fields->description : htmlspecialchars($this->_description); ?>" /> | ||||
|     <?php $this->header('keywords=&description='); ?>
 | ||||
| <?php else : ?>
 | ||||
|     <?php $this->header(); ?>
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 杜恒
						杜恒