پارس جوم ::  انجمن های تخصصی جوملا
مهم: سوال در مورد طراحی قالب - نسخه‌ی قابل چاپ

+- پارس جوم :: انجمن های تخصصی جوملا (https://forums.parsjoom.ir)
+-- انجمن: پشتیبانی (/forum-70.html)
+--- انجمن: مباحث و مشکلات عمومی (/forum-33.html)
+--- موضوع: مهم: سوال در مورد طراحی قالب (/thread-14815.html)



مهم: سوال در مورد طراحی قالب - shahinbufalu - ۴-۲-۱۳۹۳ ۰۲:۳۳ صبح

سلام دوستان من این موقعیت هایی که در عکس زیر نشان دادم ترتیبش در templateDetails.xml و index.php چطوره ؟

[تصویر:  Untitled-13D1Mp.jpg]

این موقعیت هایی که من قرار دادم ولی جواب نداد:
کد php:
<positions>
        <
position>heder</position>
        <
position>menu</position>
        <
position>time</position>
        <
position>left</position>
        <
position>scrol</position>
        <
position>slider</position>
        <
position>user1</position>
        <
position>user2</position>        
        <
position>right</position>
        <
position>footer</position>                
    </
positions

کد php:
<body>
    <
div id="main">
    
    <?
php if($this->countModules('heder')): ?>   
        <div id="heder">
        <?php endif; ?>
         </div><!--End heder-->
         
           <?php if($this->countModules('menu')): ?>        
        <div id="menu">
            <?php endif; ?>
        <?php if($this->countModules('time')): ?>
            <div id="time">
            <jdoc:include type="modules" name="time" style="xhtml" />
            </div><!--End time-->
            </div><!--End menu-->
            <?php endif; ?>
        
        <div id="center">
        
        <?php if($this->countModules('left')): ?>  
            <div id="left">
              <jdoc:include type="modules" name="left" style="xhtml" />              
            </div><!--End left--> 
            <?php endif; ?>  
            
        <?php if($this->countModules('scrol')): ?>          
        <div id="slider">
          <jdoc:include type="modules" name="scrol" style="xhtml" />              
        </div><!--End scrol--> 
        <?php endif; ?>                  
                
           <?php if($this->countModules('slider')): ?>          
        <div id="slider">
          <jdoc:include type="modules" name="slider" style="xhtml" />              
        </div><!--End slider--> 
        <?php endif; ?>
        
           <?php if($this->countModules('contents')): ?>
            <div id="contents">
              <jdoc:include type="component" />              
            </div><!--End contents-->
            <?php endif; ?>
            
           <?php if($this->countModules('user1 + user2')): ?>  
        <div id="top-users">
        <?php endif; ?>  
              
               <?php if($this->countModules('user1')): ?>          
            <div id="user1">
              <jdoc:include type="modules" name="user1" style="xhtml" />              
            </div><!--End user1--> 
            <?php endif; ?>    
                                   
               <?php if($this->countModules('user2')): ?>              
            <div id="user2">
              <jdoc:include type="modules" name="user2" style="xhtml" />              
            </div><!--End user2-->               
        </div><!--End top-users-->  
        <?php endif; ?>  
               
           <?php if($this->countModules('right')): ?>              
            <div id="right">
              <jdoc:include type="modules" name="right" style="xhtml" />              
            </div><!--End right-->                                 
            <?php endif; ?>
                                   
        </div><!--End center-->  
        
        <div id="footer">
        
        </div>
    
    </div><!--End main-->
</body>