1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-20 05:11:42 +02:00

Comment menu template now using v2.x wrappers. Template moved to templates folder.

This commit is contained in:
Cameron
2021-01-03 08:45:18 -08:00
parent 3b0ff5d4ef
commit 566613f050
4 changed files with 82 additions and 77 deletions

View File

@@ -0,0 +1,39 @@
<?php
/*
* e107 website system
*
* Copyright (C) 2008-2009 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
* Comment menu default template
*
* $Source: /cvs_backup/e107_0.8/e107_plugins/comment_menu/comment_menu_template.php,v $
* $Revision$
* $Date$
* $Author$
*/
// Shortcode Wrappers
$COMMENT_MENU_WRAPPER['CM_DATESTAMP'] = ' {---}';
$COMMENT_MENU_WRAPPER['CM_AUTHOR'] = CM_L13.'{---}';
$COMMENT_MENU_WRAPPER['CM_TYPE'] = '<span class="label label-default badge badge-secondary bg-secondary ">{---}</span>';
// Template
$COMMENT_MENU_TEMPLATE['start'] = "<ul class='media-list list-unstyled comment-menu'>";
$COMMENT_MENU_TEMPLATE['item'] = "<li class='media d-flex mb-2' >
<div class='media-left mr-3 me-3'>{CM_AUTHOR_AVATAR: shape=circle&size=48&crop=1}</div>
<div class='media-body'>
{CM_TYPE} {CM_URL_PRE}{CM_HEADING}{CM_URL_POST}
<div>{CM_COMMENT}</div>
<small class='text-muted muted'> {CM_AUTHOR} {CM_DATESTAMP}</small>
</div>
</li>";
$COMMENT_MENU_TEMPLATE['end'] = "</ul>";