seo.blade.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. @extends('admin/public/layout')
  2. @section('title')SEO设置@endsection
  3. @section('content')
  4. <section class="content-header">
  5. <h1>SEO设置</h1>
  6. </section>
  7. <section class="content">
  8. <div class="row">
  9. <div class="col-xs-12">
  10. <form role="form" name="addForm" id="register_form" method="POST" action="{{ route('admin.setting.seo') }}">
  11. {{ csrf_field() }}
  12. <div class="box box-default">
  13. <div class="box-header with-border">
  14. <h3 class="box-title">SEO设置规则</h3>
  15. </div>
  16. <div class="box-body">
  17. <ol>
  18. <li>网站名称:wzmc(应用范围:所有位置)</li>
  19. <li>网站口号:wzkh(应用范围:所有位置)</li>
  20. <li>话题列表:htlb(应用范围:问题、文章、课堂 查看页)</li>
  21. <li>问题标题:wtbt(应用范围:问题查看页)</li>
  22. <li>问题描述:wtms(应用范围:问题查看页)</li>
  23. <li>问题状态:wtzt(应用范围:问题查看页)</li>
  24. <li>文章标题:wzbt(应用范围:文章查看页)</li>
  25. <li>文章摘要:wzzy(应用范围:文章查看页)</li>
  26. <li>课堂标题:ktbt (应用范围:课堂详情页面)</li>
  27. <li>课堂描述:ktms (应用范围:课堂详情页面)</li>
  28. <li>话题名称:htmc(应用范围:话题查看页)</li>
  29. <li>话题简介:htjj(应用范围:话题查看页)</li>
  30. </ol>
  31. <p>以上标签(必须包含大括号"{}")可以通过添加在下面来优化页面SEO设置,多个标签之间可以用半角连字符"-"、半角","或半角空格隔开。
  32. <br />留空为默认SEO设置,如果标签不再应用范围内则不显示此标签。</p>
  33. </div>
  34. </div>
  35. <div class="box box-default">
  36. <div class="box-header with-border">
  37. <h3 class="box-title">首页</h3>
  38. </div>
  39. <div class="box-body">
  40. <div class="form-group">
  41. <label for="seo_index_title">Title</label>
  42. <span class="text-muted">(关键字将包含在每一个页面的title里面)</span>
  43. <input type="text" class="form-control" name="seo_index_title" placeholder="Title" value="{{ old('seo_index_title',Setting()->get('seo_index_title')) }}" />
  44. </div>
  45. <div class="form-group">
  46. <label for="seo_index_keyword">Meta keywords</label>
  47. <span class="text-muted">(给搜索引擎看的keywords)</span>
  48. <input type="text" class="form-control" name="seo_index_keyword" placeholder="Meta keywords" value="{{ old('seo_index_keyword',Setting()->get('seo_index_keyword')) }}" />
  49. </div>
  50. <div class="form-group">
  51. <label for="seo_index_description">Meta Description</label>
  52. <span class="text-muted">(给搜索引擎看的Description)</span>
  53. <input type="text" class="form-control" name="seo_index_description" placeholder="Meta Description" value="{{ old('seo_index_description',Setting()->get('seo_index_description')) }}" />
  54. </div>
  55. </div>
  56. </div>
  57. <div class="box box-default">
  58. <div class="box-header with-border">
  59. <h3 class="box-title">问题</h3>
  60. </div>
  61. <div class="box-body">
  62. <div class="form-group">
  63. <label for="seo_question_title">Title</label>
  64. <span class="text-muted">(关键字将包含在每一个页面的title里面)</span>
  65. <input type="text" class="form-control" name="seo_question_title" placeholder="Title" value="{{ old('seo_question_title',Setting()->get('seo_question_title')) }}" />
  66. </div>
  67. <div class="form-group">
  68. <label for="seo_question_keyword">Meta keywords</label>
  69. <span class="text-muted">(给搜索引擎看的keywords)</span>
  70. <input type="text" class="form-control" name="seo_question_keyword" placeholder="Meta keywords" value="{{ old('seo_question_keyword',Setting()->get('seo_question_keyword')) }}" />
  71. </div>
  72. <div class="form-group">
  73. <label for="seo_question_description">Meta Description</label>
  74. <span class="text-muted">(给搜索引擎看的Description)</span>
  75. <input type="text" class="form-control" name="seo_question_description" placeholder="Meta Description" value="{{ old('seo_question_description',Setting()->get('seo_question_description')) }}" />
  76. </div>
  77. </div>
  78. </div>
  79. <div class="box box-default">
  80. <div class="box-header with-border">
  81. <h3 class="box-title">文章</h3>
  82. </div>
  83. <div class="box-body">
  84. <div class="form-group">
  85. <label for="seo_article_title">Title</label>
  86. <span class="text-muted">(关键字将包含在每一个页面的title里面)</span>
  87. <input type="text" class="form-control" name="seo_article_title" placeholder="Title" value="{{ old('seo_article_title',Setting()->get('seo_article_title')) }}" />
  88. </div>
  89. <div class="form-group">
  90. <label for="seo_article_keyword">Meta keywords</label>
  91. <span class="text-muted">(给搜索引擎看的keywords)</span>
  92. <input type="text" class="form-control" name="seo_article_keyword" placeholder="Meta keywords" value="{{ old('seo_article_keyword',Setting()->get('seo_article_keyword')) }}" />
  93. </div>
  94. <div class="form-group">
  95. <label for="seo_article_description">Meta Description</label>
  96. <span class="text-muted">(给搜索引擎看的Description)</span>
  97. <input type="text" class="form-control" name="seo_article_description" placeholder="Meta Description" value="{{ old('seo_article_description',Setting()->get('seo_article_description')) }}" />
  98. </div>
  99. </div>
  100. </div>
  101. <div class="box box-default">
  102. <div class="box-header with-border">
  103. <h3 class="box-title">讲堂</h3>
  104. </div>
  105. <div class="box-body">
  106. <div class="form-group">
  107. <label for="seo_video_title">Title</label>
  108. <span class="text-muted">(关键字将包含在每一个页面的title里面)</span>
  109. <input type="text" class="form-control" name="seo_video_title" placeholder="Title" value="{{ old('seo_video_title',Setting()->get('seo_video_title')) }}" />
  110. </div>
  111. <div class="form-group">
  112. <label for="seo_video_keyword">Meta keywords</label>
  113. <span class="text-muted">(给搜索引擎看的keywords)</span>
  114. <input type="text" class="form-control" name="seo_video_keyword" placeholder="Meta keywords" value="{{ old('seo_video_keyword',Setting()->get('seo_video_keyword')) }}" />
  115. </div>
  116. <div class="form-group">
  117. <label for="seo_video_description">Meta Description</label>
  118. <span class="text-muted">(给搜索引擎看的Description)</span>
  119. <input type="text" class="form-control" name="seo_video_description" placeholder="Meta Description" value="{{ old('seo_video_description',Setting()->get('seo_video_description')) }}" />
  120. </div>
  121. </div>
  122. </div>
  123. <div class="box box-default">
  124. <div class="box-header with-border">
  125. <h3 class="box-title">话题</h3>
  126. </div>
  127. <div class="box-body">
  128. <div class="form-group">
  129. <label for="seo_topic_title">Title</label>
  130. <span class="text-muted">(关键字将包含在每一个页面的title里面)</span>
  131. <input type="text" class="form-control" name="seo_topic_title" placeholder="Title" value="{{ old('seo_topic_title',Setting()->get('seo_topic_title')) }}" />
  132. </div>
  133. <div class="form-group">
  134. <label for="seo_topic_keyword">Meta keywords</label>
  135. <span class="text-muted">(给搜索引擎看的keywords)</span>
  136. <input type="text" class="form-control" name="seo_topic_keyword" placeholder="Meta Keywords" value="{{ old('seo_topic_keyword',Setting()->get('seo_topic_keyword')) }}" />
  137. </div>
  138. <div class="form-group">
  139. <label for="seo_topic_description">Meta Description</label>
  140. <span class="text-muted">(给搜索引擎看的Description)</span>
  141. <input type="text" class="form-control" name="seo_topic_description" placeholder="Meta Description" value="{{ old('seo_topic_description',Setting()->get('seo_topic_description')) }}" />
  142. </div>
  143. </div>
  144. </div>
  145. <div>
  146. <button type="submit" class="btn btn-primary editor-submit">保存</button>
  147. <button type="reset" class="btn btn-success">重置</button>
  148. </div>
  149. </form>
  150. </div>
  151. </div>
  152. </section>
  153. @endsection
  154. @section('script')
  155. <script type="text/javascript">
  156. $(function(){
  157. set_active_menu('global',"{{ route('admin.setting.seo') }}");
  158. });
  159. </script>
  160. @endsection