Добрый день, подскажите как найти файл главной страницы шаблона yoo_vanilla_j15 ? Задача - нужно вставить в тег head скрипт Google. Зашел templates/мой шаблон -yoo_vanilla_j15/warp/systems/joomla.1.5/layouts нашел head.php
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Актуальные контакты:
Telegram: @Nikker_web
E-Mail: tarasevich.email@gmail.com
Портфолио https://www.behance.net/d4d4186e
Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ
Актуальные контакты:
Telegram: @Nikker_web
E-Mail: tarasevich.email@gmail.com
Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ
Портфолио https://www.behance.net/d4d4186e
Question
mrfrunze
Добрый день, подскажите как найти файл главной страницы шаблона yoo_vanilla_j15 ?
Задача - нужно вставить в тег head скрипт Google.
Зашел templates/мой шаблон -yoo_vanilla_j15/warp/systems/joomla.1.5/layouts
нашел head.php
<jdoc:include type="head" /><?php// load jQuery, if not loaded beforeif (!$this->warp->system->application->get('jquery')) { $this->warp->system->application->set('jquery', true); $this->warp->system->document->addScript($this->warp->path->url('lib:jquery/jquery.js')); }$style_urls = array_keys($this->warp->stylesheets->get());$script_urls = array_keys($this->warp->javascripts->get());// get compressed styles and scriptsif ($compression = $this->warp->config->get('compression')) { $options = array(); if ($compression >= 2) { $options['gzip'] = true; } if ($compression == 3) { $options['data_uri'] = true; } if ($urls = $this->warp->cache->processStylesheets($style_urls, $options)) { $style_urls = $urls; } if ($urls = $this->warp->cache->processJavascripts($script_urls, $options)) { $script_urls = $urls; } $head = $this->warp->system->document->getHeadData(); if (count($head['styleSheets'])) { foreach ($head['styleSheets'] as $style => $meta) { if (preg_match('/\.css$/i', $style) && ($url = $this->warp->cache->processStylesheets(array($style), array_merge($options, array('data_uri' => false))))) { $style = array_shift($url); } $styles[$style] = $meta; } $head['styleSheets'] = $styles; } if (count($head['scripts'])) { foreach ($head['scripts'] as $script => $meta) { if (preg_match('/\.js$/i', $script) && ($url = $this->warp->cache->processJavascripts(array($script), $options))) { $script = array_shift($url); } $scripts[$script] = $meta; } $head['scripts'] = $scripts; } $this->warp->system->document->setHeadData($head);}// add stylesforeach ($style_urls as $style) { echo '<link rel="stylesheet" href="'.$style.'" type="text/css" />'."\n";}// add scriptsforeach ($script_urls as $script) { echo '<script type="text/javascript" src="'.$script.'"></script>'."\n";}// add style declarationsforeach ($this->warp->stylesheets->getDeclarations() as $type => $style) { echo '<style type="'.$type.'">'.$style.'</style>'."\n";}// add script declarationsforeach ($this->warp->javascripts->getDeclarations() as $type => $script) { echo '<script type="'.$type.'">'.$script.'</script>'."\n";} $this->output('head');Подскажите можно ли внизу после
$this->output('head');прописать
Или как правильно его вставить и куда?
Сам не программист - верстальщик.
Спасибо надеюсь на любую подсказку и вашу помощь.
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.