Отключение Mootools в Joomla 2.5 (1.7)
Добавил(а) Administrator   
22.06.12 14:28

В CMS Joomla 2.5(1.7) по прежнему по умолчанию для решения задач на Js используется фраймворк Mootools , а так же вспомогательные Js скрипты работающие совместно с mootools.
Например такие как : mootools-core.js , mootools-more.js, core.js, caption.js, modal.js, caption.js.
Но зачастую разработчики веб-сайтов сами выбирают себе js-фраймворки для разработки интерфейса или вообще отключают вывод дефолтных скриптов которые не несут не какой пользы в их проекте.

Существует несколько способов отключить загрузку, я вам хочу привести универсальный 100% работающий и легко понятный скрипт всем кто мало мальски знаком с PHP.
Ниже приведенный код надо вставить в код шаблона Joomla 2.5 перед позицией

<jdoc:include type=»head» />

1
2
3
4
5
6
7
<?php
// здесь представлен список js скриптов отключаемых  при загрузки
unset($this->_scripts[$this->baseurl.'/media/system/js/mootools-core.js'], 
	$this->_scripts[$this->baseurl.'/media/system/js/mootools-more.js'],
	$this->_scripts[$this->baseurl.'/media/system/js/core.js'],
	$this->_scripts[$this->baseurl.'/media/system/js/caption.js']);
?>

Основной конструктивизм кода состоит из того что мы оператором unset просто разрушаем (разустанавливаем) специфическую переменную, заранее предопределенную в другом файле( функции).

Данный способ является максимально правильным и простым при отключение Mootools в Joomla 2.5 (1.7).

Последнее обновление 06.07.12 11:22
 

Комментарии  

 
0 #229 Joni 03.08.2021 18:59
Nice respond in return of this matter with genuine arguments and explaining the whole thing regarding that.


my web page :: boy to boy sex: https://gay0day.com/videos/12819/gay-boy-sex-video-and-young-boys-spunk-cocks-first-time-after-school-snack/
Цитировать
 
 
0 #228 Jayden 03.08.2021 01:32
Informative article, just what I needed.

Also visit my web page ... desipussyx: https://desipussyx.com
Цитировать
 
 
0 #227 Niki 27.07.2021 00:58
I am sure this paragraph has touched all the internet visitors, its really really fastidious paragraph on building up new blog.


Feel free to surf to my blog: v9bet: https://choi123.com/
Цитировать
 
 
0 #226 Fidel 21.07.2021 00:26
Howdy would you mind letting me know which hosting company
you're utilizing? I've loaded your blog in 3 completely different internet
browsers and I must say this blog loads a lot quicker then most.
Can you suggest a good internet hosting provider at a fair price?
Many thanks, I appreciate it!

Here is my site :: porcelaingoirl: https://thetranny.com/videos/54129/porcelaingoirl-flip-flop-sex/
Цитировать
 
 
0 #225 Marita 19.07.2021 08:38
Howdy I am so delighted I found your weblog, I really found you by mistake, while I was looking on Bing for something else, Anyways I am here now and would
just like to say thanks a lot for a incredible post and
a all round thrilling blog (I also love the theme/design), I don’t have
time to go through it all at the minute but I have book-marked it and also included your RSS feeds, so when I
have time I will be back to read much more, Please do keep up the great jo.


Feel free to visit my page; reuniteloverspe lls: https://reuniteloverspe lls.com
Цитировать
 
 
0 #224 Tamie 18.07.2021 15:50
This article is actually a good one it helps new web visitors, who are wishing in favor of blogging.


Here is my web blog - hospedagemsites linux: https://hospedagemsites linux.com
Цитировать
 
 
0 #223 Janet 18.07.2021 09:12
What's up, after reading this remarkable article i am too happy to share my experience here with friends.



Feel free to visit my blog ... footjob: https://zeenite.com/videos/19731/reverse-footjob-i-want-u-to-cum-on-my-feet-and-soles/
Цитировать
 
 
0 #222 Roseann 17.07.2021 22:10
This is my first time go to see at here and i am actually pleassant to
read everthing at single place.

Here is my homepage: x
video: https://gay0day.com/search/bangla-gay-x-video/
Цитировать
 
 
0 #221 Valerie 17.07.2021 06:12
Every weekend i used to pay a visit this website, because i want enjoyment, as this this web page conations really fastidious funny material too.


My web-site chaturbate: https://chaturbate.network
Цитировать
 
 
0 #220 Carrol 17.07.2021 02:24
Hi there! I could have sworn I've visited this blog before but after browsing through many of the articles I realized it's new to
me. Anyhow, I'm certainly delighted I discovered it and I'll be bookmarking it and checking back
regularly!

My webpage; zeenite: https://zeenite.com
Цитировать
 
 
0 #219 Malissa 13.07.2021 23:59
Hi, every time i used to check web site posts here early in the dawn, for the reason that i enjoy to gain knowledge of more and more.


Also visit my blog post :: crying-porn: https://crying-porn.com
Цитировать
 
 
0 #218 Mason 05.07.2021 16:32
What's up, its fastidious post about media print, we all be aware of media is a wonderful source of
information.

Here is my blog sexyfatmature: https://sexyfatmature.net
Цитировать
 
 
0 #217 Marcus 04.07.2021 07:55
What's up it's me, I am also visiting this web page on a regular basis, this web site is
in fact good and the viewers are actually sharing good thoughts.


My homepage ... cialis tadalafil: http://-tourist.de/index.php/de/kommunika?a%5B%5D=%3Ca+href%3Dhttps%3A%2F%2Fcialisya.com%2F%3Ebuy+cialis+online%3C%2Fa%3E
Цитировать
 
 
0 #216 Kimberley 30.06.2021 04:55
I truly love your website.. Very nice colors & theme.
Did you make this website yourself? Please reply back as I'm looking to create my own personal site and want to find out where you got this from
or just what the theme is called. Kudos!

Also visit my web site sexyfatmature: https://sexyfatmature.net
Цитировать
 
 
0 #215 Roxanna 28.06.2021 11:55
Телеграмм канал Инвестор - для инвесторов: https://t.me/investors_channel - читайте в телеграмм, смотрите, анализируйте и инвестируйте!

Если у вас не установлен telegram - Читать канал Инвестор >>>: https://t.me/s/investors_channel - читайте канал без использования телеграм.


Подписаться на канал - Читать канал Канал Инвестор: https://t.me/investors_channel !..
Цитировать
 
 
0 #214 Carmela 28.06.2021 04:23
Hi to all, it's in fact a good for me to go to see this
web page, it contains valuable Information.

Feel free to visit my web page - gay webcam: https://gay0day.cam
Цитировать
 

Добавить комментарий


Наверх