���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home3/cpr76684/public_html/backcolor.tar
���ѧ٧ѧ�
styles.css 0000644 00000001204 15152273007 0006600 0 ustar 00 .atto_backcolor_button .dropdown-menu { min-width: inherit; } .atto_backcolor_button .dropdown-menu .atto_menuentry { padding-top: 5px; padding-bottom: 5px; } .atto_backcolor_button .dropdown-menu .atto_menuentry a[role=menuitem] { display: flex; } .atto_backcolor_button .dropdown-menu .atto_menuentry a[role=menuitem]:hover, .atto_backcolor_button .dropdown-menu .atto_menuentry a[role=menuitem]:focus { box-shadow: #0f6fc5 0 0 3px 1px; } .atto_backcolor_button .dropdown-menu .coloroption { display: flex; align-items: center; float: left; height: 20px; width: 20px; border: 1px solid #ccc; } lib.php 0000644 00000002363 15152273007 0006031 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_backcolor * @copyright 2021 Huong Nguyen <huongn@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); /** * Initialise the js strings required for this module. */ function atto_backcolor_strings_for_js() { global $PAGE; $PAGE->requires->strings_for_js([ 'color_white', 'color_red', 'color_yellow', 'color_green', 'color_blue', 'color_black' ], 'atto_backcolor'); } version.php 0000644 00000002260 15152273007 0006744 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_backcolor * @copyright 2014 Rossiani Wijaya <rwijaya@moodle.com> * @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_backcolor'; // Full name of the plugin (used for diagnostics). classes/privacy/provider.php 0000644 00000003007 15152273007 0012223 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_backcolor * @copyright 2018 Andrew Nicols <andrew@nicols.co.uk> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace atto_backcolor\privacy; defined('MOODLE_INTERNAL') || die(); /** * Privacy Subsystem for atto_backcolor 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_backcolor-button/moodle-atto_backcolor-button-debug.js 0000644 00000005315 15152273010 0023423 0 ustar 00 YUI.add('moodle-atto_backcolor-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_backcolor * @copyright 2014 Rossiani Wijaya <rwijaya@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ /** * @module moodle-atto_backcolor-button */ /** * Atto text editor backcolor plugin. * * @namespace M.atto_backcolor * @class button * @extends M.editor_atto.EditorPlugin */ var colors = [ { name: 'white', color: '#FFFFFF' }, { name: 'red', color: '#EF4540' }, { name: 'yellow', color: '#FFCF35' }, { name: 'green', color: '#98CA3E' }, { name: 'blue', color: '#7D9FD3' }, { name: 'black', color: '#333333' } ]; Y.namespace('M.atto_backcolor').Button = Y.Base.create('button', Y.M.editor_atto.EditorPlugin, [], { initializer: function() { var items = []; Y.Array.each(colors, function(color) { var colorLabel = M.util.get_string('color_' + color.name, 'atto_backcolor'); items.push({ text: '<div class="coloroption" style="background-color: ' + color.color + '" aria-label="' + colorLabel + '" title="' + colorLabel + '"></div>', callbackArgs: color.color }); }); this.addToolbarMenu({ icon: 'e/text_highlight', overlayWidth: '4', globalItemConfig: { inlineFormat: true, callback: this._changeStyle }, items: items }); }, /** * Change the background color to the specified color. * * @method _changeStyle * @param {EventFacade} e * @param {string} color The new background color * @private */ _changeStyle: function(e, color) { this.get('host').formatSelectionInlineStyle({ backgroundColor: color }); } }); }, '@VERSION@'); yui/build/moodle-atto_backcolor-button/moodle-atto_backcolor-button.js 0000644 00000005315 15152273010 0022337 0 ustar 00 YUI.add('moodle-atto_backcolor-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_backcolor * @copyright 2014 Rossiani Wijaya <rwijaya@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ /** * @module moodle-atto_backcolor-button */ /** * Atto text editor backcolor plugin. * * @namespace M.atto_backcolor * @class button * @extends M.editor_atto.EditorPlugin */ var colors = [ { name: 'white', color: '#FFFFFF' }, { name: 'red', color: '#EF4540' }, { name: 'yellow', color: '#FFCF35' }, { name: 'green', color: '#98CA3E' }, { name: 'blue', color: '#7D9FD3' }, { name: 'black', color: '#333333' } ]; Y.namespace('M.atto_backcolor').Button = Y.Base.create('button', Y.M.editor_atto.EditorPlugin, [], { initializer: function() { var items = []; Y.Array.each(colors, function(color) { var colorLabel = M.util.get_string('color_' + color.name, 'atto_backcolor'); items.push({ text: '<div class="coloroption" style="background-color: ' + color.color + '" aria-label="' + colorLabel + '" title="' + colorLabel + '"></div>', callbackArgs: color.color }); }); this.addToolbarMenu({ icon: 'e/text_highlight', overlayWidth: '4', globalItemConfig: { inlineFormat: true, callback: this._changeStyle }, items: items }); }, /** * Change the background color to the specified color. * * @method _changeStyle * @param {EventFacade} e * @param {string} color The new background color * @private */ _changeStyle: function(e, color) { this.get('host').formatSelectionInlineStyle({ backgroundColor: color }); } }); }, '@VERSION@'); yui/build/moodle-atto_backcolor-button/moodle-atto_backcolor-button-min.js 0000644 00000001514 15152273010 0023115 0 ustar 00 YUI.add("moodle-atto_backcolor-button",function(o,t){var e=[{name:"white",color:"#FFFFFF"},{name:"red",color:"#EF4540"},{name:"yellow",color:"#FFCF35"},{name:"green",color:"#98CA3E"},{name:"blue",color:"#7D9FD3"},{name:"black",color:"#333333"}];o.namespace("M.atto_backcolor").Button=o.Base.create("button",o.M.editor_atto.EditorPlugin,[],{initializer:function(){var a=[];o.Array.each(e,function(o){var t=M.util.get_string("color_"+o.name,"atto_backcolor");a.push({text:'<div class="coloroption" style="background-color: '+o.color+'" aria-label="'+t+'" title="'+t+'"></div>',callbackArgs:o.color})}),this.addToolbarMenu({icon:"e/text_highlight",overlayWidth:"4",globalItemConfig:{inlineFormat:!0,callback:this._changeStyle},items:a})},_changeStyle:function(o,t){this.get("host").formatSelectionInlineStyle({backgroundColor:t})}})},"@VERSION@"); yui/src/button/meta/editor.js 0000644 00000000115 15152273010 0012217 0 ustar 00 { "moodle-atto_backcolor-button": { "requires": ["node"] } } yui/src/button/build.json 0000644 00000000275 15152273010 0011446 0 ustar 00 { "name": "moodle-atto_backcolor-button", "builds": { "moodle-atto_backcolor-button": { "jsfiles": [ "button.js" ] } } } yui/src/button/js/button.js 0000644 00000005174 15152273010 0011744 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_backcolor * @copyright 2014 Rossiani Wijaya <rwijaya@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ /** * @module moodle-atto_backcolor-button */ /** * Atto text editor backcolor plugin. * * @namespace M.atto_backcolor * @class button * @extends M.editor_atto.EditorPlugin */ var colors = [ { name: 'white', color: '#FFFFFF' }, { name: 'red', color: '#EF4540' }, { name: 'yellow', color: '#FFCF35' }, { name: 'green', color: '#98CA3E' }, { name: 'blue', color: '#7D9FD3' }, { name: 'black', color: '#333333' } ]; Y.namespace('M.atto_backcolor').Button = Y.Base.create('button', Y.M.editor_atto.EditorPlugin, [], { initializer: function() { var items = []; Y.Array.each(colors, function(color) { var colorLabel = M.util.get_string('color_' + color.name, 'atto_backcolor'); items.push({ text: '<div class="coloroption" style="background-color: ' + color.color + '" aria-label="' + colorLabel + '" title="' + colorLabel + '"></div>', callbackArgs: color.color }); }); this.addToolbarMenu({ icon: 'e/text_highlight', overlayWidth: '4', globalItemConfig: { inlineFormat: true, callback: this._changeStyle }, items: items }); }, /** * Change the background color to the specified color. * * @method _changeStyle * @param {EventFacade} e * @param {string} color The new background color * @private */ _changeStyle: function(e, color) { this.get('host').formatSelectionInlineStyle({ backgroundColor: color }); } }); lang/en/atto_backcolor.php 0000644 00000002352 15152273010 0011564 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_backcolor', language 'en'. * * @package atto_backcolor * @copyright 2014 Rossiani Wijaya <rwijaya@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ $string['color_white'] = 'White'; $string['color_red'] = 'Red'; $string['color_yellow'] = 'Yellow'; $string['color_green'] = 'Green'; $string['color_blue'] = 'Blue'; $string['color_black'] = 'Black'; $string['pluginname'] = 'Background colour'; $string['privacy:metadata'] = 'The atto_backcolor plugin does not store any personal data.';
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