Новости 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

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

ЖанБатист

  • Захожу иногда
  • 79
  • 0 / 0
Кинули сайтик http://testdesign-web.ru

Пытался "причесать". Залез в FireBug. Вычислил код. Дальше не въехал.
Firebug пишет что юзать нужно index.php

Открыл этот самый php и обомлел, там такого элемента нет....

Помогите пожалуйста понять..

Далее в картинках:



*

netmind

  • Осваиваюсь на форуме
  • 33
  • 0 / 0
Re: Вопрос к Гуру: как это работает?
« Ответ #1 : 04.07.2012, 17:47:38 »
Смотрите стили не в index.php, а в шаблоне index.php (templates/вашшаблон/index.php) - скорее всего, стиль боди прописан прямо там, а не в css-файле.
Файрбаг показывает 32 строку не в самом файле index.php, который лежит на сервере, а в уже отданной сгенерированной от сервера html-странице. Зайдите на сам сайт и просмотрите исходный html-код. На 32 строчке будет стиль боди.
« Последнее редактирование: 04.07.2012, 17:51:08 от netmind »
*

dexteron

  • Захожу иногда
  • 121
  • 17 / 0
  • Помог? Поставь мне "+"
Re: Вопрос к Гуру: как это работает?
« Ответ #2 : 04.07.2012, 17:52:00 »
Наведите курсором на index.php  в файербаге (там где стили) и вам он покажет путь к файлу (на FF у меня так).
*

ЖанБатист

  • Захожу иногда
  • 79
  • 0 / 0
Re: Вопрос к Гуру: как это работает?
« Ответ #3 : 04.07.2012, 18:13:08 »
Смотрите стили не в index.php, а в шаблоне index.php (templates/вашшаблон/index.php) - скорее всего, стиль боди прописан прямо там, а не в css-файле.
Файрбаг показывает 32 строку не в самом файле index.php, который лежит на сервере, а в уже отданной сгенерированной от сервера html-странице. Зайдите на сам сайт и просмотрите исходный html-код. На 32 строчке будет стиль боди.

Я именно этот index.php и смотрел.
Подскажите пожалуйста, каким образом Joomla генерит конечный фаил, уже все CSS используемые просмотрел - ничего похожего...
*

netmind

  • Осваиваюсь на форуме
  • 33
  • 0 / 0
Re: Вопрос к Гуру: как это работает?
« Ответ #4 : 04.07.2012, 18:18:45 »
Я именно этот index.php и смотрел.

Полный листинг этого файла опубликуйте.
*

Pazys

  • Завсегдатай
  • 1738
  • 241 / 4
  • <a>А где я ошибся-то?</b>
Re: Вопрос к Гуру: как это работает?
« Ответ #5 : 04.07.2012, 19:30:33 »
Код: html4strict
<head>
.............................................
<link rel="stylesheet" href="/templates/hot_wellness/css/template_css.css" type="text/css">
<link rel="stylesheet" href="/templates/hot_wellness/css/layout.css" type="text/css">

<style type="text/css">
<!--

@font-face {
font-family: 'VAG Rounded Std Light';
src: url('/templates/hot_wellness/fonts/vagroundedstd-thin-webfont.eot');
src: local('☺'), url('/templates/hot_wellness/fonts/vagroundedstd-thin-webfont.woff') format('woff'), url('/templates/hot_wellness/fonts/VAGRoundedStd-Thin.ttf') format('truetype'), url('/templates/hot_wellness/fonts/vagroundedstd-thin-webfont.svg') format('svg');
font-weight: normal;
font-style: normal;
}

body {
color:#8e8e8e;
    background-color:#ffffff;
    background-repeat:no-repeat;
}
.............................................
-->
</style>
.............................................
</head>

Вот так там и написано
............................................. - это я лишнее удалил, чтобы не много кода было

