Newer
Older
<?php
/**
* This file contains QUI\Bricks\Controls\SocialBox
*/
namespace QUI\Bricks\Controls;
use QUI;
/**
* Class SocialBox
*
*/
class SocialBox extends QUI\Control
{
/**
* constructor
*/
public function __construct($attributes = array())
{
// default options
$this->setAttributes(array(
'title' => 'Social',
'socialList' => false
));
* @see \QUI\Control::create()
*/
public function getBody()
{
if ($socialList) {
$socialList = json_decode($socialList, true);
}
$Engine->assign(array(
'this' => $this,
'socialList' => $socialList
));