Хочу попытаться создать шаблон самостоятельно, но к сожалению не понимаю некоторых строк, поясните пожалуйста!
Я специально выделил цветом непонятные мне части. Помогите пожалуйста разобраться или может есть какой нибудь учебник или материалл по этой теме...только на русском языке!------------------------------------------------------------------------------------------------------------------------
!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>
<link rel="stylesheet" href="templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/template.css" type="text/css" /></head>
<body id="page_bg">
   <div id="wrapper">
      <div id="container">
         <div id="header">
            <div id="pillmenu">               
<?php if($mtype != "module") :
               echo $mainnav;
               else: ?>
               <jdoc:include type="modules" name="user3" />
               <?php endif; ?>            </div>
            <div class="logo">
               <table cellpadding="0" cellspacing="0">
                  <tr>
                     <td>
                        <h1><a href="index.php">
<?php echo $mainframe->getCfg('sitename') ;?></a></h1>
                     </td>
                  </tr>
               </table>
            </div>
            <div class="clr"></div>
            <div id="search">
<jdoc:include type="modules" name="user4" /></div>
            <div class="clr"></div>
         </div>
         <div class="newsflash
<?php if(!$this->countModules('user1') and JRequest::getCmd('layout')!= 'form') : ?> only<?php endif; ?>">            <jdoc:include type="modules" style="rounded" name="top" />
         </div>
         <div id="content">            
<?php if($this->countModules('left') and $this->countModules('right') and JRequest::getCmd('layout')!= 'form') : ?>            <div class="content_m">
            <?php elseif($this->countModules('left') and !$this->countModules('right') and JRequest::getCmd('layout')!= 'form') : ?>
            <div class="content_m_l">
            <?php elseif(!$this->countModules('left') and $this->countModules('right') and JRequest::getCmd('layout')!= 'form') : ?>
            <div class="content_m_r">
            <?php else: ?>
            <div class="content_m_full">
            <?php endif; ?>      
               <?php if($this->countModules('left') and JRequest::getCmd('layout')!= 'form') : ?>
               <div id="leftcolumn">
                  <jdoc:include type="modules" name="left" style="rounded" />
                  <br />
                  <?php $sg = 'banner'; include "templates.php"; ?>
                  <br />
               </div>
               <?php endif; ?>               
               <?php if($this->countModules('left') and $this->countModules('right') and JRequest::getCmd('layout')!= 'form') : ?>
               <div id="maincolumn">         
               <?php elseif($this->countModules('left') and !$this->countModules('right') and JRequest::getCmd('layout')!= 'form') : ?>
               <div id="maincolumn_left">
               <?php elseif(!$this->countModules('left') and $this->countModules('right') and JRequest::getCmd('layout')!= 'form') : ?>
               <div id="maincolumn_right">
               <?php else: ?>
               <div id="maincolumn_full">
               <?php endif; ?>               
                  <div class="nopad">
                     <jdoc:include type="message" />
                     <?php if($this->params->get('showComponent')) : ?>
                        <jdoc:include type="component" />
                     <?php endif; ?>
                  </div>                  
               </div>                  
               <?php if($this->countModules('right') and JRequest::getCmd('layout')!= 'form') : ?>
               <div id="rightcolumn">
                  <jdoc:include type="modules" name="right" style="rounded" />
               </div>
               <?php endif; ?>
               <div class="clr"></div>            
               <div id="footer">
                  <div id="sgf">
                     <p>
                        <jdoc:include type="modules" name="debug" />
                        <?php $sg = ''; include "templates.php"; ?>
                        <a href="
http://validator.w3.org/check/referer">valid xhtml</a>
                        <a href="
http://jigsaw.w3.org/css-validator/check/referer">valid css</a>
                     </p>
                  </div>
               </div>               
            </div>
         </div>         
      </div>
   </div>
</body>
</html>
-----------------------------------------------------------------------------------------------------