Новости Joomla

Как тестировать Joomla PHP-разработчику? Компонент Patch tester.

👩‍💻 Как тестировать Joomla PHP-разработчику? Компонент Patch tester.Joomla - open source PHP-фреймворк с готовой админкой. Его основная разработка ведётся на GitHub. Для того, чтобы международному сообществу разработчиков было удобнее тестировать Pull Requests был создан компонент Patch Tester, который позволяет "накатить" на текущую установку Joomla именно те изменения, которые необходимо протестировать. На стороне инфраструктуры Joomla для каждого PR собираются готовые пакеты, в которых находится ядро + предложенные изменения. В каждом PR обычно находятся инструкции по тестированию: куда зайти, что нажать, ожидаемый результат. Тестировщики могут предположить дополнительные сценарии, исходя из своего опыта и найти баги, о которых сообщить разработчику. Или не найти, и тогда улучшение или исправление ошибки быстрее войдёт в ядро Joomla. Напомню, что для того, чтобы PR вошёл в ядро Joomla нужны минимум 2 положительных теста от 2 участников сообщества, кроме автора. Видео на YouTubeВидео на VK ВидеоВидео на RuTubeКомпонент на GitHub https://github.com/joomla-extensions/patchtester@joomlafeed#joomla #php #webdev #community

Вышел релиз Revo PageBuilder Toolkit for YOOtheme Pro 1.6

Вышел релиз Revo PageBuilder Toolkit for YOOtheme Pro 1.6.2PageBuilder Toolkit - это специализированный плагин для конструктора страниц Yootheme Pro, содержит набор различных утилит для ускорения процесса работы и отладки макета, множественные улучшения в интерфейсе, включая поддержку dark mode, подсказки, быстрая смена разрешения в окне просмотра и много чего еще.v.1.6.2 Что нового?- Индикатор статусов: теперь не просто показывает состояние запросов, но и делает автоматические попытки их отправки при кратковременных сбоях в сети, а если это не помогло, то переводит конструктор в ручной режим, что позволяет сохранит макет и настройки темы прежде чем вы потеряете все, что было сделано с момента последнего сохранения- Подсветка ошибок в макете: плагин анализирует код страницы и может автоматически подсвечивать data атрибуты с кучей мусора, которые попадают в код страницы при копипасте из Figma в TinyMCE (пригодится для старых макетов, в текущей работе плагин сам очищает код мусора). Также есть подсветка семантических ошибок сборки - дубли h1 тега на странице и вложенных друг в друга заголовков.- Улучшена поддержка будущего релиза Yootheme Pro 5 и редактора CodeMirror 6Плагин для русскоязычных пользователей доступен в каталоге расширений SovMart и распространяется за символическую плату (100р). Разработчики Joomla расширений и партнеры автора могут получить плагин бесплатно.Для работы плагина необходим конструктор страниц Yootheme Pro.Разработчик плагина - участник нашего сообщества Александр Судьбинов (@alexrevo), член официальной группы поддержки Yootheme Pro. Страница расширенияОписание на сайте автора@joomlafeed#joomla #yootheme

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

sk.ko

  • Новичок
  • 2
  • 0 / 0
Изменение ширины шаблона
« : 22.06.2012, 22:22:38 »
Добрый день, помогите пожалуйста разобраться. Суть проблемы в том, что не могу поменять ширину шаблона (a4joomla-goldenreed-free). При редактирование файла index.php сайт никак не меняется, вот код :
(изменение значения в строке "pageWidth  = $this->params->get("pageWidth", "980")", проблему не решает, ничего не происходит.)
Цитировать
<?php // no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
$showLeftColumn = (bool) $this->countModules('position-7');
$showRightColumn = (bool) $this->countModules('position-6');
$showRightColumn &= JRequest::getCmd('layout')!= 'edit';

$headerType = $this->params->get("headerType","1");
$myimage = $this->params->get("myimage","goldenreed1.jpg");
$myfolder = $this->params->get("myfolder","sampledata");
$duration = $this->params->get("duration","800");
$delay = $this->params->get("delay","4000");
$imageWidth = $this->params->get("imageWidth","950");
$imageHeight = $this->params->get("imageHeight","370");
$forceresize = $this->params->get("forceresize","0");
$showControl = $this->params->get("showControl", "true");
$display = $this->params->get("display","sequence");
$arrowColor = $this->params->get("arrowColor","white");

$frontpagediv="0";
if ($headerType == "0" || $headerType == "1") {
  $lang =& JFactory::getLanguage();
  $locale = $lang->getTag();
  $menu = JSite::getMenu();
  if ($menu->getActive() == $menu->getDefault($locale)) {
    $frontpagediv="1";
  }
} elseif ($headerType == "2" || $headerType == "3") {
  $frontpagediv="1";
}

$margin = 30;
$outermargin = 0;
$logoText  = $this->params->get("logotext","Вуд-Строй");
$slogan  = $this->params->get("vica");
$pageWidth  = $this->params->get("pageWidth", "980");
$pageWidth  = $pageWidth - $outermargin;
$rightColumnWidth  = $this->params->get("rightColumnWidth", "190");
$leftColumnWidth  = $this->params->get("leftColumnWidth", "190");
$logoWidth  = $this->params->get("logoWidth", "260");
$widthdiff = 30;
if ($forceresize == "1") {
  $imageHeight = round($imageHeight * ($pageWidth + $outermargin - $widthdiff) / $imageWidth);
  $imageWidth = $pageWidth + $outermargin - $widthdiff;
}
$controlPosition = 50 - 2500/$imageHeight;
$headerrightWidth = $pageWidth + $outermargin - $logoWidth - 50;

