This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE `abcd_extensions` SET `params` = '{"filters":{"1":{"filter_type":"NH","filter_tags":"","filter_attributes":""},"9":{"filter_type":"NH","filter_tags":"","filter_attributes":""},"6":{"filter_type":"BL","filter_tags":"","filter_attributes":""},"7":{"filter_type":"BL","filter_tags":"","filter_attributes":""},"2":{"filter_type":"NH","filter_tags":"","filter_attributes":""},"3":{"filter_type":"BL","filter_tags":"","filter_attributes":""},"4":{"filter_type":"BL","filter_tags":"","filter_attributes":""},"5":{"filter_type":"BL","filter_tags":"","filter_attributes":""},"8":{"filter_type":"NONE","filter_tags":"","filter_attributes":""}}}' WHERE `name` = 'com_config' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @copyright Copyright (C) 2023 Joe Public. All rights reserved | |
* @license GNU General Public License version 2 or later | |
*/ | |
defined('JPATH_BASE') or die; | |
use Joomla\CMS\Factory; | |
use Joomla\CMS\Plugin\CMSPlugin; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": | |
[ | |
{ | |
"title": "Global Configuration", | |
"xreference": "admin.config.about" | |
}, | |
{ | |
"title": "Cleanup and Output", | |
"xreference": "admin.config.cleanup" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"😀": "Grinning Face", | |
"😁": "Grinning Face With Smiling Eyes", | |
"😂": "Face With Tears Of Joy", | |
"😃": "Smiling Face With Open Mouth", | |
"😄": "Smiling Face With Open Mouth And Smiling Eyes", | |
"😅": "Smiling Face With Open Mouth And Cold Sweat", | |
"😆": "Smiling Face With Open Mouth And Tightly-Closed Eyes", | |
"😇": "Smiling Face With Halo", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
tinyMCE.onAddEditor.add(function (mgr, ed) { | |
ed.onSetContent.add(function(ed, o) { | |
o.content = o.content.replace(/\s:/g, ' :'); | |
}); | |
ed.onGetContent.add(function(ed, o) { | |
o.content = o.content.replace(/\s:/g, ' :'); | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function onWfGetCustomEmbedData($url = '') | |
{ | |
$expression = 'http(s)://(www\.)myembed\.com/(.*)id=(.*)'; | |
$data = array( | |
'width' => '560', | |
'height'=> '315', | |
'src' => '', | |
'allow' => 'accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture allowfullscreen', | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static function buildListFromJson($nodes) | |
{ | |
$data = array(); | |
$nodes = isset($nodes['@graph']) ? $nodes['@graph'] : array(); | |
$properties = array_map(function ($node) { | |
if ($node['@type'] == 'rdf:Property') { | |
$id = str_replace('http://schema.org/', '', $node['@id']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('JPATH_BASE') or die; | |
class PlgSystemInlineUpload extends JPlugin | |
{ | |
public function onWfFileSystemGetRootDir(&$root) | |
{ | |
// inline upload only | |
if (JFactory::getApplication()->input->getInt('inline', 0) === 1) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('JPATH_BASE') or die; | |
class PlgSystemUploadResize extends JPlugin | |
{ | |
public function onContentAfterSave($context, &$object_file) | |
{ | |
if (!preg_match('#^com_(media|jce)\.file$#', $context)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$version = (string) $parent->manifest->version; | |
$current_version = (string) $parent->get('current_version'); | |
$theme = 'modern'; | |
// update toolbar_theme | |
if ($theme) { | |
$table = JTable::getInstance('Profiles', 'JceTable'); | |
$db = JFactory::getDBO(); |
NewerOlder