AntonLV 8 年之前
父节点
当前提交
79e0814582

+ 1 - 1
modules/boonex/english/data/langs/system/en.xml

@@ -2581,7 +2581,7 @@ If it is not enabled then please consider implement this optimization, since it
 	<string name="_sys_txt_confirm_phone_set_phone_desc_set_phone"><![CDATA[Please enter a phone number for sending verification SMS.]]></string>
 	<string name="_sys_txt_confirm_phone_set_phone_desc_phone_confirmation"><![CDATA[Please enter verification code from the SMS.]]></string>
 
-	<string name="_sys_txt_create_post_placeholder"><![CDATA[Write an article, share a link, photo or video.]]></string>
+	<string name="_sys_txt_create_post_placeholder"><![CDATA[What's happening, {0}]]></string>
 
     <string name="_sys_txt_current_picture"><![CDATA[Current Picture]]></string>
 	<string name="_sys_txt_data_successfully_submitted"><![CDATA[Done]]></string>

+ 1 - 1
modules/boonex/russian/data/langs/system/ru.xml

@@ -2581,7 +2581,7 @@
 	<string name="_sys_txt_confirm_phone_set_phone_desc_set_phone"><![CDATA[Пожалуйста, введите телефонный номер на который будет отправлено SMS с кодом подтверждения.]]></string>
 	<string name="_sys_txt_confirm_phone_set_phone_desc_phone_confirmation"><![CDATA[Пожалуйста, введите код проверки из SMS]]></string>
 
-	<string name="_sys_txt_create_post_placeholder"><![CDATA[Написать статью, поделиться линкой, фото или видео.]]></string>
+	<string name="_sys_txt_create_post_placeholder"><![CDATA[Что происходит, {0}]]></string>
 
     <string name="_sys_txt_current_picture"><![CDATA[Текущая картинка]]></string>
 	<string name="_sys_txt_data_successfully_submitted"><![CDATA[Выполнено]]></string>

+ 1 - 1
template/create_post_form.html

@@ -10,7 +10,7 @@
             <div class="sys-cpf-form sys-cpf-default">
 		        <div class="sys-cpf-user">__user_thumb__</div>
 		        <div class="sys-cpf-content bx-def-thumb-size-min-height bx-def-thumb-size-left-indent bx-def-font-grayed">
-		            <div onclick="__js_object__.getForm('__default__')"><bx_text:_sys_txt_create_post_placeholder /></div>
+		            <div onclick="__js_object__.getForm('__default__')">__placeholder__</div>
 		        </div>
             </div>
             <div class="sys-cpf-form sys-cpf-__default__" style="display:none">__form__</div>

+ 4 - 0
template/scripts/BxBaseServices.php

@@ -104,7 +104,10 @@ class BxBaseServices extends BxDol implements iBxDolProfileService
     	if(!isLogged())
     		return '';
 
+    	$oProfile = BxDolProfile::getInstance();
+
 		$sTitle = _t('_sys_page_block_title_create_post_' . (empty($iContextId) ? 'public' : 'context'));
+		$sPlaceholder = _t('_sys_txt_create_post_placeholder', $oProfile->getDisplayName());
 
     	$oMenu = BxDolMenu::getObjectInstance('sys_create_post');
 
@@ -132,6 +135,7 @@ class BxBaseServices extends BxDol implements iBxDolProfileService
     	return array('content' => BxDolTemplate::getInstance()->parseHtmlByName('create_post_form.html', array(
     		'default' => $sDefault,
     		'title' => $sTitle,
+			'placeholder' => $sPlaceholder,
             'user_thumb' => BxDolProfile::getInstance()->getUnit(0, array('template' => 'unit_wo_info')),
     		'menu' => $oMenu->getCode(),
             'form' => BxDolService::call($sDefault, 'get_create_post_form', array(array('context_id' => $iContextId, 'ajax_mode' => true, 'absolute_action_url' => true))),