if ($showLeftColumn && $showRightColumn) {
   $contentWidth = $pageWidth - $leftColumnWidth - $rightColumnWidth - 3*$margin;
} elseif (!$showLeftColumn && $showRightColumn) {
   $contentWidth = $pageWidth - $rightColumnWidth - 2*$margin ;
} elseif ($showLeftColumn && !$showRightColumn) {
   $contentWidth = $pageWidth - $leftColumnWidth - 2*$margin ;
} else {
   $contentWidth = $pageWidth - $margin ;
}
JHTML::_('behavior.framework', true); 
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >

<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/golden.css" type="text/css" />
<!--[if IE 6]>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/ie6.css" type="text/css" />
<style type="text/css">
img, div, a, input { behavior: url(<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/iepngfix.htc) }
</style>
<script src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/iepngfix_tilebg.js" type="text/javascript"></script>
<![endif]-->
<!--[if lte IE 7]>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/ie67.css" type="text/css" />
<![endif]-->
<style type="text/css">
 #logo {
    width:<?php echo $logoWidth; ?>px;
 }
 #headerright {
    width:<?php echo $headerrightWidth; ?>px;
 }
 #slideshow-container {
  width:<?php echo $pageWidth + $outermargin - $widthdiff; ?>px;
  height:<?php echo $imageHeight; ?>px;
 }
 #slideshow-container img {
  width:<?php echo $imageWidth; ?>px;
  height:<?php echo $imageHeight; ?>px;
 }
 #slcontrol {
  width:<?php echo $imageWidth; ?>px;
  top:<?php echo $controlPosition; ?>%;
 }
 a#slprev {
    background: url("<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/previous-<?php echo $arrowColor; ?>.png") no-repeat scroll left center transparent;
 }
 a#slnext {
    background: url("<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/next-<?php echo $arrowColor; ?>.png") no-repeat scroll right center transparent;
 }
</style>
<script src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/verysimpleslideshow.js" type="text/javascript"></script>
<?php if (($headerType == "1" || $headerType == "3") && $frontpagediv == "1") : ?>
<script type="text/javascript">
window.addEvent('domready',function() {
  var slideshow = new VerySimpleSlideshow({
    container: 'slideshow-container',
    elements: '#slideshow-container img',
    showControls: <?php echo $showControl; ?>,
    transDelay: <?php echo $delay; ?>,
    transDuration: <?php echo $duration; ?>
  });
  slideshow.start(); 
});
</script>
<?php endif; ?>
</head>
<body>

<div id="topmenu2wrap" class="gainlayout">

</div>

<div id="allwrap" class="gainlayout" style="width:<?php echo $pageWidth + $outermargin; ?>px;">

<div id="header" class="gainlayout">   
      <div id="logo" class="gainlayout">
           <h2><a href="<?php echo JURI::base(); ?>" title="<?php echo htmlspecialchars($logoText); ?>"><?php echo htmlspecialchars($logoText); ?></a></h2>
      <h3><?php echo htmlspecialchars($slogan); ?></h3>
      </div>
    <div id="headerright" class="gainlayout">
        <?php if($this->countModules('position-1')) : ?>
      <div id="topmenu" class="gainlayout">
        <jdoc:include type="modules" name="position-1" style="xhtml" />
      <div class="clr"></div>
         </div>
    <?php endif; ?>
        <div class="clr"></div>
      </div>
      <div class="clr"></div>
</div>

<div id="wrap" class="gainlayout">

  <?php if ($frontpagediv == "1" && $headerType != "4") {?>
  <div id="slideshow-container">
    <?php
    $imgrootdir = "templates/".$this->template."/images/";
    if ($headerType == "0" || $headerType == "2") {
      echo '<img src="'.$imgrootdir.$myimage.'" alt="" />';
    } elseif ($headerType == "1" || $headerType == "3") {
      $picDir= $imgrootdir.$myfolder;
      $picDir .="/";
      if (file_exists($picDir) && is_readable($picDir)) {
        $folder = opendir($picDir);
      } else {
        echo '<div class="message">Error! Please check the parameter settings and make sure you have entered a valid image folder path!</div>';
        return;
      }
      $allowed_types = array("jpg","JPG","jpeg","JPEG","gif","GIF","png","PNG","bmp","BMP");
      $index = array();
      while ($file = readdir ($folder)) {
        if(in_array(substr(strtolower($file), strrpos($file,".") + 1),$allowed_types)) {array_push($index,$file);}
      }
      closedir($folder);
      if($display == 'random') {shuffle($index);} else {sort($index);}

      foreach ($index as $file) {
        $finalpath = $picDir.$file; 
        // output
        echo '<img src="'.$finalpath.'" alt="'.$file.'" />';
      }
      if ($showControl) echo '<div id="slcontrol"> </div>';
    }
    ?>
  </div>
  <?php } ?>

  <?php if($this->countModules('position-2')) : ?>
    <div id="pathway" class="gainlayout">
        <jdoc:include type="modules" name="position-2" />
      <div class="clr"></div>
    </div>
  <?php endif; ?>
  <div id="cbody" class="gainlayout">
  <?php if($showLeftColumn) : ?>
  <div id="sidebar" style="width:<?php echo $leftColumnWidth; ?>px;">     
      <jdoc:include type="modules" name="position-7" style="xhtml" />   
  </div>
  <?php endif; ?>
  <div id="content60" style="width:<?php echo $contentWidth; ?>px;">   
      <div id="content" class="gainlayout">
    <jdoc:include type="message" />
      <jdoc:include type="component" />
      </div>   
  </div>
  <?php if($showRightColumn) : ?>
  <div id="sidebar-2" style="width:<?php echo $rightColumnWidth; ?>px;">     
      <jdoc:include type="modules" name="position-6" style="xhtml" />     
  </div>
  <?php endif; ?>
  <div class="clr"></div>
  </div>
 
