File: D:/HostingSpaces/yoda-ict/yoda-ict.nl/wwwroot/lib/ui/service_block.class.php
<?php
/**
* service_block.class.php
* Created by Komma Mediadesign.
* Author: mike
* Date: 14/03/14
*/
class Service_Block
{
// Data
private $_data;
public function __construct()
{
// All blocks
$this->_data['webhosting']['url'] = '/webhosting';
$this->_data['webhosting']['image'] = '/public/images/static/services/webhosting.jpg';
$this->_data['webhosting']['title'] = 'Webhosting';
$this->_data['webhosting']['description'] = 'Een hostingomgeving die zowel <strong>veiligheid</strong> als <strong>flexibiliteit</strong> biedt.';
$this->_data['hosted_exchange']['url'] = '/hosted-exchange';
$this->_data['hosted_exchange']['image'] ='/public/images/static/services/hosted_exchange.jpg';
$this->_data['hosted_exchange']['title'] = 'Hosted Exchange';
$this->_data['hosted_exchange']['description'] = 'Met een eigen <strong>Exchange Clusteromgeving</strong> is uw bedrijf altijd slechts een muisklik verwijderd.';
$this->_data['workspaces']['url'] = '/virtuele-werkplekken';
$this->_data['workspaces']['image'] = '/public/images/static/services/virtual_workspace.jpg';
$this->_data['workspaces']['title'] = 'Virtuele werkplekken';
$this->_data['workspaces']['description'] = '<strong>Overal ter wereld toegang</strong> tot uw software, applicaties en bestanden.';
$this->_data['vds_hosting']['url'] = '/vds-hosting';
$this->_data['vds_hosting']['image'] = '/public/images/static/services/vds_hosting.jpg';
$this->_data['vds_hosting']['title'] = 'VDS Hosting';
$this->_data['vds_hosting']['description'] = 'Alle zeggenschap, maar <strong>geen aanschafkosten</strong> van een fysieke server.';
$this->_data['domain']['url'] = '/webhosting/domeinregistratie';
$this->_data['domain']['image'] = '/public/images/static/services/domainname.jpg';
$this->_data['domain']['title'] = 'Domeinregistratie';
$this->_data['domain']['description'] = 'De eerste stap naar <strong>online succes</strong>.';
$this->_data['packages']['url'] = '/webhosting/hostingpakketten';
$this->_data['packages']['image'] = '/public/images/static/services/hosting_package.jpg';
$this->_data['packages']['title'] = 'Hostingpakketten';
$this->_data['packages']['description'] = 'Kies uit het <strong>Lite</strong>, <strong>Basic</strong> of <strong>Advanced</strong> hostingpakket.';
$this->_data['kentico']['url'] = '/webhosting/kentico-cms';
$this->_data['kentico']['image'] = '/public/images/static/services/kentico.jpg';
$this->_data['kentico']['title'] = 'Kentico CMS';
$this->_data['kentico']['description'] = 'Een Content Management Systeem gebouwd op <strong>gebruikvriendelijkheid</strong>.';
$this->_data['magento']['url'] = '/webhosting/magento-webshops';
$this->_data['magento']['image'] = '/public/images/static/services/magento.jpg';
$this->_data['magento']['title'] = 'Magento Webshops';
$this->_data['magento']['description'] = 'Kiezen voor een professionele webshop met <strong>flexibiliteit</strong>.';
}
// Return block
public function generate($blocks)
{
$output = '';
foreach($blocks as $block)
{
$image = str_replace('_blur.','.',$this->_data[$block]['image']);
$output .= '<li>';
$output .= '<a href="' . $this->_data[$block]['url'] . '">';
$output .= '<span class="image" style="background: url(\'' . $this->_data[$block]['image'] . '\') 0 100%">
<span class="icon ' . $block . '"></span>
<span class="blurred_image" style="background: url(\'' . $this->_data[$block]['image'] . '\')"></span>
</span>';
$output .= '<span class="title">' . $this->_data[$block]['title'] . '</span>';
$output .= '<p>' . $this->_data[$block]['description'] . '</p>';
$output .= '<span class="btn">Lees meer</span>';
$output .= '</a>';
$output .= '<img src="/public/images/structure/block_shadow.png" alt="shadow" class="shadow"/>';
$output .= '</li>';
}
return $output;
}
}