You've already forked joomla_test
first commit
This commit is contained in:
251
templates/as002036free/html/com_contact/contact/default.php
Normal file
251
templates/as002036free/html/com_contact/contact/default.php
Normal file
@ -0,0 +1,251 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_contact
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$cparams = JComponentHelper::getParams('com_media');
|
||||
|
||||
jimport('joomla.html.html.bootstrap');
|
||||
?>
|
||||
<div class="page page-contact page-contact__<?php echo $this->pageclass_sfx?>">
|
||||
|
||||
<!-- Heading -->
|
||||
<?php if ($this->params->get('show_page_heading')) : ?>
|
||||
<div class="page_header">
|
||||
<h1><?php echo $this->escape($this->params->get('page_heading')); ?></h1>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Contact name -->
|
||||
<?php if ($this->contact->name && $this->params->get('show_name')) : ?>
|
||||
<div clas="contact_name">
|
||||
<h2>
|
||||
<?php if ($this->item->published == 0): ?>
|
||||
<span class="label label-warning"><?php echo JText::_('JUNPUBLISHED'); ?></span>
|
||||
<?php endif; ?>
|
||||
<?php echo $this->contact->name; ?>
|
||||
</h2>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Category -->
|
||||
<?php if ($this->params->get('show_contact_category') == 'show_no_link') : ?>
|
||||
<div class="contact_category">
|
||||
<h3>
|
||||
<?php echo $this->contact->category_title; ?>
|
||||
</h3>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Category With link -->
|
||||
<?php if ($this->params->get('show_contact_category') == 'show_with_link') : ?>
|
||||
<?php $contactLink = ContactHelperRoute::getCategoryRoute($this->contact->catid); ?>
|
||||
<div class="contact_category contact_category__link">
|
||||
<h3>
|
||||
<a href="<?php echo $contactLink; ?>">
|
||||
<?php echo $this->escape($this->contact->category_title); ?>
|
||||
</a>
|
||||
</h3>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Contact list -->
|
||||
<?php if ($this->params->get('show_contact_list') && count($this->contacts) > 1) : ?>
|
||||
<form action="#" method="get" name="selectForm" id="selectForm">
|
||||
<?php echo JText::_('COM_CONTACT_SELECT_CONTACT'); ?>
|
||||
<?php echo JHtml::_('select.genericlist', $this->contacts, 'id', 'class="inputbox" onchange="document.location.href = this.value"', 'link', 'name', $this->contact->link);?>
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- TABS Contact details -->
|
||||
<?php if ($this->params->get('presentation_style') == 'tabs'):?>
|
||||
<ul class="nav nav-tabs" id="myTab">
|
||||
<li><a data-toggle="tab" href="#basic-details"><?php echo JText::_('COM_CONTACT_DETAILS'); ?></a></li>
|
||||
<?php if ($this->params->get('show_email_form') && ($this->contact->email_to || $this->contact->user_id)) : ?><li><a data-toggle="tab" href="#display-form"><?php echo JText::_('COM_CONTACT_EMAIL_FORM'); ?></a></li><?php endif; ?>
|
||||
<?php if ($this->params->get('show_links')) : ?><li><a data-toggle="tab" href="#display-links"><?php echo JText::_('COM_CONTACT_LINKS'); ?></a></li><?php endif; ?>
|
||||
<?php if ($this->params->get('show_articles') && $this->contact->user_id && $this->contact->articles) : ?><li><a data-toggle="tab" href="#display-articles"><?php echo JText::_('JGLOBAL_ARTICLES'); ?></a></li><?php endif; ?>
|
||||
<?php if ($this->params->get('show_profile') && $this->contact->user_id && JPluginHelper::isEnabled('user', 'profile')) : ?><li><a data-toggle="tab" href="#display-profile"><?php echo JText::_('COM_CONTACT_PROFILE'); ?></a></li><?php endif; ?>
|
||||
<?php if ($this->contact->misc && $this->params->get('show_misc')) : ?><li><a data-toggle="tab" href="#display-misc"><?php echo JText::_('COM_CONTACT_OTHER_INFORMATION'); ?></a></li><?php endif; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('presentation_style') == 'sliders'): ?>
|
||||
<?php echo JHtml::_('bootstrap.startAccordion', 'slide-contact', array('active' => 'basic-details')); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'tabs'): ?>
|
||||
<?php echo JHtml::_('bootstrap.startPane', 'myTab', array('active' => 'basic-details')); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('presentation_style') == 'sliders'): ?>
|
||||
<?php echo JHtml::_('bootstrap.addSlide', 'slide-contact', JText::_('COM_CONTACT_DETAILS'), 'basic-details'); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'tabs'): ?>
|
||||
<?php echo JHtml::_('bootstrap.addPanel', 'myTab', 'basic-details'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<!-- PLAIN Contact Details -->
|
||||
<?php if ($this->params->get('presentation_style') == 'plain'):?>
|
||||
<?php /* echo '<h3>'. JText::_('COM_CONTACT_DETAILS').'</h3>'; */ ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->contact->image && $this->params->get('show_image')) : ?>
|
||||
<div class="thumbnail pull-right">
|
||||
<?php echo JHtml::_('image', $this->contact->image, JText::_('COM_CONTACT_IMAGE_DETAILS'), array('align' => 'middle')); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->contact->con_position && $this->params->get('show_position')) : ?>
|
||||
<dl class="contact-position dl-horizontal">
|
||||
<dd>
|
||||
<?php echo $this->contact->con_position; ?>
|
||||
</dd>
|
||||
</dl>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') !== 'plain'):?>
|
||||
<?php echo $this->loadTemplate('address'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('presentation_style') == 'sliders'): ?>
|
||||
<?php echo JHtml::_('bootstrap.endSlide'); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'tabs'): ?>
|
||||
<?php echo JHtml::_('bootstrap.endPanel'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- CONTACT FORM -->
|
||||
|
||||
<?php if ($this->params->get('show_contact_list')) : ?>
|
||||
|
||||
<?php if ($this->params->get('presentation_style') == 'sliders'): ?>
|
||||
<?php echo JHtml::_('bootstrap.addSlide', 'slide-contact', JText::_('COM_CONTACT_EMAIL_FORM'), 'display-form'); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'tabs'): ?>
|
||||
<?php echo JHtml::_('bootstrap.addPanel', 'myTab', 'display-form'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Form -->
|
||||
|
||||
<!-- Misc -->
|
||||
<?php if ($this->contact->misc && $this->params->get('show_misc')) : ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'plain'):?>
|
||||
|
||||
<div class="contact_misc">
|
||||
<?php echo $this->contact->misc; ?>
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Contact details -->
|
||||
<?php if ($this->params->get('presentation_style') == 'plain'):?>
|
||||
<br />
|
||||
<div class="row-fluid">
|
||||
<?php echo $this->loadTemplate('address'); ?>
|
||||
</div>
|
||||
<br />
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $this->loadTemplate('form'); ?>
|
||||
|
||||
<?php if ($this->params->get('presentation_style') == 'sliders'): ?>
|
||||
<?php echo JHtml::_('bootstrap.endSlide'); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'tabs'): ?>
|
||||
<?php echo JHtml::_('bootstrap.endPanel'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<!-- MISC INFO -->
|
||||
|
||||
<?php if ($this->contact->misc && $this->params->get('show_misc')) : ?>
|
||||
|
||||
<?php if ($this->params->get('presentation_style') == 'sliders'): ?>
|
||||
<?php echo JHtml::_('bootstrap.addSlide', 'slide-contact', JText::_('COM_CONTACT_OTHER_INFORMATION'), 'display-misc'); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'tabs'): ?>
|
||||
<?php echo JHtml::_('bootstrap.addPanel', 'myTab', 'display-misc'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('presentation_style') !== 'plain'):?>
|
||||
<?php echo $this->contact->misc; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('presentation_style') == 'sliders'): ?>
|
||||
<?php echo JHtml::_('bootstrap.endSlide'); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'tabs'): ?>
|
||||
<?php echo JHtml::_('bootstrap.endPanel'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
|
||||
|
||||
<?php if ($this->params->get('show_links')) : ?>
|
||||
<?php echo $this->loadTemplate('links'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_articles') && $this->contact->user_id && $this->contact->articles) : ?>
|
||||
|
||||
<?php if ($this->params->get('presentation_style') == 'sliders'): ?>
|
||||
<?php echo JHtml::_('bootstrap.addSlide', 'slide-contact', JText::_('JGLOBAL_ARTICLES'), 'display-articles'); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'tabs'): ?>
|
||||
<?php echo JHtml::_('bootstrap.addPanel', 'myTab', 'display-articles'); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'plain'):?>
|
||||
<?php echo '<h3>'. JText::_('JGLOBAL_ARTICLES').'</h3>'; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $this->loadTemplate('articles'); ?>
|
||||
|
||||
<?php if ($this->params->get('presentation_style') == 'sliders'): ?>
|
||||
<?php echo JHtml::_('bootstrap.endSlide'); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'tabs'): ?>
|
||||
<?php echo JHtml::_('bootstrap.endPanel'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_profile') && $this->contact->user_id && JPluginHelper::isEnabled('user', 'profile')) : ?>
|
||||
|
||||
<?php if ($this->params->get('presentation_style') == 'sliders'): ?>
|
||||
<?php echo JHtml::_('bootstrap.addSlide', 'slide-contact', JText::_('COM_CONTACT_PROFILE'), 'display-profile'); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'tabs'): ?>
|
||||
<?php echo JHtml::_('bootstrap.addPanel', 'myTab', 'display-profile'); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'plain'):?>
|
||||
<?php echo '<h3>'. JText::_('COM_CONTACT_PROFILE').'</h3>'; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $this->loadTemplate('profile'); ?>
|
||||
|
||||
<?php if ($this->params->get('presentation_style') == 'sliders'): ?>
|
||||
<?php echo JHtml::_('bootstrap.endSlide'); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'tabs'): ?>
|
||||
<?php echo JHtml::_('bootstrap.endPanel'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php if ($this->params->get('presentation_style') == 'sliders'): ?>
|
||||
<?php echo JHtml::_('bootstrap.endAccordion'); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'tabs'): ?>
|
||||
<?php echo JHtml::_('bootstrap.endPane'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
@ -0,0 +1,107 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_contact
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* marker_class: Class based on the selection of text, none, or #__
|
||||
* jicon-text, jicon-none, jicon-icon
|
||||
*/
|
||||
?>
|
||||
|
||||
|
||||
<div class="contact_details">
|
||||
|
||||
<?php if (($this->params->get('address_check') > 0) &&
|
||||
($this->contact->address || $this->contact->suburb || $this->contact->state || $this->contact->country || $this->contact->postcode)) : ?>
|
||||
|
||||
<div class="span6">
|
||||
|
||||
<?php if ($this->params->get('address_check') > 0) : ?>
|
||||
<i class="icons-marker icon-home"></i>
|
||||
<?php endif; ?>
|
||||
<div class="contact_address">
|
||||
<?php if ($this->contact->address && $this->params->get('show_street_address')) : ?>
|
||||
<?php echo $this->contact->address; ?><br/>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->contact->suburb && $this->params->get('show_suburb')) : ?>
|
||||
<?php echo $this->contact->suburb; ?><br/>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->contact->state && $this->params->get('show_state')) : ?>
|
||||
<?php echo $this->contact->state; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->contact->postcode && $this->params->get('show_postcode')) : ?>
|
||||
<?php echo $this->contact->postcode; ?><br/>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->contact->country && $this->params->get('show_country')) : ?>
|
||||
<?php echo $this->contact->country; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="span6">
|
||||
<?php if ($this->contact->email_to && $this->params->get('show_email')) : ?>
|
||||
|
||||
<i class="icons-marker icon-envelope"></i>
|
||||
<div class="contact_details_emailto">
|
||||
<?php echo $this->contact->email_to; ?>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->contact->telephone && $this->params->get('show_telephone')) : ?>
|
||||
<i class="icons-marker icon-phone"></i>
|
||||
<div class="contact_details_telephone">
|
||||
<?php echo nl2br($this->contact->telephone); ?>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->contact->fax && $this->params->get('show_fax')) : ?>
|
||||
<i class="icons-marker icon-print"></i>
|
||||
<div class="contact_details_fax">
|
||||
<?php echo nl2br($this->contact->fax); ?>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->contact->mobile && $this->params->get('show_mobile')) :?>
|
||||
<i class="icons-marker icon-mobile"></i>
|
||||
<div class="contact_details_mobile">
|
||||
<?php echo nl2br($this->contact->mobile); ?>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->contact->webpage && $this->params->get('show_webpage')) : ?>
|
||||
<i class="icons-marker icon-list-alt"></i>
|
||||
<div class="contact_details_webpage">
|
||||
<a href="<?php echo $this->contact->webpage; ?>" target="_blank">
|
||||
<?php echo $this->contact->webpage; ?></a>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<?php if ($this->params->get('allow_vcard')) : ?>
|
||||
<div class="contact_vcard">
|
||||
<i class="muted"><?php echo JText::_('COM_CONTACT_DOWNLOAD_INFORMATION_AS');?>
|
||||
<a href="<?php echo JRoute::_('index.php?option=com_contact&view=contact&id='.$this->contact->id . '&format=vcf'); ?>">
|
||||
<?php echo JText::_('COM_CONTACT_VCARD');?></a>
|
||||
</i>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
@ -0,0 +1,88 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_contact
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
JHtml::_('behavior.keepalive');
|
||||
JHtml::_('behavior.formvalidation');
|
||||
JHtml::_('behavior.tooltip');
|
||||
if (isset($this->error)) : ?>
|
||||
<div class="contact-error">
|
||||
<?php echo $this->error; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="contact_form">
|
||||
<form id="contact-form" action="<?php echo JRoute::_('index.php'); ?>" method="post" class="form-validate">
|
||||
<fieldset>
|
||||
<!-- <legend></legend> -->
|
||||
<p class="muted">
|
||||
<i class="muted"><?php echo JText::_('COM_CONTACT_FORM_LABEL'); ?></i>
|
||||
</p>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<div class="row-fluid">
|
||||
<div class="span5">
|
||||
<?php echo $this->form->getLabel('contact_name'); ?>
|
||||
<div class="controls"><?php echo $this->form->getInput('contact_name'); ?></div>
|
||||
|
||||
<?php echo $this->form->getLabel('contact_email'); ?>
|
||||
<div class="controls"><?php echo $this->form->getInput('contact_email'); ?></div>
|
||||
|
||||
<?php echo $this->form->getLabel('contact_subject'); ?>
|
||||
<div class="controls"><?php echo $this->form->getInput('contact_subject'); ?></div>
|
||||
</div>
|
||||
|
||||
<div class="span7">
|
||||
<?php echo $this->form->getLabel('contact_message'); ?>
|
||||
<div class="controls"><?php echo $this->form->getInput('contact_message'); ?></div>
|
||||
<?php //Dynamically load any additional fields from plugins. ?>
|
||||
<?php foreach ($this->form->getFieldsets() as $fieldset): ?>
|
||||
<?php if ($fieldset->name != 'contact'):?>
|
||||
<?php $fields = $this->form->getFieldset($fieldset->name);?>
|
||||
<?php foreach($fields as $field): ?>
|
||||
<div class="control-group">
|
||||
<?php if ($field->hidden): ?>
|
||||
<div class="controls">
|
||||
<?php echo $field->input;?>
|
||||
</div>
|
||||
<?php else:?>
|
||||
<div class="control-label">
|
||||
<?php echo $field->label; ?>
|
||||
<?php if (!$field->required && $field->type != "Spacer"): ?>
|
||||
<span class="optional"><?php echo JText::_('COM_CONTACT_OPTIONAL');?></span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="controls"><?php echo $field->input;?></div>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
<?php endforeach;?>
|
||||
<?php endif ?>
|
||||
<?php endforeach;?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="controls">
|
||||
|
||||
<button class="btn validate btn-primary pull-right" type="submit"><?php echo JText::_('COM_CONTACT_CONTACT_SEND'); ?></button>
|
||||
|
||||
<?php if ($this->params->get('show_email_copy')) { ?>
|
||||
<div class="contact_email-copy pull-right">
|
||||
<?php echo $this->form->getLabel('contact_email_copy'); ?>
|
||||
<span class="checkbox-radio-wrap__inline"><?php echo $this->form->getInput('contact_email_copy'); ?></span>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<input type="hidden" name="option" value="com_contact" />
|
||||
<input type="hidden" name="task" value="contact.submit" />
|
||||
<input type="hidden" name="return" value="<?php echo $this->return_page;?>" />
|
||||
<input type="hidden" name="id" value="<?php echo $this->contact->slug; ?>" />
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
|
||||
<iframe
|
||||
width="550"
|
||||
height="352"
|
||||
frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/?ie=UTF8&t=m&ll=40.579591,-73.970668&spn=0.011082,0.023561&z=15&output=embed"></iframe>
|
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
1
templates/as002036free/html/com_contact/index.html
Normal file
1
templates/as002036free/html/com_contact/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
Reference in New Issue
Block a user