public function __construct($component = null) { parent::__construct($component); $this->scope = self::STATUS_SCOPE_WEB; if (is_callable(array('\\Bitrix\\MobileApp\\Mobile', 'getApiVersion')) && \Bitrix\MobileApp\Mobile::getApiVersion() >= 1 && defined("BX_MOBILE") && BX_MOBILE === true) { $this->scope = self::STATUS_SCOPE_MOBILE; } if ($this->isWeb()) { $this->setTemplateName(".default"); } else { $this->setTemplateName("mobile_app"); } }
public function __construct($component = null) { parent::__construct($component); \Bitrix\Main\Loader::includeModule("forum"); $this->componentId = $this->isAjaxRequest() ? randString(7) : $this->randString(); $this->errorCollection = new ErrorCollection(); $this->prepareMobileData = IsModuleInstalled("mobile"); $this->scope = self::STATUS_SCOPE_WEB; if (is_callable(array('\\Bitrix\\MobileApp\\Mobile', 'getApiVersion')) && \Bitrix\MobileApp\Mobile::getApiVersion() >= 1 && defined("BX_MOBILE") && BX_MOBILE === true) { $this->scope = self::STATUS_SCOPE_MOBILE; } self::$index++; if ($this->isWeb()) { $this->setTemplateName(".default"); } else { $this->setTemplateName("mobile_app"); } }
<div class="post-user-wrap"> <div class="avatar post-comment-block-avatar post-comment-block-avatar-#AUTHOR_AVATAR_IS#" style="background-image:url('#AUTHOR_AVATAR#')"></div> <div class="post-comment-cont"> <div class="post-comment-author">#AUTHOR_NAME#</div> <div class="post-comment-time">#DATE#</div> </div> </div> <!--/noindex--> <div class="post-comment-text"> <div class="comment-loading"> <div class="newpost-progress-label"></div> <div id="record-#FULL_ID#-ind" class="newpost-progress-indicator"></div> </div> </div> <?php if (\Bitrix\MobileApp\Mobile::getApiVersion() >= 10) { ?> <div class="post-comment-reply"><?php ?> <div class="post-comment-reply-text"><?php echo GetMessage('BLOG_C_REPLY'); ?> </div><?php ?> </div><?php } ?> <script> BX.ready(function() { BX.addClass(BX("record-#FULL_ID#-ind"), "animate");