nn?php /** * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ // No direct access. defined('_JEXEC') or die; /** * Language Code plugin class. * * @package Joomla.Plugin * @subpackage Content.language */ class plgSystemLanguagecode extends JPlugin { /** * Plugin that change the language code used in the tag */ public function onAfterRender() { // Use this plugin only in site application if (JFactory::getApplication()->isSite()) { // Get the response body $body = JResponse::getBody(); // Get the current language code $code = JFactory::getDocument()->getLanguage(); // Get the new code $new_code = $this->params->get($code); // Replace the old code by the new code in the tag if ($new_code) { // Replace the new code in the HTML document $patterns = array( chr(1) . '()' . chr(1) . 'i', chr(1) . '()' . chr(1) . 'i', ); $replace = array( '${1}' . strtolower($new_code) . '${3}', '${1}' . strtolower($new_code) . '${3}' ); } else { $patterns = array(); $replace = array(); } // Replace codes in attributes preg_match_all(chr(1) . '()' . chr(1) . 'i', $body, $matches); foreach ($matches[2] as $match) { $new_code = $this->params->get(strtolower($match)); if ($new_code) { $patterns[] = chr(1) . '()' . chr(1) . 'i'; $replace[] = '${1}' . $new_code . '${3}'; } } preg_match_all(chr(1) . '()' . chr(1) . 'i', $body, $matches); foreach ($matches[2] as $match) { $new_code = $this->params->get(strtolower($match)); if ($new_code) { $patterns[] = chr(1) . '()' . chr(1) . 'i'; $replace[] = '${1}' . $new_code . '${3}'; } } JResponse::setBody(preg_replace($patterns, $replace, $body)); } } /** * @param JForm $form The form to be altered. * @param array $data The associated data for the form. * * @return boolean * @since 2.5 */ public function onContentPrepareForm($form, $data) { // Check we have a form if (!($form instanceof JForm)) { $this->_subject->setError('JERROR_NOT_A_FORM'); return false; } // Check we are manipulating a valid form. $app = JFactory::getApplication(); if ($form->getName() != 'com_plugins.plugin' || isset($data->name) && $data->name != 'plg_system_languagecode' || empty($data) && !$app->getUserState('plg_system_language_code.edit') ) { return true; } // Mark the plugin as being edited $app->setUserState('plg_system_language_code.edit', $data->name == 'plg_system_languagecode'); // Get site languages $languages = JLanguage::getKnownLanguages(JPATH_SITE); // Inject fields into the form foreach ($languages as $tag => $language) { $form->load('
'); } return true; } } Miray Eşarp - Eşarp - Eşarp - scarf
Miray 10934 B1 Tuval
Miray 9867 A/B Tuval
Miray 9874 A/B 120cm Tuval
Miray 10934 B2 Tuval
Miray_8835_2_Tuval
Miray 11093-A B1 Tuval
Miray 11093-A B2 Tuval
Miray_12169_B1_Tuval
Miray 12169 B2 Tuval
Miray 12173-B B1 Fantazi Kışlı...
Miray 12173-B B2 Fantazi Kışlı...
Miray 12246 A/B Tuval Eşarp
Miray 12258-B1 Tuval 95cm
Miray 12258-B2 Tuval 95 cm
Miray 6605-1 Sifon
Miray 6605-2 Sifon
Miray 6605-3 Sifon
Miray 6605-4 Sifon
Miray 6645-1 Krep
Miray 6645-2 Krep
Miray 6645-3 Krep
Miray 6645-4 Krep
Miray 14057-A Tuval
Miray 14057-B Tuval
Miray 8835-1 Tuval
Miray 6600-1 Koyu Krep
Miray 6600-2 Koyu Krep
Miray 6600-3 Koyu Krep
Miray 6600-4 Koyu Krep
Miray 12306-B1 Tuval
Miray 12306-B2 Tuval
Miray 6799-1 Tuval
Miray 6799-2 Tuval
Miray 12349-B2 Tuval
Miray 12349-B1 Tuval
Miray 12339-B1 Tuval
 
 
Гашиш чебоксары Москва Сокольники купить закладку Амфетамин Сульфат розовый here Анонимные Наркоманы Салон массажа Мальвина в Москве enter Валь ди Фасса купить закладку: меф-мефедрон, фен-амфетамин, кокаин, героин, мдма, экстази, ски кристаллы скорость, гашиш, шишки и бошки https://nubianelk.ru/moskva-sokolinaya-gora.html Москва Якиманка go here follow link Оренбург купить закладку: меф-мефедрон, фен-амфетамин, кокаин, героин, мдма, экстази, ски кристаллы скорость, гашиш, шишки и бошки https://berelkons.ru/kupit-narkotiki-moskva-vnukovo.html Купить курительные миксы Клин Москва Алексеевский see https://lovedagesut.com/lakatamiya-kupit-zakladku-mefedron-fen-amfetamin-kokain-geroin-mdma-ehkstazi-gashish-shishki-boshki.html https://whickfloaw.ru/moskva-sokolinaya-gora.html source link