Merge branch 'develop' of http://git.dev.yoho.cn/web/yohood into develop
Showing
1 changed file
with
5 additions
and
4 deletions
@@ -42,8 +42,8 @@ | @@ -42,8 +42,8 @@ | ||
42 | <div class="slide-wrap clearfix"> | 42 | <div class="slide-wrap clearfix"> |
43 | <?php | 43 | <?php |
44 | $partnerGroups = array(); | 44 | $partnerGroups = array(); |
45 | - foreach($this->view->partnerList as $partner) | ||
46 | - { | 45 | + foreach($this->view->partnerList as $partner) |
46 | + { | ||
47 | foreach($this->view->partnerTypes as $key => $type) | 47 | foreach($this->view->partnerTypes as $key => $type) |
48 | { | 48 | { |
49 | if($partner['type'] == $key) | 49 | if($partner['type'] == $key) |
@@ -51,7 +51,7 @@ | @@ -51,7 +51,7 @@ | ||
51 | $partnerGroups[$type][] = $partner; | 51 | $partnerGroups[$type][] = $partner; |
52 | } | 52 | } |
53 | } | 53 | } |
54 | - } | 54 | + } |
55 | $groupNum = 0; | 55 | $groupNum = 0; |
56 | $groupLen = 0; | 56 | $groupLen = 0; |
57 | $template = ''; | 57 | $template = ''; |
@@ -91,7 +91,7 @@ EOL; | @@ -91,7 +91,7 @@ EOL; | ||
91 | $groupLen = 0; | 91 | $groupLen = 0; |
92 | } | 92 | } |
93 | } | 93 | } |
94 | - $pos = 0; | 94 | + $pos = 0; |
95 | foreach($templates as $temp) | 95 | foreach($templates as $temp) |
96 | { | 96 | { |
97 | if($pos % 2 == 0) | 97 | if($pos % 2 == 0) |
@@ -105,6 +105,7 @@ EOL; | @@ -105,6 +105,7 @@ EOL; | ||
105 | preg_match_all("/<li>/i", $temp, $liLen, PREG_SET_ORDER); | 105 | preg_match_all("/<li>/i", $temp, $liLen, PREG_SET_ORDER); |
106 | if(count($liLen) >= 6) | 106 | if(count($liLen) >= 6) |
107 | { | 107 | { |
108 | + $temp = preg_replace('@<div class="(\w+)">(.+)<\/div>@isU', "\\2", $temp); | ||
108 | $template .='<div class="box clearfix">'.$temp.'</div>'; | 109 | $template .='<div class="box clearfix">'.$temp.'</div>'; |
109 | $pos = -1; | 110 | $pos = -1; |
110 | } | 111 | } |
-
Please register or login to post a comment