当前位置: 首页>>代码示例>>PHP>>正文


PHP forumTextParser::GetEditorButtons方法代码示例

本文整理汇总了PHP中forumTextParser::GetEditorButtons方法的典型用法代码示例。如果您正苦于以下问题:PHP forumTextParser::GetEditorButtons方法的具体用法?PHP forumTextParser::GetEditorButtons怎么用?PHP forumTextParser::GetEditorButtons使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在forumTextParser的用法示例。


在下文中一共展示了forumTextParser::GetEditorButtons方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array_shift

					'path' => $arParams["PATH_TO_SMILE"].$arSmile["IMAGE"],
					'code' => array_shift(explode(" ", str_replace("\\\\","\\",$arSmile["TYPING"])))
				);
			}
		}

		$APPLICATION->IncludeComponent("bitrix:main.post.form", "",
			Array(
				"FORM_ID" => $arParams["FORM_ID"],
				"SHOW_MORE" => "Y",
				"PARSER" => forumTextParser::GetEditorToolbar(array('forum' => $arParams["ALLOW"])),
				"BUTTONS" => array_unique(
					(isset($arResult["USER_FIELDS"]["UF_FORUM_MESSAGE_DOC"]) ? array("UploadFile") : array() )
					+
					array_intersect(array("UploadFile", "CreateLink", "InputVideo", "Quote", "MentionUser"),
						forumTextParser::GetEditorButtons(array('forum' => $arParams["ALLOW"]))
				)),
				"LHE" => array(
					'id' => $arParams["LheId"],
					'jsObjName' => $arParams["jsObjName"],
					'bSetDefaultCodeView' => ($arParams['EDITOR_CODE_DEFAULT'] == 'Y'),
					"documentCSS" => "body {color:#434343;}",
					"fontFamily" => "'Helvetica Neue', Helvetica, Arial, sans-serif",
					"fontSize" => "12px",
					"ctrlEnterHandler" => 'commentsCtrlEnterHandler'.$arParams["FORM_ID"],
					"bInitByJS" => ($arParams['SHOW_MINIMIZED'] == "Y")
				),
				"DESTINATION" => Array(
					"VALUE" => array(),
					"SHOW" => "N",
				),
开发者ID:ASDAFF,项目名称:entask.ru,代码行数:31,代码来源:form.php

示例2: GetMessage

" alt="<?php 
    echo GetMessage("F_CAPTCHA_TITLE");
    ?>
" />
				</div>
			</div>
		<?php 
}
$html_after_textarea = ob_get_clean();
$arSmiles = array();
if ($arParams["ALLOW_SMILES"] == "Y") {
    foreach ($arResult["SMILES"] as $arSmile) {
        $arSmiles[] = array('name' => $arSmile["NAME"], 'path' => $arParams["PATH_TO_SMILE"] . $arSmile["IMAGE"], 'code' => array_shift(explode(" ", str_replace("\\\\", "\\", $arSmile["TYPING"]))));
    }
}
$APPLICATION->IncludeComponent("bitrix:main.post.form", "", array("FORM_ID" => $arParams["FORM_ID"], "SHOW_MORE" => "Y", "PARSER" => forumTextParser::GetEditorToolbar(array('forum' => $arParams["ALLOW"])), "BUTTONS" => array_unique((isset($arResult["USER_FIELDS"]["UF_FORUM_MESSAGE_DOC"]) ? array("UploadFile") : array()) + array_intersect(array("UploadFile", "CreateLink", "InputVideo", "Quote", "MentionUser"), forumTextParser::GetEditorButtons(array('forum' => $arParams["ALLOW"])))), "LHE" => array('id' => $arParams["LheId"], 'jsObjName' => $arParams["jsObjName"], 'bSetDefaultCodeView' => $arParams['EDITOR_CODE_DEFAULT'] == 'Y', "documentCSS" => "body {color:#434343;}", "fontFamily" => "'Helvetica Neue', Helvetica, Arial, sans-serif", "fontSize" => "12px", "ctrlEnterHandler" => 'commentsCtrlEnterHandler' . $arParams["FORM_ID"], "bInitByJS" => $arParams['SHOW_MINIMIZED'] == "Y", "height" => 80), "DESTINATION" => array("VALUE" => array(), "SHOW" => "N"), "TEXT" => array("ID" => "REVIEW_TEXT", "NAME" => "REVIEW_TEXT", "VALUE" => isset($arResult["REVIEW_TEXT"]) ? $arResult["REVIEW_TEXT"] : "", "HEIGHT" => "80px"), "UPLOAD_FILE" => isset($arResult["USER_FIELDS"]["UF_FORUM_MESSAGE_DOC"]) || $arParams["ALLOW_UPLOAD"] == "N" ? false : array("TAG" => "FILE ID", "INPUT_NAME" => 'FILE_NEW', "INPUT_VALUE" => array(), "MAX_FILE_SIZE" => COption::GetOptionString("forum", "file_max_size", 5242880), "MULTIPLE" => "Y", "MODULE_ID" => "forum", "ALLOW_UPLOAD" => $arParams["ALLOW_UPLOAD"] == "Y" ? "I" : $arParams["ALLOW_UPLOAD"], "ALLOW_UPLOAD_EXT" => $arParams["ALLOW_UPLOAD_EXT"]), "UPLOAD_FILE_PARAMS" => array("width" => $arParams["IMAGE_SIZE"], "height" => $arParams["IMAGE_SIZE"]), "PROPERTIES" => array($arResult["USER_FIELDS"]["UF_FORUM_MESSAGE_DOC"]), "SMILES" => array("VALUE" => $arSmiles), "HTML_BEFORE_TEXTAREA" => $APPLICATION->GetViewContent(implode('_', array($tplID, 'EDIT', 'BEFORE'))), "HTML_AFTER_TEXTAREA" => $APPLICATION->GetViewContent(implode('_', array($tplID, 'EDIT', 'AFTER'))) . $html_after_textarea), false, array("HIDE_ICONS" => "Y"));
?>
</form>
<script type="text/javascript">
BX.ready(function(){
	window["UC"]["f<?php 
echo $arParams["FORM_ID"];
?>
"] = new FCForm({
		entitiesId : {'<?php 
echo $arParams["ENTITY_XML_ID"];
?>
' : ['<?php 
echo $arParams["ENTITY_TYPE"];
?>
', <?php 
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:form.php


注:本文中的forumTextParser::GetEditorButtons方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。