<!--end of wrap-->
</div>
   
<!--end of allwrap-->
</div>
<div id="footerwrap" class="gainlayout" style="width:<?php echo $pageWidth + $outermargin; ?>px;">
  <div id="footer" class="gainlayout"> 
       <?php if($this->countModules('position-14')) : ?> 
         <jdoc:include type="modules" name="position-14" style="xhtml" />   
       <?php endif; ?>
  </div>
  <div id="a4j"><a href="http://a4joomla.com/"><?php echo JText::_('TPL_A4JOOMLA-GOLDENREED-FREE_FOOTER_LINK_TEXT');?></a></div>
</div>


</body>
</html>

Также прилагаю код файла стилей, golden.css и template.css.

golden.css
Цитировать
body {
  background: #d8eef5;
  color: #445;
}
#allwrap {
  background: none;
    border: 0px solid #000;
}
#topmenu {
  background: none;
  border-bottom: 0px solid #ececec;
}
#topmenu2wrap {
  background: #000;
}
#topmenu2 {
  background: none;
}
#header {
  background: #none;
  border-bottom: 4px solid #000;
}
#logo {
  border-top: 0px solid #fff;
  background: none;
}
#headerright{
  background: none;
}
h1 {
color: #223;
}
h2 {
color: #223;
}
#logo h2 {
  color:#000;
}
#logo a:link, #logo a:visited, #logo a:hover, #logo a:active {
border: none;
}
#logo h2 a:link, #logo h2 a:visited, #logo h2 a:hover, #logo h2 a:active {
color: #000;
text-decoration: none;
}
h3 {
color: #223;
}
#logo h3 {
  color: #000;
}
h4 {
color: #223;
}
h5 {
color: #223;
}
h6 {
color: #223;
}
#wrap {
  background: none;
}
#cbody {

}
#content60 {
  background: none;
}
#pathway {
  background: none;
  border-top: 0px solid #e7e7e8;
}
#pathway a:link, #pathway a:visited {
color: #bd8307;
text-decoration: none;
}
#pathway a:hover, #pathway a:active {
color: #bd8307;
text-decoration: underline;
}
#content {
  background: none;
}
#footerwrap {
  background: none;
}
#footer {
  background: none;
  color: #445;
  border-top: 1px dotted #99a;
}
#footer div.moduletable {
background: none;
}
#sidebar {
  background: none;
}
#sidebar-2 {
  background: none;
}
fieldset{

}
a:link, a:visited {
color: #1a4780;
text-decoration: none;
}
a:hover, a:active {
color: #1a4780;
text-decoration: underline;
}
h2 a:link, h2 a:visited, h2 a:hover, h2 a:active {
color: #223;
}
#footer a:link, #footer a:visited, #footer a:hover, #footer a:active {
color: #445;
text-decoration: underline;
}
#a4j a:link, #a4j a:visited, #a4j a:hover, #a4j a:active {
color: #445;
text-decoration: underline;
}
p.readmore a:link, p.readmore a:visited, p.readmore a:hover, p.readmore a:active {
 background:#000;
 color:#fff;
 font-weight:bold;
}
/* ==== MODULES =======================================  */
div.moduletable {
  background: none;
}
div.moduletable h3 {
  color:#223;
    background: none;
    border-bottom: 1px solid #445;
}
/* ==== SIDEBAR MODULES =======================================  */
#sidebar div.moduletable {
  background: none;
}
#sidebar div.moduletable h3 {
  color:#223;
    background: none;
    border-bottom: 1px dotted #99a;
}
/* ==== SIDEBAR2 MODULES =======================================  */
#sidebar-2 div.moduletable {
  background: none;
}
#sidebar-2 div.moduletable h3 {
  color:#223;
    background: none;
    border-bottom: 1px dotted #99a;
}
/* ======= SEARCH =======================  */
#search .moduletable {
  background: none;
}
#search .moduletable h3{
  background: none;
}
/* ======= Topmenu =========== */
#topmenu .moduletable {
    border: 0;
}
#topmenu .menu {
  background: none;
  color: #000;
  border: 0;
}
#topmenu .menu li a {
    color: #000;
  border-right: 0px solid #fff;
}
#topmenu .menu li.active a {
  color: #000;
  border-bottom: 4px solid #f7a909;
}
#topmenu .menu li a:hover {
  color: #000;
  border-bottom: 4px solid #f7a909;
}
/* ======= SIDE MENUS ================================  */
.moduletable_menu {
background: none ;
color: #445;
border-bottom: 0px solid #fff;
}
.moduletable_menu h3 {
  color:#223;
    background: none;
    border-bottom: 1px dotted #99a;
}
.moduletable_menu li {
  border-bottom: 1px dotted #99a;
}
.moduletable_menu li ul li {
  border-bottom:0px solid #ccc;
  border-top:0px dashed #e4e4e4;
  background: none;
}
.moduletable_menu li a {
  color: #445;
}
.moduletable_menu li ul li a {
background: none;
}
.moduletable_menu ul.menu li.current a {
  color:#bd8307;
}
.moduletable_menu ul.menu li.current * a {
  color:#445;
}
.moduletable_menu li ul li a:hover, .moduletable_menu li.current ul li a:hover {
  color:#bd8307;
}
.moduletable_menu li a:link, .moduletable_menu li a:visited {
color: #445;
text-decoration: none;
}
.moduletable_menu li a:hover {
color: #bd8307;
text-decoration: none;
}
.moduletable_menu li a:active {
color: #bd8307;
text-decoration: none;
}

