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; } } About - Miray Eşarp

Company

Москва Южное Медведково Miray , the idea of ​​Turkey's largest companies scarves when we are on the road , a long way from our goals was great. To bring fashion to everyone , the trend we wanted to make everything more accessible . A small team who share a common vision that we moved through the synergy short time we have become an international textile company . Come, let's look at the result of this change , let us introduce Miray more closely .

сколько дней выводится амфетамин - Distinguished scarf designs , fashion lovers on their way to deliver Miray , Turkey and the Arab countries , giving the fashion privileges .

Лобня - Miray the pioneer of innovations in the textile world , fashion is not only nothing more than scarves . Clothing Textiles place at giving quality products .

enter site - Miray finger on the pulse of fashion , Istanbul head office is located in the heart of the textile and experienced team of experts is engaged .

иха 10 мульти фактор инструкция - Turkey and the Arab countries on track to become the leading clothing company Miray , domestic and abroad by sending the product aims to become a global brand of Turkish textile .

https://drugsgeao.online/1-litr-piva-cherez-skolko-vivetritsya.html Miray every purchase with a new fashion

соль нарк купить With a garment to suit your style , scarf or shawl how excited you encounter , whether you see that you 're filled with love . To re-experience these feelings every day ; passion that you need parts, we offer the appropriate forms to your style . Who see fashion as a way of life , we invite you to capture fashion with Miray .

watch Miray Linking fashion .

go here - Every day we're going to face with dozens of new model designs . Because who likes to follow fashion , style to have happy and satisfied customers we want to care about .

click Each VIP services to our customers

source link - In our eyes , every customer has a different significance ... Therefore, to make you happy , we see as our reason of existence .

Take a minute , connect a lifetime .

Miray growing from day to day , leaving your face with a rich concept , the shopping continues to be the indispensable address . Miray few minutes you'll spend in a lifetime, where you can connect with passion products allows you to meet .

Miray Brand of Elegance ...

/
    https://aradedklad.info/kodirovka-ot-alkogolya-vo-vladivostoke.html CopyRight © Miray All Rights Reserved , 2014 Miray Eşarp    |  go here miray blog   |    facebook twitter instagram  youtube