echo $divClass; ?> "> <?php if (issetModule('selecttoslider') && param('useSquareSlider') == 1) { ?> <span class="search"><div class="<?php echo $textClass; ?> "><?php echo Yii::t('common', 'Square range'); ?> :</div> </span> <span class="search"> <?php $squareAll = Apartment::getSquareMinMax(); $squareAll['square_min'] = isset($squareAll['square_min']) ? floor($squareAll['square_min']) : 0; $squareAll['square_max'] = isset($squareAll['square_max']) ? ceil($squareAll['square_max']) : 100; $diffSquare = $squareAll['square_max'] - $squareAll['square_min']; if ($diffSquare <= 10) { $step = 1; } else { $step = 5; } if ($diffSquare > 100) { $step = 10; } if ($diffSquare > 1000) { $step = 100; } if ($diffSquare > 10000) {