/* ================  details  ==================== */
.content_rating {
  color: #889;
}
.content_vote {
  color: #889;
}
.article-info {
   color: #889;
}
/* =====================  Search results ===================== */
dl.search-results dd.result-created {
    color: #889;
}
div.search form#searchForm fieldset.word,
div.search form#searchForm fieldset.phrases,
div.search form#searchForm fieldset.only {
    border: 1px solid #999;
}
.small{
    color:#889;
}
/* =====================  Single Contact ===================== */
div.contact dl.tabs dt.open a {
    color: #445;
}
div.contact dl.tabs dt {
    border-left: 1px solid #999;
    border-right: 1px solid #999;
    border-top: 1px solid #999;
}
div.contact div.current {
    border: 1px solid #999;
}
/* ===================== tooltip =====================  */
.tip {
  border:1px solid #ccc;
  background:#fff;
}
/* ===================== Submit a weblink, Submit an article, Edit article =====================  */
div.edit form fieldset
{
    border: 1px solid #999;
}
/* =====================  User profile ===================== */
.profile-edit #member-profile fieldset
{
    border: 1px solid #999;
}
div.profile fieldset{
    border: 1px solid #999;
}

template.css.
Цитировать
/* http://meyerweb.com/eric/tools/css/reset/ */
/* v1.0 | 20080212 */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
   margin: 0;
   padding: 0;
   border: 0;
   outline: 0;
   font-size: 100%;
   vertical-align: baseline;
/*   background: transparent; */
}
/*
body {
   line-height: 1;
}

ol, ul {
   list-style: none;
}
*/
blockquote, q {
   quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
   content: '';
   content: none;
}

/* remember to define focus styles! */
:focus {
   outline: 0;
}

/* remember to highlight inserts somehow! */
ins {
   text-decoration: none;
}
del {
   text-decoration: line-through;
}

html body span.clr,
html body div.clr,
html body li.clr,
html body dd.clr {background: none;border: 0;clear: both;display: block;float: none;font-size: 0;list-style: none;margin: 0;padding: 0;overflow: hidden;visibility: hidden;width: 0;height: 0;}
/*----------------------------------------------------- */
body {
   text-align:center;
   font-size:76%;
   font-family: Arial, Helvetica, sans-serif;
   line-height:1.5;
   margin:0;
   padding:0;
}
#allwrap {
   margin: 0px auto 0 auto;
   padding: 0 0 0 0;
   position:relative;
}
#footerwrap {
   margin: 0 auto;
   padding: 0;
}
#pathway {
font-family: Arial, Helvetica, sans-serif;
text-align: left;
margin: 0px 15px;
padding: 5px 0 0 0;
font-size: 11px;
font-weight: normal;
}
#topmenu2wrap {
   margin: 0px;
   padding: 0 0px 0 0;
   height:20px;
   position: relative;
}
#topmenu {
   text-align: left;
   margin: 0px 0px 0 0;
   padding: 0;
   height:90px;
   position: relative;
   z-index:1000;
}
#topmenu2 {
   margin: 0px 15px;
   padding: 0 0px 0 0;
   height:20px;
   position: relative;
}
#header {
   margin: 0 15px;
   padding: 0;
   position: relative;
   height:90px;
}
#logo {
  text-align: left;
  float: left;
  display: inline;
  height: 90px;
   width: 250px;
   margin: 0 20px 0 0;
   padding: 0px;
}
#headerright {
  float: right;
  display: inline;
  width: 670px;
  height: 90px;
  margin: 0;
  padding: 0;
}
#wrap {
   text-align:left;
   margin:0 0px;
   padding: 0px 0px 15px 0px;
}
#cbody {
margin: 0 0px;
padding: 15px 0 0 0;
}
#content60 {
float:left;
display: inline;
width:560px;
padding: 0;
margin: 0px 15px 0 15px;
}
#content {
   padding: 0 0px 10px 0px;
   border-left: 0px solid #ddd;
    border-right: 0px solid #ddd;
}
#footer {
margin: 0 15px 0 15px;
padding: 10px 0 10px 0;
font:0.9em Arial,Helvetica,sans-serif;
text-align: center;
position:relative;
}
#sidebar {
float:left;
display: inline;
width:200px;
padding: 3px 0 0 0;
margin: 0 15px 0 15px;
}
#sidebar-2 {
float:left;
display: inline;
width:200px;
padding: 3px 0 0 0;
margin: 0 15px 0 15px;
}
h1,h2,h3,h4,h5,h6,p,blockquote,dl,address {
margin:0.5em 0;
}
fieldset{
margin: 0.5em 0;
padding: 0.5em 10px;
}
form{
margin: 0;
}
ul, ol {
margin: 0 0 0 1em;
padding: 0 0 0 1em;
list-style-position: outside;
}
li,dd {
margin-left:0em;
padding-left:0;
}
a {
text-decoration:none;
}
a:hover {
text-decoration:underline;
}
h1 {
   font-size:1.5em;
   font-family: "Times New Roman", Times, serif;
   text-transform: uppercase;
   letter-spacing: 2px;
   margin: 3px 0 10px 0;
   text-align: left;
   font-weight:normal;
}
h2 {
font-size:1.2em;
line-height: 1.3;
font-family: Arial, Helvetica, sans-serif;
letter-spacing: 0px;
font-weight: bold;
text-align: left;
}

