You've already forked joomla_test
first commit
This commit is contained in:
40
templates/beez3/html/com_contact/categories/default.php
Normal file
40
templates/beez3/html/com_contact/categories/default.php
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_contact
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers');
|
||||
|
||||
JHtml::_('behavior.caption');
|
||||
?>
|
||||
<div class="categories-list<?php echo $this->pageclass_sfx;?>">
|
||||
<?php if ($this->params->get('show_page_heading')) : ?>
|
||||
<h1>
|
||||
<?php echo $this->escape($this->params->get('page_heading')); ?>
|
||||
</h1>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('show_base_description')) : ?>
|
||||
<?php //If there is a description in the menu parameters use that; ?>
|
||||
<?php if ($this->params->get('categories_description')) : ?>
|
||||
<div class="category-desc base-desc">
|
||||
<?php echo JHtml::_('content.prepare', $this->params->get('categories_description'), '', 'com_contact.categories'); ?>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<?php //Otherwise get one from the database if it exists. ?>
|
||||
<?php if ($this->parent->description) : ?>
|
||||
<div class="category-desc base-desc">
|
||||
<?php echo JHtml::_('content.prepare', $this->parent->description, '', 'com_contact.categories'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
echo $this->loadTemplate('items');
|
||||
?>
|
||||
</div>
|
@ -0,0 +1,57 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_contact
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
$class = ' class="first"';
|
||||
if (count($this->items[$this->parent->id]) > 0 && $this->maxLevelcat != 0) :
|
||||
?>
|
||||
<ul>
|
||||
<?php foreach ($this->items[$this->parent->id] as $id => $item) : ?>
|
||||
<?php
|
||||
if ($this->params->get('show_empty_categories_cat') || $item->numitems || count($item->getChildren())) :
|
||||
if (!isset($this->items[$this->parent->id][$id + 1]))
|
||||
{
|
||||
$class = ' class="last"';
|
||||
}
|
||||
?>
|
||||
<li<?php echo $class; ?>>
|
||||
<?php $class = ''; ?>
|
||||
<span class="item-title"><a href="<?php echo JRoute::_(ContactHelperRoute::getCategoryRoute($item->id));?>">
|
||||
<?php echo $this->escape($item->title); ?></a>
|
||||
</span>
|
||||
|
||||
<?php if ($this->params->get('show_subcat_desc_cat') == 1) :?>
|
||||
<?php if ($item->description) : ?>
|
||||
<div class="category-desc">
|
||||
<?php echo JHtml::_('content.prepare', $item->description, '', 'com_contact.categories'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_cat_items_cat') == 1) :?>
|
||||
<dl><dt>
|
||||
<?php echo JText::_('COM_CONTACT_COUNT'); ?></dt>
|
||||
<dd><?php echo $item->numitems; ?></dd>
|
||||
</dl>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (count($item->getChildren()) > 0) :
|
||||
$this->items[$item->id] = $item->getChildren();
|
||||
$this->parent = $item;
|
||||
$this->maxLevelcat--;
|
||||
echo $this->loadTemplate('items');
|
||||
$this->parent = $item->getParent();
|
||||
$this->maxLevelcat++;
|
||||
endif; ?>
|
||||
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
1
templates/beez3/html/com_contact/categories/index.html
Normal file
1
templates/beez3/html/com_contact/categories/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
44
templates/beez3/html/com_contact/category/default.php
Normal file
44
templates/beez3/html/com_contact/category/default.php
Normal file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_contact
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
<div class="contact-category<?php echo $this->pageclass_sfx;?>">
|
||||
<?php if ($this->params->get('show_page_heading')) : ?>
|
||||
<h1>
|
||||
<?php echo $this->escape($this->params->get('page_heading')); ?>
|
||||
</h1>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('show_category_title', 1)) : ?>
|
||||
<h2>
|
||||
<?php echo JHtml::_('content.prepare', $this->category->title, '', 'com_contact.category'); ?>
|
||||
</h2>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->def('show_description', 1) || $this->params->def('show_description_image', 1)) : ?>
|
||||
<div class="category-desc">
|
||||
<?php if ($this->params->get('show_description_image') && $this->category->getParams()->get('image')) : ?>
|
||||
<img src="<?php echo $this->category->getParams()->get('image'); ?>"/>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('show_description') && $this->category->description) : ?>
|
||||
<?php echo JHtml::_('content.prepare', $this->category->description, '', 'com_contact.category'); ?>
|
||||
<?php endif; ?>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $this->loadTemplate('items'); ?>
|
||||
|
||||
<?php if (!empty($this->children[$this->category->id])&& $this->maxLevel != 0) : ?>
|
||||
<div class="cat-children">
|
||||
<h3><?php echo JText::_('JGLOBAL_SUBCATEGORIES'); ?></h3>
|
||||
<?php echo $this->loadTemplate('children'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
@ -0,0 +1,55 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_contact
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
$class = ' class="first"';
|
||||
if (count($this->children[$this->category->id]) > 0 && $this->maxLevel != 0) :
|
||||
?>
|
||||
<ul>
|
||||
<?php foreach ($this->children[$this->category->id] as $id => $child) : ?>
|
||||
<?php
|
||||
if ($this->params->get('show_empty_categories') || $child->numitems || count($child->getChildren())) :
|
||||
if (!isset($this->children[$this->category->id][$id + 1]))
|
||||
{
|
||||
$class = ' class="last"';
|
||||
}
|
||||
?>
|
||||
<li<?php echo $class; ?>>
|
||||
<?php $class = ''; ?>
|
||||
<span class="item-title"><a href="<?php echo JRoute::_(ContactHelperRoute::getCategoryRoute($child->id));?>">
|
||||
<?php echo $this->escape($child->title); ?></a>
|
||||
</span>
|
||||
|
||||
<?php if ($this->params->get('show_subcat_desc') == 1) :?>
|
||||
<?php if ($child->description) : ?>
|
||||
<div class="category-desc">
|
||||
<?php echo JHtml::_('content.prepare', $child->description, '', 'com_contact.category'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_cat_items') == 1) :?>
|
||||
<dl><dt>
|
||||
<?php echo JText::_('COM_CONTACT_CAT_NUM'); ?></dt>
|
||||
<dd><?php echo $child->numitems; ?></dd>
|
||||
</dl>
|
||||
<?php endif; ?>
|
||||
<?php if (count($child->getChildren()) > 0 ) :
|
||||
$this->children[$child->id] = $child->getChildren();
|
||||
$this->category = $child;
|
||||
$this->maxLevel--;
|
||||
echo $this->loadTemplate('children');
|
||||
$this->category = $child->getParent();
|
||||
$this->maxLevel++;
|
||||
endif; ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif;
|
171
templates/beez3/html/com_contact/category/default_items.php
Normal file
171
templates/beez3/html/com_contact/category/default_items.php
Normal file
@ -0,0 +1,171 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_contact
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 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.framework');
|
||||
|
||||
$listOrder = $this->escape($this->state->get('list.ordering'));
|
||||
$listDirn = $this->escape($this->state->get('list.direction'));
|
||||
?>
|
||||
<?php if (empty($this->items)) : ?>
|
||||
<p> <?php echo JText::_('COM_CONTACT_NO_ARTICLES'); ?> </p>
|
||||
<?php else : ?>
|
||||
|
||||
<form action="<?php echo htmlspecialchars(JUri::getInstance()->toString()); ?>" method="post" name="adminForm" id="adminForm">
|
||||
<?php if ($this->params->get('show_pagination_limit')) : ?>
|
||||
<fieldset class="filters">
|
||||
<legend class="hidelabeltxt"><?php echo JText::_('JGLOBAL_FILTER_LABEL'); ?></legend>
|
||||
|
||||
<div class="display-limit">
|
||||
<?php echo JText::_('JGLOBAL_DISPLAY_NUM'); ?> 
|
||||
<?php echo $this->pagination->getLimitBox(); ?>
|
||||
</div>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
<table class="category">
|
||||
<?php if ($this->params->get('show_headings')) : ?>
|
||||
<thead><tr>
|
||||
|
||||
<th class="item-title">
|
||||
<?php echo JHtml::_('grid.sort', 'COM_CONTACT_CONTACT_EMAIL_NAME_LABEL', 'a.name', $listDirn, $listOrder); ?>
|
||||
</th>
|
||||
<?php if ($this->params->get('show_position_headings')) : ?>
|
||||
<th class="item-position">
|
||||
<?php echo JHtml::_('grid.sort', 'COM_CONTACT_POSITION', 'a.con_position', $listDirn, $listOrder); ?>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('show_email_headings')) : ?>
|
||||
<th class="item-email">
|
||||
<?php echo JText::_('JGLOBAL_EMAIL'); ?>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('show_telephone_headings')) : ?>
|
||||
<th class="item-phone">
|
||||
<?php echo JText::_('COM_CONTACT_TELEPHONE'); ?>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_mobile_headings')) : ?>
|
||||
<th class="item-phone">
|
||||
<?php echo JText::_('COM_CONTACT_MOBILE'); ?>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_fax_headings')) : ?>
|
||||
<th class="item-phone">
|
||||
<?php echo JText::_('COM_CONTACT_FAX'); ?>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_suburb_headings')) : ?>
|
||||
<th class="item-suburb">
|
||||
<?php echo JHtml::_('grid.sort', 'COM_CONTACT_SUBURB', 'a.suburb', $listDirn, $listOrder); ?>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_state_headings')) : ?>
|
||||
<th class="item-state">
|
||||
<?php echo JHtml::_('grid.sort', 'COM_CONTACT_STATE', 'a.state', $listDirn, $listOrder); ?>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_country_headings')) : ?>
|
||||
<th class="item-state">
|
||||
<?php echo JHtml::_('grid.sort', 'COM_CONTACT_COUNTRY', 'a.country', $listDirn, $listOrder); ?>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<?php endif; ?>
|
||||
|
||||
<tbody>
|
||||
<?php foreach ($this->items as $i => $item) : ?>
|
||||
<?php if ($this->items[$i]->published == 0) : ?>
|
||||
<tr class="system-unpublished cat-list-row<?php echo $i % 2; ?>">
|
||||
<?php else: ?>
|
||||
<tr class="cat-list-row<?php echo $i % 2; ?>" >
|
||||
<?php endif; ?>
|
||||
|
||||
<td class="item-title">
|
||||
<a href="<?php echo JRoute::_(ContactHelperRoute::getContactRoute($item->slug, $item->catid)); ?>">
|
||||
<?php echo $item->name; ?></a>
|
||||
</td>
|
||||
|
||||
<?php if ($this->params->get('show_position_headings')) : ?>
|
||||
<td class="item-position">
|
||||
<?php echo $item->con_position; ?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_email_headings')) : ?>
|
||||
<td class="item-email">
|
||||
<?php echo $item->email_to; ?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_telephone_headings')) : ?>
|
||||
<td class="item-phone">
|
||||
<?php echo $item->telephone; ?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_mobile_headings')) : ?>
|
||||
<td class="item-phone">
|
||||
<?php echo $item->mobile; ?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_fax_headings')) : ?>
|
||||
<td class="item-phone">
|
||||
<?php echo $item->fax; ?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_suburb_headings')) : ?>
|
||||
<td class="item-suburb">
|
||||
<?php echo $item->suburb; ?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_state_headings')) : ?>
|
||||
<td class="item-state">
|
||||
<?php echo $item->state; ?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_country_headings')) : ?>
|
||||
<td class="item-state">
|
||||
<?php echo $item->country; ?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?php if ($this->params->get('show_pagination')) : ?>
|
||||
<div class="pagination">
|
||||
<?php if ($this->params->def('show_pagination_results', 1)) : ?>
|
||||
<p class="counter">
|
||||
<?php echo $this->pagination->getPagesCounter(); ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
<?php echo $this->pagination->getPagesLinks(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div>
|
||||
<input type="hidden" name="filter_order" value="<?php echo $listOrder; ?>" />
|
||||
<input type="hidden" name="filter_order_Dir" value="<?php echo $listDirn; ?>" />
|
||||
</div>
|
||||
</form>
|
||||
<?php endif; ?>
|
1
templates/beez3/html/com_contact/category/index.html
Normal file
1
templates/beez3/html/com_contact/category/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
198
templates/beez3/html/com_contact/contact/default.php
Normal file
198
templates/beez3/html/com_contact/contact/default.php
Normal file
@ -0,0 +1,198 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_contact
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 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');
|
||||
?>
|
||||
<div class="contact<?php echo $this->pageclass_sfx?>">
|
||||
<?php if ($this->params->get('show_page_heading')) : ?>
|
||||
<h1>
|
||||
<?php echo $this->escape($this->params->get('page_heading')); ?>
|
||||
</h1>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->contact->name && $this->params->get('show_name')) : ?>
|
||||
<div class="page-header">
|
||||
<h2>
|
||||
<span class="contact-name"><?php echo $this->contact->name; ?></span>
|
||||
</h2>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('show_contact_category') == 'show_no_link') : ?>
|
||||
<h3>
|
||||
<span class="contact-category"><?php echo $this->contact->category_title; ?></span>
|
||||
</h3>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('show_contact_category') == 'show_with_link') : ?>
|
||||
<?php $contactLink = ContactHelperRoute::getCategoryRoute($this->contact->catid);?>
|
||||
<h3>
|
||||
<span class="contact-category"><a href="<?php echo $contactLink; ?>">
|
||||
<?php echo $this->escape($this->contact->category_title); ?></a>
|
||||
</span>
|
||||
</h3>
|
||||
<?php endif; ?>
|
||||
<?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; ?>
|
||||
|
||||
<?php if ($this->params->get('show_tags', 1) && !empty($this->item->tags)) : ?>
|
||||
<?php $this->item->tagLayout = new JLayoutFile('joomla.content.tags'); ?>
|
||||
<?php echo $this->item->tagLayout->render($this->item->tags->itemTags); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('presentation_style') == 'sliders'):?>
|
||||
<div class="accordion" id="accordionContact">
|
||||
<div class="accordion-group">
|
||||
<div class="accordion-heading">
|
||||
<a class="accordion-toggle" data-toggle="collapse" data-parent="accordionContact" href="#basic-details">
|
||||
<?php echo JText::_('COM_CONTACT_DETAILS');?>
|
||||
</a>
|
||||
</div>
|
||||
<div id="basic-details" class="accordion-body collapse in">
|
||||
<div class="accordion-inner">
|
||||
<?php endif; ?>
|
||||
<?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 echo $this->loadTemplate('address'); ?>
|
||||
|
||||
<?php if ($this->params->get('allow_vcard')) : ?>
|
||||
<?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>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'sliders'):?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('show_email_form') && ($this->contact->email_to || $this->contact->user_id)) : ?>
|
||||
|
||||
<?php if ($this->params->get('presentation_style') == 'sliders'):?>
|
||||
<div class="accordion-group">
|
||||
<div class="accordion-heading">
|
||||
<a class="accordion-toggle" data-toggle="collapse" data-parent="accordionContact" href="#display-form">
|
||||
<?php echo JText::_('COM_CONTACT_EMAIL_FORM');?>
|
||||
</a>
|
||||
</div>
|
||||
<div id="display-form" class="accordion-body collapse">
|
||||
<div class="accordion-inner">
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'plain'):?>
|
||||
<?php echo '<h3>'. JText::_('COM_CONTACT_EMAIL_FORM').'</h3>'; ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $this->loadTemplate('form'); ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'sliders'):?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?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'):?>
|
||||
<div class="accordion-group">
|
||||
<div class="accordion-heading">
|
||||
<a class="accordion-toggle" data-toggle="collapse" data-parent="accordionContact" href="#display-articles">
|
||||
<?php echo JText::_('JGLOBAL_ARTICLES');?>
|
||||
</a>
|
||||
</div>
|
||||
<div id="display-articles" class="accordion-body collapse">
|
||||
<div class="accordion-inner">
|
||||
<?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'):?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?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'):?>
|
||||
<div class="accordion-group">
|
||||
<div class="accordion-heading">
|
||||
<a class="accordion-toggle" data-toggle="collapse" data-parent="accordionContact" href="#display-profile">
|
||||
<?php echo JText::_('COM_CONTACT_PROFILE');?>
|
||||
</a>
|
||||
</div>
|
||||
<div id="display-profile" class="accordion-body collapse">
|
||||
<div class="accordion-inner">
|
||||
<?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'):?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->contact->misc && $this->params->get('show_misc')) : ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'sliders'):?>
|
||||
<div class="accordion-group">
|
||||
<div class="accordion-heading">
|
||||
<a class="accordion-toggle" data-toggle="collapse" data-parent="accordionContact" href="#display-misc">
|
||||
<?php echo JText::_('COM_CONTACT_OTHER_INFORMATION');?>
|
||||
</a>
|
||||
</div>
|
||||
<div id="display-misc" class="accordion-body collapse">
|
||||
<div class="accordion-inner">
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'plain'):?>
|
||||
<?php echo '<h3>'. JText::_('COM_CONTACT_OTHER_INFORMATION').'</h3>'; ?>
|
||||
<?php endif; ?>
|
||||
<div class="contact-miscinfo">
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
<span class="<?php echo $this->params->get('marker_class'); ?>">
|
||||
<?php echo $this->params->get('marker_misc'); ?>
|
||||
</span>
|
||||
</dt>
|
||||
<dd>
|
||||
<span class="contact-misc">
|
||||
<?php echo $this->contact->misc; ?>
|
||||
</span>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<?php if ($this->params->get('presentation_style') == 'sliders'):?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'sliders'):?>
|
||||
</div>
|
||||
<?php endif; ?>
|
119
templates/beez3/html/com_contact/contact/default_address.php
Normal file
119
templates/beez3/html/com_contact/contact/default_address.php
Normal file
@ -0,0 +1,119 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_contact
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 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 icons
|
||||
* jicon-text, jicon-none, jicon-icon
|
||||
*/
|
||||
?>
|
||||
<dl class="contact-address dl-horizontal">
|
||||
<?php if (($this->params->get('address_check') > 0) && ($this->contact->address || $this->contact->suburb || $this->contact->state || $this->contact->country || $this->contact->postcode)) : ?>
|
||||
<?php if ($this->params->get('address_check') > 0) : ?>
|
||||
<dt>
|
||||
<span class="<?php echo $this->params->get('marker_class'); ?>" >
|
||||
<?php echo $this->params->get('marker_address'); ?>
|
||||
</span>
|
||||
</dt>
|
||||
<dd>
|
||||
<address>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->contact->address && $this->params->get('show_street_address')) : ?>
|
||||
<span class="contact-street">
|
||||
<?php echo nl2br($this->contact->address); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->contact->suburb && $this->params->get('show_suburb')) : ?>
|
||||
<span class="contact-suburb">
|
||||
<?php echo $this->contact->suburb; ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->contact->state && $this->params->get('show_state')) : ?>
|
||||
<span class="contact-state">
|
||||
<?php echo $this->contact->state; ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->contact->postcode && $this->params->get('show_postcode')) : ?>
|
||||
<span class="contact-postcode">
|
||||
<?php echo $this->contact->postcode; ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->contact->country && $this->params->get('show_country')) : ?>
|
||||
<span class="contact-country">
|
||||
<?php echo $this->contact->country; ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('address_check') > 0) : ?>
|
||||
</address>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->contact->email_to && $this->params->get('show_email')) : ?>
|
||||
<dt>
|
||||
<span class="<?php echo $this->params->get('marker_class'); ?>" >
|
||||
<?php echo $this->params->get('marker_email'); ?>
|
||||
</span>
|
||||
</dt>
|
||||
<dd>
|
||||
<span class="contact-emailto">
|
||||
<?php echo $this->contact->email_to; ?>
|
||||
</span>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->contact->telephone && $this->params->get('show_telephone')) : ?>
|
||||
<dt>
|
||||
<span class="<?php echo $this->params->get('marker_class'); ?>" >
|
||||
<?php echo $this->params->get('marker_telephone'); ?>
|
||||
</span>
|
||||
</dt>
|
||||
<dd>
|
||||
<span class="contact-telephone">
|
||||
<?php echo nl2br($this->contact->telephone); ?>
|
||||
</span>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->contact->fax && $this->params->get('show_fax')) : ?>
|
||||
<dt>
|
||||
<span class="<?php echo $this->params->get('marker_class'); ?>" >
|
||||
<?php echo $this->params->get('marker_fax'); ?>
|
||||
</span>
|
||||
</dt>
|
||||
<dd>
|
||||
<span class="contact-fax">
|
||||
<?php echo nl2br($this->contact->fax); ?>
|
||||
</span>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->contact->mobile && $this->params->get('show_mobile')) :?>
|
||||
<dt>
|
||||
<span class="<?php echo $this->params->get('marker_class'); ?>" >
|
||||
<?php echo $this->params->get('marker_mobile'); ?>
|
||||
</span>
|
||||
</dt>
|
||||
<dd>
|
||||
<span class="contact-mobile">
|
||||
<?php echo nl2br($this->contact->mobile); ?>
|
||||
</span>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->contact->webpage && $this->params->get('show_webpage')) : ?>
|
||||
<dt>
|
||||
<span class="<?php echo $this->params->get('marker_class'); ?>" >
|
||||
</span>
|
||||
</dt>
|
||||
<dd>
|
||||
<span class="contact-webpage">
|
||||
<a href="<?php echo $this->contact->webpage; ?>" target="_blank">
|
||||
<?php echo $this->contact->webpage; ?></a>
|
||||
</span>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
</dl>
|
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_contact
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_SITE . '/components/com_content/helpers/route.php';
|
||||
|
||||
?>
|
||||
<?php if ($this->params->get('show_articles')) : ?>
|
||||
<div class="contact-articles">
|
||||
|
||||
<ol>
|
||||
<?php foreach ($this->item->articles as $article) : ?>
|
||||
<li>
|
||||
<?php echo JHtml::_('link', JRoute::_(ContentHelperRoute::getArticleRoute($article->slug, $article->catslug)), htmlspecialchars($article->title, ENT_COMPAT, 'UTF-8')); ?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
</div>
|
||||
<?php endif; ?>
|
79
templates/beez3/html/com_contact/contact/default_form.php
Normal file
79
templates/beez3/html/com_contact/contact/default_form.php
Normal file
@ -0,0 +1,79 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_contact
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 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');
|
||||
|
||||
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 form-horizontal">
|
||||
<fieldset>
|
||||
<legend><?php echo JText::_('COM_CONTACT_FORM_LABEL'); ?></legend>
|
||||
<div class="control-group">
|
||||
<div class="control-label"><?php echo $this->form->getLabel('contact_name'); ?></div>
|
||||
<div class="controls"><?php echo $this->form->getInput('contact_name'); ?></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label"><?php echo $this->form->getLabel('contact_email'); ?></div>
|
||||
<div class="controls"><?php echo $this->form->getInput('contact_email'); ?></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label"><?php echo $this->form->getLabel('contact_subject'); ?></div>
|
||||
<div class="controls"><?php echo $this->form->getInput('contact_subject'); ?></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label"><?php echo $this->form->getLabel('contact_message'); ?></div>
|
||||
<div class="controls"><?php echo $this->form->getInput('contact_message'); ?></div>
|
||||
</div>
|
||||
<?php if ($this->params->get('show_email_copy')){ ?>
|
||||
<div class="control-group">
|
||||
<div class="control-label"><?php echo $this->form->getLabel('contact_email_copy'); ?></div>
|
||||
<div class="controls"><?php echo $this->form->getInput('contact_email_copy'); ?></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?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 class="form-actions"><button class="btn btn-primary validate" type="submit"><?php echo JText::_('COM_CONTACT_CONTACT_SEND'); ?></button>
|
||||
<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>
|
56
templates/beez3/html/com_contact/contact/default_links.php
Normal file
56
templates/beez3/html/com_contact/contact/default_links.php
Normal file
@ -0,0 +1,56 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_contact
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
if ($this->params->get('presentation_style') == 'sliders'):?>
|
||||
<div class="accordion-group">
|
||||
<div class="accordion-heading">
|
||||
<a class="accordion-toggle" data-toggle="collapse" data-parent="accordionContact" href="#display-links">
|
||||
<?php echo JText::_('COM_CONTACT_LINKS');?>
|
||||
</a>
|
||||
</div>
|
||||
<div id="display-links" class="accordion-body collapse">
|
||||
<div class="accordion-inner">
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'plain'):?>
|
||||
<?php echo '<h3>'. JText::_('JGLOBAL_ARTICLES').'</h3>'; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="contact-links">
|
||||
<ul class="nav nav-list">
|
||||
<?php
|
||||
foreach (range('a', 'e') as $char) :// letters 'a' to 'e'
|
||||
$link = $this->contact->params->get('link'.$char);
|
||||
$label = $this->contact->params->get('link'.$char.'_name');
|
||||
|
||||
if (!$link) :
|
||||
continue;
|
||||
endif;
|
||||
|
||||
// Add 'http://' if not present
|
||||
$link = (0 === strpos($link, 'http')) ? $link : 'http://'.$link;
|
||||
|
||||
// If no label is present, take the link
|
||||
$label = ($label) ? $label : $link;
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $link; ?>">
|
||||
<?php echo $label; ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<?php if ($this->params->get('presentation_style') == 'sliders'):?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
40
templates/beez3/html/com_contact/contact/default_profile.php
Normal file
40
templates/beez3/html/com_contact/contact/default_profile.php
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_contact
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
<?php if (JPluginHelper::isEnabled('user', 'profile')) :
|
||||
$fields = $this->item->profile->getFieldset('profile'); ?>
|
||||
<div class="contact-profile" id="users-profile-custom">
|
||||
<dl class="dl-horizontal">
|
||||
<?php foreach ($fields as $profile) :
|
||||
if ($profile->value) :
|
||||
echo '<dt>'.$profile->label.'</dt>';
|
||||
$profile->text = htmlspecialchars($profile->value, ENT_COMPAT, 'UTF-8');
|
||||
|
||||
switch ($profile->id) :
|
||||
case "profile_website" :
|
||||
$v_http = substr($profile->profile_value, 0, 4);
|
||||
|
||||
if ($v_http == "http") :
|
||||
echo '<dd><a href="'.$profile->text.'">'.$profile->text.'</a></dd>';
|
||||
else :
|
||||
echo '<dd><a href="http://'.$profile->text.'">'.$profile->text.'</a></dd>';
|
||||
endif;
|
||||
break;
|
||||
|
||||
default:
|
||||
echo '<dd>'.$profile->text.'</dd>';
|
||||
break;
|
||||
endswitch;
|
||||
endif;
|
||||
endforeach; ?>
|
||||
</dl>
|
||||
</div>
|
||||
<?php endif; ?>
|
75
templates/beez3/html/com_contact/contact/encyclopedia.php
Normal file
75
templates/beez3/html/com_contact/contact/encyclopedia.php
Normal file
@ -0,0 +1,75 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Templates.beez3
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 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');
|
||||
?>
|
||||
<div class="contact<?php echo $this->pageclass_sfx?>">
|
||||
<?php $contactLink = ContactHelperRoute::getCategoryRoute($this->contact->catid);?>
|
||||
<h3>
|
||||
<span class="contact-category"><a href="<?php echo $contactLink; ?>">
|
||||
<?php echo $this->escape($this->contact->category_title); ?></a>
|
||||
</span>
|
||||
</h3>
|
||||
<?php if ($this->contact->name && $this->params->get('show_name')) : ?>
|
||||
<h2>
|
||||
<span class="contact-name"><?php echo $this->contact->name; ?></span>
|
||||
</h2>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="encyclopedia_col1">
|
||||
<?php if ($this->contact->image ) : ?>
|
||||
<div class="contact-image">
|
||||
<?php // We are going to use the contact address field for the main image caption.
|
||||
// If we have a caption load the caption behavior. ?>
|
||||
<?php if ($this->contact->address)
|
||||
{
|
||||
JHtml::_('behavior.caption');
|
||||
}?>
|
||||
<?php echo JHtml::_('image', $this->contact->image, JText::_('COM_CONTACT_IMAGE_DETAILS'), array('align' => 'middle', 'class' => 'caption', 'title' => $this->contact->address)); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="encyclopedia_col2">
|
||||
<?php // We are going to use some of the standard content fields in non standard ways. ?>
|
||||
<div class="contact-miscinfo">
|
||||
|
||||
<div class="contact-misc">
|
||||
<?php echo $this->contact->misc; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php //Let's use position for the scientific name. ?>
|
||||
<?php if ($this->contact->con_position && $this->params->get('show_position')) : ?>
|
||||
<p class="contact-position"><?php echo $this->contact->con_position; ?></p>
|
||||
<?php endif; ?>
|
||||
<?php //Let's use state to put the family name. ?>
|
||||
<?php if ($this->contact->state && $this->params->get('show_state')) : ?>
|
||||
<p class="contact-state"><?php echo $this->contact->state; ?></p>
|
||||
<?php endif; ?>
|
||||
<?php // Let's use contry to list the main countries it grows in. '?>
|
||||
<?php if ($this->contact->country && $this->params->get('show_country')) : ?>
|
||||
<p class="contact-country"><?php echo $this->contact->country; ?></p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<div class="clr"> </div>
|
||||
<?php if ($this->params->get('presentation_style') != 'plain'):?>
|
||||
<?php echo JHtml::_($this->params->get('presentation_style').'.start', 'contact-slider'); ?>
|
||||
<?php endif ?>
|
||||
<div class="encyclopedia_links">
|
||||
<?php echo $this->loadTemplate('links'); ?>
|
||||
|
||||
</div>
|
||||
<?php if ($this->params->get('presentation_style') != 'plain'):?>
|
||||
<?php echo JHtml::_($this->params->get('presentation_style').'.end'); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
1
templates/beez3/html/com_contact/contact/index.html
Normal file
1
templates/beez3/html/com_contact/contact/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
1
templates/beez3/html/com_contact/index.html
Normal file
1
templates/beez3/html/com_contact/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
Reference in New Issue
Block a user