Authored by 周少峰

搜索输入框保留关键字,模板修改王庆

@@ -1141,7 +1141,7 @@ class HelperSearch @@ -1141,7 +1141,7 @@ class HelperSearch
1141 if (isset($options['controller']) && $options['controller'] == 'Search' && isset($param['query'])) { 1141 if (isset($options['controller']) && $options['controller'] == 'Search' && isset($param['query'])) {
1142 self::$listNav[1] = array( 1142 self::$listNav[1] = array(
1143 'href' => '', 1143 'href' => '',
1144 - 'name' => "".$param['query']." ".$total."个结果" 1144 + 'name' => '搜索“<span id="nav_keyword">'.$param['query'].'</span>”共<span id="nav_keyword_count">'.$total.'</span>个结果'
1145 ); 1145 );
1146 }else{ 1146 }else{
1147 self::$listNav[1] = array( 1147 self::$listNav[1] = array(
@@ -10,13 +10,15 @@ @@ -10,13 +10,15 @@
10 {{/unless}} 10 {{/unless}}
11 </a> 11 </a>
12 {{^}} 12 {{^}}
13 - <span>  
14 - {{name}} 13 +
  14 + {{{name}}}
15 15
16 {{#unless @last}} 16 {{#unless @last}}
  17 + <span>
17 <i class="iconfont">&#xe601;</i> 18 <i class="iconfont">&#xe601;</i>
  19 + </span>
18 {{/unless}} 20 {{/unless}}
19 - </span> 21 +
20 {{/if}} 22 {{/if}}
21 {{/each}} 23 {{/each}}
22 </p> 24 </p>