Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach ($data['category'] as $index => $module_category)
- {
- if (!empty($module_category['image']))
- {
- foreach ($module_category['image'] as $index_2 => $image)
- {
- $data['category'][$index]['image'][$index_2] = array(
- 'image' => $image,
- 'thumb' => $this->model_tool_image->resize($image, 100, 100)
- );
- }
- // Rozdelit pole na ctvrtiny a ty vypsat v sablone
- $img_len = count($module_category['image']);
- $divider = round($img_len / 4);
- $chunk = array_chunk($module_category['image'], $divider);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement