arashmmm1414
کاربر عضو
سلام ،، می خوام توی این سایت : (
در بالای قسمت اخبار مدرسه ، موقعیتی رو ایجاد کنم که توش بتونم تبلیغات بنری داشته باشم ، البته ایجاد ماژول و ... رو بلدم فقط می خوام بدونم در قسمت کدهای قالب چیکار کنم تا این موقعیت ایجاد شه ؟!! مثلا موقعیتی با نام banner ،، لطفا راهنمایی کنید :
لینک ها تنها برای اعضای سایت قابل نمایش است.
)در بالای قسمت اخبار مدرسه ، موقعیتی رو ایجاد کنم که توش بتونم تبلیغات بنری داشته باشم ، البته ایجاد ماژول و ... رو بلدم فقط می خوام بدونم در قسمت کدهای قالب چیکار کنم تا این موقعیت ایجاد شه ؟!! مثلا موقعیتی با نام banner ،، لطفا راهنمایی کنید :
کد:
<?php require_once('component.php');
?>
<body>
<div id="tak-all">
<div id="tak-container1">
<div id="tak-header">
<div id="tak-date">
<?php echo 'امروز : '. JHTML::_('date',$this->item); ?>
</div>
<div id="tak-top">
<jdoc:include type="modules" name="top" style="none" />
</div>
<div id="tak-clear1"></div>
<?php if($this->countModules('topnav')): ?>
<div id="tak-topnav">
<jdoc:include type="modules" name="topnav" style="none" />
</div>
<?php endif; ?>
<div id="tak-search">
<div id="tak-search_1">
<jdoc:include type="modules" name="search" style="none" />
</div>
</div>
</div>
</div><!-- end of container1 -->
<div id="tak-container2">
<?php if($this->countModules('user1 + user2')): ?>
<div id="tak-clear"></div>
<div id="tak-user1">
<div id="tak-user1-1"></div>
<div id="tak-user1-2">
<jdoc:include type="modules" name="user1" style="none" />
</div>
<div id="tak-user1-3">
</div>
</div>
<div id="tak-user2">
<div id="tak-user2-1"></div>
<div id="tak-user2-2">
<jdoc:include type="modules" name="user2" style="none" />
</div>
<div id="tak-user2-3">
</div>
</div>
<?php endif; ?>
<?php if($this->countModules('scroller')): ?>
<div id="tak-clear"></div>
<div id="tak-scroller">
<jdoc:include type="modules" name="scroller" style="none" />
</div>
<div id="tak-clear"></div>
<?php endif; ?>
</div><!-- end of container2 -->
<div id="tak-clear"></div>
<div id="tak-container3">
<?php if ($this->countModules('left')) { ?>
<div id="tak-col-right">
<div id="tak-main">
<div id="tak-breadcrumb">
<jdoc:include type="modules" name="breadcrumb" style="none" />
</div>
<div id="tak-clear"></div>
<div id="tak-content">
<div id="tak-content-1"></div>
<div id="tak-content-2">
<?php if ($this->countModules('latesnews')) : ?>
<div id="tak-latesnews">
<jdoc:include type="modules" name="latesnews" style="xhtml" />
</div>
<?php endif; ?>
<?php if (!$this->countModules('latesnews')) : ?>
<jdoc:include type="component" />
<?php endif; ?>
</div>
<div id="tak-content-3"></div>
</div>
</div><!-- end of main -->
<?php if ($this->countModules('right')) : ?>
<div id="tak-right">
<div id="tak-right-1"></div>
<div id="tak-right-2">
<jdoc:include type="modules" name="right" style="xhtml" />
</div>
<div id="tak-right-3"></div>
</div><!-- end of right -->
<?php endif; ?>
</div><!-- end of col-right -->
<?php if ($this->countModules('left')) : ?>
<div id="tak-col-left">
<div id="tak-left">
<div id="tak-left-1"></div>
<div id="tak-left-2">
<jdoc:include type="modules" name="left" style="xhtml" />
</div>
<div id="tak-left-3"></div>
</div>
</div><!-- end of col-left -->
<?php endif; ?>
<?php }else{ ?>
<div id="tak-col2-right">
<div id="tak-main2">
<div id="tak-breadcrumb2">
<jdoc:include type="modules" name="breadcrumb" style="none" />
</div>
<div id="tak-clear"></div>
<div id="tak-content2">
<div id="tak-content2-1"></div>
<div id="tak-content2-2">
<?php if (!$this->countModules('latesnews')) :
// if ( !$this->countModules('latesnews') ){
?>
<jdoc:include type="component" />
<?php endif; ?>
</div>
<div id="tak-content2-3"></div>
</div>
</div><!-- end of main -->
<?php if ($this->countModules('right')) : ?>
<div id="tak-right">
<div id="tak-right-1"></div>
<div id="tak-right-2">
<jdoc:include type="modules" name="right" style="xhtml" />
</div>
<div id="tak-right-3"></div>
</div><!-- end of right -->
<?php endif; ?>
</div><!-- end of col2-right -->
<?php }?>
</div><!-- end of container3 -->
<div id="tak-clear"></div>
<div id="tak-container4">
<div id="tak-clear"></div>
<div id="tak-bottoms">
<?php if ($this->countModules('bottom1')) : ?>
<div id="tak-bottom1">
<div id="tak-bottom1-1"></div>
<div id="tak-bottom1-2">
<jdoc:include type="modules" name="bottom1" style="xhtml" />
</div>
<div id="tak-bottom1-3"></div>
</div>
<?php endif; ?>
<?php if ($this->countModules('bottom2')) : ?>
<div id="tak-bottom2">
<div id="tak-bottom2-1"></div>
<div id="tak-bottom2-2">
<jdoc:include type="modules" name="bottom2" style="xhtml" />
</div>
<div id="tak-bottom2-3"></div>
</div>
<?php endif; ?>
<?php if ($this->countModules('bottom3')) : ?>
<div id="tak-bottom3">
<div id="tak-bottom3-1"></div>
<div id="tak-bottom3-2">
<jdoc:include type="modules" name="bottom3" style="xhtml" />
</div>
<div id="tak-bottom3-3"></div>
</div>
<?php endif; ?>
<?php if ($this->countModules('bottom4')) : ?>
<div id="tak-bottom4">
<div id="tak-bottom4-1"></div>
<div id="tak-bottom4-2">
<jdoc:include type="modules" name="bottom4" style="xhtml" />
</div>
<div id="tak-bottom4-3"></div>
</div>
<?php endif; ?>
</div><!-- end of bottoms1 -->
<div id="tak-clear"></div>
<div id="tak-bottoms">
<?php if ($this->countModules('bottom5')) : ?>
<div id="tak-bottom1">
<div id="tak-bottom1-1"></div>
<div id="tak-bottom1-2">
<jdoc:include type="modules" name="bottom5" style="xhtml" />
</div>
<div id="tak-bottom1-3"></div>
</div>
<?php endif; ?>
<?php if ($this->countModules('bottom6')) : ?>
<div id="tak-bottom2">
<div id="tak-bottom2-1"></div>
<div id="tak-bottom2-2">
<jdoc:include type="modules" name="bottom6" style="xhtml" />
</div>
<div id="tak-bottom2-3"></div>
</div>
<?php endif; ?>
<?php if ($this->countModules('bottom7')) : ?>
<div id="tak-bottom3">
<div id="tak-bottom3-1"></div>
<div id="tak-bottom3-2">
<jdoc:include type="modules" name="bottom7" style="xhtml" />
</div>
<div id="tak-bottom3-3"></div>
</div>
<?php endif; ?>
<?php if ($this->countModules('bottom8')) : ?>
<div id="tak-bottom4">
<div id="tak-bottom4-1"></div>
<div id="tak-bottom4-2">
<jdoc:include type="modules" name="bottom8" style="xhtml" />
</div>
<div id="tak-bottom4-3"></div>
</div>
<?php endif; ?>
</div><!-- end of bottoms2 -->
</div><!-- end of container4 -->
<div id="tak-clear"></div>
<div id="tak-clear"></div>
<?php
$tak= ' PGRpdiBpZD0idGFrLWZvb3RlciI+DQogICAgICAgICAgICAgICA8ZGl2IGlkPSJ0YWstZm9vdGVybmF2Ij4NCiAgICAgICAgICAgICAgICAgICAgPGpkb2M6aW5jbHVkZSB0eXBlPSJtb2R1bGVzIiBuYW1lPSJmb290ZXJfbmF2IiBzdHlsZT0ibm9uZSIgLz4gDQogICAgICAgICAgICAgICA8L2Rpdj4NCiAgICAgICAgICAgICAgICA8ZGl2IGlkPSJ0YWstY2xlYXIiPjwvZGl2Pg0KICAgICAgICAgICAgICAgPHA+PGpkb2M6aW5jbHVkZSB0eXBlPSJtb2R1bGVzIiBuYW1lPSJjb3B5cmlnaHQiIHN0eWxlPSJub25lIiAvPiA8L3A+DQogICAgICAgICAgICAgICAgPGRpdiBpZD0idGFrLWNsZWFyIj48L2Rpdj4NCiAgICAgICAgICAgICAgIDxicj48ZGl2IHN0eWxlPSJjb2xvcjojZWVlOyBmb250LXNpemU6MTBweDsiPg0KPGEgc3R5bGU9ImNvbG9yOiNlZWU7IiAgaHJlZj0iaHR0cDovL3d3dy50YWt3ZC5pciIgdGl0bGU9ItmC2KfZhNioINmI2Kgg2LPYp9uM2KogLSDYqtqpINmI2Kgg2K/bjNiy2KfbjNmGIiB0YXJnZXQ9Il9ibGFuayIgPtmC2KfZhNioINmI2Kgg2LPYp9uM2Ko8L2E+IDogDQo8YSBzdHlsZT0iY29sb3I6I2VlZTsiIGhyZWY9Imh0dHA6Ly93d3cudGFrd2QuaXIiIHRpdGxlPSLZgtin2YTYqCDZiNioINiz2KfbjNiqIC0g2KraqSDZiNioINiv24zYstin24zZhiIgdGFyZ2V0PSJfYmxhbmsiID7YqtqpINmI2Kgg2K/bjNiy2KfbjNmGPC9hPg0KPC9kaXY+DQogICAgICAgICAgPC9kaXY+PCEtLSBlbmQgb2YgZm9vdGVyIC0tPg0KPC9kaXY+PCEtLSBlbmQgb2YgYWxsIC0tPg0KPC9ib2R5Pg0KPC9odG1sPg== ';
require_once 'classes.temp.php';
$strign = new PhpStringParser;
echo $strign->parse($tak);
?>