/** * 构造方法 * @param string $table 关系表名 * @param string $field 关系表ID * @param int $relation_id 关系表ID的值 * @param string $comment_type 评论类型 * @param string $style 视图样式 */ function __construct($table, $field, $relation_id, $comment_type, $style = '') { parent::__construct(); $this->relation_table = trim($table); $this->relation_field = trim($field); $this->id = intval($relation_id); $this->comment_type = trim($comment_type); $cfg = cfg(); $this->view_path = $cfg->get('comment_view_path'); if (empty($this->view_path)) { $this->view_path = "Comment"; } if (empty($style)) { $this->view_style = ""; } else { $this->view_style = $style . "/"; } $this->one_page = comment_one_page(); $this->db = db(); }
<input type="url" name="site_static_url_ssl" class="form-control" value="<?php echo site_static_url_ssl(); ?> " id="inputSiteStaticUrl_ssl" placeholder="url"> <p class="help-block">用于网站资源设置的静态访问地址,必须以斜杠结尾</p> </div> </div> <div class="form-group"> <label for="CommentOnePage" class="col-sm-2 control-label">每页评论数</label> <div class="col-sm-10"> <input type="number" name="comment_one_page" class="form-control" value="<?php echo comment_one_page(); ?> " id="CommentOnePage" placeholder="数量"> <p class="help-block">评论每页显示的顶级评论数量</p> </div> </div> <div class="form-group"> <label for="CommentOnePage" class="col-sm-2 control-label">评论嵌套数</label> <div class="col-sm-10"> <input type="number" name="comment_deep" class="form-control" value="<?php echo comment_deep(); ?>