2006-12-02 04:36:16 +00:00
|
|
|
<?php
|
|
|
|
/*
|
2009-11-12 15:01:36 +00:00
|
|
|
* e107 website system
|
|
|
|
*
|
2009-11-18 01:06:08 +00:00
|
|
|
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
2009-11-12 15:01:36 +00:00
|
|
|
* Released under the terms and conditions of the
|
|
|
|
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* $Source: /cvs_backup/e107_0.8/e107_themes/templates/comment_template.php,v $
|
2010-02-10 18:18:01 +00:00
|
|
|
* $Revision$
|
|
|
|
* $Date$
|
|
|
|
* $Author$
|
2009-11-12 15:01:36 +00:00
|
|
|
*/
|
2006-12-02 04:36:16 +00:00
|
|
|
|
|
|
|
if (!defined('e107_INIT')) { exit; }
|
|
|
|
|
|
|
|
|
2021-01-04 08:16:21 -08:00
|
|
|
// Shortcode wrappers.
|
|
|
|
$COMMENT_WRAPPER['item']['COMENT_TIMEDATE'] = '<small>{---}</small>';
|
|
|
|
$COMMENT_WRAPPER['item']['COMMENT_EDIT'] = '<span class="comment-edit">{---}</span>';
|
|
|
|
$COMMENT_WRAPPER['item']['COMENT_REPLY'] = '<span class="comment-reply">{---}</span>';
|
|
|
|
$COMMENT_WRAPPER['item']['COMMENT_AVATAR'] = '<div class="comment-avatar center">{---}</div>';
|
|
|
|
$COMMENT_WRAPPER['item']['COMMENT_MODERATE'] = '<span class="comment-moderate">{---}</span>';
|
2006-12-02 04:36:16 +00:00
|
|
|
|
2021-01-04 08:16:21 -08:00
|
|
|
$COMMENT_WRAPPER['form'] = $COMMENT_WRAPPER['item']; // use the above wrappers for the 'form' as well.
|
2012-06-15 04:15:46 +00:00
|
|
|
|
2021-01-04 08:16:21 -08:00
|
|
|
// Templates
|
2012-06-15 04:15:46 +00:00
|
|
|
|
2014-01-01 05:20:46 -08:00
|
|
|
$COMMENT_TEMPLATE['form'] = "
|
2016-03-13 22:24:28 -07:00
|
|
|
{SETIMAGE: w=90&h=90&crop=1}
|
2021-01-04 13:02:19 -08:00
|
|
|
<div class='media comment-box comment-box-form d-flex clearfix'>
|
|
|
|
<div class='comment-box-left media-object pull-left me-3' >
|
|
|
|
{COMMENT_AVATAR: shape=circle}
|
2012-06-15 04:15:46 +00:00
|
|
|
</div>
|
2014-01-01 05:20:46 -08:00
|
|
|
<div class='media-body comment-box-right text-left' >
|
2012-06-15 12:50:18 +00:00
|
|
|
<div class='P10'>
|
|
|
|
{AUTHOR_INPUT}
|
|
|
|
{COMMENT_INPUT}
|
2012-08-17 08:51:27 +00:00
|
|
|
<div id='commentformbutton'>
|
2012-06-15 12:50:18 +00:00
|
|
|
{COMMENT_BUTTON}
|
2012-08-17 08:51:27 +00:00
|
|
|
{COMMENT_SHARE}
|
|
|
|
</div>
|
2012-06-15 12:50:18 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-01-01 05:20:46 -08:00
|
|
|
<div class='clear_b'><!-- --></div>
|
|
|
|
<hr>";
|
2012-06-15 04:15:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-04 08:16:21 -08:00
|
|
|
|
2014-01-01 05:20:46 -08:00
|
|
|
$COMMENT_TEMPLATE['item'] = '
|
2016-03-13 22:24:28 -07:00
|
|
|
{SETIMAGE: w=90&h=90&crop=1}
|
2021-01-04 13:27:40 -08:00
|
|
|
<div class="media-object comment-box-left pull-left col-md-2 span1">
|
2021-01-04 13:02:19 -08:00
|
|
|
{COMMENT_AVATAR: shape=circle}
|
2013-02-24 01:08:40 -08:00
|
|
|
</div>
|
2021-02-14 07:02:09 -08:00
|
|
|
<div class="media-body comment-box-right ">
|
2014-01-01 05:20:46 -08:00
|
|
|
<div class="row">
|
2013-02-24 01:08:40 -08:00
|
|
|
|
2016-03-14 12:10:22 -07:00
|
|
|
<div class="comment-box-username span2 col-xs-6 col-sm-6 col-md-6">{USERNAME}</div>
|
2021-01-04 13:19:17 -08:00
|
|
|
<div class="comment-box-date span2 col-xs-6 col-sm-6 col-md-6 text-right text-end text-muted">{COMMENT_TIMEDATE=relative}</div>
|
2016-03-14 12:10:22 -07:00
|
|
|
|
2012-12-11 19:42:55 -08:00
|
|
|
</div>
|
2012-06-17 03:56:42 +00:00
|
|
|
|
2016-03-14 12:10:22 -07:00
|
|
|
<div class="row-fluid">
|
|
|
|
<div class="span12 col-xs-12 comment-text" id="{COMMENT_ITEMID}-edit" contentEditable="false" >
|
2013-02-24 01:08:40 -08:00
|
|
|
<p>
|
|
|
|
{COMMENT}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-01-04 13:27:40 -08:00
|
|
|
<div class="row ">
|
2016-03-14 12:10:22 -07:00
|
|
|
<div class="comment-status span2 col-sm-12 col-md-6">{COMMENT_STATUS}</div>
|
2021-01-04 13:19:17 -08:00
|
|
|
<div class="comment-moderate span6 col-sm-12 col-md-6 text-right text-end">{COMMENT_RATE} {COMMENT_REPLY} {COMMENT_EDIT} {COMMENT_MODERATE}</div>
|
2016-03-14 12:10:22 -07:00
|
|
|
</div>
|
2014-01-01 05:20:46 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-24 01:08:40 -08:00
|
|
|
</div>
|
|
|
|
';
|
2012-06-15 12:50:18 +00:00
|
|
|
|
2012-06-18 09:06:20 +00:00
|
|
|
|
2012-06-16 12:41:30 +00:00
|
|
|
|
2006-12-02 04:36:16 +00:00
|
|
|
|
2014-01-01 05:20:46 -08:00
|
|
|
$COMMENT_TEMPLATE['layout'] = '{COMMENTFORM}{COMMENTS} <div style="padding:10px 0px">{MODERATE}</div>';
|
2012-06-15 12:50:18 +00:00
|
|
|
|
2006-12-02 04:36:16 +00:00
|
|
|
|