Procházet zdrojové kódy

#1 - Experimental layout.

AntonLV před 13 roky
rodič
revize
7efc0929f1

+ 1 - 1
template/comment_pb_list.html

@@ -1,7 +1,7 @@
 <div class="__style_prefix__-pb-list">
 	<div class="__style_prefix__-pb-list-cnt">
 		<bx_repeat:list>
-			__user_unit__
+			<div class="__style_prefix__-pb-item bx-def-margin-top-auto">__user_unit__</div>
 		</bx_repeat:list>
 	</div>
 </div>

+ 1 - 0
template/css/cmts.css

@@ -201,6 +201,7 @@
     div.cmt-pb-list div.bx-persons-unit {
 		float: none;
     	margin-right: 0px;
+    	margin-bottom: 0px;
     }
 
     /*--- Add Comment/Reply Styles ---*/

+ 4 - 1
template/scripts/BxBaseCmtsView.php

@@ -294,7 +294,10 @@ class BxBaseCmtsView extends BxDolCmts {
     	$aUserIds = $this->_oQuery->getRatedBy($this->_aSystem['system_id'], $iCmtId);
     	foreach($aUserIds as $iUserId) {
     		list($sUserName, $sUserUrl, $sUserIcon, $sUserUnit) = $this->_getAuthorInfo($iUserId);
-			$aTmplUsers[] = array('user_unit' => $sUserUnit);
+			$aTmplUsers[] = array(
+				'style_prefix' => $this->_sStylePrefix,
+				'user_unit' => $sUserUnit
+			);
     	}
 
     	$sContent = $oTemplate->parseHtmlByName('comment_pb_list.html', array(