PHP-Code:
<?php
$platforms = array(
'email' => array(
'color' => '888888',
'icon' => 'e0ce',
'label' => 'E-Mail',
),
'facebook' => array(
'color' => '3b5998',
'icon' => 'e075',
'label' => 'Facebook',
),
'twitter' => array(
'color' => '00acee',
'icon' => 'e132',
'label' => 'Twitter',
),
'gplus' => array(
'color' => 'dd4b39',
'icon' => 'e098',
'label' => 'Google+',
),
'xing' => array(
'color' => '126567',
'icon' => 'e14b',
'label' => 'Xing',
),
'pinterest' => array(
'color' => 'c8232c',
'icon' => 'e0ed',
'label' => 'Pinterest',
),
'linkedin' => array(
'color' => '0e76a8',
'icon' => 'e0b6',
'label' => 'LinkedIn',
),
'dribbble' => array(
'color' => 'ea4c89',
'icon' => 'e06f',
'label' => 'Dribbble',
),
'youtube' => array(
'color' => 'c4302b',
'icon' => 'e14e',
'label' => 'Youtube',
),
'vimeo' => array(
'color' => '44bbff',
'icon' => 'e13f',
'label' => 'Vimeo',
),
'skype' => array(
'color' => '00aff0',
'icon' => 'e10a',
'label' => 'Skype',
),
);
$cssClasses = array(
$this->class,
$this->textAlign,
$this->headlineSize,
);
?>
<section class="team-boxes <?php echo implode(' ', $cssClasses) ?>"<?php echo $this->cssID ?>>
<?php if ($this->headline): ?>
<<?php echo $this->hl ?>>
<?php echo $this->headline ?>
</<?php echo $this->hl ?>>
<?php endif ?>
<?php foreach ($this->boxes as $index => $box): ?>
<div class="team-boxes-item <?php echo $this->arrData['getColumnClassName']($index) ?>">
<div class="team-boxes-image-wrapper">
<?php if ($box->linkUrl): ?>
<a href="<?php echo $box->linkUrl ?>"<?php if ($box->newWindow): ?> target="_blank"<?php endif ?>>
<?php endif ?>
<?php if ($image = $this->arrData['getImageObject']($box->image, $this->size)): ?>
<?php $this->insert('picture_default', $image->picture) ?>
<?php else: ?>
<span class="no-image"></span>
<?php endif ?>
<?php if ($box->linkUrl): ?>
</a>
<?php endif ?>
<?php if ($box->socials): ?>
<ul class="team-boxes-social-links">
<?php endif ?>
<?php foreach ($box->socials as $social): ?>
<li><a href="<?php echo $social->linkUrl ?>" data-icon="&#x<?php echo $platforms[$social->platform]['icon'] ?>;" style="color: #<?php echo $platforms[$social->platform]['color'] ?>"<?php if ($social->newWindow): ?> target="_blank"<?php endif ?>><?php echo $platforms[$social->platform]['label'] ?></a></li>
<?php endforeach ?>
<?php if ($box->socials): ?>
</ul>
<?php endif ?>
</div>
<?php if ($box->name): ?>
<h3><?php echo $box->name ?></h3>
<?php endif ?>
<?php if ($box->position): ?>
<h4><?php echo $box->position ?></h4>
<?php endif ?>
<?php if ($box->text): ?>
<p><?php echo nl2br($box->text) ?></p>
<?php endif ?>
<?php if ($box->linkUrl && ($this->detailLinkLabel || $box->detailLinkLabel)): ?>
<p><a href="<?php echo $box->linkUrl ?>"<?php if ($this->buttonVariation): ?> class="button <?php echo $this->buttonVariation ?>"<?php endif ?><?php if ($box->newWindow): ?> target="_blank"<?php endif ?>><?php echo $box->detailLinkLabel ?: $this->detailLinkLabel ?></a></p>
<?php endif ?>
</div>
<?php endforeach ?>
</section>
Lesezeichen