#logo h2 {
  line-height: 1.1;
   font-size: 40px;
   font-family:  Georgia, Arial, Helvetica, sans-serif;
   font-weight: normal;
   letter-spacing: 0px;
   margin: 20px 0 0 0px;
   padding: 0;
}
h3 {
font-size:1.15em;
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
text-align: left;
}
#logo h3 {
   font-size: 11px;
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-weight: normal;
   font-style: normal;
   letter-spacing: 0px;
   text-transform: none;
   margin: -5px 0 0 0px;
   padding: 0;
}
h4 {
font-size:1.1em;
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
text-align: left;
}
h5 {
font-size:1.1em;
font-weight: normal;
font-family: Arial, Helvetica, sans-serif;
text-align: left;
}
h6 {
font-size:1em;
font-weight: normal;
font-family: Arial, Helvetica, sans-serif;
text-align: left;
}

#a4j {
    font-family: Arial, Helvetica, sans-serif;
   margin: 0 15px;
   text-align: center;
   font-size: 0.9em;
   padding: 7px 0 10px 0;
}
p.readmore {
margin: 10px 0;
}
p.readmore a {
padding: 5px 10px;
}
/* ==== MODULES =======================================  */
div.moduletable {
margin-bottom:20px;
border:0px #CCC solid;
padding: 0px 0px 0px 0px;
}
div.moduletable h3 {
font-family: 'Times New Roman', Times, serif;
text-align:left;
font-size:15px;
text-transform: uppercase;
font-weight: normal;
letter-spacing: 2px;
margin:0 0 0.5em 0;
padding: 0.1em 0 0.1em 0;
}
/* ==== SIDEBAR MODULES =======================================  */
#sidebar div.moduletable {
margin-bottom:20px;
padding: 0px 0px 0px 0px;
}
#sidebar div.moduletable h3 {
font-family: Arial, Helvetica, sans-serif;
text-align:left;
font-size:14px;
text-transform: uppercase;
font-weight: bold;
letter-spacing: 0px;
margin:0 0 0.5em 0;
padding: 0.1em 0 0.1em 0;
}
/* ==== SIDEBAR2 MODULES =======================================  */
#sidebar-2 div.moduletable {
margin-bottom:20px;
padding: 0px 0px 0px 0px;
}
#sidebar-2 div.moduletable h3 {
font-family: Arial, Helvetica, sans-serif;
text-align:left;
font-size:14px;
text-transform: uppercase;
font-weight: bold;
letter-spacing: 0px;
margin:0 0 0.5em 0;
padding: 0.1em 0 0.1em 0;
}
/* ======= FOOTER =======================  */
#footer div.moduletable {
padding: 0 0 0px 0;
margin-bottom: 0;
}
#footer div.moduletable h3 {
  display:none;
}
/* ======= Topmenu =========== */
#topmenu div.moduletable h3{
   display:none;
}
#topmenu .moduletable {
margin: 0 0px 0 0;
padding: 0;
float: right;
}
#topmenu .menu {
   list-style: none;
   font-family: Arial, Helvetica, sans-serif;
   font-weight: bold;
   font-size: 14px;
   line-height: 23px;
   text-transform: uppercase;
   letter-spacing:0px;
   padding: 0;
   margin: 0;
}
#topmenu .menu li a {
   display: block;
   text-decoration: none;
   padding: 45px 14px 22px 14px;
}
#topmenu .menu li span.separator {
   display: block;
   text-decoration: none;
   padding: 45px 0px 22px 0px;
}
#topmenu .menu li {
    float: left;
   padding: 0;
}
/* ======= SIDE MENUS ================================  */
.moduletable_menu {
padding: 0px 0px 5px 0px;
margin-bottom:20px;
}
.moduletable_menu h3 {
font-family: Arial, Helvetica, sans-serif;
text-align:left;
font-size:14px;
text-transform: uppercase;
font-weight: bold;
letter-spacing: 0px;
margin:0 0 0.15em 0;
padding: 0.1em 0 0.1em 0;
}
.moduletable_menu ul {
list-style:none;
margin:0;
padding:0;
}
.moduletable_menu li {
border-bottom:0px solid #ccc;
padding: 4px 0 4px 0em;
margin:0;
text-transform: uppercase;
letter-spacing:1px;
}
.moduletable_menu li a {
   display:inline;
   text-decoration:none;
   padding: 0;
}
html>body .moduletable_menu li a {
width:auto;
}
.moduletable_menu li ul {
list-style-type: square;
list-style-position: inside;
}
.moduletable_menu li ul li {
   border-bottom:0px solid #ccc;
   border-top:0px solid #ccc;
   padding: 4px 0 2px 1em;
   text-transform: none;
   letter-spacing:0px;
}
.moduletable_menu li ul li a {
   display:inline;
   text-decoration:none;
   padding: 0;
}
html>body .moduletable_menu li ul li a {
width:auto;
}
.moduletable_menu li a:hover {

}
.moduletable_menu li.current>a {

}
/* ========== content ======================*/
div#content p {
    text-align: justify;
}
a img {
    border: 0;
}

/* =========== overlib ========================*/

.ol-foreground {
   background-color: #f6f6f6;
}

.ol-background {
   background-color: #666;
}

.ol-textfont {
   font-family: Arial, Helvetica, sans-serif;
   font-size: 10px;
}

.ol-captionfont {
   font-family: Arial, Helvetica, sans-serif;
   font-size: 12px;
   color: #f6f6f6;
   font-weight: bold;
}
.ol-captionfont a {
   color: #0B55C4;
   text-decoration: none;
   font-size: 12px;
}

.ol-closefont {}

/* ==============  Featured articles, Category blog  =====================7 */
.blog-featured {
        padding: 0;
}

.items-leading {
        padding:0;
        margin-bottom:10px
}

.row-separator {
        display: block;
        clear: both;
        margin: 0;
        border: 0px;
        height:1px
}

.item-separator {
        display: none;
        margin: 0px;
}

