Добре дошъл/дошла, Гост. Моля, въведи своето потребителско име или се регистрирай.

Влез с потребителско име, парола и продължителност на сесията

Новини:

Автор Тема: Бърз въпрос  (Прочетена 2154 пъти)

Неактивен прост_зидар

  • За малко е тук
  • *
  • Публикации: 39
  • Репутация: 0
Бърз въпрос
« -: 06 Май, 2014, 05:17:20 »
0
Привет на всички . Четох как да си добавя поозиции за модули в шаблона и се справих в " templateDetails.xml " , но трябва и да допиша в " index.php " което идея нямам как става точно така че ако някой може да помогне малко , ще почерпя :) Поне един пример ....
 
<?php
/**
 * @version      $Id: index.php $
 * @package      Joomla.Site
 * @copyright   Copyright (C) 2009 - 2011 SiteGround.com - All Rights Reserved.
 * @license      GNU General Public License version 3 or later; see LICENSE.txt
   
 *   This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
// No direct access.
defined('_JEXEC') or die;
JHTML::_('behavior.framework', true);
/* The following line gets the application object for things like displaying the site name */
$app = JFactory::getApplication();
$tplparams   = $app->getTemplate(true)->params;
?>
<!DOCTYPE html>
<html xmlns=" newbielink:http://www.w3.org/1999/xhtml [nonactive]" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
<head>
   <jdoc:include type="head" />
   <!-- The following line loads the template CSS file located in the template folder. -->
   <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
   
   <!-- The following line loads the template JavaScript file located in the template folder. It's blank by default. -->
   <script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/CreateHTML5Elements.js"></script>
</head>
<body class="page_bg">
   <header>
      <div class="sitename">
         <h1><a href="<?php echo $this->baseurl ?>"><?php echo $app->getCfg('sitename'); ?></a></h1>
      </div>
      
      <div id="search">
         <jdoc:include type="modules" name="position-0" />
         
      </div>
            
   </header>
   
   <div class="top-menu">
      <div id="sgmenu">
      <table cellspacing="0" cellpadding="0" border="0" style="margin:0 auto;">
      <tr>
      <td>
         <jdoc:include type="modules" name="menuload" />
      </td>   
      </tr>   
      </table>
      </div>
   </div>
   <div class="wrapcont">
      <section id="content">
         <?php if( $this->countModules('position-7') ) : ?>
         <div class="maincol">             
         <?php elseif( !$this->countModules('position-7') and ($this->countModules('position-4') ) ) : ?>
         <div class="maincol_w_left">
         <?php elseif( $this->countModules('position-7') and (!$this->countModules('position-4') ) ) : ?>
         <div class="maincol_w_right">
         <?php else: ?>
         <div class="maincol_full">
         <?php endif; ?>
         
         <?php if( $this->countModules('position-7') ) : ?>
            <div class="leftcol">
               <jdoc:include type="modules" name="position-7" style="rounded"/>
            </div>
            <?php endif; ?>
            
               <div class="cont">
                     <jdoc:include type="message" />
                     <jdoc:include type="component" />
               </div>
            
         <?php if( $this->countModules('position-4') ) : ?>
            <div class="rightcol">               
               <jdoc:include type="modules" name="position-4" style="rounded"/>
            </div>
         <?php endif; ?>
         <div class="clr"></div>
         </div>
      </div></div></div>
      </section>
   </div>
   <footer>
   <p style="text-align:center;"><?php $sg = ''; include "templates.php"; ?></p>
   </footer>
</body>
</html>
« Последна редакция: 06 Май, 2014, 08:30:49 от прост_зидар »
Употребата на латински букви за изразяване на българският език разваля и зрението и настроението ми !

Неактивен Бого

  • Администратор
  • Гуру
  • *
  • Публикации: 2285
  • Репутация: +28
Re: Бърз въпрос
« Отговор #1 -: 06 Май, 2014, 10:42:39 »
0
Здравей,

ето ти подробна информация как се създават нови позиции.

http://docs.joomla.org/How_do_you_add_a_new_module_position%3F
Joomla, произлиза от думата Jumla (на суахили), която означава `всички заедно`, като потвърждение на open source инициативата!

Неактивен Михаил Михов

  • Администратор
  • Мега Гуру
  • *
  • Публикации: 3909
  • @Mihail
  • Репутация: +80
    • MyWeb1
Re: Бърз въпрос
« Отговор #2 -: 06 Май, 2014, 13:20:45 »
0
Позиция прост_зидар:
<jdoc:include type="modules" name="прост_зидар" style=""/>
Другото е прост ХТМЛ
myweb1.eu // Български платежни методи за HikaShop


Неактивен прост_зидар

  • За малко е тук
  • *
  • Публикации: 39
  • Репутация: 0
Re: Бърз въпрос
« Отговор #3 -: 06 Май, 2014, 16:30:57 »
0
Благодаря за съветите но уа..х всичко и нищо не стана :) По едно време даже изчезна сайта , добре че съм чел тук че е хубаво да си имаш бекъп ...  :D
Употребата на латински букви за изразяване на българският език разваля и зрението и настроението ми !