Файловый менеджер - Редактировать - /home/wuectly/www/03cbe/fontselect.zip
Назад
PK e|#]�Q>L L fontselect.xmlnu &1i� <?xml version="1.0" ?> <extension version="3.4" type="plugin" group="jce" method="upgrade"> <name>WF_FONTSELECT_TITLE</name> <version>2.9.99.2</version> <creationDate>22-04-2026</creationDate> <author>Ryan Demmer</author> <authorEmail>info@joomlacontenteditor.net</authorEmail> <authorUrl>https://www.joomlacontenteditor.net/</authorUrl> <copyright>Ryan Demmer</copyright> <license>GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html</license> <description>WF_FONTSELECT_DESC</description> <icon>fontselect</icon> <fields name="fontselect"> <fieldset name="config"> <field name="fonts" type="fonts" default="" label="WF_PARAM_FONTS" description="WF_PARAM_FONTS_DESC" /> </fieldset> </fields> <help></help> <languages></languages> </extension>PK e|#]�#o, , index.htmlnu &1i� <html><body bgcolor="#FFFFFF"></body></html>PK e|#]��� config.phpnu &1i� <?php /** * @package JCE * @subpackage Editor * * @copyright Copyright (c) 2009-2024 Ryan Demmer. All rights reserved * @license GNU General Public License version 2 or later; see LICENSE.txt */ \defined('_JEXEC') or die; class WFFontselectPluginConfig { protected static $fonts = array('Andale Mono=andale mono,times', 'Arial=arial,helvetica,sans-serif', 'Arial Black=arial black,avant garde', 'Book Antiqua=book antiqua,palatino', 'Comic Sans MS=comic sans ms,sans-serif', 'Courier New=courier new,courier', 'Georgia=georgia,palatino', 'Helvetica=helvetica', 'Impact=impact,chicago', 'Symbol=symbol', 'Tahoma=tahoma,arial,helvetica,sans-serif', 'Terminal=terminal,monaco', 'Times New Roman=times new roman,times', 'Trebuchet MS=trebuchet ms,geneva', 'Verdana=verdana,geneva', 'Webdings=webdings', 'Wingdings=wingdings,zapf dingbats'); public static function getConfig(&$settings) { $wf = WFApplication::getInstance(); $settings['fontselect_fonts'] = self::getFonts(); } /** * Get a list of editor font families. * * @return string font family list * * @param string $add Font family to add * @param string $remove Font family to remove */ protected static function getFonts() { $wf = WFApplication::getInstance(); $fonts = $wf->getParam('fontselect.fonts'); // decode string if (is_string($fonts)) { $fonts = htmlspecialchars_decode($fonts); } // map for new format, where fonts are saved as an array of an associative array, eg: [['Andale Mono' => 'andale mono,times', 'Arial' => 'arial,helvetica,sans-serif']] if (is_array($fonts)) { $values = $fonts; // reset array $fonts = array(); // map associative array to array of key value pairs foreach ($values as $key => $value) { if (is_numeric($key) && is_array($value)) { $fonts = array_merge($fonts, $value); } else { $fonts = array_merge($fonts, array($key => $value)); } } } // get fonts using legacy parameters if (empty($fonts)) { $fonts = self::$fonts; $add = $wf->getParam('editor.theme_advanced_fonts_add'); $remove = $wf->getParam('editor.theme_advanced_fonts_remove'); if (empty($remove) && empty($add)) { return ''; } $remove = preg_split('/[;,]+/', $remove); if (count($remove)) { foreach ($fonts as $key => $value) { foreach ($remove as $gone) { if ($gone && preg_match('/^' . $gone . '=/i', $value)) { // Remove family unset($fonts[$key]); } } } } foreach (explode(';', $add) as $new) { // Add new font family if (preg_match('/([^\=]+)(\=)([^\=]+)/', trim($new)) && !in_array($new, $fonts)) { $fonts[] = $new; } } natcasesort($fonts); $fonts = implode(';', $fonts); } return $fonts; } } PK $�#]ں�� plugin.jsnu &1i� /* jce - 2.9.99.2 | 2026-04-22 | https://www.joomlacontenteditor.net | Source: https://github.com/widgetfactory/jce | Copyright (C) 2006 - 2026 Ryan Demmer. All rights reserved | GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html */ !function() { var each = tinymce.each; tinymce.PluginManager.add("fontselect", function(ed, url) { ed.onNodeChange.add(function(ed, cm, n, collapsed, o) { var fv, c = cm.get("fontselect"); c && n && each(o.parents, function(n) { if (n.style && (fv = (fv = n.style.fontFamily || ed.dom.getStyle(n, "fontFamily")).replace(/[\"\']+/g, "").replace(/^([^,]+).*/, "$1").toLowerCase(), c.select(function(v) { return v.replace(/^([^,]+).*/, "$1").toLowerCase() === fv; }), fv)) return !1; }); }), this.createControl = function(n, cf) { if ("fontselect" === n) return ctrl = ed.controlManager.createListBox("fontselect", { title: "advanced.fontdefault", max_height: 384, onselect: function(v) { var cur = ctrl.items[ctrl.selectedIndex]; !v && cur ? ed.execCommand("FontName", !1, cur.value) : (ed.execCommand("FontName", !1, v), ctrl.select(function(sv) { return v == sv; }), cur && cur.value == v && ctrl.select(null)); } }), each(ed.getParam("fontselect_fonts", "Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats", "hash"), function(v, k) { /\d/.test(v) && (v = "'" + v + "'"), ctrl.add(ed.translate(k), v, { style: -1 == v.indexOf("dings") ? "font-family:" + v : "" }); }), ctrl; var ctrl; }; }); }();PK e|#]�Q>L L fontselect.xmlnu &1i� PK e|#]�#o, , � index.htmlnu &1i� PK e|#]��� � config.phpnu &1i� PK $�#]ں�� < plugin.jsnu &1i� PK + v
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка