Это старая версия Справка/Разработчик/Дизайн/theme за 2013-02-05 17:51:43..

Файл theme

В файле themes/[имя_темы]/appearance/makehtml.php происходит сборка html-файла темы и настройка дополнительных параметров:
  • подключение ThemeBlocks и PageBlocks
  • определение устройства
  • возможность задавать различные html-файлы тем для разных кластеров и для главной страницы

<!DOCTYPE html>
<html>
<head>

  <!-- ССЫЛКИ ДЛЯ ОТЛАДКИ ТЕМЫ В АВТОНОМНОМ РЕЖИМЕ
  ====================================================== -->
  <meta charset="utf-8">
  <title>BS theme</title>
  <link rel="stylesheet" type="text/css" href="css/wakka.css" />


  <!-- Start theme
  ====================================================== -->
<!-- SmartyUp -->
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
  <!--[if lt IE 9]>
    <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
  <![endif]-->
</head>


<body onload="all_init();{$showGlobalMsg};eval(ajax_content_mod);">
  <img src="images/process.gif" id="ajax_loading" style="position:absolute; top:5px; right:5px; display:none;"/>


  <!-- Admin Box
  ====================================================== -->
  <!-- SmartyIfAdmin --     ПЕРЕДЕЛАТЬ!!!>
  <div class="well" style="position:fixed; top: 50px; right: 1px; padding: 10px;">
    {"bs_adminlinks"|themeelement} <b> </b>
    {"bs_subpages"|themeelement} <b> </b>
    {"bs_adminmenu"|themeelement}
    {* {"create"|themeelement} *}
  </div>
  <!-- SmartyEndIf -->

   
  <!-- Header
  ====================================================== -->
<div class="section-top"><div class="container">
  <div class="row">
    <div class="span1">&nbsp;</div>
    <div id="logo" class="span2"><a href="{$rooturl}"><img src="#"></a></div>    
  </div>
</div></div>
  

  <!-- Menu
  ====================================================== -->
<div class="navbar"><div class="navbar-inner"><div class="container">
  <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
    <span class="icon-bar"></span>
    <span class="icon-bar"></span>
    <span class="icon-bar"></span>
  </a>
  <!-- <a class="brand pull-right" href="">.title</a>  ЧТО ЭТО, БЭРРИМОР? -->
  <div class="nav-collapse">
    <!-- SmartyAIBlock[
      {blocks.mainmenu|menuformat:\'bs\'}  ПЕРЕДЕЛАТЬ!!!   ПОСТАВИТЬ ЗНАК $ ПЕРЕД block    
    ] -->
    <ul class="nav">
      <li class="dropdown">
        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Account<b class="caret"></b></a>
        <ul class="dropdown-menu">
          <li><a href="#about">About1</a></li>
          <li><a href="#contact">Contact2</a></li>
        </ul>
      </li>
      <li class="active"><a href="#">Home</a></li>
      <li class="divider-vertical"></li>
      <li><a href="#about">About</a></li>
      <li><a href="#contact">Contact</a></li>
    </ul> 
    <!-- /S m a r t y AIBlock -->  
  </div>
</div></div></div>



  <!-- Content
  ====================================================== -->
<div class="section-title"><div class="container">
  <!-- title on the 1st page-->
</div></div>


<div class="section-main"><div class="container">
  {$content}
</div></div>


  <!-- Footer 
  ====================================================== -->
<div class="section-footer"><div class="container">
  <footer>
    <div><small>{$blocks.footer|wackoformat}</small>
    <!-- SmartyIfNotAdmin -->{$blocks.counter}<!-- SmartyEndIf --></div>
  </footer>
</div></div>


  <!-- Javascript
  ================================================== -->
  <!-- Placed at the end of the document so the pages load faster -->
  <script type="text/javascript" src="js/bootstrap-transition.js"></script>
  <script type="text/javascript" src="js/bootstrap-alert.js"></script>
  <script type="text/javascript" src="js/bootstrap-modal.js"></script>
  <script type="text/javascript" src="js/bootstrap-dropdown.js"></script>
  <script type="text/javascript" src="js/bootstrap-scrollspy.js"></script>  
  <script type="text/javascript" src="js/bootstrap-tab.js"></script>
  <script type="text/javascript" src="js/bootstrap-tooltip.js"></script>
  <script type="text/javascript" src="js/bootstrap-popover.js"></script>
  <script type="text/javascript" src="js/bootstrap-button.js"></script>
  <script type="text/javascript" src="js/bootstrap-collapse.js"></script>
  <script type="text/javascript" src="js/bootstrap-carousel.js"></script>
  <script type="text/javascript" src="js/bootstrap-typeahead.js"></script> 
  <script type="text/javascript" src="js/bootstrap-typeahead2.js"></script> 
  {"initpopover"|themeelement}

<!-- SmartyDown -->
</body>
</html>