Exemplo n.º 1
0
 public function printTiles()
 {
     print '
     <div id="widget_scroll_container">';
     foreach ($this->tile_containers as $index => $tile_container) {
         print '
         <div class="widget_container ' . $tile_container['size'] . (strlen($tile_container['theme']) ? $tile_container['theme'] : '') . '" data-num="' . $index . '">';
         foreach ($tile_container['tiles'] as $tile_data) {
             $tile = new Tile();
             $tile->setName($tile_data['name']);
             $tile->setSize($tile_data['size']);
             $tile->setThumbnail($tile_data['thumbnail']);
             $tile->setContent($tile_data['content']);
             $tile->setUrl($tile_data['url']);
             $tile->setTheme($tile_data['theme']);
             $tile->setLink($tile_data['link']);
             if (isset($tile_data['colour'])) {
                 $tile->setColour($tile_data['colour']);
             }
             $tile->display();
         }
         print '
         </div>';
     }
     print '
     </div>';
 }