Your IP : 216.73.217.13


Current Path : /home/poneycluc/www/templates/ja_stark/html/com_contact/contact/
Upload File :
Current File : /home/poneycluc/www/templates/ja_stark/html/com_contact/contact/default.php

<?php

/**
T4 Overide
 */

defined('_JEXEC') or die;

use Joomla\CMS\Factory;
use Joomla\CMS\Helper\ContentHelper;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Layout\FileLayout;
use Joomla\CMS\Plugin\PluginHelper;
use Joomla\CMS\Router\Route;
use Joomla\Component\Contact\Site\Helper\RouteHelper;

if (!class_exists('ContentHelperRoute')) {
	if (version_compare(JVERSION, '4', 'ge')) {
		abstract class ContentHelperRoute extends \Joomla\Component\Content\Site\Helper\RouteHelper
		{
		};
	} else {
		JLoader::register('ContentHelperRoute', $com_path . '/helpers/route.php');
	}
}

$tparams = $this->item->params;
?>
<div class="contact<?php echo $this->pageclass_sfx ?>" itemscope itemtype="http://schema.org/Person">

	<!-- Page heading -->
	<?php if ($tparams->get('show_page_heading')) : ?>
		<h1>
			<?php echo $this->escape($tparams->get('page_heading')); ?>
		</h1>
	<?php endif; ?>
	<!-- End page heading -->

	<!-- Show Contact name -->
	<?php if ($this->item->name && $tparams->get('show_name')) : ?>
		<?php if ($tparams->get('presentation_style') != 'plain') : ?>
			<div class="page-header">
				<h2>
					<?php if ($this->item->published == 0) : ?>
						<span class="label label-warning"><?php echo Text::_('JUNPUBLISHED'); ?></span>
					<?php endif; ?>
					<span class="contact-name" itemprop="name"><?php echo $this->item->name; ?></span>
				</h2>
			</div>
		<?php endif;  ?>
	<?php endif;  ?>
	<!-- End Show Contact name -->

	<?php
	if (version_compare(JVERSION, '4', 'ge')) {
		$presentation_style = 'plain';
	} else {
		$presentation_style = $tparams->get('presentation_style');
	}
	?>

	<?php $accordionStarted = false; ?>
	<?php $tabSetStarted = false; ?>

	<!-- Slider type -->
	<?php if ($presentation_style === 'sliders') : ?>
		<div class="panel-group" id="slide-contact">

			<?php if ($tparams->get('show_info', 1)) : ?>
				<div class="panel panel-default">
					<div class="panel-heading">
						<h4 class="panel-title">
							<a class="accordion-toggle" data-toggle="collapse" data-parent="#slide-contact" href="#basic-details">
								<?php echo Text::_('COM_CONTACT_DETAILS'); ?>
							</a>
						</h4>
					</div>

					<div id="basic-details" class="panel-collapse collapse in">
						<div class="panel-body">
							<?php if ($this->item->image && $tparams->get('show_image')) : ?>
								<div class="thumbnail pull-right">
									<?php echo HTMLHelper::_('image', $this->item->image, $this->item->name, array('itemprop' => 'image')); ?>
								</div>
							<?php endif; ?>

							<?php if ($tparams->get('show_contact_list') && count($this->contacts) > 1) : ?>
								<form action="#" method="get" name="selectForm" id="selectForm">
									<label for="select_contact"><?php echo Text::_('COM_CONTACT_SELECT_CONTACT'); ?></label>
									<?php echo HTMLHelper::_('select.genericlist', $this->contacts, 'select_contact', 'class="inputbox" onchange="document.location.href = this.value"', 'link', 'name', $this->item->link); ?>
								</form>
							<?php endif; ?>

							<?php if ($tparams->get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?>
								<?php $this->item->tagLayout = new FileLayout('joomla.content.tags'); ?>
								<?php echo $this->item->tagLayout->render($this->item->tags->itemTags); ?>
							<?php endif; ?>

							<?php if ($this->item->con_position && $tparams->get('show_position')) : ?>
								<dl class="contact-position dl-horizontal">
									<dt><?php echo Text::_('COM_CONTACT_POSITION'); ?>:</dt>
									<dd itemprop="jobTitle">
										<?php echo $this->item->con_position; ?>
									</dd>
								</dl>
							<?php endif; ?>

							<?php echo $this->loadTemplate('address'); ?>

							<?php if ($tparams->get('allow_vcard')) : ?>
								<?php echo Text::_('COM_CONTACT_DOWNLOAD_INFORMATION_AS'); ?>
								<a href="<?php echo Route::_('index.php?option=com_contact&amp;view=contact&amp;id=' . $this->item->id . '&amp;format=vcf'); ?>">
									<?php echo Text::_('COM_CONTACT_VCARD'); ?></a>
							<?php endif; ?>
						</div>
					</div>

				</div>

			<?php endif; ?> <!-- // Show info -->

			<?php if ($tparams->get('show_email_form') && ($this->item->email_to || $this->item->user_id)) : ?>
				<div class="panel panel-default">
					<div class="panel-heading">
						<h4 class="panel-title">
							<a class="accordion-toggle" data-toggle="collapse" data-parent="#slide-contact" href="#display-form">
								<?php echo Text::_('COM_CONTACT_EMAIL_FORM'); ?>
							</a>
						</h4>
					</div>

					<div id="display-form" class="panel-collapse collapse">
						<div class="panel-body">
							<?php echo $this->loadTemplate('form'); ?>
						</div>
					</div>
				</div>

			<?php endif; ?> <!-- // Show email form -->

			<?php if ($tparams->get('show_links')) : ?>
				<?php echo $this->loadTemplate('links'); ?>
			<?php endif; ?>

			<?php if ($tparams->get('show_articles') && $this->item->user_id && $this->item->articles) : ?>
				<div class="panel panel-default">
					<div class="panel-heading">
						<h4 class="panel-title">
							<a class="accordion-toggle" data-toggle="collapse" data-parent="#slide-contact" href="#display-articles">
								<?php echo Text::_('JGLOBAL_ARTICLES'); ?>
							</a>
						</h4>
					</div>

					<div id="display-articles" class="panel-collapse collapse">
						<div class="panel-body">
							<?php echo $this->loadTemplate('articles'); ?>
						</div>
					</div>
				</div>
			<?php endif; ?> <!-- // Show articles -->

			<?php if ($tparams->get('show_profile') && $this->item->user_id && PluginHelper::isEnabled('user', 'profile')) : ?>
				<div class="panel panel-default">
					<div class="panel-heading">
						<h4 class="panel-title">
							<a class="accordion-toggle" data-toggle="collapse" data-parent="#slide-contact" href="#display-profile">
								<?php echo Text::_('COM_CONTACT_PROFILE'); ?>
							</a>
						</h4>
					</div>

					<div id="display-profile" class="panel-collapse collapse">
						<div class="panel-body">
							<?php echo $this->loadTemplate('profile'); ?>
						</div>
					</div>
				</div>
			<?php endif; ?> <!-- // Show profile -->

			<?php if ($tparams->get('show_user_custom_fields') && $this->contactUser) : ?>
				<?php echo $this->loadTemplate('user_custom_fields'); ?>
			<?php endif; ?>

			<?php if ($this->item->misc && $tparams->get('show_misc')) : ?>
				<div class="panel panel-default">
					<div class="panel-heading">
						<h4 class="panel-title">
							<a class="accordion-toggle" data-toggle="collapse" data-parent="#slide-contact" href="#display-misc">
								<?php echo Text::_('COM_CONTACT_OTHER_INFORMATION'); ?>
							</a>
						</h4>
					</div>

					<div id="display-misc" class="panel-collapse collapse">
						<div class="panel-body">
							<div class="contact-miscinfo">
								<dl class="dl-horizontal">
									<dt>
										<span class="<?php echo $tparams->get('marker_class'); ?>">
											<?php echo $tparams->get('marker_misc'); ?>
										</span>
									</dt>
									<dd>
										<span class="contact-misc">
											<?php echo $this->item->misc; ?>
										</span>
									</dd>
								</dl>
							</div>
						</div>
					</div>
				</div>
			<?php endif; ?> <!-- // Contact misc -->

		</div>
	<?php endif; ?>
	<!-- //Sliders type -->


	<!-- Tabs type -->
	<?php if ($presentation_style === 'tabs') : ?>
		<div class="wrapper-tabs">
			<?php if ($tparams->get('show_info', 1)) : ?>
				<?php echo HTMLHelper::_('bootstrap.startTabSet', 'myTab', array('active' => 'basic-details')); ?>
				<?php $tabSetStarted = true; ?>
				<?php echo HTMLHelper::_('bootstrap.addTab', 'myTab', 'basic-details', Text::_('COM_CONTACT_DETAILS')); ?>

				<?php if ($this->item->image && $tparams->get('show_image')) : ?>
					<div class="thumbnail pull-right">
						<?php echo HTMLHelper::_('image', $this->item->image, $this->item->name, array('itemprop' => 'image')); ?>
					</div>
				<?php endif; ?>

				<?php if ($tparams->get('show_contact_list') && count($this->contacts) > 1) : ?>
					<form action="#" method="get" name="selectForm" id="selectForm">
						<label for="select_contact"><?php echo Text::_('COM_CONTACT_SELECT_CONTACT'); ?></label>
						<?php echo HTMLHelper::_('select.genericlist', $this->contacts, 'select_contact', 'class="inputbox" onchange="document.location.href = this.value"', 'link', 'name', $this->item->link); ?>
					</form>
				<?php endif; ?>

				<?php if ($tparams->get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?>
					<?php $this->item->tagLayout = new FileLayout('joomla.content.tags'); ?>
					<?php echo $this->item->tagLayout->render($this->item->tags->itemTags); ?>
				<?php endif; ?>

				<?php if ($this->item->con_position && $tparams->get('show_position')) : ?>
					<dl class="contact-position dl-horizontal">
						<dt><?php echo Text::_('COM_CONTACT_POSITION'); ?>:</dt>
						<dd itemprop="jobTitle">
							<?php echo $this->item->con_position; ?>
						</dd>
					</dl>
				<?php endif; ?>

				<?php echo $this->loadTemplate('address'); ?>

				<?php if ($tparams->get('allow_vcard')) : ?>
					<?php echo Text::_('COM_CONTACT_DOWNLOAD_INFORMATION_AS'); ?>
					<a href="<?php echo Route::_('index.php?option=com_contact&amp;view=contact&amp;id=' . $this->item->id . '&amp;format=vcf'); ?>">
						<?php echo Text::_('COM_CONTACT_VCARD'); ?></a>
				<?php endif; ?>

				<?php echo HTMLHelper::_('bootstrap.endTab'); ?>

			<?php endif; ?><!-- // Show info -->

			<?php if ($tparams->get('show_email_form') && ($this->item->email_to || $this->item->user_id)) : ?>
				<?php if (!$tabSetStarted) {
					echo HTMLHelper::_('bootstrap.startTabSet', 'myTab', array('active' => 'display-form'));
					$tabSetStarted = true;
				}
				?>
				<?php echo HTMLHelper::_('bootstrap.addTab', 'myTab', 'display-form', Text::_('COM_CONTACT_EMAIL_FORM')); ?>

				<?php echo $this->loadTemplate('form'); ?>

				<?php echo HTMLHelper::_('bootstrap.endTab'); ?>
			<?php endif; ?> <!-- // Show email form -->

			<?php if ($tparams->get('show_links')) : ?>
				<?php if (!$tabSetStarted) : ?>
					<?php echo HTMLHelper::_('bootstrap.startTabSet', 'myTab', array('active' => 'display-links')); ?>
					<?php $tabSetStarted = true; ?>
				<?php endif; ?>
				<?php echo $this->loadTemplate('links'); ?>
			<?php endif; ?>

			<?php if ($tparams->get('show_articles') && $this->item->user_id && $this->item->articles) : ?>
				<?php if (!$tabSetStarted) {
					echo HTMLHelper::_('bootstrap.startTabSet', 'myTab', array('active' => 'display-articles'));
					$tabSetStarted = true;
				}
				?>
				<?php echo HTMLHelper::_('bootstrap.addTab', 'myTab', 'display-articles', Text::_('JGLOBAL_ARTICLES')); ?>

				<?php echo $this->loadTemplate('articles'); ?>

				<?php echo HTMLHelper::_('bootstrap.endTab'); ?>
			<?php endif; ?> <!-- // Show articles -->

			<?php if ($tparams->get('show_profile') && $this->item->user_id && PluginHelper::isEnabled('user', 'profile')) : ?>
				<?php if (!$tabSetStarted) {
					echo HTMLHelper::_('bootstrap.startTabSet', 'myTab', array('active' => 'display-profile'));
					$tabSetStarted = true;
				}
				?>
				<?php echo HTMLHelper::_('bootstrap.addTab', 'myTab', 'display-profile', Text::_('COM_CONTACT_PROFILE')); ?>

				<?php echo $this->loadTemplate('profile'); ?>
				<?php echo HTMLHelper::_('bootstrap.endTab'); ?>
			<?php endif; ?> <!-- // Show profile -->

			<?php if ($tparams->get('show_user_custom_fields') && $this->contactUser) : ?>
				<?php echo $this->loadTemplate('user_custom_fields'); ?>
			<?php endif; ?>

			<?php if ($this->item->misc && $tparams->get('show_misc')) : ?>
				<?php if (!$tabSetStarted) {
					echo HTMLHelper::_('bootstrap.startTabSet', 'myTab', array('active' => 'display-misc'));
					$tabSetStarted = true;
				}
				?>
				<?php echo HTMLHelper::_('bootstrap.addTab', 'myTab', 'display-misc', Text::_('COM_CONTACT_OTHER_INFORMATION')); ?>

				<div class="contact-miscinfo">
					<dl class="dl-horizontal">
						<dt>
							<span class="<?php echo $tparams->get('marker_class'); ?>">
								<?php echo $tparams->get('marker_misc'); ?>
							</span>
						</dt>
						<dd>
							<span class="contact-misc">
								<?php echo $this->item->misc; ?>
							</span>
						</dd>
					</dl>
				</div>
				<?php echo HTMLHelper::_('bootstrap.endTab'); ?>
			<?php endif; ?> <!-- // Contact misc -->
		</div>
	<?php endif; ?>
	<!-- //Tabs type -->

	<!-- JA Override Contact From for case "plain" -->
	<?php if ($presentation_style === 'plain') : ?>
		<div class="<?php echo $tparams->get('presentation_style') ?>-style">
			<div class="contact-inner">
				<div class="row">
					<!-- Show Other information -->
					<div class="col-md-4 contact-information">
						<div class="inner">
							<?php if ($this->item->image && $tparams->get('show_image')) : ?>
								<div class="contact-image">
									<?php echo HTMLHelper::_('image', $this->item->image, Text::_('COM_CONTACT_IMAGE_DETAILS'), array('align' => 'middle')); ?>
								</div>
							<?php endif; ?>

							<?php if ($tparams->get('show_info', 1)) : ?>
								<!-- Show Contact name -->
								<?php if ($this->item->name && $tparams->get('show_name')) : ?>
									<div class="contact-title">
										<h2>
											<?php if ($this->item->published == 0) : ?>
												<span class="label label-warning"><?php echo Text::_('JUNPUBLISHED'); ?></span>
											<?php endif; ?>
											<?php echo $this->item->name; ?>
										</h2>
									</div>
								<?php endif;  ?>
								<!-- End Show Contact name -->
							<?php endif;  ?>

							<?php $show_contact_category = $tparams->get('show_contact_category'); ?>

							<?php if ($show_contact_category === 'show_no_link') : ?>
								<h5>
									<span class="contact-category"><?php echo $this->item->category_title; ?></span>
								</h5>
							<?php elseif ($show_contact_category === 'show_with_link') : ?>
								<?php $contactLink = ContactHelperRoute::getCategoryRoute($this->item->catid); ?>
								<h5>
									<span class="contact-category"><a href="<?php echo $contactLink; ?>">
											<?php echo $this->escape($this->item->category_title); ?></a>
									</span>
								</h5>
							<?php endif; ?>

							<?php if ($tparams->get('show_contact_list') && count($this->contacts) > 1) : ?>
								<form action="#" method="get" name="selectForm" id="selectForm">
									<label for="select_contact"><?php echo Text::_('COM_CONTACT_SELECT_CONTACT'); ?></label>
									<?php echo HTMLHelper::_('select.genericlist', $this->contacts, 'select_contact', 'class="inputbox" onchange="document.location.href = this.value"', 'link', 'name', $this->item->link); ?>
								</form>
							<?php endif; ?>

							<?php if ($tparams->get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?>
								<?php $this->item->tagLayout = new FileLayout('joomla.content.tags'); ?>
								<?php echo $this->item->tagLayout->render($this->item->tags->itemTags); ?>
							<?php endif; ?>


							<!-- Contact -->
							<?php if ($tparams->get('show_info', 1) || $tparams->get('show_links') || $tparams->get('show_articles') && $this->item->user_id && $this->item->articles) : ?>
								<div class="contact-info">
									<?php if ($tparams->get('show_info', 1)) : ?>
										<?php if ($this->item->con_position && $tparams->get('show_position')) : ?>
											<dl class="contact-position dl-horizontal">
												<dd>
													<?php echo $this->item->con_position; ?>
												</dd>
											</dl>
										<?php endif; ?>

										<?php echo $this->loadTemplate('address'); ?>

										<?php if ($tparams->get('allow_vcard')) :	?>
											<?php echo Text::_('COM_CONTACT_DOWNLOAD_INFORMATION_AS'); ?>
											<a href="<?php echo Route::_('index.php?option=com_contact&amp;view=contact&amp;id=' . $this->item->id . '&amp;format=vcf'); ?>">
												<?php echo Text::_('COM_CONTACT_VCARD'); ?></a>
										<?php endif; ?>
									<?php endif; ?>

									<?php if ($tparams->get('show_links')) : ?>
										<?php echo $this->loadTemplate('links'); ?>
									<?php endif; ?>

									<?php if ($tparams->get('show_articles') && $this->item->user_id && $this->item->articles) : ?>
										<div class="contact-articles-title">
											<h2><?php echo Text::_('JGLOBAL_ARTICLES'); ?></h2>
										</div>
										<?php echo $this->loadTemplate('articles'); ?>
									<?php endif; ?> <!-- // Show articles -->
								</div>
								<!-- End contact-->
							<?php endif; ?>

							<?php echo $this->item->event->afterDisplayTitle; ?>


							<?php echo $this->item->event->beforeDisplayContent; ?>

							<?php if ($tparams->get('show_user_custom_fields') && $this->contactUser) : ?>
								<?php echo $this->loadTemplate('user_custom_fields'); ?>
							<?php endif; ?>

							<?php if ($tparams->get('show_profile') && $this->item->user_id && PluginHelper::isEnabled('user', 'profile')) : ?>
								<?php echo '<h2>' . Text::_('COM_CONTACT_PROFILE') . '</h2>'; ?>
								<?php echo $this->loadTemplate('profile'); ?>
							<?php endif; ?>
						</div>
					</div>
					<!-- End Show -->

					<!-- Show form contact -->
					<div class="col-md-8 contact-form-wrap">
						<?php if ($this->item->misc && $tparams->get('show_misc')) : ?>
							<div class="contact-info">
								<!-- Contact other information -->
								<div class="title-info">
									<?php echo '<h2>' . Text::_('TPL_CONTACT_INFORMATION') . '</h2>';  ?>
								</div>

								<div class="contact-misc">
									<?php echo $this->item->misc; ?>
									<!-- End other information -->
								</div>
							</div>
						<?php endif; ?>

						<?php if ($tparams->get('show_email_form') && ($this->item->email_to || $this->item->user_id)) : ?>
							<div class="contact-box">
								<div class="contact-form">
									<div class="contact-title">
										<?php echo '<h2>' . Text::_('COM_CONTACT_EMAIL_FORM') . '</h2>';  ?>
									</div>
									<div class="contact-body">
										<?php echo $this->loadTemplate('form');  ?>
									</div>
								</div>
							</div>
						<?php endif; ?>
					</div>
					<!-- End Show form contact -->
				</div>
			</div>
		</div>
	<?php endif; ?>
	<!-- End Override -->

	<?php if ($accordionStarted) : ?>
		<?php echo HTMLHelper::_('bootstrap.endAccordion'); ?>
	<?php elseif ($tabSetStarted) : ?>
		<?php echo HTMLHelper::_('bootstrap.endTabSet'); ?>
	<?php endif; ?>

	<?php if (!empty($this->item->event)) echo $this->item->event->afterDisplayContent; ?>
</div>