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

goga201

  • Новичок
  • 8
  • 0 / 0
не подхватывает CSS
« : 06.10.2009, 15:02:00 »
есть у меня
index.php
Код
<!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 href="css/template.css" rel="stylesheet" type="text/css" />
</head>
<body>

</body>
templateDetails.xml
Код
<?xml version="1.0" encoding="utf-8"?>
<install version="1.5" type="template">
<name>trenagor</name>
<version>0.1</version>
<creationDate>05.10.2009</creationDate>
<author>Natalia Zmeeva</author>
<copyright>GNU/GPL</copyright>
<authorEmail>goga@mzf.ru</authorEmail>
<version>0.1</version>
<description>Our first</description>
<files>
<filename>index.php</filename>
<filename>templateDetails.xml</filename>
<filename>template_thumbnail.png</filename>
<filename>css/template.css</filename>
</files>


<positions>
<position>left</position>
<position>top</position>
<position>right</position>
</positions>
     

</install>
в корне шаблона css/template.css
Код
body {
  background-color: #FF0000;
}

Но фон не хочет становится красным, например. Если переименовать индекс в HTML, и открыть через браузер то все нормально.
Помогите решить проблему
*

gdX

  • Глобальный модератор
  • 995
  • 128 / 0
  • Открыт к заказам по дизайну
Re: не подхватывает CSS
« Ответ #1 : 06.10.2009, 16:57:45 »
Пропишите в файле index.php подключение CSS файла таким способом:
<link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/template.css" type="text/css" />
*

goga201

  • Новичок
  • 8
  • 0 / 0
Re: не подхватывает CSS
« Ответ #2 : 06.10.2009, 17:03:31 »
так вообще даже HTML данные на странчике не отображаются (
*

gdX

  • Глобальный модератор
  • 995
  • 128 / 0
  • Открыт к заказам по дизайну
Re: не подхватывает CSS
« Ответ #3 : 06.10.2009, 17:09:15 »
Эту строку я взял из шаблона, который установлен в Joomla по умолчанию.
А так?
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/ИМЯ_ПАПКИ_ШАБЛОНА/css/template.css" type="text/css" />
*

goga201

  • Новичок
  • 8
  • 0 / 0
Re: не подхватывает CSS
« Ответ #4 : 06.10.2009, 17:18:39 »
спасибо большое, теперь работает.
*

AndreyBes

  • Новичок
  • 3
  • 0 / 0
Re: не подхватывает CSS
« Ответ #5 : 24.01.2010, 00:46:24 »
Люди Помогите! Такая же проблема! Не подхватывает template.css
Вот мой index.php   подскажите пожалуйста в чем у меня проблема!
Код
<?php
/**
* @copyright Copyright (C) 2006 - 2008 JoomlaShine.com
* @author JoomlaShine.com
* @license Creative Commons Attribution-Share Alike 3.0 Unported License
* Please visit http://www.joomlashine.com for more information
*/

// no direct access
defined( '_JEXEC' ) or die( 'Restricted index access' );
define( 'YOURBASEPATH', dirname(__FILE__) );
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- Free Joomla! template by JoomlaShine.com - JSN Epic Free 2.0 for Joomla! 1.5.x -->
<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>
<jdoc:include type="head" />
<?php
require( YOURBASEPATH.DS."php/jsn_utils.php");
/****************************************************************/
/* TEMPLATE PARAMETERS */

/* Overal template width specified in pixels (for fixed width) or percentage (for fluid width). */
$template_width = $this->params->get("templateWidth", "721px");

/* Path to logo image starting from the Joomla! root folder (! without preceding slash !).*/
$logo_path = $this->params->get("logoPath", "templates/jsn_epic_free/images/logo.jpg");

/* Logo width specified in pixels. */
$logo_width = $this->params->get("logoWidth", "721px");

/* Logo height specified in pixels. */
$logo_height = $this->params->get("logoHeight", "163px");

/* URL where logo image should link to (! without preceding slash !). */
$logo_link = $this->params->get("logoLink", "");

/* Definition whether to enable PNG fix feature for IE6 or not.
   This parameter should be turned off only when there are incompatibility issues. */
$enable_pngfix = ($this->params->get("enablePNGfix", 1) == 1)?"yes":"no"; // yes | no


/****************************************************************/

/* Private use only */
$template_path = $this->baseurl."/templates/".$this->template;
$has_right = $this->countModules('right');
$has_left = $this->countModules('left');

$logo_image = $this->baseurl."/".$logo_path;
$logo_text = $mainframe->getCfg('sitename');

// Parameter filter
$template_width = intval($template_width);
$template_width .= ($template_width < 100)?"%":"px";
$logo_width = intval($logo_width)."px";
$logo_height = intval($logo_height)."px";
$logo_link = ($logo_link != "")?$this->baseurl."/".$logo_link:"";
?>
<link rel="shortcut icon" href="<?php echo $this->baseurl; ?>/images/favicon.ico" />
<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/jsn_epic_free/css/template.css" type="text/css" />
<?php

// Inline CSS styles for template layout
echo '<style type="text/css">';

// Setup template width parameter
echo '
#jsn-page {
width: '.$template_width.';
}
';

