Jelajahi Sumber

#1 - Thumb instead of Icon

AntonLV 13 tahun lalu
induk
melakukan
8c563cb4b3
3 mengubah file dengan 6 tambahan dan 7 penghapusan
  1. 1 1
      inc/classes/BxDolCmts.php
  2. 2 2
      template/comment.html
  3. 3 4
      template/css/cmts.css

+ 1 - 1
inc/classes/BxDolCmts.php

@@ -784,7 +784,7 @@ class BxDolCmts extends BxDol
 		return array(
 		return array(
 			$oProfile->getDisplayName(), 
 			$oProfile->getDisplayName(), 
 			$oProfile->getUrl(), 
 			$oProfile->getUrl(), 
-			$oProfile->getIcon(),
+			$oProfile->getThumb(),
 			$oProfile->getUnit()
 			$oProfile->getUnit()
 		);
 		);
     }
     }

+ 2 - 2
template/comment.html

@@ -1,7 +1,7 @@
 <li id="cmt__id__" class="__style_prefix____class__ bx-def-margin-top-auto">
 <li id="cmt__id__" class="__style_prefix____class__ bx-def-margin-top-auto">
 	<div class="__style_prefix__-cnt">
 	<div class="__style_prefix__-cnt">
 		<a id="__system____id__" class="__style_prefix__-anchor bx-anchor-invisible">&nbsp;</a>
 		<a id="__system____id__" class="__style_prefix__-anchor bx-anchor-invisible">&nbsp;</a>
-		<div class="__style_prefix__-icon bx-def-icon bx-def-icon-size">
+		<div class="__style_prefix__-avatar bx-def-thumb bx-def-thumb-size">
 			<bx_if:show_icon>
 			<bx_if:show_icon>
 				<img src="__author_icon__" />
 				<img src="__author_icon__" />
 			</bx_if:show_icon>
 			</bx_if:show_icon>
@@ -9,7 +9,7 @@
 				<i class="sys-icon user"></i>
 				<i class="sys-icon user"></i>
 			</bx_if:show_icon_empty>
 			</bx_if:show_icon_empty>
 		</div>
 		</div>
-		<div class="__style_prefix__-info bx-def-icon-size-min-height">
+		<div class="__style_prefix__-info bx-def-thumb-size-min-height bx-def-thumb-size-left-indent">
 			<div class="__style_prefix__-head bx-clearfix">
 			<div class="__style_prefix__-head bx-clearfix">
 				<div class="__style_prefix__-username bx-def-font-large">
 				<div class="__style_prefix__-username bx-def-font-large">
 					<bx_if:show_author_link><a href="__author_link__">__author_name__</a> </bx_if:show_author_link>
 					<bx_if:show_author_link><a href="__author_link__">__author_name__</a> </bx_if:show_author_link>

+ 3 - 4
template/css/cmts.css

@@ -81,18 +81,17 @@
     }    
     }    
 
 
     /*--- Comment Author ---*/
     /*--- Comment Author ---*/
-	div.cmt-icon {
+	div.cmt-avatar {
 		position: absolute;
 		position: absolute;
 		top: 0px;
 		top: 0px;
 		left: 0px;
 		left: 0px;
     	text-align: center;
     	text-align: center;
     }
     }
-    div.cmt-icon .sys-icon {
-		font-size: 2.125em;
+    div.cmt-avatar .sys-icon {
+		font-size: 3.75rem;
     }
     }
     div.cmt-info {
     div.cmt-info {
     	position: realtive;
     	position: realtive;
-    	padding-left: 42px;
 	}
 	}
 	div.cmt-head div.cmt-username,
 	div.cmt-head div.cmt-username,
 	div.cmt-head div.cmt-username,
 	div.cmt-head div.cmt-username,