Authored by tmq

底部合作商

@@ -78,7 +78,7 @@ EOL; @@ -78,7 +78,7 @@ EOL;
78 $groupLen ++; 78 $groupLen ++;
79 if($groupLen>= 8) 79 if($groupLen>= 8)
80 { 80 {
81 - $templates[] ='<div class="{class}"><h2>'.$type.'</h2><ul class="clearfix">'.$html.'</ul></div>'; 81 + $templates[] ='<div class="box clearfix"><h2>'.$type.'</h2><ul class="clearfix">'.$html.'</ul></div>';
82 $html = ''; 82 $html = '';
83 $groupLen = 0; 83 $groupLen = 0;
84 $groupNum = 0; 84 $groupNum = 0;
@@ -86,13 +86,13 @@ EOL; @@ -86,13 +86,13 @@ EOL;
86 } 86 }
87 if(!empty($html)) 87 if(!empty($html))
88 { 88 {
89 - $templates[] ='<div class="{class}"><h2>'.$type.'</h2><ul class="clearfix">'.$html.'</ul></div>'; 89 + $templates[] ='<div class="box clearfix"><h2>'.$type.'</h2><ul class="clearfix">'.$html.'</ul></div>';
90 $html = ''; 90 $html = '';
91 } 91 }
92 $groupNum ++; 92 $groupNum ++;
93 if($groupNum == 2 && !empty($html)) 93 if($groupNum == 2 && !empty($html))
94 { 94 {
95 - $templates[] ='<div class="{class}"><h2>'.$type.'</h2><ul class="clearfix">'.$html.'</ul></div>'; 95 + $templates[] ='<div class="box clearfix big-size"><h2>'.$type.'</h2><ul class="clearfix">'.$html.'</ul></div>';
96 $html = ''; 96 $html = '';
97 $groupNum = 0; 97 $groupNum = 0;
98 $groupLen = 0; 98 $groupLen = 0;
@@ -113,14 +113,14 @@ EOL; @@ -113,14 +113,14 @@ EOL;
113 if(count($liLen) >= 8) 113 if(count($liLen) >= 8)
114 { 114 {
115 $temp = preg_replace('@<div class="(\w+)">(.+)<\/div>@isU', "\\2", $temp); 115 $temp = preg_replace('@<div class="(\w+)">(.+)<\/div>@isU', "\\2", $temp);
116 - $template .='<div class="box clearfix big-size">'.$temp.'</div>'; 116 + $template .='<div class="box clearfix">'.$temp.'</div>';
117 $pos = -1; 117 $pos = -1;
118 } 118 }
119 else 119 else
120 { 120 {
121 if($pos % 2 == 0) 121 if($pos % 2 == 0)
122 { 122 {
123 - $template .='<div class="box clearfix">'; 123 + $template .='<div class="box clearfix big-size">';
124 } 124 }
125 $template .= $temp; 125 $template .= $temp;
126 if(($pos+1) % 2 == 0) 126 if(($pos+1) % 2 == 0)