// Adjustment of header area according to the logo height parameter
echo '
#jsn-header {
height: '.$logo_height.';
}

';

// Setup width of content area
$tw = 100;
if ($has_left) {
$tw -= 23;
echo '
#jsn-content_inner1 {
background: transparent url('.$template_path.'/images/leftside-bg-full.png) repeat-y 23% top;
padding: 0;
}
#jsn-maincontent_inner {
padding-left: 0;
}
';
}

if ($has_right) {
$tw -= 23;
echo '
#jsn-content_inner2 {
background: transparent url('.$template_path.'/images/rightside-bg-full.png) repeat-y 77% top;
padding: 0;
}
#jsn-maincontent_inner {
padding-right: 0;
}
';
}
if(intval($template_width) < 100) {
$tws = ($tw - 0.1).'%';
}else{
$tws = floor($tw*0.01*intval($template_width)).'px';
}
echo '
#jsn-leftsidecontent {
float: left;
width: 23%;
}
#jsn-maincontent {
float: left;
width: '.$tws.';
}
#jsn-rightsidecontent {
float: right;
width: 23%;
}
';

echo '</style>';

// Setup core javascript library
echo '<script type="text/javascript" src="'.$template_path.'/js/jsn_script.js"></script>';

?>
<!--[if lte IE 6]>
<link href="<?php echo $template_path; ?>/css/jsn_fixie6.css" rel="stylesheet" type="text/css" />
<?php if($enable_pngfix == "yes") {?>
<script type="text/javascript">
var blankImg = '<?php echo $this->baseurl; ?>/images/blank.png';
</script>
<style type="text/css">
img {  behavior: url(<?php echo $template_path;?>/js/iepngfix.htc); }
</style>
<?php } ?>
<![endif]-->
<!--[if lte IE 7]>
<script type="text/javascript" src="<?php echo $template_path; ?>/js/suckerfish.js"></script>
<![endif]-->
<!--[if IE 7]>
<link href="<?php echo $template_path; ?>/css/jsn_fixie7.css" rel="stylesheet" type="text/css" />
<![endif]-->
</head>
<body id="jsn-master">
<div id="jsn-left">
<div id="jsn-right">
<div id="layout-wrapper">
<div id="jsn-page">
<div id="jsn-header">
<div id="jsn-logo"><?php if ($logo_link != "") echo '<a href="'.$logo_link.'" title="'.$logo_text.'">'; ?><img src="<?php echo $logo_image;?>" width="<?php echo intval($logo_width); ?>" height="<?php echo intval($logo_height); ?>" alt="<?php echo $logo_text; ?>" /><?php if ($logo_link != "") echo '</a>'; ?></div>>
<?php if ($this->countModules( 'top' ) > 0) { ?>
<div id="jsn-ptop"><jdoc:include type="modules" name="top" style="xhtml" /></div>
<?php } ?>
</div>

<div id="jsn-body">
<?php if (jsnCountPositions($this, array('toolbar', 'inset'))) { ?>
<div id="jsn-mainmenu">
<?php if ($this->countModules( 'toolbar' ) > 0) { ?>
<div id="jsn-ptoolbar"><jdoc:include type="modules" name="toolbar" style="xhtml" /></div>
<?php } ?>
<?php if ($this->countModules( 'inset' ) > 0) { ?>
<div id="jsn-pinset"><jdoc:include type="modules" name="inset" style="xhtml" /></div>
<?php } ?>
</div>
</div>
</div>
</div>

<?php } ?>
<?php if ($this->countModules( 'header' ) > 0) { ?>
<div id="jsn-promo">
<div id="jsn-pheader" class="jsn-column"><jdoc:include type="modules" name="header" style="xhtml" /><div id="jsn-post_top">
</div></div></div>>
<?php } ?>
<div id="jsn-post"></div><div id="jsn-futer"></div><div id="jsn-content"><div id="jsn-content_inner1"><div id="jsn-content_inner2">
<?php if ($this->countModules( 'left' ) > 0) { ?>
<div id="jsn-leftsidecontent" class="jsn-column">
<div id="jsn-pleft"><jdoc:include type="modules" name="left" style="rounded" /></div>
</div>
<?php } ?>
<div id="jsn-maincontent" class="jsn-column"><div id="jsn-maincontent_inner">

