Your IP : 216.73.216.165


Current Path : /var/www/html/wp-content/themes/church-event/templates/shortcodes/
Upload File :
Current File : /var/www/html/wp-content/themes/church-event/templates/shortcodes/linkarea.php

<?php
$class = array(
	'linkarea',
	'clearfix',
	$hover_color,
	$class,
	(empty($background_color) ? 'background-transparent' : 'background-'.$background_color),
	);

$attrs = '';

if (!empty($hoverclass))
	$attrs .= ' data-hoverclass="' . $hoverclass . '"';

if (!empty($activeclass))
	$attrs .= ' data-activeclass="' . $activeclass . '"';

if (!empty($href)) {
	$attrs .= ' data-href="' . $href . '"';
	$attrs .= ' tabindex="1"';

	if (!preg_match('/^(javascript:|#)/i', $href))
		$attrs .= ' title="' . $href . '"';
}

if (!empty($target))
	$attrs .= ' data-target="' . $target . '"';

if (!empty($style))
	$attrs .= ' style="' . $style . '"';
?>

<div <?php echo $attrs?> class="<?php echo implode(' ', $class) ?>">
	<?php if(!empty($image)): ?>
		<div class="first"><?php wpv_url_to_image( $image ) ?></div>
	<?php elseif(!empty($icon)): ?>
		<div class="first"><?php
			echo wpv_shortcode_icon(array(
				'name' => $icon,
				'size' => $icon_size,
				'color' => wpv_sanitize_accent($icon_color),
			));
		?></div>
	<?php endif ?>
	<?php if(!empty($content)): ?>
		<div class="last"><?php echo do_shortcode($content)?></div>
	<?php endif ?>
</div>