<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                ##WordPress模板基本文件 style.css 樣式表文件 index.php 主頁文件 single.php 日志單頁文件 page.php 頁面文件 archvie.php 分類和日期存檔頁文件 searchform.php 搜索表單文件 search.php 搜索頁面文件 comments.php 留言區域文件(包括留言列表和留言框) 404.php 404錯誤頁面 header.php 網頁頭部文件 sidebar.php 網頁側邊欄文件 footer.php 網頁底部文件 ##模板文件詳細解 1. style.css ` /* Theme Name: utubon.com Theme URI: http://www.phpstudio.info/ Description: wordpress Author: wordpress Version: 1.0 License: License URI: Tags: wordpress */ ` 2. function.php 3. index.php ##模板文件之間的調用 >wordpress使用模板通過函數的調用,讓模板之間形成完整的整體,例如在index.php中你會看到get_header()即調用文件名為header.php的模板文件, get_footer()亦然。get_template_part( 'loop', 'index' );則是調用模板loop-index.php。wordpress并非傻瓜的像include()函數一樣包含這些文件,而是對文件的存在與否要進行判斷,如果不存在該文件將用對應的相關文件代替,這需要你查看開發文檔中該函數的具體解釋。 | 文件名 | 一般作用 | 對應的函數 | 備注 | | -- | -- | -- | -- | | style.css | 樣式表 | `<?php bloginfo( 'stylesheet_url' ); ?>調用地址` | | | index.php | wp識別首頁 | 自動識別 | | | functions.php | 包含增函數和新功能 | 自動識別 | | | header.php | 頭部 | get_header() | | | footer.php | 尾部 | get_footer | | | sidebar.php | 邊側欄 | get_sidebar('foot')(無參數則調用sidebar.php) | 參數foot指文件sidebar-foot.php類推 | | loop.php<br/>content.php | 內容循環 | `get_template_part( 'loop', 'index' )和sidebar一樣` | | | 404.php<br/>search.php<br/>single.php | 分別是404頁,搜索頁,單獨頁面,文章內容頁 | 自動識別,和index.php一樣,使用上述函數,沒有該文件的話用index.php | 參數的意思是調用模板loop-index.php類推如果get_template_part( 'content','single' ); | | archive.php<br/>category.php<br/>tag.php<br/>arthor.php | 分別是歸檔頁,分類頁,標簽頁,作者頁 | 同上,但如果只有archive.php或category.php沒有其他頁,其他頁用archive.php代替或category.php代替 | |
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看