.cols-1
{
        display: block;
        float: none !important;
        margin: 0 !important;
}

.cols-2 .column-1
{
        width:47%;
        float:left;
      margin:0;
}

.cols-2 .column-2
{
        width:47%;
        float:right;
        margin:0;
}

.cols-3 .column-1
{
        float:left;
        width:30%;
        padding: 0;
        margin-right:5%;

}
.cols-3 .column-2
{
        float:left;
        width:30%;
        margin-left: 0;
        padding: 0;
}
.cols-3 .column-3
{
        float:right;
        width:30%;
        padding: 0;
}
.cols-4 .column-1
{
        width:22%;
        float:left;
}

.cols-4 .column-2
{
        width:22%;
        margin-left:4%;
        float:left;
}

.cols-4 .column-3
{
        width:22%;
        margin-left:4%;
        float:left;
}

.cols-4 .column-4
{
        width:22%;
        margin-left:0;
        float:right;
}
.items-row
{
    margin-bottom:10px !important;
}

.column-1,
.column-2,
.column-3,
.column-4
{
        padding: 0;
}

.items-more
{
        padding:10px 0px
}

.hidelabeltxt
{
    display: none;
}
.item-page
{
   
}
/* ================  details  ==================== */
.content_rating {
        font-size:0.9em;
      color: #889;
}
.content_vote {
        font-size:0.9em;
      color: #889;
}
.content_vote input {
        font-size:1em;
}
.article-info {
        margin:5px 0 6px 0px;
        font-size:0.8em;
      color: #889;
}

.article-info-term {
        display:none;
}

.article-info dd {
        line-height:1.4em;
}

/* ===================  icons  ====================== */

ul.actions {
        text-align:left;
        padding:0 ;
        margin:0
}

ul.actions li {
        display:inline
}

ul.actions a {
        text-decoration:none
}
/* =====================  pagenav  ===================== */
div.pagenavcounter {
        margin:10px 0 0 0;
        padding: 0;
      text-align: left;
}
ul.pagenav {
   list-style-type:none;
   padding:0;
   margin-top: 10px;
   text-align: center;
}
ul.pagenav li {
   display:inline;
   padding: 0px 4px;
   margin:0;
}
ul.pagenav li {
   line-height:2em;
}
ul.pagenav li a {
   display:inline;
   text-decoration:none
}
/* ====================  pagination  ================== */

div.pagination {
        margin:10px 0 ;
        padding:10px 0;
      text-align: center;
}

div.pagination ul {
        list-style-type:none;
        margin:0;
        padding:0;
}

div.pagination li {
        display:inline;
        padding: 0;
        text-align:left;
        margin:0 5px;
}

span.pagenav {}

div#content div.pagination p.counter {
        font-weight:bold;
      text-align: center;
}
/* ===================== Archive articles =================== */
div.archive fieldset {
    padding: 6px 0;
   border: 0;
}
ul#archive-items {
        margin:20px 0 20px 0px;
        list-style-type:none;
        padding:0
}
/* ===================== List all Categories =================== */
div.categories-list ul {
    list-style-type:none;
    margin: 10px 0 0 0;
   padding: 0;
}
div.categories-list ul ul{
    list-style-type:square;
    margin: 0;
    padding: 0 0 0 25px;
}
div.categories-list ul ul ul{
    list-style-type:disc;
    margin: 0;
    padding: 0 0 0 25px;
}
div.categories-list ul ul ul ul{
    list-style-type:circle;
    margin: 0;
    padding: 0 0 0 25px;
}
div.categories-list ul ul ul ul ul{
    list-style-type:square;
    margin: 0;
    padding: 0 0 0 25px;
}
div.categories-list dl dt, div.categories-list dl dd {
    display:inline;
   font-style: italic;
}
dl.article-count dt, dl.article-count dd {
    display:inline;
   font-style: italic;
}
div.categories-list ul li span.item-title {
    font-size: 1.3em;
   font-weight: bold;
}
div.categories-list ul li ul li span.item-title {
    font-size: 1.25em;
   font-weight: bold;
}
div.categories-list ul li ul li ul li span.item-title {
    font-size: 1.15em;
   font-weight: bold;
}
div.categories-list ul li ul li ul li ul li span.item-title {
    font-size: 1.1em;
   font-weight: bold;
}
div.category-desc img.image-left {
    float: left;
   padding-right: 5px;
}
div.category-desc img.image-right {
    float: right;
   padding-left: 5px;
}
/* ===================== Subategories =================== */
div.cat-children {
    margin: 15px 0 0 0;
   padding: 0;
}
div.cat-children ul {
    list-style-type:none;
    margin: 10px 0 0 0;
   padding: 0;
}
div.cat-children ul ul{
    list-style-type:square;
    margin: 0;
    padding: 0 0 0 25px;
}
div.cat-children ul ul ul{
    list-style-type:disc;
    margin: 0;
    padding: 0 0 0 25px;
}
div.cat-children ul ul ul ul{
    list-style-type:circle;
    margin: 0;
    padding: 0 0 0 25px;
}
div.cat-children ul ul ul ul ul{
    list-style-type:square;
    margin: 0;
    padding: 0 0 0 25px;
}
div.cat-children ul li span.item-title {
    font-size: 1.2em;
   font-weight: bold;
}
div.cat-children ul li ul li span.item-title {
    font-size: 1.15em;
   font-weight: bold;
}
div.cat-children ul li ul li ul li span.item-title {
    font-size: 1.10em;
   font-weight: bold;
}
div.cat-children ul li ul li ul li ul li span.item-title {
    font-size: 1.05em;
   font-weight: bold;
}
div.cat-children ul li dl dt, div.cat-children ul li dl dd {
    display:inline;
   font-style: italic;
}
/* ===================== Category list =================== */
table.category {
    font-size:1em;
    margin:10px 0px 20px 0px;
    width:99%;
}
table.category th {
    text-transform: uppercase;
    text-align: left;
   font-weight: bold;
   font-size: 1.1em;
}
table.category td {
    text-align: left;
   padding-top: 5px;
}
table.category th img {
    padding-left: 5px;
}
/* ===================== Login/Logout =================== */
div.login fieldset {
    border: 0;
}
div.login-fields {
    margin: 10px 0 0 0;
}