Так что надо смотреть секцию head. В посту выше прально написано, опубликуйте листинг файла.
« Последнее редактирование: 04.07.2012, 19:33:53 от Pazys »
Ишак меня нюхал ...
Если помог - плюсуйте в карму.
*

SDKiller

  • Живу я здесь
  • 2705
  • 329 / 5
  • ...ergo sum
Re: Вопрос к Гуру: как это работает?
« Ответ #6 : 04.07.2012, 19:30:46 »
Значит скорее всего CSS генерируется динамически на основе настроек шаблона и отдаётся в шаблон.
Либо имеется какой-то плагин сжатия/оптимизации CSS.
*

netmind

  • Осваиваюсь на форуме
  • 33
  • 0 / 0
Re: Вопрос к Гуру: как это работает?
« Ответ #7 : 04.07.2012, 19:37:50 »


Вот так там и написано
............................................. - это я лишнее удалил, чтобы не много кода было

Так что надо смотреть секцию head. В посту выше прально написано, опубликуйте листинг файла.

Нет, вы не поняли. Опубликуйте файл index.php из папки templates (тот, который у вас на картинке, где jdoc:include, modules states, showadvert и т.д.). Нужен исходный файл с фтп-сервака.
*

Pazys

  • Завсегдатай
  • 1738
  • 241 / 4
  • <a>А где я ошибся-то?</b>
Re: Вопрос к Гуру: как это работает?
« Ответ #8 : 04.07.2012, 21:19:45 »
Я то понял ... я бы и не задавал таких вопросов  ;D Это ТС не может разобраться.
Ишак меня нюхал ...
Если помог - плюсуйте в карму.
*

netmind

  • Осваиваюсь на форуме
  • 33
  • 0 / 0
Re: Вопрос к Гуру: как это работает?
« Ответ #9 : 04.07.2012, 21:21:47 »
Я то понял ... я бы и не задавал таких вопросов  ;D Это ТС не может разобраться.
Извините, промазал. Ответ предполагался ТС )
*

ЖанБатист

  • Захожу иногда
  • 79
  • 0 / 0
Re: Вопрос к Гуру: как это работает?
« Ответ #10 : 05.07.2012, 10:40:50 »
Полный листинг этого файла опубликуйте.

Простите, листинг это полный index.php если я верно понял?
Код
<?php
/*------------------------------------------------------------------------
# HOT Wellness - December, 2010
# Copyright (C) 2010 Hot Joomla Templates. All Rights Reserved.
# @license - Copyrighted Commercial Software
# Author: Hot Joomla Templates
# Website:  http://www.hotjoomlatemplates.com
-------------------------------------------------------------------------*/
defined( '_JEXEC' ) or die( 'Restricted access' );
define( 'YOURBASEPATH', dirname(__FILE__) );
$template_path = $this->baseurl.'/templates/'.$this->template;
?>
<!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" />

<?php // module states

$showadvert[1] = $this->countModules('advert1');
$showadvert[2] = $this->countModules('advert2');
$showadvert[3] = $this->countModules('advert3');
$showadvert[4] = $this->countModules('advert4');

$showuser[1] = $this->countModules('bottom1');
$showuser[2] = $this->countModules('bottom2');
$showuser[3] = $this->countModules('bottom3');
$showuser[4] = $this->countModules('bottom4');

$showfooter = $this->countModules('footer');

$showleft = $this->countModules('left');
$showright = $this->countModules('right');
$showuser1 = $this->countModules('user1');
$showuser2 = $this->countModules('user2');
$showuser3 = $this->countModules('user3');
$showbreadcrumbs = $this->countModules('breadcrumbs');
$menu = & JSite::getMenu();
$showtoolbar = $this->countModules('toolbar');
$showinset = $this->countModules('inset');

$uppermodules = 0;
for ($loop = 1; $loop <= 4; $loop += 1) {
if($showadvert[$loop]) { $uppermodules++; }
}

