uawdijnntqw1x1x1
IP : 18.188.39.197
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
yar.axolotls.ru
/
52131
/
..
/
bitrix
/
js
/
sender
/
editor_mailblock.js
/
/
/** * Bitrix HTML Editor 3.0 * Date: 24.04.13 * Time: 4:23 * * Snippets class */ (function() { function __runmailblocks() { function BXEditorMailBlocks(editor) { this.editor = editor; this.listLoaded = false; this.mailblocks = this.editor.config.mailblocks; this.HandleList(); this.Init(); } BXEditorMailBlocks.prototype = { Init: function() { BX.addCustomEvent(this.editor, "OnApplySiteTemplate", BX.proxy(this.OnTemplateChanged, this)); }, GetList: function() { return this.mailblocks; }, HandleList: function() { var i, items = this.GetList().items; if (items) { for (i in items) { if (items.hasOwnProperty(i)) { items[i].key = items[i].path.replace('/', ','); } } } }, ReloadList: function(clearCache) { }, FetchPlainListOfCategories: function(list, level, result) { var i, l = list.length; for (i = 0; i < l; i++) { result.push({ level: level, key: list[i].key, section: list[i].section }); if (list[i].children && list[i].children.length > 0) { this.FetchPlainListOfCategories(list[i].children, level + 1, result); } } }, OnTemplateChanged: function(templateId) { this.ReloadList(false); } }; function MailBlocksControl(editor) { // Call parrent constructor MailBlocksControl.superclass.constructor.apply(this, arguments); this.id = 'mailblocks'; this.mailblocks = this.editor.config.mailblocks; this.templateId = this.editor.templateId; this.title = BX.message('BXEdMailBlocksTitle'); this.searchPlaceholder = BX.message('BXEdMailBlocksSearchPlaceHolder'); this.uniqueId = 'taskbar_' + this.editor.id + '_' + this.id; this.Init(); } BX.extend(MailBlocksControl, window.BXHtmlEditor.Taskbar); MailBlocksControl.prototype.Init = function() { this.BuildSceleton(); // Build structure if (this.mailblocks) { this.BuildTree(this.mailblocks.groups, this.mailblocks.items); } var _this = this; _this.editor.phpParser.AddBxNode('mailblock_icon', { Parse: function(params) { return params.code || ''; } } ); }; MailBlocksControl.prototype.GetMenuItems = function() { var _this = this; var arItems = [ { text : BX.message('RefreshTaskbar'), title : BX.message('RefreshTaskbar'), className : "", onclick: function() { _this.editor.snippets.ReloadList(true); BX.PopupMenu.destroy(_this.uniqueId + "_menu"); } } ]; return arItems; }; MailBlocksControl.prototype.HandleElementEx = function(wrap, dd, params) { this.editor.SetBxTag(dd, {tag: "mailblock_icon", params: params}); wrap.title = params.description || params.title; }; MailBlocksControl.prototype.BuildTree = function(sections, elements) { // Call parent method MailBlocksControl.superclass.BuildTree.apply(this, arguments); if ((!sections || sections.length == 0) && (!elements || elements.length == 0)) { this.pTreeCont.appendChild(BX.create('DIV', {props: {className: 'bxhtmled-no-snip'}, text: BX.message('BXEdSnipNoSnippets')})); } }; window.BXHtmlEditor.MailBlocksControl = MailBlocksControl; window.BXHtmlEditor.BXEditorMailBlocks = BXEditorMailBlocks; } if (window.BXHtmlEditor && window.BXHtmlEditor.dialogs) __runmailblocks(); else BX.addCustomEvent(window, "OnEditorBaseControlsDefined", __runmailblocks); })(); BX.ready(function() { function PlaceHolderSelectorList(editor, wrap) { // Call parent constructor PlaceHolderSelectorList.superclass.constructor.apply(this, arguments); this.id = 'placeholder_selector'; this.title = BX.message('BXEdPlaceHolderSelectorTitle'); this.action = 'insertHTML'; this.zIndex = 3008; this.placeHolderList = []; editor.On('PlaceHolderSelectorListCreate', [this]); this.disabledForTextarea = false; this.arValues = []; for (var i in this.placeHolderList) { var value = this.placeHolderList[i]; value.value = '#' + value.CODE + '#'; this.arValues.push( { id: value.CODE, name: value.NAME, topName: BX.message('BXEdPlaceHolderSelectorTitle'), title: value.value + ' - ' + value.DESC, className: '', style: '', action: 'insertHTML', value: value.value } ); } this.Create(); this.pCont.innerHTML = BX.message('BXEdPlaceHolderSelectorTitle'); if (wrap) { wrap.appendChild(this.GetCont()); } } BX.extend(PlaceHolderSelectorList, window.BXHtmlEditor.DropDownList); window.BXHtmlEditor.Controls['placeholder_selector'] = PlaceHolderSelectorList; });
/var/www/axolotl/data/www/yar.axolotls.ru/52131/../bitrix/js/sender/editor_mailblock.js