<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>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # 評論鉤子 ## 鉤子名稱 `comment` ## 鉤子類型 `前臺模板鉤子` ## 鉤子參數 `object_id`:你要評論內容的 id; `table_name`:你要評論內容所在表名,不帶表前綴; `object_title`:你要評論內容的標題或名稱; `url`:你要評論內容加密過后的URL,用cmf_url_encode方法生成; `user_id`:文章作者id,(5.0.180123新增) ## 插件返回結果 `類型`:string 渲染后評論的 html,如評論框,評論列表 ## 模板中添加評論鉤子 ``` <php> $comment_hook_param=[ /*你要評論內容的 id*/ 'object_id'=>1, /*你要評論內容所在表,不帶表前綴*/ 'table_name'=>'portal_post', /*你要評論內容的標題或名稱*/ 'object_title'=>'我是標題', /*你要評論內容的查看地址,cmf_url_encode用法和 cmf_url類似*/ 'url'=>cmf_url_encode('portal/Article/index',array( 'id'=>$article['id'], 'cid'=>$category['id'] )) , 'user_id'=>$article['user_id'],//5.0.180123新增 ]; $comment=hook_one('comment',$comment_hook_param); </php> {/*判斷是否有插件安裝,否則提示管理員安裝插件*/} <if condition="empty($comment) && cmf_get_current_admin_id()"> <div style="border: 1px dashed #ddd;min-height: 200px;padding-top: 50px;"> <div class="alert alert-warning" role="alert"> 此區域這為評論區,請安裝評論插件!<br> <em>注:普通用戶不會看到此提示!</em> </div> </div> </if> {/*輸出評論內容*/} {$comment} ```
                  <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>

                              哎呀哎呀视频在线观看