$bottommodules = 0;
for ($loop = 1; $loop <= 4; $loop += 1) {
if($showuser[$loop]) { $bottommodules++; }
}
$headerheight = 162;
$user2paddingtop = 160;
$mainareamargintop = 160;
$graywaveimg = "gray-wave";
$graywaveheight = 263;
$graywavemargintop = -80;

if ($showuser1) { $headerheight = 470;
$user2paddingtop = 405;
$mainareamargintop = 160;
$graywaveimg = "gray-wave-full";
$graywaveheight = 508;
$graywavemargintop = -375;}
?>

<?php // template parameters

// template layout
$templateWidth = $this->params->get("templateWidth", "980");
$textDirection = $this->params->get("textDirection", "ltr");
$columnLeftWidth = 0; $columnRightWidth = 0; $columnLeftPad = 0; $columnRightPad = 0;
if ($showleft) {
$columnLeftWidth = $this->params->get("columnLeftWidth", "220");
$columnLeftPad = 15;
}else{
$columnLeftWidth = 0;
$columnLeftPad = 0;
}
if ($showright) {
$columnRightWidth = $this->params->get("columnRightWidth", "220");
$columnRightPad = 15;
}else{
$columnRightWidth = 0;
$columnRightPad = 0;
}
$contentWidth = $templateWidth - $columnLeftWidth - $columnLeftPad - $columnRightWidth - $columnRightPad;
$searchWidth = $templateWidth - 290;
$overallWidth = $templateWidth;
$menuWidth = $templateWidth - 350;

// add-ons
$imageReflectionLoad = $this->params->get("imageReflectionLoad", "1");
$fontResizeLoad = $this->params->get("fontResizeLoad", "1");
$customFonts = $this->params->get("customFonts", "custom");

// template style

// check if in parameters
$templateStyle = $this->params->get("templateStyle", "1");
// check if it cookie
if(isset($_COOKIE['Style']))
{
//$templateStyle = $_COOKIE['Style'];
}

$templateStyleTest = "";

// check if in link

if (isset($_GET['style'])) {
$templateStyleTest = $_GET['style'];
}

if ($templateStyleTest) {
$templateStyle = $templateStyleTest;
$Month = 2592000 + time();
setcookie(Style, $templateStyle, $Month);
}

if($templateStyle) {

require(YOURBASEPATH."/styles/style".$templateStyle.".php");

}else{

$bodyText = $this->params->get("bodyText", "#8e8e8e");
$bodyLink = $this->params->get("bodyLink", "#74A1D1");

$breadcrumbsText = $this->params->get("breadcrumbsText", "#FFFFFF");

$headerBackgroundColor1 = $this->params->get("headerBackgroundColor1", "#9fccfd");
$headerBackgroundColor2 = $this->params->get("headerBackgroundColor2", "#74a1d1");

$menuAnimationEffect = $this->params->get("menuEffect", "fadeIn(700)");
$topMenuText = $this->params->get("topMenuText", "#ffffff");
$topMenuHoverText = $this->params->get("topMenuHoverText", "#97c5f5");
$topMenuDropDownText = $this->params->get("topMenuDropDownText", "#ffffff");
$topMenuDropDownHoverText = $this->params->get("topMenuDropDownHoverText", "#000000");
$menuPaneInsideColor = $this->params->get("menuPaneInsideColor", "#ee0203");

$megaColumns = $this->params->get("megaColumns", "4");
$downArrows = $this->params->get("downArrows", "0");
$megaSlide = $this->params->get("megaSlide", "1");
$megaFade = $this->params->get("megaFade", "1");
$megaSpeed = $this->params->get("megaSpeed", "fast");

$mainMenuText = $this->params->get("mainMenuText", "#ffffff");
$mainMenuHoverText = $this->params->get("mainMenuHoverText", "#cccccc");
$mainMenuTextActive = $this->params->get("mainMenuTextActive", "#000000");
$breadcrumbsText = $this->params->get("breadcrumbsText", "#ffffff");
$componentHeadingText = $this->params->get("componentHeadingText", "#2F2F2F");
$headingText = $this->params->get("headingText", "#2F2F2F");
$headingHoverText = $this->params->get("headingHoverText", "#2F2F2F");

$columnHeading = $this->params->get("columnHeading", "#ffffff");
$moduleBgTop = $this->params->get("moduleBgTop", "#74a1d1");
$columnText = $this->params->get("columnText", "#ffffff");
$columnLink = $this->params->get("columnLink", "#000000");

$columnHeading2 = $this->params->get("columnHeading2", "#ffffff");
$moduleBgTop2 = $this->params->get("moduleBgTop2", "#252524");
$columnText2 = $this->params->get("columnText2", "#ffffff");
$columnLink2 = $this->params->get("columnLink2", "#000000");

$columnHeading3 = $this->params->get("columnHeading3", "#ffffff");
$moduleBgTop3 = $this->params->get("moduleBgTop3", "#252524");
$columnText3 = $this->params->get("columnText3", "#ffffff");
$columnLink3 = $this->params->get("columnLink3", "#000000");

$bottomTextColor = $this->params->get("bottomTextColor", "#ffffff");
$bottomLinkColor = $this->params->get("bottomLinkColor", "#000000");
$footerTextColor = $this->params->get("footerTextColor", "#ffffff");
$footerBgColor = $this->params->get("footerBgColor", "#74a1d1");
}

