کد php ایجاد position با عرض اتوماتیک در جوملا
چهارشنبه, ۲۲ مرداد ۱۳۹۳، ۰۲:۵۳ ب.ظ
<?php if (($this->countModules("left")) && ($this->countModules("right"))) { $divwidth="50%"; } elseif (($this->countModules("left")) || ($this->countModules("right"))) { $divwidth="100%"; } ?>
<?php if ($this->countModules("right")): ?>
<div id="right" style="width:<?php echo $divwidth ?>"><jdoc:include type="modules" name="right" style="xhtml" /></div>
<?php endif; ?>
<?php if ($this->countModules("left")): ?>
<div id="left" style="width:<?php echo $divwidth ?>"><jdoc:include type="modules" name="left" style="xhtml" /></div>
<?php endif; ?>
۹۳/۰۵/۲۲