<?php
$positionCount = jsnCountPositions($this, array('user1', 'user2'));
if($positionCount){
$grid_suffix = "_grid".$positionCount;
?>
<div id="jsn-usermodules1"><div id="jsn-usermodules1_inner<?php echo $grid_suffix; ?>">
<?php if ($this->countModules( 'user1' ) > 0) { ?>
<div id="jsn-puser1<?php echo $grid_suffix; ?>" class="jsn-column"><div id="jsn-puser1"><jdoc:include type="modules" name="user1" style="xhtml" /></div></div>
<?php } ?>
<?php if ($this->countModules( 'user2' ) > 0) { ?>
<div id="jsn-puser2<?php echo $grid_suffix; ?>" class="jsn-column"><div id="jsn-puser2"><jdoc:include type="modules" name="user2" style="xhtml" /></div></div>
<?php } ?>
<div class="clearbreak"></div>
</div></div>
<?php } ?>
<div id="jsn-mainbody">
<jdoc:include type="message" />
<jdoc:include type="component" />
</div>

<?php
$positionCount = jsnCountPositions($this, array('user3', 'user4'));
if($positionCount){
$grid_suffix = "_grid".$positionCount;
?>
<div id="jsn-usermodules2"><div id="jsn-usermodules2_inner<?php echo $grid_suffix; ?>">
<?php if ($this->countModules( 'user3' ) > 0) { ?>
<div id="jsn-puser3<?php echo $grid_suffix; ?>" class="jsn-column"><div id="jsn-puser3"><jdoc:include type="modules" name="user3" style="xhtml" /></div></div>
<?php } ?>
<?php if ($this->countModules( 'user4' ) > 0) { ?>
<div id="jsn-puser4<?php echo $grid_suffix; ?>" class="jsn-column"><div id="jsn-puser4"><jdoc:include type="modules" name="user4" style="xhtml" /></div></div>
<?php } ?>
<div class="clearbreak"></div>
</div></div>
<?php } ?>
<?php if ($this->countModules( 'banner' ) > 0) { ?>
<div id="jsn-banner"><jdoc:include type="modules" name="banner" style="xhtml" /></div>
<?php } ?>
</div></div>
<?php if ($this->countModules( 'right' ) > 0) { ?>
<div id="jsn-rightsidecontent" class="jsn-column">
<div id="jsn-pright"><jdoc:include type="modules" name="right" style="rounded" /></div>
</div>
<?php } ?>
<div class="clearbreak"></div>
</div></div></div>
<?php
$positionCount = jsnCountPositions($this, array('user5', 'user6', 'user7'));
if($positionCount){
$grid_suffix = "_grid".$positionCount;
?>
<div id="jsn-usermodules3"><div id="jsn-usermodules3_inner<?php echo $grid_suffix; ?>">
<?php if ($this->countModules( 'user5' ) > 0) { ?>
<div id="jsn-puser5<?php echo $grid_suffix; ?>" class="jsn-column"><div id="jsn-puser5"><jdoc:include type="modules" name="user5" style="xhtml" /></div></div>
<?php } ?>
<?php if ($this->countModules( 'user6' ) > 0) { ?>
<div id="jsn-puser6<?php echo $grid_suffix; ?>" class="jsn-column"><div id="jsn-puser6"><jdoc:include type="modules" name="user6" style="xhtml" /></div></div>
<?php } ?>
<?php if ($this->countModules( 'user7' ) > 0) { ?>
<div id="jsn-puser7<?php echo $grid_suffix; ?>" class="jsn-column"><div id="jsn-puser7"><jdoc:include type="modules" name="user7" style="xhtml" /></div></div>
<?php } ?>
<div class="clearbreak"></div>
</div></div>
<?php } ?>
</div>
<?php
$positionCount = jsnCountPositions($this, array('footer', 'bottom'));
if($positionCount){
$grid_suffix = "_grid".$positionCount;
?>
<div id="jsn-footer">
<?php if ($this->countModules( 'footer' ) > 0) { ?>
<div id="jsn-pfooter<?php echo $grid_suffix; ?>" class="jsn-column"><div id="jsn-pfooter"><jdoc:include type="modules" name="footer" style="xhtml" /></div></div>
<?php } ?>
<?php if ($this->countModules( 'bottom' ) > 0) { ?>
<div id="jsn-pbottom<?php echo $grid_suffix; ?>" class="jsn-column"><div id="jsn-pbottom"><jdoc:include type="modules" name="bottom" style="xhtml" /></div></div>
<?php } ?>
<div class="clearbreak"></div>
</div>
<?php } ?>
</div>
<?php
/*** REMOVAL OR MODIFICATION COPYRIGHT TEXT BELLOW IS VIOLATION OF JOOMLASHINE.COM TERMS & CONDITIONS AND DEPRIVES OF ANY KIND OF SUPPORTS ***/
$copyright_text = '<div id="jsn-copyright"></div>';
echo $copyright_text;
?>
<jdoc:include type="modules" name="debug" style="xhtml" />
<?php require( YOURBASEPATH.DS."php/jsn_debug.php"); ?>
</body>
</html>

Может я неправильно подключаю таблицу стилей или еще что нибудь! Не могу понять где проблема!! Заранее спасибо!!
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться