HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux vmi1674223.contaboserver.net 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC 2024 x86_64
User: root (0)
PHP: 7.4.3-4ubuntu2.22
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/onlineshop/wp-content/themes/nautica/vc_templates/vc_cta.php
<?php
/**
 * Shortcode attributes
 * @var $atts
 * @var $content - shortcode content
 * Shortcode class
 * @var $this WPBakeryShortCode_VC_Cta
 */

$atts = vc_map_get_attributes( $this->getShortcode(), $atts );
$this->buildTemplate( $atts, $content );

$template = $atts['cta_templates']?"engo-".$atts['cta_templates']:"";
$img = wp_get_attachment_image_src($atts['photo'],'full');
$cta_photo_position = $atts['cta_photo_position'];
$photo_align_top = $photo_align_bottom = $photo_align_left = $photo_align_right = '';
if($img[0]) {
	if(!$cta_photo_position) {
		$single_image = "<div class='cta-photo'><img src='".$img[0]."' /></div>";
	} else {
		$single_image = '';
		$photo_align_top = ($cta_photo_position == 'top')?"<div class='cta-photo' style='margin-bottom: 10px;'><img src='".$img[0]."' alt='".get_bloginfo( 'name' )."' /></div>":'';
		$photo_align_bottom = ($cta_photo_position == 'bottom')?"<div class='cta-photo' style='margin-top: 10px;'><img src='".$img[0]."' alt='".get_bloginfo( 'name' )."' /></div>":'';
		$photo_align_left = ($cta_photo_position == 'left')?"<div class='cta-photo' style='float:left; margin-right: 10px;'><img src='".$img[0]."' alt='".get_bloginfo( 'name' )."' /></div>":'';
		$photo_align_right = ($cta_photo_position == 'right')?"<div class='cta-photo' style='float:right; margin-left: 10px;'><img src='".$img[0]."' alt='".get_bloginfo( 'name' )."' /></div>":'';;
	}
}

?>
<section
	class="engo-calltoaction vc_cta3-container <?php echo trim($template); ?> <?php echo esc_attr( implode( ' ', $this->getTemplateVariable( 'container-class' ) ) ); ?>">
	<div class="vc_general <?php echo esc_attr( implode( ' ', $this->getTemplateVariable( 'css-class' ) ) ); ?>"<?php
	if ( $this->getTemplateVariable( 'inline-css' ) ) {
		echo ' style="' . esc_attr( implode( ' ', $this->getTemplateVariable( 'inline-css' ) ) ) . '"';
	}
	?>>
		<?php echo trim($this->getTemplateVariable( 'icons-top' )); ?>
		<?php echo trim($this->getTemplateVariable( 'icons-left' )); ?>
		<?php echo trim($single_image);?>
		<?php echo trim($photo_align_top);?>
		<?php echo trim($photo_align_left);?>
		<?php echo trim($photo_align_right);?>
		<div class="vc_cta3_content-container">
			<?php echo trim($this->getTemplateVariable( 'actions-top' )); ?>
			<?php echo trim($this->getTemplateVariable( 'actions-left' )); ?>
			<div class="vc_cta3-content">
				<header class="vc_cta3-content-header">
					<?php echo trim($this->getTemplateVariable( 'heading2' )); ?>
					<?php echo trim($this->getTemplateVariable( 'heading1' )); ?>
				</header>
				<div class="cta-cont">
					<?php echo trim($this->getTemplateVariable( 'content' )); ?>
				</div>
			</div>
			<?php echo trim($this->getTemplateVariable( 'actions-bottom' )); ?>
			<?php echo trim($this->getTemplateVariable( 'actions-right' )); ?>
		</div>
		<?php echo trim($this->getTemplateVariable( 'icons-bottom' )); ?>
		<?php echo trim($this->getTemplateVariable( 'icons-right' )); ?>
		<?php echo trim($photo_align_bottom); ?>
	</div>
</section><?php echo trim($this->endBlockComment( $this->getShortcode() )); ?>