How to control a empaty position

In this example, the study of the site that is loaded has a right position and a left position and size of each position and size of 200 x 600 pixels, which is the material position in the total width of the frame is 1000 pixels so our requirement for this position then we write and put on top form, like a row of this section 4 is the class that is the case.

<?php if($this->countModules("right")) :
    $size1='';
else:
    $size1='200';
endif;
?>
<?php if($this->countModules("left")) :
    $size2='';
else:
    $size2='200';
endif;
?>
<?php
$size3=(600+$size1+$size2);
?>

The first part of our code that controls the size of the middle position in the absence of either or both positions, to control any of the situations we use the following code example.

        <?php if($this->countModules("left")) : ?>
            <div id="dima_4">
                <div id="dima_4_1_wrapper">
                    <div id="dima_4_1">
                        <jdoc:include type="modules" name="left" style="rounded" />
                    </div>
                </div>
        <?php endif; ?>
نظرات کاربران
ثبت نظرات
برای ثبت نظر باید عضو سایت باشید!