$colorTop = substr($headerBackgroundColor1, 1);
$colorBottom = substr($headerBackgroundColor2, 1);
?>

<link rel="stylesheet" href="<?php echo $template_path ?>/css/template_css.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $template_path ?>/css/layout.css" type="text/css" />
<?php if ($textDirection=="rtl") { ?>
<link rel="stylesheet" href="<?php echo $template_path ?>/css/rtl.css" type="text/css" />
<?php } ?>

<style type="text/css">
<!--
<?php require(dirname(__FILE__).DS.'/css/template_css.php'); ?>
-->
</style>
<!--[if lt IE 9]>
<style type="text/css">
.bg_zone {
-pie-background: linear-gradient(<?php echo $headerBackgroundColor1; ?>, <?php echo $headerBackgroundColor2; ?>);
behavior: url(<?php echo $template_path ?>/css/PIE.php);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='<?php echo $headerBackgroundColor1; ?>', endColorstr='<?php echo $headerBackgroundColor1; ?>');
-ms-filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='<?php echo $headerBackgroundColor1; ?>', endColorstr='<?php echo $headerBackgroundColor1; ?>');
}

#nav > li.active, #nav > li:hover, #nav li:hover ul,
.column_left div.moduletable,
.column_right div.moduletable,
.column_left div.moduletable-style2,
.column_right div.moduletable-style2,
.column_left div.moduletable-style3,
.column_right div.moduletable-style3 {
behavior: url(<?php echo $template_path ?>/css/PIE.php);
}
</style>
<![endif]-->
<!--[if gt IE 8]>
<style type="text/css">
.bg_zone {
background-image: url("<?php echo $template_path ?>/css/gradient-svg.php?color1=<?php echo $colorTop; ?>&color2=<?php echo $colorBottom; ?>");
}
</style>
<![endif]-->
<script src="<?php echo $template_path ?>/js/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
     jQuery.noConflict();
</script>

<?php $ConfiGetEmplateWell = WelnesJoomlaHotView(); ?>
<script type="text/javascript">
function mainmenu(){
jQuery("#nav ul").css({display: "none"});
jQuery("#nav li").hover(function(){
jQuery(this).find('ul:first').css({visibility: "visible",display: "none"}).<?php echo $menuAnimationEffect; ?>;
},function(){jQuery(this).find('ul:first').css({visibility: "hidden"}); });}
jQuery(document).ready(function(){ mainmenu();});
</script>

