Новости 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 Гость просматривают эту тему.
  • 4 Ответов
  • 5445 Просмотров
*

vovchikku

  • Захожу иногда
  • 407
  • 1 / 0
недавно работаю с шаблонами на j 2.5 и есть вопросик...
как убрать в http://www.wsugraru.162.com1.ru/hm-news/index.php?tp=1&template=a4joomla-winter-free данном шаблоне текст из лого, который выводится как
Код
$logoText	= $this->params->get("logoText","Winter");

и поставить вместо него обычный логотип в jpg?

заранее спасибо за совет...


если что - вот полный код  шаблона
Код
<?php // no direct access 
/**
 * @package                Template for Joomla
 * @copyright        Copyright (C) 2012 a4joomla.com
 * @license                GNU General Public License version 2 or later
 */
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","winter1.jpg");
$myfolder = $this->params->get("myfolder","sampledata");
$duration = $this->params->get("duration","800");
$delay = $this->params->get("delay","4000");
$imageWidth = $this->params->get("imageWidth","900");
$imageHeight = $this->params->get("imageHeight","350");
$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";
}

$imgrootdir = "templates/".$this->template."/images/";
$margin = 40;
$outermargin = 40;
$logoText = $this->params->get("logoText","Winter");
$slogan = $this->params->get("slogan","Template from a4joomla.com");
$mytwitter = $this->params->get("myTwitter", "Yes");
$twitterurl = $this->params->get("twitterUrl");
$myfacebook = $this->params->get("myFacebook", "Yes");
$facebookurl = $this->params->get("facebookUrl");
$myfeed = $this->params->get("myFeed", "Yes");
$feedurl = $this->params->get("feedUrl");
$mygoogle = $this->params->get("myGoogle", "Yes");
$googleurl = $this->params->get("googleUrl");
$myyoutube = $this->params->get("myYoutube", "Yes");
$youtubeurl = $this->params->get("youtubeUrl");
$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 = 80;
if ($forceresize == "1") {
$imageHeight = round($imageHeight * ($pageWidth + $outermargin - $widthdiff) / $imageWidth);
$imageWidth = $pageWidth + $outermargin - $widthdiff;
}
$controlPosition = 50 - 2500/$imageHeight;

$headerrightWidth = $pageWidth + $outermargin - $logoWidth - 100;

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/grey.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) }
#search input.inputbox { behavior:none;}
</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]-->
<!--[if lte IE 8]>
<style type="text/css">
#search input.inputbox { behavior: url(<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/PIE.php) }
</style>
<![endif]-->
<style type="text/css">
<?php if ($frontpagediv == "1" && $headerType != "4") : ?>
 #header {
border-bottom: 0;
 }
<?php endif; ?>
 #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="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">
      <div id="hsocial" class="gainlayout">
<?php if($this->countModules('position-0')) : ?>
<div id="search" class="gainlayout">
<jdoc:include type="modules" name="position-0" style="xhtml" />
<div class="clr"></div> 
</div>
<?php endif; ?>
<?php if($myyoutube == "Yes") : ?>
<a class="myyoutube" href="<?php echo $youtubeurl; ?>"><img src="<?php echo $imgrootdir ?>/youtube.png"  border="0" alt="Youtube" title="Youtube" /></a>
<?php endif; ?>
<?php if($myfeed == "Yes") : ?>
<a class="myfeed" href="<?php echo $feedurl; ?>"><img src="<?php echo $imgrootdir ?>/feed.png"  border="0" alt="Feed" title="Feed" /></a>
<?php endif; ?>
<?php if($mytwitter == "Yes") : ?>
<a class="mytwitter" href="<?php echo $twitterurl; ?>"><img src="<?php echo $imgrootdir ?>/twitter.png"  border="0" alt="Twitter" title="Twitter" /></a>
<?php endif; ?>
<?php if($mygoogle == "Yes") : ?>
<a class="mygoogle" href="<?php echo $googleurl; ?>"><img src="<?php echo $imgrootdir ?>/google.png"  border="0" alt="Google plus" title="Google plus" /></a>
<?php endif; ?>
<?php if($myfacebook == "Yes") : ?>
<a class="myfacebook" href="<?php echo $facebookurl; ?>"><img src="<?php echo $imgrootdir ?>/facebook.png"  border="0" alt="Facebook" title="Facebook" /></a>
<?php endif; ?>
<div class="clr"></div>
</div>
<?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") {
  echo '<div id="slideshow-container">';

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>';
}
  echo '</div>';
    } ?>

  <?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">
  <div id="footer" class="gainlayout" style="width:<?php echo $pageWidth + $outermargin; ?>px;"> 
       <?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-WINTER-FREE_FOOTER_LINK_TEXT');?></a></div> 
</div>


</body>
</html>
*

Пушистейший

  • Новичок
  • 3
  • 1 / 0
Может просто тупо в коде шаблона заменить строки между тэгами <div> и </div> на загрузку картинки:

Код
<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>

заменить на (вместо logo.png надо подставить путь и имя файла логотипа):

Код
<div id="logo" class="gainlayout">
<a href="http://www.wsugraru.162.com1.ru"><img src="/hm-news/templates/a4joomla-winter-free/images/logo.png"  border="0"/></a>         
      </div>
« Последнее редактирование: 06.03.2013, 13:12:12 от Пушистейший »
*

SmiP

  • Захожу иногда
  • 265
  • 35 / 0
Это можно изменить в настройках шаблона
Вот посмотрите
*

vovchikku

  • Захожу иногда
  • 407
  • 1 / 0
вот спасибо большое! помогло! ++
*

komert

  • Захожу иногда
  • 124
  • 1 / 0
в настройках не отключается
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Как в Joomla 3 отключить позицию вывода или убрать надпись?

Автор Алексей Лоскутов

Ответов: 2
Просмотров: 7849
Последний ответ 10.04.2020, 19:07:02
от Алексей Лоскутов
Картинка в шаблоне

Автор Alkor94

Ответов: 13
Просмотров: 3174
Последний ответ 23.05.2018, 03:04:28
от Alkor94
Как убрать карандашик (изменить материал)?

Автор spanchermen

Ответов: 18
Просмотров: 16097
Последний ответ 04.03.2018, 13:47:23
от Mega-e
Полный текст по кнопке «Подробнее» в другом окне. Joomla 2.5

Автор Закулисье

Ответов: 8
Просмотров: 2908
Последний ответ 29.01.2018, 21:42:36
от Закулисье
Как вставить рекламу в мобильный шаблон ja_edenite?

Автор gorbi_U

Ответов: 3
Просмотров: 2034
Последний ответ 02.06.2017, 08:43:26
от gorbi_U