Новости Joomla

0 Пользователей и 1 Гость просматривают эту тему.
  • 9 Ответов
  • 6081 Просмотров
*

mslex

  • Новичок
  • 9
  • 0 / 0
Добрый день/ночь
У меня встала следующая задача!

Есть Joomla 3.0.3 использую шаблон  protostar.

Половина функций не работает:
1.Например иконки (glyphicons-halflings-white.png, glyphicons-halflings.png)
как у вас в образце
2. При открытии страницы не запускается слайдер автоматически, запускается только после того как нажмем на стрелочку вправо или лево.
3. не отображается Thumbnails требуется (holder.js)
4. не отображается Progress bars вообще никакой!

Подскажите что не так делаю пожалуйста, как это все подключить.
Вот index.php шаблона protostar

Код
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  Templates.protostar
 *
 * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

// Getting params from template
$params = JFactory::getApplication()->getTemplate(true)->params;

$app = JFactory::getApplication();
$doc = JFactory::getDocument();
$this->language = $doc->language;
$this->direction = $doc->direction;

// Detecting Active Variables
$option   = $app->input->getCmd('option', '');
$view     = $app->input->getCmd('view', '');
$layout   = $app->input->getCmd('layout', '');
$task     = $app->input->getCmd('task', '');
$itemid   = $app->input->getCmd('Itemid', '');
$sitename = $app->getCfg('sitename');

if($task == "edit" || $layout == "form" )
{
$fullWidth = 1;
}
else
{
$fullWidth = 0;
}

// Add JavaScript Frameworks
JHtml::_('bootstrap.framework');

// Add Stylesheets

$doc->addStyleSheet('templates/'.$this->template.'/css/template.css');

// Load optional rtl Bootstrap CSS and Bootstrap bugfixes
JHtmlBootstrap::loadCss($includeMaincss = false, $this->direction);

// Add current user information
$user = JFactory::getUser();

// Adjusting content width
if ($this->countModules('position-7') && $this->countModules('position-8'))
{
$span = "span6";
}
elseif ($this->countModules('position-7') && !$this->countModules('position-8'))
{
$span = "span9";
}
elseif (!$this->countModules('position-7') && $this->countModules('position-8'))
{
$span = "span9";
}
else
{
$span = "span12";
}

// Logo file or site title param
if ($this->params->get('logoFile'))
{
$logo = '<img src="'. JURI::root(). $this->params->get('logoFile').'" alt="'. $sitename .'" />';
}
elseif ($this->params->get('sitetitle'))
{
$logo = '<span class="site-title" title="'. $sitename .'">'. htmlspecialchars($this->params->get('sitetitle')).'</span>';
}
else
{
$logo = '<span class="site-title" title="'. $sitename .'">'. $sitename .'</span>';
}
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
<head>
<meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

  <meta name="description" content="">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  
  <jdoc:include type="head" />
  
  
  <link rel="stylesheet" href="<?php echo $this->baseurl ?>/media/jui/css/bootstrap.css" />
<style type="text/css">  
    form {  
    margin-top: 50px;  
    }  
    </style>




<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<jdoc:include type="head" />
<?php
// Use of Google Font
if ($this->params->get('googleFont'))
{
?>
<link href='http://fonts.googleapis.com/css?family=<?php echo $this->params->get('googleFontName');?>' rel='stylesheet' type='text/css' />
<style type="text/css">
h1,h2,h3,h4,h5,h6,.site-title{
font-family: '<?php echo str_replace('+', ' ', $this->params->get('googleFontName'));?>', sans-serif;
}
</style>
<?php
}
?>
<?php
// Template color
if ($this->params->get('templateColor'))
{
?>
<style type="text/css">
body.site
{
border-top: 3px solid <?php echo $this->params->get('templateColor');?>;
background-color: <?php echo $this->params->get('templateBackgroundColor');?>
}
a
{
color: <?php echo $this->params->get('templateColor');?>;
}
.navbar-inner, .nav-list > .active > a, .nav-list > .active > a:hover, .dropdown-menu li > a:hover, .dropdown-menu .active > a, .dropdown-menu .active > a:hover, .nav-pills > .active > a, .nav-pills > .active > a:hover,
.btn-primary
{
background: <?php echo $this->params->get('templateColor');?>;
}
.navbar-inner
{
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, .25), inset 0 -1px 0 rgba(0, 0, 0, .1), inset 0 30px 10px rgba(0, 0, 0, .2);
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, .25), inset 0 -1px 0 rgba(0, 0, 0, .1), inset 0 30px 10px rgba(0, 0, 0, .2);
box-shadow: 0 1px 3px rgba(0, 0, 0, .25), inset 0 -1px 0 rgba(0, 0, 0, .1), inset 0 30px 10px rgba(0, 0, 0, .2);
}
</style>
<?php
}
?>
<!--[if lt IE 9]>

<![endif]-->

<script src="<?php echo $this->baseurl ?>/media/jui/js/html5.js"></script>
<script src="<?php echo $this->baseurl ?>/media/jui/js/bootstrap.js"></script>
<script src="<?php echo $this->baseurl ?>/js/holder/holder.js"></script>



</head>

<body class="site <?php echo $option
. ' view-' . $view
. ($layout ? ' layout-' . $layout : ' no-layout')
. ($task ? ' task-' . $task : ' no-task')
. ($itemid ? ' itemid-' . $itemid : '')
. ($params->get('fluidContainer')? ' fluid' : '');
?>">

<!-- Body -->
<div class="body">
<div class="container<?php echo ($params->get('fluidContainer')? '-fluid' : '');?>">
<!-- Header -->
<div class="header">
<div class="header-inner clearfix">
<a class="brand pull-left" href="<?php echo $this->baseurl; ?>">
<?php echo $logo;?> <?php if ($this->params->get('sitedescription')) { echo '<div class="site-description">'. htmlspecialchars($this->params->get('sitedescription')).'</div>'; } ?>
</a>
<div class="header-search pull-right">
<jdoc:include type="modules" name="position-0" style="none" />
</div>
</div>
</div>
<?php if ($this->countModules('position-1')) : ?>
<div class="navigation">
<jdoc:include type="modules" name="position-1" style="none" />
</div>
<?php endif; ?>
<jdoc:include type="modules" name="banner" style="xhtml" />
<div class="row-fluid">
<?php if ($this->countModules('position-8')) : ?>
<!-- Begin Sidebar -->
<div id="sidebar" class="span3">
<div class="sidebar-nav">
<jdoc:include type="modules" name="position-8" style="xhtml" />
</div>
</div>
<!-- End Sidebar -->
<?php endif; ?>
<div id="content" class="<?php echo $span;?>">
<!-- Begin Content -->
<jdoc:include type="modules" name="position-3" style="xhtml" />
<jdoc:include type="message" />
<jdoc:include type="component" />
<jdoc:include type="modules" name="position-2" style="none" />
<!-- End Content -->
</div>
<?php if ($this->countModules('position-7')) : ?>
<div id="aside" class="span3">
<!-- Begin Right Sidebar -->
<jdoc:include type="modules" name="position-7" style="well" />
<!-- End Right Sidebar -->
</div>
<?php endif; ?>
</div>
</div>
</div>
<!-- Footer -->
<div class="footer">
<div class="container<?php echo ($params->get('fluidContainer')? '-fluid' : '');?>">
<hr />
<jdoc:include type="modules" name="footer" style="none" />
<p class="pull-right"><a href="#top" id="back-top"><?php echo JText::_('TPL_PROTOSTAR_BACKTOTOP'); ?></a></p>
<p>&copy; <?php echo $sitename; ?> <?php echo date('Y');?></p>
</div>
</div>
<jdoc:include type="modules" name="debug" style="none" />
</body>

</html>

« Последнее редактирование: 01.03.2013, 15:42:13 от mslex »
*

umbabaraumba

  • Живу я здесь
  • 2415
  • 153 / 1
  • если помог можете поставить +
Re: bootstrap шаблон protostar не работает
« Ответ #1 : 01.03.2013, 15:28:51 »
Это может быть потому что версия 3.0 пока не стабильная и только для тестирования
Errare humanum est
Ubuntu по-русски
Пишу не сложные модули и компоненты, не дорого но не срочно
*

