AntonLV 13 лет назад
Родитель
Сommit
cba52fe5cf

+ 1 - 1
template/comment.html

@@ -1,5 +1,5 @@
 <li id="cmt__id__" class="__style_prefix____class__">
-	<a id="__system____id__" class="bx-anchor-invisible">&nbsp;</a>
+	<a id="__system____id__" class="__style_prefix__-anchor bx-anchor-invisible">&nbsp;</a>
 	<div class="__style_prefix__-author">
 		<div class="__style_prefix__-icon bx-def-icon bx-def-icon-size">
 			<bx_if:show_icon>

+ 1 - 1
template/comments_block.html

@@ -1,6 +1,6 @@
 <div id="cmts-box-__system__-__id__">
 	__post_form_top__
-	<div id="cmt0" class="cmts bx-def-margin-top">
+	<div id="cmt0" class="cmts">
 		<ul class="cmts">
 			<bx_if:show_empty>
 				<li class="__style_prefix__-no">

+ 1 - 0
template/css/cmts.css

@@ -233,6 +233,7 @@
     a.cmts-uploader-button {
 		position: absolute;
     	right: 0px;
+    	text-decoration: none;
     }
     div.cmts-uploader-file {
 		position: relative;

+ 2 - 2
template/menu_interactive_vertical.html

@@ -1,9 +1,9 @@
 <ul id="bx-menu-inter-__id__" class="bx-menu-inter-vert bx-menu-object-__object__">
 	<bx_repeat:menu_items>
-	    <li id="__id__-act" class="bx-menu-inter-act __class_wrp_act__">
+	    <li id="__id__-act" class="bx-menu-inter-act bx-def-margin-sec-top-auto __class_wrp_act__">
 	        <span class="__class__">__title__</span>
 	    </li>
-	    <li id="__id__-pas" class="bx-menu-inter-pas __class_wrp_pas__">
+	    <li id="__id__-pas" class="bx-menu-inter-pas bx-def-margin-sec-top-auto __class_wrp_pas__">
 	        <a id="__id__" class="__class__" href="__link__" target="__target__" onclick="__onclick__">__title__</a>
 	    </li>
 	</bx_repeat:menu_items>

+ 8 - 8
template/scripts/BxBaseCmtsView.php

@@ -477,7 +477,7 @@ class BxBaseCmtsView extends BxDolCmts {
 			return '';
 
 		$sMethod = '_getForm' . ucfirst($sType);
-		$aForm = $this->$sMethod($iCmtParentId);
+		$aForm = $this->$sMethod($iCmtParentId, $sPosition);
 
 		$bAuthorIcon = !empty($sAuthorIcon);
     	return BxDolTemplate::getInstance()->parseHtmlByName('comment_reply_box.html', array(
@@ -517,9 +517,9 @@ class BxBaseCmtsView extends BxDolCmts {
     	));
     }
 
-    protected function _getFormPost($iCmtParentId = 0)
+    protected function _getFormPost($iCmtParentId = 0, $sPosition = '')
     {
-    	$oForm = $this->_getFormObject(BX_CMT_ACTION_POST, $iCmtParentId);
+    	$oForm = $this->_getFormObject(BX_CMT_ACTION_POST, $iCmtParentId, $sPosition);
         $oForm->aInputs['cmt_parent_id']['value'] = $iCmtParentId;
     	$oForm->initChecker();
 
@@ -575,7 +575,7 @@ class BxBaseCmtsView extends BxDolCmts {
         return array('form' => $oForm->getCode(), 'form_id' => $oForm->id);
     }
 
-	protected function _getFormEdit($iCmtId)
+	protected function _getFormEdit($iCmtId, $sPosition = '')
     {
 	    $aCmt = $this->_oQuery->getCommentSimple ($this->getId(), $iCmtId);
         if(!$aCmt)
@@ -585,7 +585,7 @@ class BxBaseCmtsView extends BxDolCmts {
         if(!$this->isEditAllowedAll() && ($aCmt['cmt_author_id'] != $iCmtAuthorId || !$this->isEditAllowed()))
         	return array('msg' => $aCmt['cmt_author_id'] == $iCmtAuthorId && !$this->isEditAllowed() ? strip_tags($this->msgErrEditAllowed()) : _t('_Access denied'));
 
-		$oForm = $this->_getFormObject(BX_CMT_ACTION_EDIT, $aCmt['cmt_id']);
+		$oForm = $this->_getFormObject(BX_CMT_ACTION_EDIT, $aCmt['cmt_id'], $sPosition);
 
 		$oForm->initChecker($aCmt);
 		if($oForm->isSubmittedAndValid()) {
@@ -613,15 +613,15 @@ class BxBaseCmtsView extends BxDolCmts {
 		return array('form' => $oForm->getCode(), 'form_id' => $oForm->id);
     }
 
-	protected function _getFormObject($sAction, $iId)
+	protected function _getFormObject($sAction, $iId, $sPosition)
     {
     	$sActionCap = ucfirst($sAction);
     	$sDisplayName = '_sFormDisplay' . $sActionCap;
 
     	bx_import('BxDolForm');
         $oForm = BxDolForm::getObjectInstance($this->_sFormObject, $this->$sDisplayName);
-        $oForm->setId(sprintf($oForm->aFormAttrs['id'], $sAction, $this->_sSystem, $iId));
-        $oForm->setName(sprintf($oForm->aFormAttrs['name'], $sAction, $this->_sSystem, $iId));
+        $oForm->setId(sprintf($oForm->aFormAttrs['id'], $sAction, $this->_sSystem, $iId) . (!empty($sPosition) ? '-' . $sPosition : ''));
+        $oForm->setName(sprintf($oForm->aFormAttrs['name'], $sAction, $this->_sSystem, $iId) . (!empty($sPosition) ? '-' . $sPosition : ''));
         $oForm->aParams['db']['table'] = $this->_aSystem['table_cmts'];
         $oForm->aInputs['sys']['value'] = $this->_sSystem;
         $oForm->aInputs['id']['value'] = $this->_iId;