زمان کنونی: ۱-۹-۱۴۰۵, ۱۲:۰۷ صبح درود مهمان گرامی! (ورود — ثبت نام)


ارسال پاسخ 
 
امتیاز موضوع:
  • 0 رأی - میانگین امتیازات: 0
  • 1
  • 2
  • 3
  • 4
  • 5
مشکل در قرار گرفت دایو در جای خود
۱۱-۶-۱۳۹۳, ۰۵:۳۵ صبح
ارسال: #8
RE: مشکل در قرار گرفت دایو در جای خود
شما اگر با توجه به توضیحات بالا تغییرات را انجام بدید مشکل برطرف خواهد شد، من یک نمونه تغییر یافته index.php شما رو قرار دادم، css بعد از جایگزین شدن این کدها و تغییرات جزئی که انجام شده قابل پیاده سازی خواهد بود. فقط کدهای css اضافی برای آیدی لول2 و 3و 4 باید حذف بشوند و دوباره بر اساس ساختاد جدید نوشته بشوند.

<?php
defined
('_JEXEC') or die('Restricted access');
JHtml::_('behavior.framework', true);
?>
<!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" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/template.css" type="text/css" />
</head>

<body>
    <div id="main">  
         
        <div id="header">
            <?php if($this->countModules('search')): ?>
            <div id="search">
                <jdoc:include type="modules" name="search" style="xhtml" />          
            </div><!--End search-->
            <?php endif; ?>
        </div><!--End heder-->
        
        <?php if($this->countmodules('menu')): ?>
        <div id="menu">
            <jdoc:include type="modules" name="menu" style="xhtml" />
        </div><!--End menu-->
        <?php endif; ?>
        
        <?php if($this->countmodules('hot-news')): ?>
        <div id="hot-news">
            <jdoc:include type="modules" name="hot-news" style="xhtml" />
        </div><!--hot-news-->
        <?php endif; ?>
        
        <?php if($this->countModules('slider + notice')): ?>          
        <div id="level1">        
            <?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('notice')): ?>
            <div id="notice">
                <jdoc:include type="modules" name="notice" style="xhtml" />
            </div><!--End notice-->
            <?php endif; ?>        
        </div><!--End level1-->
        <?php endif; ?>
      
         <?php if($this->countmodules('other-website')): ?>
                    <div id="other-website">
                        <jdoc:include type="modules" name="other-website" style="xhtml" />
                    </div><!--other-website-->
                <?php endif; ?>  
        
        
       
          
                              
        <?php if($this->countModules('last-news + top-news + prayer-times')): ?>
            <div id="level4">
               <?php if($this->countmodules('last-news')): ?>
                    <div id="last-news">
                        <jdoc:include type="modules" name="last-news" style="xhtml" />
                    </div><!--last-news-->
                <?php endif; ?>
                    
                <?php if($this->countmodules('top-news')): ?>
                    <div id="top-news">
                        <jdoc:include type="modules" name="top-news" style="xhtml" />
                    </div><!--top-news-->
                <?php endif; ?>
                
                <?php if($this->countmodules('prayer-times')): ?>
                    <div id="top-news">
                        <jdoc:include type="modules" name="prayer-times" style="xhtml" />
                    </div><!--prayer-times-->
                <?php endif; ?>                
                
            </div><!--level4-->  
        <?php endif; ?>
        
        
        
        

        
        
        

              <div id="level23">  
              
                      
          <?php if($this->countModules('emamha + bayanat')): ?>          
        <div id="level2">
        
            <?php if($this->countmodules('emamha')): ?>
            <div id="emamha">
                <jdoc:include type="modules" name="emamha" style="xhtml" />
            </div><!--End emamha-->
            <?php endif; ?>
            
            <?php if($this->countmodules('bayanat')): ?>
            <div id="bayanat">
                <jdoc:include type="modules" name="bayanat" style="xhtml" />
            </div><!--End bayanat-->
            <?php endif; ?>                      
        </div><!--level2-->
        <?php endif; ?>
              
              
              
          <?php if($this->countModules('news + picture + voice + film')): ?>          
            <div id="level3">
            
            <?php if($this->countmodules('news')): ?>
            <div id="news">
                <jdoc:include type="modules" name="news" style="xhtml" />
            </div><!--End news-->
            <?php endif; ?>
            
                <?php if($this->countmodules('picture')): ?>
                <div id="picture">
                    <jdoc:include type="modules" name="picture" style="xhtml" />
                </div><!--End picture-->
                <?php endif; ?>
                
                <?php if($this->countmodules('voice')): ?>
                <div id="voice">
                    <jdoc:include type="modules" name="voice" style="xhtml" />
                </div><!--End voice-->
                <?php endif; ?>
                
                <?php if($this->countmodules('film')): ?>
                <div id="film">
                    <jdoc:include type="modules" name="film" style="xhtml" />
                </div><!--End film-->
                <?php endif; ?>
            </div><!--level3-->
        <?php endif; ?>
        
             </div>       
                    
                    
                    
                    
                    
                    
                    
        <div id="content">
            <jdoc:include type="message" />
               <jdoc:include type="component" />
            <jdoc:include type="modules" name="content" style="xhtml" />
        </div><!--End content-->            
        
        
    
    
        
        <?php if($this->countmodules('mashahir')): ?>
        <div id="mashahir">
            <jdoc:include type="modules" name="mashahir" style="xhtml" />
        </div><!--End mashahir-->
        <?php endif; ?>
        
        <?php if($this->countmodules('footer')): ?>
        <div id="footer">
            <jdoc:include type="modules" name="footer" style="xhtml" />
        </div><!--End footer-->
        <?php endif; ?>

    </div><!--End main-->
</body>
</html> 
امضاء صدرا حسابی
یافتن تمامی ارسال‌های این کاربر
نقل قول این ارسال در یک پاسخ بازگشت به بالا
 سپاس شده توسط me64 ، Reza Ganji
ارسال پاسخ 


پیام‌های داخل این موضوع
RE: مشکل در قرار گرفت دایو در جای خود - صدرا حسابی - ۱۱-۶-۱۳۹۳ ۰۵:۳۵ صبح

پرش به انجمن:


کاربرانِ درحال بازدید از این موضوع: 1 مهمان