div.login-fields label {
    display: inline-block;
   width:9em;
}
div.login-fields input#username,
div.login-fields input#password
{
   width: 173px;
}
div.login fieldset button.button {
    margin-top: 10px;
}
div.logout button.button {
    margin-top: 10px;
}
/* ===================== Login module =================== */
form#login-form fieldset {
    border:0;
}
form#login-form fieldset label{
    display: inline-block;
   width:9em;
}
form#login-form fieldset input#modlgn-passwd{
    width:131px;
}
form#login-form fieldset input#modlgn-username{
    width:131px;
}
/* =====================  User profile ===================== */

#users-profile-core,
#users-profile-custom
{
    margin:10px 0 15px 0;
    padding:15px;
}
#users-profile-core dl,
#users-profile-custom dl
{
    margin: 0;
    padding:0;
}
#users-profile-core dt,
#users-profile-custom dt
{
    float:left;
    width:22em;
    padding:3px 5px 3px 0;   
}

#users-profile-core dd,
#users-profile-custom dd
{
    padding:3px 0;     
}

#member-profile fieldset
{
    margin:10px 0 15px 0;
    padding:15px;
}

#users-profile-core legend,
#users-profile-custom legend,
.profile-edit legend
{
    font-weight:bold;
   font-size: 1.1em;
}

.profile-edit form#member-profile fieldset dd
{
    padding:5px 0;
}

.profile-edit form#member-profile fieldset dd input
{
    width:17em;
}
.profile-edit form#member-profile fieldset dd select
{
    width:17em;
   height: 24px;
}
.profile-edit form#member-profile fieldset dt
{
    padding:5px 5px 5px 0;
   width:22em;
   float: left;
}
.profile-edit span.optional{
    font-size:0.9em;
}
/* =====================  Registration ===================== */
div.registration form#member-registration fieldset
{
    margin:10px 0 15px 0;
    padding: 15px 0 0 10px;
   border:0;
}
div.registration form#member-registration fieldset legend
{
    font-weight:bold;
   font-size: 1.2em;
}
div.registration form#member-registration fieldset dd
{
    padding:0 0 5px 0;
}
div.registration form#member-registration fieldset dd input
{
    width:17em;
}
div.registration form#member-registration button
{
    margin-left:10px;
}
div.remind form#user-registration fieldset {
    border:0;
}
div.remind form#user-registration button {
    margin-left:10px;
}
div.reset form#user-registration fieldset {
    border:0;
}
div.reset form#user-registration button {
    margin-left:10px;
}
/* =====================  Single newsfeed ===================== */
div.newsfeed ol {
    margin-top: 10px;
}
div.newsfeed ol li a{
    font-weight: bold;
}
div.newsfeed ol li div a, div.newsfeed ol li div ol li a {
    font-weight: normal;
}
/* =====================  Search results ===================== */
dl.search-results dt.result-title {
    font-weight:bold;
   padding-top: 10px;
}
dl.search-results dd.result-text {
    padding-top: 5px;
}
dl.search-results dd.result-created {
    padding-top: 5px;
   font-size: 0.8em;
   color: #889;
}
div.search form#searchForm fieldset.word,
div.search form#searchForm fieldset.phrases,
div.search form#searchForm fieldset.only {
    border: 1px solid #ccc;
}
div.search form#searchForm fieldset.word button.button {
margin: 0px 0 0 2px;
padding: 0px 3px;
font-size: 12px;
line-height:18px;

}
div.search form#searchForm fieldset.phrases div.ordering-box{
    margin-top: 5px;
}
.small{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    line-height:1.2;
}
.highlight{
    font-weight:bold;
}
/* =====================  Single Contact ===================== */
div.contact-form {
    margin-bottom: 10px;
}
div.contact-form label {

}
div.contact-form form#contact-form dl {
    margin: 10px 0;
}
div.contact-form form#contact-form dt {
    margin-top: 7px;
}
div.contact-form form#contact-form dd {
    margin-top: 0px;
}
address span {
    display:block
}
div.contact form#contact-form button.button {
    float:none !important;
    clear:left;
    display:block;
    margin:15px 0 0 0;
}

div.contact dl.tabs {
    float:left;
    margin: 20px 0 0 0;
   padding: 0;
    clear:both;
}
div.contact dl.tabs dt {
    float: left;
    padding: 2px 10px;
    border-left: 1px solid #ccd;
    border-right: 1px solid #ccd;
    border-top: 1px solid #ccd;
    margin-right: 4px;
    background: none;
}
div.contact dl.tabs dt a {
    font-weight: normal;
}
div.contact dl.tabs dt.open {
    background: none;
    border-bottom: 0px solid #ccd;
}
div.contact dl.tabs dt.open a {
    color: #445;
}
div.contact dl.tabs dt h3{
    margin: 2px 0;
   padding:0;
}
div.contact div.current {
    clear: both;
    border: 1px solid #ccd;
    padding: 15px 15px;
   margin: 0;
}
div.contact dl.tabs dd {
    clear:both;
    padding: 0;
    margin: 0;
}

