���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home3/cpr76684/public_html/rtl.tar
���ѧ٧ѧ�
lib.php 0000644 00000002445 15152365461 0006040 0 ustar 00 <?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /** * Atto text editor rtl plugin lib. * * @package atto_rtl * @copyright 2014 Jerome Mouneyrac * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); /** * Initialise the strings required for JS. * * @return void */ function atto_rtl_strings_for_js() { global $PAGE; // In order to prevent extra strings to be imported, comment/uncomment the characters // which are enabled in the JavaScript part of this plugin. $PAGE->requires->strings_for_js( array( 'rtl', 'ltr' ), 'atto_rtl' ); } version.php 0000644 00000002217 15152365461 0006754 0 ustar 00 <?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /** * Atto text editor integration version file. * * @package atto_rtl * @copyright 2014 Jerome Mouneyrac * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); $plugin->version = 2022112800; // The current plugin version (Date: YYYYMMDDXX). $plugin->requires = 2022111800; // Requires this Moodle version. $plugin->component = 'atto_rtl'; // Full name of the plugin (used for diagnostics). classes/privacy/provider.php 0000644 00000002765 15152365461 0012243 0 ustar 00 <?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /** * Privacy Subsystem implementation for block_activity_modules. * * @package atto_rtl * @copyright 2018 Andrew Nicols <andrew@nicols.co.uk> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace atto_rtl\privacy; defined('MOODLE_INTERNAL') || die(); /** * Privacy Subsystem for atto_rtl implementing null_provider. * * @copyright 2018 Andrew Nicols <andrew@nicols.co.uk> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class provider implements \core_privacy\local\metadata\null_provider { /** * Get the language string identifier with the component's language * file to explain why this plugin stores no data. * * @return string */ public static function get_reason() : string { return 'privacy:metadata'; } } yui/build/moodle-atto_rtl-button/moodle-atto_rtl-button-debug.js 0000644 00000006404 15152365461 0021143 0 ustar 00 YUI.add('moodle-atto_rtl-button', function (Y, NAME) { // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /* * @package atto_rtl * @copyright 2014 Jerome Mouneyrac * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ /** * @module moodle-atto_rtl-button */ /** * Atto text editor rtl plugin. * * @namespace M.atto_rtl * @class button * @extends M.editor_atto.EditorPlugin */ Y.namespace('M.atto_rtl').Button = Y.Base.create('button', Y.M.editor_atto.EditorPlugin, [], { initializer: function() { var direction; direction = 'ltr'; this.addButton({ icon: 'e/left_to_right', title: direction, buttonName: direction, callback: this._toggleRTL, callbackArgs: direction, tags: '[dir=ltr]' }); direction = 'rtl'; this.addButton({ icon: 'e/right_to_left', title: direction, buttonName: direction, callback: this._toggleRTL, callbackArgs: direction, tags: '[dir=rtl]' }); }, /** * Toggle the RTL/LTR values based on the supplied direction. * * @method _toggleRTL * @param {EventFacade} e * @param {String} direction */ _toggleRTL: function(e, direction) { var host = this.get('host'), sourceSelection = window.rangy.saveSelection(), selection = host.getSelection(), newDirection = { rtl: 'ltr', ltr: 'rtl' }, directionAlignment = { rtl: 'right', ltr: 'left' }; if (selection) { // Format the selection to be sure it has a tag parent (not the contenteditable). var parentNode = host.formatSelectionBlock(), parentDOMNode = parentNode.getDOMNode(); var currentDirection = parentDOMNode.getAttribute('dir'); if (currentDirection === direction) { parentDOMNode.setAttribute("dir", newDirection[direction]); parentDOMNode.style.textAlign = directionAlignment[newDirection[direction]]; } else { parentDOMNode.setAttribute("dir", direction); parentDOMNode.style.textAlign = directionAlignment[direction]; } // Change selection from the containing paragraph to the original one. window.rangy.restoreSelection(sourceSelection); // Mark the text as having been updated. this.markUpdated(); } } }); }, '@VERSION@', {"requires": ["moodle-editor_atto-plugin"]}); yui/build/moodle-atto_rtl-button/moodle-atto_rtl-button-min.js 0000644 00000001522 15152365461 0020634 0 ustar 00 YUI.add("moodle-atto_rtl-button",function(t,e){t.namespace("M.atto_rtl").Button=t.Base.create("button",t.M.editor_atto.EditorPlugin,[],{initializer:function(){var t="ltr";this.addButton({icon:"e/left_to_right",title:t,buttonName:t,callback:this._toggleRTL,callbackArgs:t,tags:"[dir=ltr]"}),this.addButton({icon:"e/right_to_left",title:t="rtl",buttonName:t,callback:this._toggleRTL,callbackArgs:t,tags:"[dir=rtl]"})},_toggleRTL:function(t,e){var i=this.get("host"),l=window.rangy.saveSelection(),r=i.getSelection(),o={rtl:"ltr",ltr:"rtl"},a={rtl:"right",ltr:"left"};r&&((r=i.formatSelectionBlock().getDOMNode()).getAttribute("dir")===e?(r.setAttribute("dir",o[e]),r.style.textAlign=a[o[e]]):(r.setAttribute("dir",e),r.style.textAlign=a[e]),window.rangy.restoreSelection(l),this.markUpdated())}})},"@VERSION@",{requires:["moodle-editor_atto-plugin"]}); yui/build/moodle-atto_rtl-button/moodle-atto_rtl-button.js 0000644 00000006404 15152365461 0020057 0 ustar 00 YUI.add('moodle-atto_rtl-button', function (Y, NAME) { // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /* * @package atto_rtl * @copyright 2014 Jerome Mouneyrac * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ /** * @module moodle-atto_rtl-button */ /** * Atto text editor rtl plugin. * * @namespace M.atto_rtl * @class button * @extends M.editor_atto.EditorPlugin */ Y.namespace('M.atto_rtl').Button = Y.Base.create('button', Y.M.editor_atto.EditorPlugin, [], { initializer: function() { var direction; direction = 'ltr'; this.addButton({ icon: 'e/left_to_right', title: direction, buttonName: direction, callback: this._toggleRTL, callbackArgs: direction, tags: '[dir=ltr]' }); direction = 'rtl'; this.addButton({ icon: 'e/right_to_left', title: direction, buttonName: direction, callback: this._toggleRTL, callbackArgs: direction, tags: '[dir=rtl]' }); }, /** * Toggle the RTL/LTR values based on the supplied direction. * * @method _toggleRTL * @param {EventFacade} e * @param {String} direction */ _toggleRTL: function(e, direction) { var host = this.get('host'), sourceSelection = window.rangy.saveSelection(), selection = host.getSelection(), newDirection = { rtl: 'ltr', ltr: 'rtl' }, directionAlignment = { rtl: 'right', ltr: 'left' }; if (selection) { // Format the selection to be sure it has a tag parent (not the contenteditable). var parentNode = host.formatSelectionBlock(), parentDOMNode = parentNode.getDOMNode(); var currentDirection = parentDOMNode.getAttribute('dir'); if (currentDirection === direction) { parentDOMNode.setAttribute("dir", newDirection[direction]); parentDOMNode.style.textAlign = directionAlignment[newDirection[direction]]; } else { parentDOMNode.setAttribute("dir", direction); parentDOMNode.style.textAlign = directionAlignment[direction]; } // Change selection from the containing paragraph to the original one. window.rangy.restoreSelection(sourceSelection); // Mark the text as having been updated. this.markUpdated(); } } }); }, '@VERSION@', {"requires": ["moodle-editor_atto-plugin"]}); yui/src/button/meta/button.json 0000644 00000000162 15152365461 0012617 0 ustar 00 { "moodle-atto_rtl-button": { "requires": [ "moodle-editor_atto-plugin" ] } } yui/src/button/build.json 0000644 00000000217 15152365461 0011456 0 ustar 00 { "name": "moodle-atto_rtl-button", "builds": { "moodle-atto_rtl-button": { "jsfiles": [ "button.js" ] } } } yui/src/button/js/button.js 0000644 00000006214 15152365461 0011754 0 ustar 00 // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /* * @package atto_rtl * @copyright 2014 Jerome Mouneyrac * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ /** * @module moodle-atto_rtl-button */ /** * Atto text editor rtl plugin. * * @namespace M.atto_rtl * @class button * @extends M.editor_atto.EditorPlugin */ Y.namespace('M.atto_rtl').Button = Y.Base.create('button', Y.M.editor_atto.EditorPlugin, [], { initializer: function() { var direction; direction = 'ltr'; this.addButton({ icon: 'e/left_to_right', title: direction, buttonName: direction, callback: this._toggleRTL, callbackArgs: direction, tags: '[dir=ltr]' }); direction = 'rtl'; this.addButton({ icon: 'e/right_to_left', title: direction, buttonName: direction, callback: this._toggleRTL, callbackArgs: direction, tags: '[dir=rtl]' }); }, /** * Toggle the RTL/LTR values based on the supplied direction. * * @method _toggleRTL * @param {EventFacade} e * @param {String} direction */ _toggleRTL: function(e, direction) { var host = this.get('host'), sourceSelection = window.rangy.saveSelection(), selection = host.getSelection(), newDirection = { rtl: 'ltr', ltr: 'rtl' }, directionAlignment = { rtl: 'right', ltr: 'left' }; if (selection) { // Format the selection to be sure it has a tag parent (not the contenteditable). var parentNode = host.formatSelectionBlock(), parentDOMNode = parentNode.getDOMNode(); var currentDirection = parentDOMNode.getAttribute('dir'); if (currentDirection === direction) { parentDOMNode.setAttribute("dir", newDirection[direction]); parentDOMNode.style.textAlign = directionAlignment[newDirection[direction]]; } else { parentDOMNode.setAttribute("dir", direction); parentDOMNode.style.textAlign = directionAlignment[direction]; } // Change selection from the containing paragraph to the original one. window.rangy.restoreSelection(sourceSelection); // Mark the text as having been updated. this.markUpdated(); } } }); lang/en/atto_rtl.php 0000644 00000002065 15152365461 0010443 0 ustar 00 <?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /** * Strings for component 'atto_rtl', language 'en'. * * @package atto_rtl * @copyright 2014 Jerome Mouneyrac * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ $string['pluginname'] = 'RTL/LTR'; $string['rtl'] = 'Right to left'; $string['ltr'] = 'Left to right'; $string['privacy:metadata'] = 'The atto_rtl plugin does not store any personal data.';
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