serviceitdpua

  • Новичок
  • 2
  • 0 / 0
Re: bootstrap шаблон protostar не работает
« Ответ #2 : 01.03.2013, 18:35:54 »
Это может быть потому что версия 3.0 пока не стабильная и только для тестирования
Joomla 3.0.3 только для тестирования??  :o
*

b2z

  • Глобальный модератор
  • 7290
  • 778 / 0
  • Разраблю понемногу
Re: bootstrap шаблон protostar не работает
« Ответ #3 : 01.03.2013, 18:42:32 »
Joomla 3.0.3 только для тестирования??  :o
Да уже в принципе нет. Багов конечно еще много, но она считается стабильной версией
http://www.joomla.org/download.html

Цитировать
Download Joomla! 3.0.x (Recommended for most new sites)

Joomla 3.0 is the newest version recommended for most new installs. It includes the latest and greatest features of Joomla and mobile/responsive support.
*

umbabaraumba

  • Живу я здесь
  • 2415
  • 153 / 1
  • если помог можете поставить +
Re: bootstrap шаблон protostar не работает
« Ответ #4 : 01.03.2013, 18:44:22 »
Да уже в принципе нет. Багов конечно еще много, но она считается стабильной версией
А на форуме написано "Joomla 3.0 (нестабильная версия - для разработчиков)"
Errare humanum est
Ubuntu по-русски
Пишу не сложные модули и компоненты, не дорого но не срочно
*

b2z

  • Глобальный модератор
  • 7290
  • 778 / 0
  • Разраблю понемногу
Re: bootstrap шаблон protostar не работает
« Ответ #5 : 01.03.2013, 18:46:36 »
А на форуме написано "Joomla 3.0 (нестабильная версия - для разработчиков)"
Уху, я попросил убрать.
*

umbabaraumba

  • Живу я здесь
  • 2415
  • 153 / 1
  • если помог можете поставить +
Re: bootstrap шаблон protostar не работает
« Ответ #6 : 01.03.2013, 18:48:08 »
Уху, я попросил убрать.
Понятно . Буду знать .
Errare humanum est
Ubuntu по-русски
Пишу не сложные модули и компоненты, не дорого но не срочно
*

dron

  • Завсегдатай
  • 1580
  • 16 / 10
Re: bootstrap шаблон protostar не работает
« Ответ #7 : 25.12.2016, 15:38:55 »
А у меня не выводятся всплывающие лайтбоксы (class="modal"). Joomla 3.6.5 (((

В чем может быть проблема?
*

ProtectYourSite

  • Живу я здесь
  • 2356
  • 135 / 4
  • Безопасность вебсайтов
Re: bootstrap шаблон protostar не работает
« Ответ #8 : 25.12.2016, 16:25:53 »
Ошибки яваскрипта в консоле есть?
*

dron

  • Завсегдатай
  • 1580
  • 16 / 10
Re: bootstrap шаблон protostar не работает
« Ответ #9 : 25.12.2016, 19:46:12 »
Прошу прощения, я уже сам разобрался. Нужно было до </head> добавить строку
Код
<?php JHTML::_('behavior.modal'); ?>

И все заработало
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Ошибка при входе в корзину шаблон jmart

Автор dimiur

Ответов: 5
Просмотров: 2628
Последний ответ 24.05.2023, 14:24:30
от Gleb72
Почему обновление шаблона ломает шаблон?

Автор gorbi_U

Ответов: 8
Просмотров: 1338
Последний ответ 03.05.2023, 22:54:19
от SmiP
Нужно ли переносить custom.css при переезде на новый шаблон?

Автор gorbi_U

Ответов: 3
Просмотров: 1000
Последний ответ 09.02.2023, 21:05:42
от marksetter
Где в Joomla 3.4.3 шаблон материала? Шаблон Yootheme Organic

Автор annushka

Ответов: 13
Просмотров: 4787
Последний ответ 13.09.2022, 11:14:56
от tuztref
offcanvas не работает с joomshoping

Автор kibervolk

Ответов: 5
Просмотров: 10762
Последний ответ 01.05.2022, 09:29:57
от kibervolk