<!--<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" >-->
<link href="<?php echo $template_path ?>/css/jquery-ui-1.8.5.custom.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $template_path ?>/css/jquery.hjt.megamenu.css" rel="stylesheet" type="text/css" />
<script src="<?php echo $template_path ?>/js/jquery-ui-1.8.5.custom.min.js" type="text/javascript"></script>
<script src="<?php echo $template_path ?>/js/jquery.hjt.megamenu.js" type="text/javascript"></script>
<style type="text/css">
ul.menumega
{
  display:none;
}
</style>

<script type="text/javascript">
jQuery(document).ready(function() {
     jQuery('.menumega').megamenu({
                fade: <?php if ($megaFade==1) { echo "true"; }else{ echo "false"; } ?>,
                slide: <?php if ($megaSlide==1) { echo "true"; }else{ echo "false"; } ?>,
                animation_speed: '<?php echo $megaSpeed; ?>',
                down_arrows: <?php if ($downArrows==1) { echo "true"; }else{ echo "false"; } ?>,
                separators: null,
                max_columns: <?php echo $megaColumns; ?>
        });
jQuery('.hjt-megamenu-menubar-item-normal').has('li#current').addClass('hjt-megamenu-menubar-item-hover-current');
    }); 
</script>

<?php if($imageReflectionLoad) { ?>
<!-- reflection -->
<script type="text/javascript" src="<?php echo $template_path ?>/js/reflection.js"></script>
<?php } ?>

<?php if($fontResizeLoad) { ?>
<!-- font resizer -->
<script type="text/javascript" src="<?php echo $template_path ?>/js/fontResize.js"></script>
<?php } ?>

<!-- opera fix -->
<script type="text/javascript">
jQuery(document).ready(function(){
if (jQuery.browser.opera) {
jQuery("body").addClass("noscroll");
}
});
</script>
<?php
$u_agent = $_SERVER['HTTP_USER_AGENT'];
if(preg_match('/Opera/i',$u_agent))
    { ?>
<style type="text/css">
.bg_zone {
background-image: url("<?php echo $template_path ?>/css/gradient-svg.php?color1=<?php echo $colorTop; ?>&color2=<?php echo $colorBottom; ?>");
}
</style>
<?php } ?>
</head>
<body>
<div class="bg_zone">
<div class="bg_img">
<div class="central_zone">
<div class="header_wrap">
<div class="header_wrap2">     
<div class="header">
<div class="logo">
<div class="logo_pad">
<a href="index.php"><img src="<?php echo $template_path ?>/images/logo.png" width="286" height="64" alt="Hot Wellness" /></a>
</div>
</div>
<?php if ($showuser3) { ?>
<div id="topmenu">
<div id="topmenu_pad">
<jdoc:include type="modules" name="user3" style="none" />
</div>
</div>
<div class="clr"></div>
<?php } ?>
</div>

</div>
</div>
</div>
<div class="hotwrapper">
<?php if ($showuser1) { ?>
<div class="rotator_module">
<jdoc:include type="modules" name="user1" style="xhtml" />
</div>
<div class="clr"></div>
<?php }else{ ?>
<div class="clr"></div>

<?php } ?>
</div>
<div class="graywave">
<div class="hotwrapper">
<div class="user1_module">
<jdoc:include type="modules" name="user2" style="none" />
</div>
</div>

</div>
<div class="bluewave">
<div class="hotwrapper">
<div class="breadcrumbs_module">
<jdoc:include type="modules" name="breadcrumbs" style="none" />
</div>
</div>
</div>
</div>
</div>
<div class="hotwrapper">

    <div class="main_area">
    <?php if ($uppermodules) { ?>
<div class="upper">
        <?php if($showadvert[1]) { ?>
        <div class="modulerow<?php echo $uppermodules; ?>"><jdoc:include type="modules" name="advert1" style="rounded" /></div>
        <?php } if($showadvert[2]) { ?>
        <div class="modulerow<?php echo $uppermodules; ?>"><jdoc:include type="modules" name="advert2" style="rounded" /></div>
        <?php } if($showadvert[3]) { ?>
        <div class="modulerow<?php echo $uppermodules; ?>"><jdoc:include type="modules" name="advert3" style="rounded" /></div>
        <?php } if($showadvert[4]) { ?>
        <div class="modulerow<?php echo $uppermodules; ?>"><jdoc:include type="modules" name="advert4" style="rounded" /></div>
        <?php } ?>
        <div class="clr"></div>
    </div>
    <?php } ?>
        <?php if ($showleft) { ?>
        <div class="column_left">
            <jdoc:include type="modules" name="left" style="hot" />
        </div>
        <?php } ?>
        <div class="content_wrap">
            <div class="content_pad">
            <?php if ($showinset) { ?>
            <div class="inset_pad"><jdoc:include type="modules" name="inset" style="xhtml" /></div>
                <div class="clr"></div>
                <?php } ?>
                <jdoc:include type="message" />
                <jdoc:include type="component" />
                <jdoc:include type="modules" name="toolbar" style="xhtml" />
            </div>
        </div>
        <?php if ($showright) { ?>
        <div class="column_right">
            <jdoc:include type="modules" name="right" style="hot" />
        </div>
        <?php } ?>
        <div class="clr"></div>
    </div>
</div>

<div class="bottom_bg"></div>
<div class="bottom_bg_bottom">
<?php if ($bottommodules) { ?>
    <div class="footer_wrap">
        <div class="bottom">
            <?php if($showuser[1]) { ?>
            <div class="modulerow<?php echo $bottommodules; ?>"><jdoc:include type="modules" name="bottom1" style="rounded" /></div>
            <?php } if($showuser[2]) { ?>
            <div class="modulerow<?php echo $bottommodules; ?>"><jdoc:include type="modules" name="bottom2" style="rounded" /></div>
            <?php } if($showuser[3]) { ?>
            <div class="modulerow<?php echo $bottommodules; ?>"><jdoc:include type="modules" name="bottom3" style="rounded" /></div>
            <?php } if($showuser[4]) { ?>
            <div class="modulerow<?php echo $bottommodules; ?>"><jdoc:include type="modules" name="bottom4" style="rounded" /></div>
            <?php } ?>
            <div class="clr"></div>
        </div>
</div>
<?php } ?>
<?php if ($showfooter) { ?>
<div class="central_zone">
<div class="wrapper_bottom">
<div class="footer_wrap">
<div class="footer">
<jdoc:include type="modules" name="footer" style="none" />
</div>
</div>
</div>
</div>
<?php } ?>
</div>
<div class="clr"></div>

<div class="megamenu_blocks">
    <div class="megamenu_separator1"><jdoc:include type="modules" name="megamenu1" style="none" /></div>
    <div class="megamenu_separator2"><jdoc:include type="modules" name="megamenu2" style="none" /></div>
    <div class="megamenu_separator3"><jdoc:include type="modules" name="megamenu3" style="none" /></div>
    <div class="megamenu_separator4"><jdoc:include type="modules" name="megamenu4" style="none" /></div>
    <div class="megamenu_separator5"><jdoc:include type="modules" name="megamenu5" style="none" /></div>
    <div class="megamenu_separator6"><jdoc:include type="modules" name="megamenu6" style="none" /></div>
    <div class="megamenu_separator7"><jdoc:include type="modules" name="megamenu7" style="none" /></div>
    <div class="megamenu_separator8"><jdoc:include type="modules" name="megamenu8" style="none" /></div>
    <div class="megamenu_separator9"><jdoc:include type="modules" name="megamenu9" style="none" /></div>
    <div class="megamenu_separator10"><jdoc:include type="modules" name="megamenu10" style="none" /></div>
