...
|
...
|
@@ -78,7 +78,7 @@ EOL; |
|
|
$groupLen ++;
|
|
|
if($groupLen>= 8)
|
|
|
{
|
|
|
$templates[] ='<div class="{class}"><h2>'.$type.'</h2><ul class="clearfix">'.$html.'</ul></div>';
|
|
|
$templates[] ='<div class="box clearfix"><h2>'.$type.'</h2><ul class="clearfix">'.$html.'</ul></div>';
|
|
|
$html = '';
|
|
|
$groupLen = 0;
|
|
|
$groupNum = 0;
|
...
|
...
|
@@ -86,13 +86,13 @@ EOL; |
|
|
}
|
|
|
if(!empty($html))
|
|
|
{
|
|
|
$templates[] ='<div class="{class}"><h2>'.$type.'</h2><ul class="clearfix">'.$html.'</ul></div>';
|
|
|
$templates[] ='<div class="box clearfix"><h2>'.$type.'</h2><ul class="clearfix">'.$html.'</ul></div>';
|
|
|
$html = '';
|
|
|
}
|
|
|
$groupNum ++;
|
|
|
if($groupNum == 2 && !empty($html))
|
|
|
{
|
|
|
$templates[] ='<div class="{class}"><h2>'.$type.'</h2><ul class="clearfix">'.$html.'</ul></div>';
|
|
|
$templates[] ='<div class="box clearfix big-size"><h2>'.$type.'</h2><ul class="clearfix">'.$html.'</ul></div>';
|
|
|
$html = '';
|
|
|
$groupNum = 0;
|
|
|
$groupLen = 0;
|
...
|
...
|
@@ -113,14 +113,14 @@ EOL; |
|
|
if(count($liLen) >= 8)
|
|
|
{
|
|
|
$temp = preg_replace('@<div class="(\w+)">(.+)<\/div>@isU', "\\2", $temp);
|
|
|
$template .='<div class="box clearfix big-size">'.$temp.'</div>';
|
|
|
$template .='<div class="box clearfix">'.$temp.'</div>';
|
|
|
$pos = -1;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
if($pos % 2 == 0)
|
|
|
{
|
|
|
$template .='<div class="box clearfix">';
|
|
|
$template .='<div class="box clearfix big-size">';
|
|
|
}
|
|
|
$template .= $temp;
|
|
|
if(($pos+1) % 2 == 0)
|
...
|
...
|
|