/* =====================  List Contacts, Newsfeeds ===================== */
form#adminForm fieldset.filters {
    border:0;
   padding: 0;
}
/* ===================== tooltip =====================  */
.tip
{
    font-size:0.8em;
    text-align:left;
    padding:5px;
    max-width:400px;
   border:1px solid #ccc;
   background:#fff;
}
.tip-title
{
        font-weight:bold;
}
/* ===================== Email to a friend =====================  */
div#mailto-window{
    margin: 15px;
}
form#mailtoForm div.formelm label {
    text-align: right;
    display: inline-block;
   width:8em;
   padding-right: 5px;
}
form#mailtoForm div.formelm {
    margin: 5px 0;
}
/* ===================== Submit a weblink, Submit an article, Edit article =====================  */
div.edit form#adminForm div.formelm label {
    text-align: left;
    display: inline-block;
   width:12em;
   padding-right: 5px;
}
div.edit form#adminForm div.formelm {
    margin: 5px 0;
}
div.edit form#adminForm div.formelm-area label {
    text-align: left;
    float:left;
   width:12em;
   padding-right: 5px;
}
div.edit form#adminForm div.formelm-area {
    margin: 5px 0;
}
div.edit form#adminForm legend
{
    font-weight:bold;
   font-size: 1.1em;
}
/* ===================== Statistics module =====================  */
dl.stats-module dt {
    float:left;
   padding: 0 10px 0 0;
   font-weight:bold;
}
dl.stats-module_light dt {
    float:left;
   padding: 0 10px 0 0;
   font-weight:bold;
}
dl.stats-module_dark dt {
    float:left;
   padding: 0 10px 0 0;
   font-weight:bold;
}
/* ===================== Newsflash module =====================  */
div.newsflash p {
    text-align: justify;
}
div.newsflash_light p {
    text-align: justify;
}
div.newsflash_dark p {
    text-align: justify;
}
/* ===================== Wrapper =====================  */
div.contentpane {
    border: 0px solid #ccc;
}
/* ===================== Slideshow =====================  */
#slideshow-container  {
   width:950px;
   height:370px;
   position:relative;
   margin: 1px 15px 0 15px;
   padding:0;
   border: 0px solid #eaeaea;
   background:#fff;
}
#slideshow-container img {
   width:950px;
   height:370px;
   display:block;
   position:absolute;
   top:0px;
   left:0px;
   z-index:1;
}
#slcontrol {
    height: 50px;
   width:950px;
    position: absolute;
   top: 40%;
   left:0px;
    z-index: -1;
}
a#slprev {
    background: url("../images/previous-white.png") no-repeat scroll left center transparent;
    cursor: pointer;
    float: left;
    height: 50px;
    width: 50px;
}
a#slnext {
    background: url("../images/next-white.png") no-repeat scroll right center transparent;
    cursor: pointer;
    float: right;
    height: 50px;
    width: 50px;
}
/* ===================== System message =====================  */
div#system-message-container ul{
   margin:0;
}

Буду очень благодарен за любую помощь!
*

Taatshi

  • Гуру
  • 5258
  • 481 / 2
  • Верстаем и кодим. Обращайтесь ;)
Re: Изменение ширины шаблона
« Ответ #1 : 22.06.2012, 23:02:15 »
Во-первых, уберите все это под спойлер - это такая кнопочка с плюсиком. Во-вторых - по коду править - бр... ссылку на сайт дайте
ВЕРСТКА, САЙТЫ ПОД КЛЮЧ, УДАЛЕНИЕ ВИРУСОВ, МИГРАЦИЯ НА JOOMLA 3, ОБНОВЛЕНИЕ  |  ОТЗЫВЫ 
Связь: telegram - Taatshi, почта - Taatshi на яндексе, Skype - Taatshi
*

Fedor Vlasenko

  • Живу я здесь
  • 3845
  • 733 / 7
  • https://fedor-vlasenko.web.app
Re: Изменение ширины шаблона
« Ответ #2 : 22.06.2012, 23:09:16 »
Во-вторых - по коду править - бр... ссылку на сайт дайте
Там все в настройках шаблона в админке задается. Расширения менеджер шаблонов - ваш шаблон
pageWidth  = $this->params->get("pageWidth", "980") свидетельство тому 980 - дефолтная ширина, а установленная в настройках шаблона ищите
*

sk.ko

  • Новичок
  • 2
  • 0 / 0
Re: Изменение ширины шаблона
« Ответ #3 : 22.06.2012, 23:56:18 »
Там все в настройках шаблона в админке задается. Расширения менеджер шаблонов - ваш шаблон
pageWidth  = $this->params->get("pageWidth", "980") свидетельство тому 980 - дефолтная ширина, а установленная в настройках шаблона ищите

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

На локал сервере страницы сайта без шаблона, CSS и картинок

Автор Fati

Ответов: 0
Просмотров: 848
Последний ответ 15.06.2025, 11:57:45
от Fati
Изменение шаблона Joomla! 2.5.24

Автор SecondPC

Ответов: 0
Просмотров: 4426
Последний ответ 26.03.2021, 18:09:33
от SecondPC
Руководство - создание шаблона для Joomla 2.5

Автор dynamit

Ответов: 6
Просмотров: 31264
Последний ответ 02.02.2020, 22:28:15
от AlinaBut
Ошибка при установке шаблона - Fatal error: Call to a member function setDebug() on a non-object in

Автор Mirotvoretz

Ответов: 33
Просмотров: 69381
Последний ответ 11.11.2018, 13:22:26
от vik38
При установки шаблона ошибка <<HTTP 500 (Internal Server Error)>>

Автор nekitko

Ответов: 16
Просмотров: 16952
Последний ответ 21.06.2017, 20:39:11
от bonny