</div>
<jdoc:include type="modules" name="debug" style="none" />
</body>
</html>
*

SDKiller

  • Живу я здесь
  • 2705
  • 329 / 5
  • ...ergo sum
Re: Вопрос к Гуру: как это работает?
« Ответ #11 : 05.07.2012, 10:55:58 »
Код
<?php require(dirname(__FILE__).DS.'/css/template_css.php'); ?>

Вот тут CSS и генерируется.
*

ЖанБатист

  • Захожу иногда
  • 79
  • 0 / 0
Re: Вопрос к Гуру: как это работает?
« Ответ #12 : 05.07.2012, 14:08:16 »
Код
<?php require(dirname(__FILE__).DS.'/css/template_css.php'); ?>


Вот тут CSS и генерируется.
Спасибо! Для меня пока не совсем ясна ситуация с подлинковкой CSS в PHP - так что буду рыться...
« Последнее редактирование: 05.07.2012, 14:13:29 от ЖанБатист »
*

SDKiller

  • Живу я здесь
  • 2705
  • 329 / 5
  • ...ergo sum
Re: Вопрос к Гуру: как это работает?
« Ответ #13 : 05.07.2012, 14:15:51 »
Там же предварительно выбираются параметры из настроек шаблона.
*

ЖанБатист

  • Захожу иногда
  • 79
  • 0 / 0
Re: Вопрос к Гуру: как это работает?
« Ответ #14 : 05.07.2012, 14:19:00 »
Вопрос совершенно не по теме: где всему этому обучиться?
Откуда такие познания?
*

SDKiller

  • Живу я здесь
  • 2705
  • 329 / 5
  • ...ergo sum
Re: Вопрос к Гуру: как это работает?
« Ответ #15 : 05.07.2012, 14:21:50 »
Ковыряйте почаще файлы - научитесь.
*

Pazys

  • Завсегдатай
  • 1738
  • 241 / 4
  • <a>А где я ошибся-то?</b>
Re: Вопрос к Гуру: как это работает?
« Ответ #16 : 05.07.2012, 14:38:22 »
Вопрос совершенно не по теме: где всему этому обучиться?
Откуда такие познания?
Только не смотрите видеоуроки ... просто развивайте логику.
Ишак меня нюхал ...
Если помог - плюсуйте в карму.
*

netmind

  • Осваиваюсь на форуме
  • 33
  • 0 / 0
Re: Вопрос к Гуру: как это работает?
« Ответ #17 : 05.07.2012, 19:20:12 »
Вопрос совершенно не по теме: где всему этому обучиться?
Откуда такие познания?
Читать форум, рыться в справочниках. Joomla - очень популярная система, практически все ответы на вопросы можно найти, просто поискав. Про создание шаблона можно посмотреть здесь: http://ruseller.com/lessons.php?rub=41&id=1140.
Лучше всего помогает метод тыка: ставите в исходном файле "Блаблабла", переходите на сайт, обновляете, в html-коде смотрите, где появилось, делаете выводы )) Я так учился )
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Вопрос по Komento

Автор Missile

Ответов: 9
Просмотров: 3267
Последний ответ 21.12.2022, 17:52:46
от Missile
Вопрос по CSS Joomla 3+

Автор HomoSapiens

Ответов: 8
Просмотров: 1654
Последний ответ 02.11.2020, 16:30:48
от Verhov526
Не работает правильно сайт на хосте

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

Ответов: 6
Просмотров: 2025
Последний ответ 21.05.2020, 20:23:57
от xpank
Некорректро работает Lightbox в widgetkit, сдвиг вправо при открытии Lightbox и листании фотографий

Автор twins717

Ответов: 2
Просмотров: 1923
Последний ответ 31.03.2020, 08:13:46
от sivers
Не работает свойство font-weight

Автор dm-krv

Ответов: 11
Просмотров: 4081
Последний ответ 31.08.2018, 09:16:26
от dm-krv