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>
|
51
templates/beez3/html/com_content/archive/default.php
Normal file
51
templates/beez3/html/com_content/archive/default.php
Normal file
@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Template.beez5
|
||||
*
|
||||
* @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;
|
||||
|
||||
$app = JFactory::getApplication();
|
||||
$templateparams = $app->getTemplate(true)->params;
|
||||
|
||||
if (!$templateparams->get('html5', 0))
|
||||
{
|
||||
require JPATH_BASE.'/components/com_content/views/archive/tmpl/default.php';
|
||||
//evtl. ersetzen durch JPATH_COMPONENT.'/views/...'
|
||||
} else {
|
||||
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
|
||||
|
||||
JHtml::_('behavior.caption');
|
||||
?><div class="archive<?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; ?>
|
||||
<form id="adminForm" action="<?php echo JRoute::_('index.php')?>" method="post">
|
||||
<fieldset class="filters">
|
||||
<legend class="hidelabeltxt"><?php echo JText::_('JGLOBAL_FILTER_LABEL'); ?></legend>
|
||||
<div class="filter-search">
|
||||
<?php if ($this->params->get('filter_field') != 'hide') : ?>
|
||||
<label class="filter-search-lbl" for="filter-search"><?php echo JText::_('COM_CONTENT_'.$this->params->get('filter_field').'_FILTER_LABEL').' '; ?></label>
|
||||
<input type="text" name="filter-search" id="filter-search" value="<?php echo $this->escape($this->filter); ?>" class="inputbox" onchange="document.getElementById('adminForm').submit();" />
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $this->form->monthField; ?>
|
||||
<?php echo $this->form->yearField; ?>
|
||||
<?php echo $this->form->limitField; ?>
|
||||
<button type="submit" class="button"><?php echo JText::_('JGLOBAL_FILTER_BUTTON'); ?></button>
|
||||
</div>
|
||||
<input type="hidden" name="view" value="archive" />
|
||||
<input type="hidden" name="option" value="com_content" />
|
||||
<input type="hidden" name="limitstart" value="0" />
|
||||
</fieldset>
|
||||
|
||||
<?php echo $this->loadTemplate('items'); ?>
|
||||
</form>
|
||||
</div>
|
||||
<?php } ?>
|
116
templates/beez3/html/com_content/archive/default_items.php
Normal file
116
templates/beez3/html/com_content/archive/default_items.php
Normal file
@ -0,0 +1,116 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Template.beez5
|
||||
*
|
||||
* @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;
|
||||
|
||||
$app = JFactory::getApplication();
|
||||
$templateparams = $app->getTemplate(true)->params;
|
||||
|
||||
if (!$templateparams->get('html5', 0))
|
||||
{
|
||||
require JPATH_BASE.'/components/com_content/views/archive/tmpl/default_items.php';
|
||||
//evtl. ersetzen durch JPATH_COMPONENT.'/views/...'
|
||||
} else {
|
||||
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
|
||||
$params = &$this->params;
|
||||
?>
|
||||
<ul id="archive-items">
|
||||
<?php foreach ($this->items as $i => $item) : ?>
|
||||
<li class="row<?php echo $i % 2; ?>">
|
||||
|
||||
<h2>
|
||||
<?php if ($params->get('link_titles')) : ?>
|
||||
<a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($item->slug)); ?>">
|
||||
<?php echo $this->escape($item->title); ?></a>
|
||||
<?php else: ?>
|
||||
<?php echo $this->escape($item->title); ?>
|
||||
<?php endif; ?>
|
||||
</h2>
|
||||
|
||||
|
||||
<?php if (($params->get('show_author')) or ($params->get('show_parent_category')) or ($params->get('show_category')) or ($params->get('show_create_date')) or ($params->get('show_modify_date')) or ($params->get('show_publish_date')) or ($params->get('show_hits'))) : ?>
|
||||
<dl class="article-info">
|
||||
<dt class="article-info-term"><?php echo JText::_('COM_CONTENT_ARTICLE_INFO'); ?></dt>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_parent_category')) : ?>
|
||||
<dd class="parent-category-name">
|
||||
<?php $title = $this->escape($item->parent_title);
|
||||
$url = '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($item->parent_slug)).'">'.$title.'</a>';?>
|
||||
<?php if ($params->get('link_parent_category') && $item->parent_slug) : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $title); ?>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_category')) : ?>
|
||||
<dd class="category-name">
|
||||
<?php $title = $this->escape($item->category_title);
|
||||
$url = '<a href="' . JRoute::_(ContentHelperRoute::getCategoryRoute($item->catslug)) . '">' . $title . '</a>'; ?>
|
||||
<?php if ($params->get('link_category') && $item->catslug) : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_CATEGORY', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_CATEGORY', $title); ?>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_create_date')) : ?>
|
||||
<dd class="create">
|
||||
<?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $item->created, JText::_('DATE_FORMAT_LC2'))); ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_modify_date')) : ?>
|
||||
<dd class="modified">
|
||||
<?php echo JText::sprintf('COM_CONTENT_LAST_UPDATED', JHtml::_('date', $item->modified, JText::_('DATE_FORMAT_LC2'))); ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_publish_date')) : ?>
|
||||
<dd class="published">
|
||||
<?php echo JText::sprintf('COM_CONTENT_PUBLISHED_DATE_ON', JHtml::_('date', $item->publish_up, JText::_('DATE_FORMAT_LC2'))); ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_author') && !empty($item->author )) : ?>
|
||||
<dd class="createdby">
|
||||
<?php $author = $item->author; ?>
|
||||
<?php $author = ($item->created_by_alias ? $item->created_by_alias : $author);?>
|
||||
|
||||
<?php if (!empty($item->contactid ) && $params->get('link_author') == true):?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY',
|
||||
JHtml::_('link', JRoute::_('index.php?option=com_contact&view=contact&id=' . $item->contactid), $author)
|
||||
); ?>
|
||||
|
||||
<?php else :?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY', $author); ?>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_hits')) : ?>
|
||||
<dd class="hits">
|
||||
<?php echo JText::sprintf('COM_CONTENT_ARTICLE_HITS', $item->hits); ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if (($params->get('show_author')) or ($params->get('show_category')) or ($params->get('show_create_date')) or ($params->get('show_modify_date')) or ($params->get('show_publish_date')) or ($params->get('show_hits'))) :?>
|
||||
</dl>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_intro')) :?>
|
||||
<div class="intro">
|
||||
<?php echo JHtml::_('string.truncate', $item->introtext, $params->get('introtext_limit')); ?>
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<div id="pagination">
|
||||
<span><?php echo $this->pagination->getPagesLinks(); ?></span>
|
||||
<span><?php echo $this->pagination->getPagesCounter(); ?></span>
|
||||
</div>
|
||||
<?php } ?>
|
1
templates/beez3/html/com_content/archive/index.html
Normal file
1
templates/beez3/html/com_content/archive/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
199
templates/beez3/html/com_content/article/default.php
Normal file
199
templates/beez3/html/com_content/article/default.php
Normal file
@ -0,0 +1,199 @@
|
||||
<?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;
|
||||
|
||||
$app = JFactory::getApplication();
|
||||
$templateparams = $app->getTemplate(true)->params;
|
||||
$images = json_decode($this->item->images);
|
||||
$urls = json_decode($this->item->urls);
|
||||
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
|
||||
JHtml::_('behavior.caption');
|
||||
|
||||
// Create shortcut to parameters.
|
||||
$params = $this->item->params;
|
||||
|
||||
?>
|
||||
<article class="item-page<?php echo $this->pageclass_sfx?>">
|
||||
<?php if ($this->params->get('show_page_heading')) : ?>
|
||||
|
||||
<?php if ($this->params->get('show_page_heading') and $params->get('show_title')) :?>
|
||||
<hgroup>
|
||||
<?php endif; ?>
|
||||
<h1>
|
||||
<?php echo $this->escape($this->params->get('page_heading')); ?>
|
||||
</h1>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
if (!empty($this->item->pagination) && $this->item->pagination && !$this->item->paginationposition && $this->item->paginationrelative)
|
||||
{
|
||||
echo $this->item->pagination;
|
||||
}
|
||||
|
||||
if ($params->get('show_title')) : ?>
|
||||
<h2>
|
||||
<?php echo $this->escape($this->item->title); ?>
|
||||
</h2>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('show_page_heading') and $params->get('show_title')) :?>
|
||||
</hgroup>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('access-edit') || $params->get('show_print_icon') || $params->get('show_email_icon')) : ?>
|
||||
<ul class="actions">
|
||||
<?php if (!$this->print) : ?>
|
||||
<?php if ($params->get('show_print_icon')) : ?>
|
||||
<li class="print-icon">
|
||||
<?php echo JHtml::_('icon.print_popup', $this->item, $params, array(), true); ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_email_icon')) : ?>
|
||||
<li class="email-icon">
|
||||
<?php echo JHtml::_('icon.email', $this->item, $params, array(), true); ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->user->authorise('core.edit', 'com_content.article.'.$this->item->id)) : ?>
|
||||
<li class="edit-icon">
|
||||
<?php echo JHtml::_('icon.edit', $this->item, $params, array(), true); ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php else : ?>
|
||||
<li>
|
||||
<?php echo JHtml::_('icon.print_screen', $this->item, $params, array(), true); ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!$params->get('show_intro')) :
|
||||
echo $this->item->event->afterDisplayTitle;
|
||||
endif; ?>
|
||||
|
||||
<?php echo $this->item->event->beforeDisplayContent; ?>
|
||||
|
||||
<?php $useDefList = (($params->get('show_author')) or ($params->get('show_category')) or ($params->get('show_parent_category'))
|
||||
or ($params->get('show_create_date')) or ($params->get('show_modify_date')) or ($params->get('show_publish_date'))
|
||||
or ($params->get('show_hits'))); ?>
|
||||
|
||||
<?php if ($useDefList) : ?>
|
||||
<dl class="article-info">
|
||||
<dt class="article-info-term"><?php echo JText::_('COM_CONTENT_ARTICLE_INFO'); ?></dt>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_parent_category') && $this->item->parent_slug != '1:root') : ?>
|
||||
<dd class="parent-category-name">
|
||||
<?php $title = $this->escape($this->item->parent_title);
|
||||
$url = '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->parent_slug)).'">'.$title.'</a>';?>
|
||||
<?php if ($params->get('link_parent_category') and $this->item->parent_slug) : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $title); ?>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_category')) : ?>
|
||||
<dd class="category-name">
|
||||
<?php $title = $this->escape($this->item->category_title);
|
||||
$url = '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug)).'">'.$title.'</a>';?>
|
||||
<?php if ($params->get('link_category') and $this->item->catslug) : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_CATEGORY', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_CATEGORY', $title); ?>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_create_date')) : ?>
|
||||
<dd class="create">
|
||||
<?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $this->item->created, JText::_('DATE_FORMAT_LC2'))); ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_modify_date')) : ?>
|
||||
<dd class="modified">
|
||||
<?php echo JText::sprintf('COM_CONTENT_LAST_UPDATED', JHtml::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC2'))); ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_publish_date')) : ?>
|
||||
<dd class="published">
|
||||
<?php echo JText::sprintf('COM_CONTENT_PUBLISHED_DATE_ON', JHtml::_('date', $this->item->publish_up, JText::_('DATE_FORMAT_LC2'))); ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_author') && !empty($this->item->author )) : ?>
|
||||
<dd class="createdby">
|
||||
<?php $author = $this->item->author; ?>
|
||||
<?php $author = ($this->item->created_by_alias ? $this->item->created_by_alias : $author);?>
|
||||
|
||||
<?php if (!empty($this->item->contactid ) && $params->get('link_author') == true):?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY',
|
||||
JHtml::_('link', JRoute::_('index.php?option=com_contact&view=contact&id=' . $this->item->contactid), $author)
|
||||
); ?>
|
||||
|
||||
<?php else :?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY', $author); ?>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_hits')) : ?>
|
||||
<dd class="hits">
|
||||
<?php echo JText::sprintf('COM_CONTENT_ARTICLE_HITS', $this->item->hits); ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($useDefList) : ?>
|
||||
</dl>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset ($this->item->toc)) : ?>
|
||||
<?php echo $this->item->toc; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($urls) AND ((!empty($urls->urls_position) AND ($urls->urls_position == '0')) OR ($params->get('urls_position') == '0' AND empty($urls->urls_position)))
|
||||
OR (empty($urls->urls_position) AND (!$params->get('urls_position')))) : ?>
|
||||
|
||||
<?php echo $this->loadTemplate('links'); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($images->image_fulltext) and !empty($images->image_fulltext)) : ?>
|
||||
<?php $imgfloat = (empty($images->float_fulltext)) ? $params->get('float_fulltext') : $images->float_fulltext; ?>
|
||||
|
||||
<div class="img-fulltext-<?php echo htmlspecialchars($imgfloat); ?>">
|
||||
<img
|
||||
<?php if ($images->image_fulltext_caption):
|
||||
echo 'class="caption"'.' title="' .htmlspecialchars($images->image_fulltext_caption) .'"';
|
||||
endif; ?>
|
||||
src="<?php echo htmlspecialchars($images->image_fulltext); ?>" alt="<?php echo htmlspecialchars($images->image_fulltext_alt); ?>"/>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
if (!empty($this->item->pagination) AND $this->item->pagination AND !$this->item->paginationposition AND !$this->item->paginationrelative):
|
||||
echo $this->item->pagination;
|
||||
endif;
|
||||
?>
|
||||
<?php echo $this->item->text; ?>
|
||||
|
||||
<?php // TAGS ?>
|
||||
<?php if ($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 (!empty($this->item->pagination) AND $this->item->pagination AND $this->item->paginationposition AND!$this->item->paginationrelative):
|
||||
echo $this->item->pagination;?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($urls) AND ((!empty($urls->urls_position) AND ($urls->urls_position == '1')) OR ( $params->get('urls_position') == '1'))) : ?>
|
||||
|
||||
<?php echo $this->loadTemplate('links'); ?>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
if (!empty($this->item->pagination) AND $this->item->pagination AND $this->item->paginationposition AND $this->item->paginationrelative):
|
||||
echo $this->item->pagination;?>
|
||||
<?php endif; ?>
|
||||
<?php echo $this->item->event->afterDisplayContent; ?>
|
||||
</article>
|
||||
|
||||
|
79
templates/beez3/html/com_content/article/default_links.php
Normal file
79
templates/beez3/html/com_content/article/default_links.php
Normal file
@ -0,0 +1,79 @@
|
||||
<?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;
|
||||
|
||||
// Create shortcut
|
||||
$urls = json_decode($this->item->urls);
|
||||
|
||||
// Create shortcuts to some parameters.
|
||||
$params = $this->item->params;
|
||||
if ($urls && (!empty($urls->urla) || !empty($urls->urlb) || !empty($urls->urlc))) :
|
||||
?>
|
||||
<div class="content-links">
|
||||
<ul class="nav nav-tabs nav-stacked">
|
||||
<?php
|
||||
$urlarray = array(
|
||||
array($urls->urla, $urls->urlatext, $urls->targeta, 'a'),
|
||||
array($urls->urlb, $urls->urlbtext, $urls->targetb, 'b'),
|
||||
array($urls->urlc, $urls->urlctext, $urls->targetc, 'c')
|
||||
);
|
||||
foreach ($urlarray as $url) :
|
||||
$link = $url[0];
|
||||
$label = $url[1];
|
||||
$target = $url[2];
|
||||
$id = $url[3];
|
||||
|
||||
if ( ! $link) :
|
||||
continue;
|
||||
endif;
|
||||
|
||||
// If no label is present, take the link
|
||||
$label = ($label) ? $label : $link;
|
||||
|
||||
// If no target is present, use the default
|
||||
$target = $target ? $target : $params->get('target'.$id);
|
||||
?>
|
||||
<li class="content-links-<?php echo $id; ?>">
|
||||
<?php
|
||||
// Compute the correct link
|
||||
|
||||
switch ($target)
|
||||
{
|
||||
case 1:
|
||||
// open in a new window
|
||||
echo '<a href="'. htmlspecialchars($link) .'" target="_blank" rel="nofollow">'.
|
||||
htmlspecialchars($label) .'</a>';
|
||||
break;
|
||||
|
||||
case 2:
|
||||
// open in a popup window
|
||||
$attribs = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=600';
|
||||
echo "<a href=\"" . htmlspecialchars($link) . "\" onclick=\"window.open(this.href, 'targetWindow', '".$attribs."'); return false;\">".
|
||||
htmlspecialchars($label).'</a>';
|
||||
break;
|
||||
case 3:
|
||||
// open in a modal window
|
||||
JHtml::_('behavior.modal', 'a.modal');
|
||||
echo '<a class="modal" href="'.htmlspecialchars($link).'" rel="{handler: \'iframe\', size: {x:600, y:600}}">'.
|
||||
htmlspecialchars($label) . ' </a>';
|
||||
break;
|
||||
|
||||
default:
|
||||
// open in parent window
|
||||
echo '<a href="'. htmlspecialchars($link) . '" rel="nofollow">'.
|
||||
htmlspecialchars($label) . ' </a>';
|
||||
break;
|
||||
}
|
||||
?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
1
templates/beez3/html/com_content/article/index.html
Normal file
1
templates/beez3/html/com_content/article/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
40
templates/beez3/html/com_content/categories/default.php
Normal file
40
templates/beez3/html/com_content/categories/default.php
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Template.beez5
|
||||
*
|
||||
* @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;
|
||||
|
||||
$app = JFactory::getApplication();
|
||||
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')) : ?>
|
||||
<?php echo JHtml::_('content.prepare', $this->params->get('categories_description'), '', 'com_content.categories'); ?>
|
||||
<?php else: ?>
|
||||
<?php //Otherwise get one from the database if it exists. ?>
|
||||
<?php if ($this->parent->description) : ?>
|
||||
<div class="category-desc">
|
||||
<?php echo JHtml::_('content.prepare', $this->parent->description, '', 'com_content.categories'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
echo $this->loadTemplate('items');
|
||||
?>
|
||||
</div>
|
||||
|
@ -0,0 +1,57 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
* @copyright Copyright (C) 2005 - 2010 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
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 = ''; ?>
|
||||
<h3 class="item-title"><a href="<?php echo JRoute::_(ContentHelperRoute::getCategoryRoute($item->id));?>">
|
||||
<?php echo $this->escape($item->title); ?></a>
|
||||
</h3>
|
||||
|
||||
<?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); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('show_cat_num_articles_cat') == 1) :?>
|
||||
<dl class="article-count"><dt>
|
||||
<?php echo JText::_('COM_CONTENT_NUM_ITEMS'); ?></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_content/categories/index.html
Normal file
1
templates/beez3/html/com_content/categories/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
131
templates/beez3/html/com_content/category/blog.php
Normal file
131
templates/beez3/html/com_content/category/blog.php
Normal file
@ -0,0 +1,131 @@
|
||||
<?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;
|
||||
|
||||
$app = JFactory::getApplication();
|
||||
$templateparams = $app->getTemplate(true)->params;
|
||||
|
||||
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
|
||||
JHtml::_('behavior.caption');
|
||||
|
||||
$cparams = JComponentHelper::getParams('com_media');
|
||||
|
||||
// If the page class is defined, add to class as suffix.
|
||||
// It will be a separate class if the user starts it with a space
|
||||
?>
|
||||
<section class="blog<?php echo $this->pageclass_sfx;?>">
|
||||
<?php if ($this->params->get('show_page_heading') != 0 or $this->params->get('show_category_title')) : ?>
|
||||
<h1>
|
||||
<?php echo $this->escape($this->params->get('page_heading')); ?>
|
||||
<?php if ($this->params->get('show_category_title'))
|
||||
{
|
||||
|
||||
echo '<span class="subheading-category">'.$this->category->title.'</span>';
|
||||
}
|
||||
?>
|
||||
</h1>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('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_content.category'); ?>
|
||||
<?php endif; ?>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
|
||||
<?php $leadingcount = 0; ?>
|
||||
<?php if (!empty($this->lead_items)) : ?>
|
||||
<div class="items-leading">
|
||||
<?php foreach ($this->lead_items as &$item) : ?>
|
||||
<article class="leading-<?php echo $leadingcount; ?><?php echo $item->state == 0 ? 'system-unpublished' : null; ?>">
|
||||
<?php
|
||||
$this->item = &$item;
|
||||
echo $this->loadTemplate('item');
|
||||
?>
|
||||
</article>
|
||||
<?php
|
||||
$leadingcount++;
|
||||
?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
$introcount = (count($this->intro_items));
|
||||
$counter = 0;
|
||||
?>
|
||||
<?php if (!empty($this->intro_items)) : ?>
|
||||
|
||||
<?php foreach ($this->intro_items as $key => &$item) : ?>
|
||||
<?php
|
||||
$key = ($key - $leadingcount) + 1;
|
||||
$rowcount = (((int) $key - 1) % (int) $this->columns) + 1;
|
||||
$row = $counter / $this->columns;
|
||||
|
||||
if ($rowcount == 1) : ?>
|
||||
<div class="items-row cols-<?php echo (int) $this->columns;?> <?php echo 'row-'.$row; ?>">
|
||||
<?php endif; ?>
|
||||
<article class="item column-<?php echo $rowcount;?><?php echo $item->state == 0 ? ' system-unpublished' : null; ?>">
|
||||
<?php
|
||||
$this->item = &$item;
|
||||
echo $this->loadTemplate('item');
|
||||
?>
|
||||
</article>
|
||||
<?php $counter++; ?>
|
||||
<?php if (($rowcount == $this->columns) or ($counter == $introcount)) : ?>
|
||||
<span class="row-separator"></span>
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!empty($this->link_items)) : ?>
|
||||
|
||||
<?php echo $this->loadTemplate('links'); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="cat-children">
|
||||
<?php if (is_array($this->children[$this->category->id]) && count($this->children[$this->category->id]) > 0 && $this->params->get('maxLevel') != 0) : ?>
|
||||
|
||||
<?php if ($this->params->get('show_category_heading_title_text', 1) == 1) : ?>
|
||||
<h3>
|
||||
<?php echo JTEXT::_('JGLOBAL_SUBCATEGORIES'); ?>
|
||||
</h3>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $this->loadTemplate('children'); ?>
|
||||
</div>
|
||||
|
||||
|
||||
<?php if (($this->params->def('show_pagination', 1) == 1 || ($this->params->get('show_pagination') == 2)) && ($this->pagination->pagesTotal > 1)) : ?>
|
||||
<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; ?>
|
||||
|
||||
</section>
|
||||
|
||||
|
67
templates/beez3/html/com_content/category/blog_children.php
Normal file
67
templates/beez3/html/com_content/category/blog_children.php
Normal file
@ -0,0 +1,67 @@
|
||||
<?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;
|
||||
|
||||
$app = JFactory::getApplication();
|
||||
$templateparams = $app->getTemplate(true)->params;
|
||||
|
||||
$class = ' class="first"';
|
||||
?>
|
||||
|
||||
|
||||
<?php if (count($this->children[$this->category->id]) > 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"';
|
||||
endif;
|
||||
?>
|
||||
<li<?php echo $class; ?>>
|
||||
<?php $class = ''; ?>
|
||||
<span class="item-title"><a href="<?php echo JRoute::_(ContentHelperRoute::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_content.category'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( $this->params->get('show_cat_num_articles', 1)) : ?>
|
||||
<dl>
|
||||
<dt>
|
||||
<?php echo JText::_('COM_CONTENT_NUM_ITEMS'); ?>
|
||||
</dt>
|
||||
<dd>
|
||||
<?php echo $child->getNumItems(true); ?>
|
||||
</dd>
|
||||
</dl>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (count($child->getChildren()) > 0):
|
||||
$this->children[$child->id] = $child->getChildren();
|
||||
$this->category = $child;
|
||||
$this->maxLevel--;
|
||||
if ($this->maxLevel != 0) :
|
||||
echo $this->loadTemplate('children');
|
||||
endif;
|
||||
$this->category = $child->getParent();
|
||||
$this->maxLevel++;
|
||||
endif; ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
174
templates/beez3/html/com_content/category/blog_item.php
Normal file
174
templates/beez3/html/com_content/category/blog_item.php
Normal file
@ -0,0 +1,174 @@
|
||||
<?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;
|
||||
|
||||
$params =& $this->item->params;
|
||||
$images = json_decode($this->item->images);
|
||||
$app = JFactory::getApplication();
|
||||
$canEdit = $this->item->params->get('access-edit');
|
||||
|
||||
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
|
||||
?>
|
||||
|
||||
|
||||
<?php if ($this->item->state == 0) : ?>
|
||||
<div class="system-unpublished">
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_title')) : ?>
|
||||
<h2>
|
||||
<?php if ($params->get('link_titles') && $params->get('access-view')) : ?>
|
||||
<a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); ?>">
|
||||
<?php echo $this->escape($this->item->title); ?></a>
|
||||
<?php else : ?>
|
||||
<?php echo $this->escape($this->item->title); ?>
|
||||
<?php endif; ?>
|
||||
</h2>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_print_icon') || $params->get('show_email_icon') || $canEdit) : ?>
|
||||
<ul class="actions">
|
||||
<?php if ($params->get('show_print_icon')) : ?>
|
||||
<li class="print-icon">
|
||||
<?php echo JHtml::_('icon.print_popup', $this->item, $params, array(), true); ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_email_icon')) : ?>
|
||||
<li class="email-icon">
|
||||
<?php echo JHtml::_('icon.email', $this->item, $params, array(), true); ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php if ($canEdit) : ?>
|
||||
<li class="edit-icon">
|
||||
<?php echo JHtml::_('icon.edit', $this->item, $params, array(), true); ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!$params->get('show_intro')) : ?>
|
||||
<?php echo $this->item->event->afterDisplayTitle; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $this->item->event->beforeDisplayContent; ?>
|
||||
|
||||
<?php // to do not that elegant would be nice to group the params ?>
|
||||
|
||||
<?php if (($params->get('show_author')) or ($params->get('show_category')) or ($params->get('show_create_date')) or ($params->get('show_modify_date')) or ($params->get('show_publish_date')) or ($params->get('show_parent_category')) or ($params->get('show_hits'))) : ?>
|
||||
<dl class="article-info">
|
||||
<dt class="article-info-term"><?php echo JText::_('COM_CONTENT_ARTICLE_INFO'); ?></dt>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_parent_category') && $this->item->parent_id != 1) : ?>
|
||||
<dd class="parent-category-name">
|
||||
<?php $title = $this->escape($this->item->parent_title);
|
||||
$url = '<a href="' . JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->parent_id)) . '">' . $title . '</a>'; ?>
|
||||
<?php if ($params->get('link_parent_category')) : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $title); ?>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_category')) : ?>
|
||||
<dd class="category-name">
|
||||
<?php $title = $this->escape($this->item->category_title);
|
||||
$url = '<a href="' . JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catid)) . '">' . $title . '</a>'; ?>
|
||||
<?php if ($params->get('link_category')) : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_CATEGORY', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_CATEGORY', $title); ?>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_create_date')) : ?>
|
||||
<dd class="create">
|
||||
<?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $this->item->created, JText::_('DATE_FORMAT_LC2'))); ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_modify_date')) : ?>
|
||||
<dd class="modified">
|
||||
<?php echo JText::sprintf('COM_CONTENT_LAST_UPDATED', JHtml::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC2'))); ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_publish_date')) : ?>
|
||||
<dd class="published">
|
||||
<?php echo JText::sprintf('COM_CONTENT_PUBLISHED_DATE_ON', JHtml::_('date', $this->item->publish_up, JText::_('DATE_FORMAT_LC2'))); ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_author') && !empty($this->item->author )) : ?>
|
||||
<dd class="createdby">
|
||||
<?php $author = $this->item->author; ?>
|
||||
<?php $author = ($this->item->created_by_alias ? $this->item->created_by_alias : $author);?>
|
||||
|
||||
<?php if (!empty($this->item->contactid ) && $params->get('link_author') == true):?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY',
|
||||
JHtml::_('link', JRoute::_('index.php?option=com_contact&view=contact&id=' . $this->item->contactid), $author)
|
||||
); ?>
|
||||
|
||||
<?php else :?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY', $author); ?>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_hits')) : ?>
|
||||
<dd class="hits">
|
||||
<?php echo JText::sprintf('COM_CONTENT_ARTICLE_HITS', $this->item->hits); ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if (($params->get('show_author')) or ($params->get('show_category')) or ($params->get('show_create_date')) or ($params->get('show_modify_date')) or ($params->get('show_publish_date')) or ($params->get('show_parent_category')) or ($params->get('show_hits'))) :?>
|
||||
</dl>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($images->image_intro) and !empty($images->image_intro)) : ?>
|
||||
<?php $imgfloat = (empty($images->float_intro)) ? $params->get('float_intro') : $images->float_intro; ?>
|
||||
<div class="img-intro-<?php echo htmlspecialchars($imgfloat); ?>">
|
||||
<img
|
||||
<?php if ($images->image_intro_caption):
|
||||
echo 'class="caption"'.' title="' .htmlspecialchars($images->image_intro_caption) .'"';
|
||||
endif; ?>
|
||||
src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php echo $this->item->introtext; ?>
|
||||
|
||||
<?php if ($params->get('show_readmore') && $this->item->readmore) :
|
||||
if ($params->get('access-view')) :
|
||||
$link = JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid));
|
||||
else :
|
||||
$menu = JFactory::getApplication()->getMenu();
|
||||
$active = $menu->getActive();
|
||||
$itemId = $active->id;
|
||||
$link1 = JRoute::_('index.php?option=com_users&view=login&Itemid=' . $itemId);
|
||||
$returnURL = JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug));
|
||||
$link = new JUri($link1);
|
||||
$link->setVar('return', base64_encode($returnURL));
|
||||
endif;
|
||||
?>
|
||||
<p class="readmore">
|
||||
<a href="<?php echo $link; ?>">
|
||||
<?php if (!$params->get('access-view')) :
|
||||
echo JText::_('COM_CONTENT_REGISTER_TO_READ_MORE');
|
||||
elseif ($readmore = $this->item->alternative_readmore) :
|
||||
echo $readmore;
|
||||
if ($params->get('show_readmore_title', 0) != 0) :
|
||||
echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit'));
|
||||
endif;
|
||||
elseif ($params->get('show_readmore_title', 0) == 0) :
|
||||
echo JText::sprintf('COM_CONTENT_READ_MORE_TITLE');
|
||||
else :
|
||||
echo JText::_('COM_CONTENT_READ_MORE');
|
||||
echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit'));
|
||||
endif; ?></a>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->item->state == 0) : ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="item-separator"></div>
|
||||
<?php echo $this->item->event->afterDisplayContent; ?>
|
35
templates/beez3/html/com_content/category/blog_links.php
Normal file
35
templates/beez3/html/com_content/category/blog_links.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?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;
|
||||
|
||||
$params =& $this->item->params;
|
||||
$app = JFactory::getApplication();
|
||||
|
||||
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
|
||||
|
||||
?>
|
||||
|
||||
<div class="items-more">
|
||||
<h3><?php echo JText::_('COM_CONTENT_MORE_ARTICLES'); ?></h3>
|
||||
|
||||
<ol>
|
||||
|
||||
<?php
|
||||
foreach ($this->link_items as &$item) :
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($item->slug, $item->catid)); ?>">
|
||||
<?php echo $item->title; ?></a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
|
91
templates/beez3/html/com_content/category/default.php
Normal file
91
templates/beez3/html/com_content/category/default.php
Normal file
@ -0,0 +1,91 @@
|
||||
<?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;
|
||||
|
||||
$app = JFactory::getApplication();
|
||||
$templateparams = $app->getTemplate(true)->params;
|
||||
|
||||
|
||||
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
|
||||
JHtml::_('behavior.caption');
|
||||
|
||||
$pageClass = $this->params->get('pageclass_sfx');
|
||||
?>
|
||||
<section class="category-list<?php echo $this->pageclass_sfx;?>">
|
||||
<?php if ($this->params->get('show_page_heading')) : ?>
|
||||
<?php if ($this->params->get('show_page_heading') and ($this->params->get('show_category_title') or $this->params->get('page_subheading'))) : ?>
|
||||
<hgroup>
|
||||
<?php endif; ?>
|
||||
<h1>
|
||||
<?php echo $this->escape($this->params->get('page_heading')); ?>
|
||||
</h1>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_category_title') or $this->params->get('page_subheading')) : ?>
|
||||
<h2>
|
||||
<?php echo $this->escape($this->params->get('page_subheading')); ?>
|
||||
<?php if ($this->params->get('show_category_title'))
|
||||
{
|
||||
|
||||
echo '<span class="subheading-category">'.$this->category->title.'</span>';
|
||||
}
|
||||
?>
|
||||
</h2>
|
||||
<?php if ($this->params->get('show_page_heading') and ($this->params->get('show_category_title', 1) or $this->params->get('page_subheading'))) : ?>
|
||||
</hgroup>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('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_content.category'); ?>
|
||||
<?php endif; ?>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php if (is_array($this->children[$this->category->id]) && count($this->children[$this->category->id]) > 0 && $this->params->get('maxLevel') != 0) : ?>
|
||||
<div class="cat-children">
|
||||
|
||||
<?php if ($this->params->get('show_category_title') or $this->params->get('page_subheading'))
|
||||
{
|
||||
echo '<h3>';
|
||||
}
|
||||
elseif ($this->params->get('show_category_heading_title_text', 1) == 1)
|
||||
{
|
||||
echo '<h2>';
|
||||
} ?>
|
||||
<?php if ($this->params->get('show_category_heading_title_text', 1) == 1) : ?>
|
||||
<?php echo JTEXT::_('JGLOBAL_SUBCATEGORIES'); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('show_category_title') or $this->params->get('page_subheading'))
|
||||
{
|
||||
echo '</h3>';
|
||||
}
|
||||
elseif ($this->params->get('show_category_heading_title_text', 1) == 1)
|
||||
{
|
||||
echo '</h2>';
|
||||
} ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php echo $this->loadTemplate('children'); ?>
|
||||
|
||||
|
||||
<div class="cat-items">
|
||||
<?php echo $this->loadTemplate('articles'); ?>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
192
templates/beez3/html/com_content/category/default_articles.php
Normal file
192
templates/beez3/html/com_content/category/default_articles.php
Normal file
@ -0,0 +1,192 @@
|
||||
<?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;
|
||||
|
||||
$app = JFactory::getApplication();
|
||||
|
||||
|
||||
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
|
||||
JHtml::_('behavior.framework');
|
||||
|
||||
$n = count($this->items);
|
||||
$listOrder = $this->escape($this->state->get('list.ordering'));
|
||||
$listDirn = $this->escape($this->state->get('list.direction'));
|
||||
?>
|
||||
|
||||
<?php if (empty($this->items)) : ?>
|
||||
|
||||
<?php if ($this->params->get('show_no_articles', 1)) : ?>
|
||||
<p><?php echo JText::_('COM_CONTENT_NO_ARTICLES'); ?></p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<form action="<?php echo htmlspecialchars(JUri::getInstance()->toString()); ?>" method="post" name="adminForm" id="adminForm">
|
||||
<?php if ($this->params->get('filter_field') != 'hide') : ?>
|
||||
<fieldset class="filters">
|
||||
<legend class="hidelabeltxt">
|
||||
<?php echo JText::_('JGLOBAL_FILTER_LABEL'); ?>
|
||||
</legend>
|
||||
|
||||
<div class="filter-search">
|
||||
<label class="filter-search-lbl" for="filter-search"><?php echo JText::_('COM_CONTENT_'.$this->params->get('filter_field').'_FILTER_LABEL').' '; ?></label>
|
||||
<input type="text" name="filter-search" id="filter-search" value="<?php echo $this->escape($this->state->get('list.filter')); ?>" class="inputbox" onchange="document.adminForm.submit();" title="<?php echo JText::_('COM_CONTENT_FILTER_SEARCH_DESC'); ?>" />
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_pagination_limit')) : ?>
|
||||
<div class="display-limit">
|
||||
<?php echo JText::_('JGLOBAL_DISPLAY_NUM'); ?> 
|
||||
<?php echo $this->pagination->getLimitBox(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('filter_field') != 'hide') :?>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
|
||||
<table class="category">
|
||||
<?php if ($this->params->get('show_headings')) :?>
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th class="list-title" id="tableOrdering">
|
||||
<?php echo JHtml::_('grid.sort', 'COM_CONTENT_HEADING_TITLE', 'a.title', $listDirn, $listOrder); ?>
|
||||
</th>
|
||||
|
||||
<?php if ($date = $this->params->get('list_show_date')) : ?>
|
||||
<th class="list-date" id="tableOrdering2">
|
||||
<?php if ($date == "created") : ?>
|
||||
<?php echo JHtml::_('grid.sort', 'COM_CONTENT_'.$date.'_DATE', 'a.created', $listDirn, $listOrder); ?>
|
||||
<?php elseif ($date == "modified") : ?>
|
||||
<?php echo JHtml::_('grid.sort', 'COM_CONTENT_'.$date.'_DATE', 'a.modified', $listDirn, $listOrder); ?>
|
||||
<?php elseif ($date == "published") : ?>
|
||||
<?php echo JHtml::_('grid.sort', 'COM_CONTENT_'.$date.'_DATE', 'a.publish_up', $listDirn, $listOrder); ?>
|
||||
<?php endif; ?>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('list_show_author', 1)) : ?>
|
||||
<th class="list-author" id="tableOrdering3">
|
||||
<?php echo JHtml::_('grid.sort', 'JAUTHOR', 'author', $listDirn, $listOrder); ?>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('list_show_hits', 1)) : ?>
|
||||
<th class="list-hits" id="tableOrdering4">
|
||||
<?php echo JHtml::_('grid.sort', 'JGLOBAL_HITS', 'a.hits', $listDirn, $listOrder); ?>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
</thead>
|
||||
<?php endif; ?>
|
||||
|
||||
<tbody>
|
||||
|
||||
<?php foreach ($this->items as $i => &$article) : ?>
|
||||
<tr class="cat-list-row<?php echo $i % 2; ?>">
|
||||
|
||||
<?php if (in_array($article->access, $this->user->getAuthorisedViewLevels())) : ?>
|
||||
|
||||
<td class="list-title">
|
||||
<a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($article->slug, $article->catid)); ?>">
|
||||
<?php echo $this->escape($article->title); ?></a>
|
||||
</td>
|
||||
|
||||
<?php if ($this->params->get('list_show_date')) : ?>
|
||||
<td class="list-date">
|
||||
<?php
|
||||
echo JHtml::_(
|
||||
'date', $article->displayDate, $this->escape(
|
||||
$this->params->get('date_format', JText::_('DATE_FORMAT_LC3'))
|
||||
)
|
||||
); ?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('list_show_author', 1)) : ?>
|
||||
<td class="list-author">
|
||||
<?php if (!empty($article->author) || !empty($article->created_by_alias)) : ?>
|
||||
<?php $author = $article->author ?>
|
||||
<?php $author = ($article->created_by_alias ? $article->created_by_alias : $author);?>
|
||||
|
||||
<?php if (!empty($article->contactid ) && $this->params->get('link_author') == true):?>
|
||||
<?php echo JHtml::_(
|
||||
'link',
|
||||
JRoute::_('index.php?option=com_contact&view=contact&id='.$article->contactid),
|
||||
$author
|
||||
); ?>
|
||||
|
||||
<?php else :?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY', $author); ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('list_show_hits', 1)) : ?>
|
||||
<td class="list-hits">
|
||||
<?php echo $article->hits; ?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php else : ?>
|
||||
<td>
|
||||
<?php
|
||||
echo $this->escape($article->title).' : ';
|
||||
$menu = JFactory::getApplication()->getMenu();
|
||||
$active = $menu->getActive();
|
||||
$itemId = $active->id;
|
||||
$link = JRoute::_('index.php?option=com_users&view=login&Itemid='.$itemId);
|
||||
$returnURL = JRoute::_(ContentHelperRoute::getArticleRoute($article->slug));
|
||||
$fullURL = new JUri($link);
|
||||
$fullURL->setVar('return', base64_encode($returnURL));
|
||||
?>
|
||||
<a href="<?php echo $fullURL; ?>" class="register">
|
||||
<?php echo JText::_('COM_CONTENT_REGISTER_TO_READ_MORE'); ?></a>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php // Code to add a link to submit an article. ?>
|
||||
<?php if ($this->category->getParams()->get('access-create')) : ?>
|
||||
<?php echo JHtml::_('icon.create', $this->category, $this->category->params, array(), true); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php // Add pagination links ?>
|
||||
<?php if (!empty($this->items)) : ?>
|
||||
<?php if (($this->params->def('show_pagination', 2) == 1 || ($this->params->get('show_pagination') == 2)) && ($this->pagination->pagesTotal > 1)) : ?>
|
||||
<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="task" value="" />
|
||||
<input type="hidden" name="filter_order" value="" />
|
||||
<input type="hidden" name="filter_order_Dir" value="" />
|
||||
<input type="hidden" name="limitstart" value="" />
|
||||
</div>
|
||||
</form>
|
||||
<?php endif; ?>
|
@ -0,0 +1,70 @@
|
||||
<?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;
|
||||
|
||||
$app = JFactory::getApplication();
|
||||
$templateparams = $app->getTemplate(true)->params;
|
||||
|
||||
|
||||
|
||||
$class = ' class="first"';
|
||||
?>
|
||||
|
||||
<?php if (count($this->children[$this->category->id]) > 0) :?>
|
||||
|
||||
<ul>
|
||||
<?php foreach ($this->children[$this->category->id] as $id => $child) : ?>
|
||||
<?php
|
||||
if ($this->params->get('show_empty_categories') || $child->getNumItems(true) || count($child->getChildren())) :
|
||||
if (!isset($this->children[$this->category->id][$id + 1])) :
|
||||
$class = ' class="last"';
|
||||
endif;
|
||||
?>
|
||||
<li<?php echo $class; ?>>
|
||||
<?php $class = ''; ?>
|
||||
<h3 class="item-title"><a href="<?php echo JRoute::_(ContentHelperRoute::getCategoryRoute($child->id));?>">
|
||||
<?php echo $this->escape($child->title); ?></a>
|
||||
</h3>
|
||||
<?php if ($this->params->get('show_subcat_desc') == 1) :?>
|
||||
<?php if ($child->description and $this->params->get('show_description') != 0 ) : ?>
|
||||
<div class="category-desc">
|
||||
<?php echo JHtml::_('content.prepare', $child->description, '', 'com_content.category'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_cat_num_articles', 1)) : ?>
|
||||
<?php if ($child->getNumItems() == true) : ?>
|
||||
<dl>
|
||||
<dt>
|
||||
<?php echo JText::_('COM_CONTENT_NUM_ITEMS'); ?>
|
||||
</dt>
|
||||
<dd>
|
||||
<?php echo $child->getNumItems(true); ?>
|
||||
</dd>
|
||||
</dl>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (count($child->getChildren()) > 0 ) :
|
||||
$this->children[$child->id] = $child->getChildren();
|
||||
$this->category = $child;
|
||||
$this->maxLevel--;
|
||||
if ($this->maxLevel != 0) :
|
||||
echo $this->loadTemplate('children');
|
||||
endif;
|
||||
$this->category = $child->getParent();
|
||||
$this->maxLevel++;
|
||||
endif; ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
1
templates/beez3/html/com_content/category/index.html
Normal file
1
templates/beez3/html/com_content/category/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
89
templates/beez3/html/com_content/featured/default.php
Normal file
89
templates/beez3/html/com_content/featured/default.php
Normal file
@ -0,0 +1,89 @@
|
||||
<?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;
|
||||
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
|
||||
|
||||
JHtml::_('behavior.caption');
|
||||
|
||||
?>
|
||||
|
||||
<section class="blog-featured<?php echo $this->pageclass_sfx;?>">
|
||||
<?php if ( $this->params->get('show_page_heading') != 0) : ?>
|
||||
<h1>
|
||||
<?php echo $this->escape($this->params->get('page_heading')); ?>
|
||||
</h1>
|
||||
<?php endif; ?>
|
||||
<?php $leadingcount = 0; ?>
|
||||
<?php if (!empty($this->lead_items)) : ?>
|
||||
<div class="items-leading">
|
||||
<?php foreach ($this->lead_items as &$item) : ?>
|
||||
<article class="leading-<?php echo $leadingcount; ?><?php echo $item->state == 0 ? ' system-unpublished' : null; ?>">
|
||||
<?php
|
||||
$this->item = &$item;
|
||||
echo $this->loadTemplate('item');
|
||||
?>
|
||||
</article>
|
||||
<?php
|
||||
$leadingcount++;
|
||||
?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
$introcount = (count($this->intro_items));
|
||||
$counter = 0;
|
||||
?>
|
||||
<?php if (!empty($this->intro_items)) : ?>
|
||||
<?php foreach ($this->intro_items as $key => &$item) : ?>
|
||||
|
||||
<?php
|
||||
$key = ($key - $leadingcount) + 1;
|
||||
$rowcount = (((int) $key - 1) % (int) $this->columns) + 1;
|
||||
$row = $counter / $this->columns;
|
||||
|
||||
if ($rowcount == 1) : ?>
|
||||
|
||||
<div class="items-row cols-<?php echo (int) $this->columns;?> <?php echo 'row-'.$row; ?>">
|
||||
<?php endif; ?>
|
||||
<article class="item column-<?php echo $rowcount;?><?php echo $item->state == 0 ? ' system-unpublished"' : null; ?>">
|
||||
<?php
|
||||
$this->item = &$item;
|
||||
echo $this->loadTemplate('item');
|
||||
?>
|
||||
</article>
|
||||
<?php $counter++; ?>
|
||||
<?php if (($rowcount == $this->columns) or ($counter == $introcount)) : ?>
|
||||
<span class="row-separator"></span>
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!empty($this->link_items)) : ?>
|
||||
<div class="items-more">
|
||||
<?php echo $this->loadTemplate('links'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->def('show_pagination', 2) == 1 || ($this->params->get('show_pagination') == 2 && $this->pagination->pagesTotal > 1)) : ?>
|
||||
<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; ?>
|
||||
</section>
|
||||
|
||||
|
180
templates/beez3/html/com_content/featured/default_item.php
Normal file
180
templates/beez3/html/com_content/featured/default_item.php
Normal file
@ -0,0 +1,180 @@
|
||||
<?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;
|
||||
|
||||
// Create a shortcut for params.
|
||||
$canEdit = $this->item->params->get('access-edit');
|
||||
$params = &$this->item->params;
|
||||
$images = json_decode($this->item->images);
|
||||
$app = JFactory::getApplication();
|
||||
$templateparams = $app->getTemplate(true)->params;
|
||||
|
||||
?>
|
||||
|
||||
<?php if ($this->item->state == 0) : ?>
|
||||
<div class="system-unpublished">
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_title')) : ?>
|
||||
<h2>
|
||||
<?php if ($params->get('link_titles') && $params->get('access-view')) : ?>
|
||||
<a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); ?>">
|
||||
<?php echo $this->escape($this->item->title); ?></a>
|
||||
<?php else : ?>
|
||||
<?php echo $this->escape($this->item->title); ?>
|
||||
<?php endif; ?>
|
||||
</h2>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_print_icon') || $params->get('show_email_icon') || $canEdit) : ?>
|
||||
<ul class="actions">
|
||||
<?php if ($params->get('show_print_icon')) : ?>
|
||||
<li class="print-icon">
|
||||
<?php echo JHtml::_('icon.print_popup', $this->item, $params, array(), true); ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_email_icon')) : ?>
|
||||
<li class="email-icon">
|
||||
<?php echo JHtml::_('icon.email', $this->item, $params, array(), true); ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($canEdit) : ?>
|
||||
<li class="edit-icon">
|
||||
<?php echo JHtml::_('icon.edit', $this->item, $params, array(), true); ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!$params->get('show_intro')) : ?>
|
||||
<?php echo $this->item->event->afterDisplayTitle; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $this->item->event->beforeDisplayContent; ?>
|
||||
|
||||
<?php // to do not that elegant would be nice to group the params ?>
|
||||
|
||||
<?php if (($params->get('show_author')) or ($params->get('show_category')) or ($params->get('show_create_date')) or ($params->get('show_modify_date')) or ($params->get('show_publish_date')) or ($params->get('show_parent_category')) or ($params->get('show_hits'))) : ?>
|
||||
<dl class="article-info">
|
||||
<dt class="article-info-term"><?php echo JText::_('COM_CONTENT_ARTICLE_INFO'); ?></dt>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_parent_category') && $this->item->parent_id != 1) : ?>
|
||||
<dd class="parent-category-name">
|
||||
<?php $title = $this->escape($this->item->parent_title);
|
||||
$title = ($title) ? $title : JText::_('JGLOBAL_UNCATEGORISED');
|
||||
$url = '<a href="' . JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->parent_slug)) . '">' . $title . '</a>'; ?>
|
||||
<?php if ($params->get('link_parent_category') and $this->item->parent_slug) : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $title); ?>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_category')) : ?>
|
||||
<dd class="category-name">
|
||||
<?php $title = $this->escape($this->item->category_title);
|
||||
$title = ($title) ? $title : JText::_('JGLOBAL_UNCATEGORISED');
|
||||
$url = '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug)).'">'.$title.'</a>';?>
|
||||
<?php if ($params->get('link_category') and $this->item->catslug) : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_CATEGORY', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_CATEGORY', $title); ?>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_create_date')) : ?>
|
||||
<dd class="create">
|
||||
<?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $this->item->created, JText::_('DATE_FORMAT_LC2'))); ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_modify_date')) : ?>
|
||||
<dd class="modified">
|
||||
<?php echo JText::sprintf('COM_CONTENT_LAST_UPDATED', JHtml::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC2'))); ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_publish_date')) : ?>
|
||||
<dd class="published">
|
||||
<?php echo JText::sprintf('COM_CONTENT_PUBLISHED_DATE_ON', JHtml::_('date', $this->item->publish_up, JText::_('DATE_FORMAT_LC2'))); ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_author') && !empty($this->item->author )) : ?>
|
||||
<dd class="createdby">
|
||||
<?php $author = $this->item->author; ?>
|
||||
<?php $author = ($this->item->created_by_alias ? $this->item->created_by_alias : $author);?>
|
||||
|
||||
<?php if (!empty($this->item->contactid ) && $params->get('link_author') == true):?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY',
|
||||
JHtml::_('link', JRoute::_('index.php?option=com_contact&view=contact&id=' . $this->item->contactid), $author)
|
||||
); ?>
|
||||
|
||||
<?php else :?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY', $author); ?>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_hits')) : ?>
|
||||
<dd class="hits">
|
||||
<?php echo JText::sprintf('COM_CONTENT_ARTICLE_HITS', $this->item->hits); ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if (($params->get('show_author')) or ($params->get('show_category')) or ($params->get('show_create_date')) or ($params->get('show_modify_date')) or ($params->get('show_publish_date')) or ($params->get('show_parent_category')) or ($params->get('show_hits'))) : ?>
|
||||
</dl>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($images->image_intro) and !empty($images->image_intro)) : ?>
|
||||
<?php $imgfloat = (empty($images->float_intro)) ? $params->get('float_intro') : $images->float_intro; ?>
|
||||
<div class="img-intro-<?php echo htmlspecialchars($imgfloat); ?>">
|
||||
<img
|
||||
<?php if ($images->image_intro_caption):
|
||||
echo 'class="caption"'.' title="' .htmlspecialchars($images->image_intro_caption) .'"';
|
||||
endif; ?>
|
||||
src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $this->item->introtext; ?>
|
||||
|
||||
<?php if ($params->get('show_readmore') && $this->item->readmore) :
|
||||
if ($params->get('access-view')) :
|
||||
$link = JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid));
|
||||
else :
|
||||
$menu = JFactory::getApplication()->getMenu();
|
||||
$active = $menu->getActive();
|
||||
$itemId = $active->id;
|
||||
$link1 = JRoute::_('index.php?option=com_users&view=login&Itemid=' . $itemId);
|
||||
$returnURL = JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid));
|
||||
$link = new JUri($link1);
|
||||
$link->setVar('return', base64_encode($returnURL));
|
||||
endif;
|
||||
?>
|
||||
<p class="readmore">
|
||||
<a href="<?php echo $link; ?>">
|
||||
<?php if (!$params->get('access-view')) :
|
||||
echo JText::_('COM_CONTENT_REGISTER_TO_READ_MORE');
|
||||
elseif ($readmore = $this->item->alternative_readmore) :
|
||||
echo $readmore;
|
||||
if ($params->get('show_readmore_title', 0) != 0) :
|
||||
echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit'));
|
||||
endif;
|
||||
elseif ($params->get('show_readmore_title', 0) == 0) :
|
||||
echo JText::sprintf('COM_CONTENT_READ_MORE_TITLE');
|
||||
else :
|
||||
echo JText::_('COM_CONTENT_READ_MORE');
|
||||
echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit'));
|
||||
endif; ?></a>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->item->state == 0) : ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="item-separator"></div>
|
||||
<?php echo $this->item->event->afterDisplayContent; ?>
|
24
templates/beez3/html/com_content/featured/default_links.php
Normal file
24
templates/beez3/html/com_content/featured/default_links.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?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;
|
||||
|
||||
?>
|
||||
|
||||
<h3><?php echo JText::_('COM_CONTENT_MORE_ARTICLES'); ?></h3>
|
||||
|
||||
<ol class="links">
|
||||
<?php foreach ($this->link_items as &$item) : ?>
|
||||
<li>
|
||||
<a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($item->slug, $item->catslug)); ?>">
|
||||
<?php echo $item->title; ?></a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
|
1
templates/beez3/html/com_content/featured/index.html
Normal file
1
templates/beez3/html/com_content/featured/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
324
templates/beez3/html/com_content/form/edit.php
Normal file
324
templates/beez3/html/com_content/form/edit.php
Normal file
@ -0,0 +1,324 @@
|
||||
<?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
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
JHtml::_('behavior.keepalive');
|
||||
JHtml::_('behavior.calendar');
|
||||
JHtml::_('behavior.formvalidation');
|
||||
|
||||
// Create shortcut to parameters.
|
||||
$params = $this->state->get('params');
|
||||
//$images = json_decode($this->item->images);
|
||||
//$urls = json_decode($this->item->urls);
|
||||
|
||||
// This checks if the editor config options have ever been saved. If they haven't they will fall back to the original settings.
|
||||
$editoroptions = isset($params->show_publishing_options);
|
||||
if (!$editoroptions):
|
||||
$params->show_urls_images_frontend = '0';
|
||||
endif;
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
Joomla.submitbutton = function(task)
|
||||
{
|
||||
if (task == 'article.cancel' || document.formvalidator.isValid(document.id('adminForm')))
|
||||
{
|
||||
<?php echo $this->form->getField('articletext')->save(); ?>
|
||||
Joomla.submitform(task);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<div class="edit item-page<?php echo $this->pageclass_sfx; ?>">
|
||||
<?php if ($params->get('show_page_heading')) : ?>
|
||||
<h1>
|
||||
<?php echo $this->escape($params->get('page_heading')); ?>
|
||||
</h1>
|
||||
<?php endif; ?>
|
||||
|
||||
<form action="<?php echo JRoute::_('index.php?option=com_content&a_id='.(int) $this->item->id); ?>" method="post" name="adminForm" id="adminForm" class="form-validate">
|
||||
<fieldset>
|
||||
<legend><?php echo JText::_('JEDITOR'); ?></legend>
|
||||
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('title'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('title'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (is_null($this->item->id)):?>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('alias'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('alias'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-primary" onclick="Joomla.submitbutton('article.save')">
|
||||
<?php echo JText::_('JSAVE') ?>
|
||||
</button>
|
||||
<button type="button" class="btn" onclick="Joomla.submitbutton('article.cancel')">
|
||||
<?php echo JText::_('JCANCEL') ?>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<?php echo $this->form->getInput('articletext'); ?>
|
||||
|
||||
</fieldset>
|
||||
<?php if ($params->get('show_urls_images_frontend') ) : ?>
|
||||
<fieldset>
|
||||
<legend><?php echo JText::_('COM_CONTENT_IMAGES_AND_URLS'); ?></legend>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('image_intro', 'images'); ?>
|
||||
<?php echo $this->form->getInput('image_intro', 'images'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('image_intro_alt', 'images'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('image_intro_alt', 'images'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('image_intro_caption', 'images'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('image_intro_caption', 'images'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('float_intro', 'images'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('float_intro', 'images'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('image_fulltext', 'images'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('image_fulltext', 'images'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('image_fulltext_alt', 'images'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('image_fulltext_alt', 'images'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('image_fulltext_caption', 'images'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('image_fulltext_caption', 'images'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('float_fulltext', 'images'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('float_fulltext', 'images'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('urla', 'urls'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('urla', 'urls'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('urlatext', 'urls'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('urlatext', 'urls'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('targeta', 'urls'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('urlb', 'urls'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('urlb', 'urls'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('urlbtext', 'urls'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('urlbtext', 'urls'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('targetb', 'urls'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('urlc', 'urls'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('urlc', 'urls'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('urlctext', 'urls'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('urlctext', 'urls'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('targetc', 'urls'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
|
||||
<fieldset>
|
||||
<legend><?php echo JText::_('COM_CONTENT_PUBLISHING'); ?></legend>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('catid'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('catid'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('created_by_alias'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('created_by_alias'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if ($this->item->params->get('access-change')) : ?>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('state'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('state'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('featured'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('featured'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('publish_up'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('publish_up'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('publish_down'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('publish_down'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('access'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('access'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php if (is_null($this->item->id)):?>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo JText::_('COM_CONTENT_ORDERING'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend><?php echo JText::_('JFIELD_LANGUAGE_LABEL'); ?></legend>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('language'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('language'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend><?php echo JText::_('COM_CONTENT_METADATA'); ?></legend>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('metadesc'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('metadesc'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('metakey'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('metakey'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="task" value="" />
|
||||
<input type="hidden" name="return" value="<?php echo $this->return_page;?>" />
|
||||
<?php if ($this->params->get('enable_category', 0) == 1) : ?>
|
||||
<input type="hidden" name="jform[catid]" value="<?php echo $this->params->get('catid', 1);?>"/>
|
||||
<?php endif;?>
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
1
templates/beez3/html/com_content/form/index.html
Normal file
1
templates/beez3/html/com_content/form/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
1
templates/beez3/html/com_content/index.html
Normal file
1
templates/beez3/html/com_content/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
40
templates/beez3/html/com_newsfeeds/categories/default.php
Normal file
40
templates/beez3/html/com_newsfeeds/categories/default.php
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_newsfeeds
|
||||
*
|
||||
* @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_newsfeeds.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_newsfeeds.categories'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
echo $this->loadTemplate('items');
|
||||
?>
|
||||
</div>
|
@ -0,0 +1,55 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_newsfeeds
|
||||
*
|
||||
* @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::_(NewsfeedsHelperRoute::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_newsfeeds.categories'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('show_cat_items_cat') == 1) :?>
|
||||
<dl class="newsfeed-count"><dt>
|
||||
<?php echo JText::_('COM_NEWSFEEDS_CAT_NUM'); ?></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_newsfeeds/categories/index.html
Normal file
1
templates/beez3/html/com_newsfeeds/categories/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
46
templates/beez3/html/com_newsfeeds/category/default.php
Normal file
46
templates/beez3/html/com_newsfeeds/category/default.php
Normal file
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_newsfeeds
|
||||
*
|
||||
* @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="newsfeed-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_newsfeeds.category'); ?>
|
||||
</h2>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('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_newsfeeds.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,57 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_newsfeeds
|
||||
*
|
||||
* @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::_(NewsfeedsHelperRoute::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_newsfeeds.category'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_cat_items') == 1) :?>
|
||||
<dl class="newsfeed-count"><dt>
|
||||
<?php echo JText::_('COM_NEWSFEEDS_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;
|
104
templates/beez3/html/com_newsfeeds/category/default_items.php
Normal file
104
templates/beez3/html/com_newsfeeds/category/default_items.php
Normal file
@ -0,0 +1,104 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_newsfeeds
|
||||
*
|
||||
* @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');
|
||||
|
||||
$n = count($this->items);
|
||||
$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_NEWSFEEDS_NO_ARTICLES'); ?> </p>
|
||||
<?php else : ?>
|
||||
|
||||
<form action="<?php echo htmlspecialchars(JUri::getInstance()->toString()); ?>" method="post" name="adminForm" id="adminForm">
|
||||
<fieldset class="filters">
|
||||
<legend class="hidelabeltxt"><?php echo JText::_('JGLOBAL_FILTER_LABEL'); ?></legend>
|
||||
<?php if ($this->params->get('show_pagination_limit')) : ?>
|
||||
<div class="display-limit">
|
||||
<?php echo JText::_('JGLOBAL_DISPLAY_NUM'); ?> 
|
||||
<?php echo $this->pagination->getLimitBox(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<input type="hidden" name="filter_order" value="<?php echo $listOrder; ?>" />
|
||||
<input type="hidden" name="filter_order_Dir" value="<?php echo $listDirn; ?>" />
|
||||
</fieldset>
|
||||
<table class="category">
|
||||
<?php if ($this->params->get('show_headings') == 1) : ?>
|
||||
<thead><tr>
|
||||
|
||||
<th class="item-title" id="tableOrdering">
|
||||
<?php echo JHtml::_('grid.sort', 'COM_NEWSFEEDS_FEED_NAME', 'a.name', $listDirn, $listOrder); ?>
|
||||
</th>
|
||||
|
||||
|
||||
<?php if ($this->params->get('show_articles')) : ?>
|
||||
<th class="item-num-art" id="tableOrdering2">
|
||||
<?php echo JHtml::_('grid.sort', 'COM_NEWSFEEDS_NUM_ARTICLES', 'a.numarticles', $listDirn, $listOrder); ?>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_link')) : ?>
|
||||
<th class="item-link" id="tableOrdering3">
|
||||
<?php echo JHtml::_('grid.sort', 'COM_NEWSFEEDS_FEED_LINK', 'a.link', $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::_(NewsFeedsHelperRoute::getNewsfeedRoute($item->slug, $item->catid)); ?>">
|
||||
<?php echo $item->name; ?></a>
|
||||
</td>
|
||||
|
||||
<?php if ($this->params->get('show_articles')) : ?>
|
||||
<td class="item-num-art">
|
||||
<?php echo $item->numarticles; ?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_link')) : ?>
|
||||
<td class="item-link">
|
||||
<a href="<?php echo $item->link; ?>"><?php echo $item->link; ?></a>
|
||||
</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; ?>
|
||||
|
||||
</form>
|
||||
<?php endif; ?>
|
1
templates/beez3/html/com_newsfeeds/category/index.html
Normal file
1
templates/beez3/html/com_newsfeeds/category/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
1
templates/beez3/html/com_newsfeeds/index.html
Normal file
1
templates/beez3/html/com_newsfeeds/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
40
templates/beez3/html/com_weblinks/categories/default.php
Normal file
40
templates/beez3/html/com_weblinks/categories/default.php
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_weblinks
|
||||
*
|
||||
* @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_weblinks.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_weblinks.categories'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
echo $this->loadTemplate('items');
|
||||
?>
|
||||
</div>
|
@ -0,0 +1,56 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_weblinks
|
||||
*
|
||||
* @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::_(WeblinksHelperRoute::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_weblinks.categories'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('show_cat_num_links_cat') == 1) :?>
|
||||
<dl class="weblink-count"><dt>
|
||||
<?php echo JText::_('COM_WEBLINKS_NUM'); ?></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_weblinks/categories/index.html
Normal file
1
templates/beez3/html/com_weblinks/categories/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
44
templates/beez3/html/com_weblinks/category/default.php
Normal file
44
templates/beez3/html/com_weblinks/category/default.php
Normal file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_weblinks
|
||||
*
|
||||
* @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="weblink-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_weblinks.category'); ?>
|
||||
</h2>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('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_weblinks.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,57 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_weblinks
|
||||
*
|
||||
* @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::_(WeblinksHelperRoute::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_weblinks.category'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_cat_num_links') == 1) :?>
|
||||
<dl class="weblink-count"><dt>
|
||||
<?php echo JText::_('COM_WEBLINKS_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;
|
185
templates/beez3/html/com_weblinks/category/default_items.php
Normal file
185
templates/beez3/html/com_weblinks/category/default_items.php
Normal file
@ -0,0 +1,185 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_weblinks
|
||||
*
|
||||
* @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;
|
||||
|
||||
// Code to support edit links for weblinks
|
||||
// Create a shortcut for params.
|
||||
$params = &$this->item->params;
|
||||
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
|
||||
JHtml::_('behavior.framework');
|
||||
|
||||
// Get the user object.
|
||||
$user = JFactory::getUser();
|
||||
// Check if user is allowed to add/edit based on weblinks permissinos.
|
||||
$canEdit = $user->authorise('core.edit', 'com_weblinks');
|
||||
$canCreate = $user->authorise('core.create', 'com_weblinks');
|
||||
$canEditState = $user->authorise('core.edit.state', 'com_weblinks');
|
||||
|
||||
$n = count($this->items);
|
||||
$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_WEBLINKS_NO_WEBLINKS'); ?></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>
|
||||
<input type="hidden" name="filter_order" value="<?php echo $listOrder; ?>" />
|
||||
<input type="hidden" name="filter_order_Dir" value="<?php echo $listDirn; ?>" />
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
|
||||
<table class="category">
|
||||
<?php if ($this->params->get('show_headings') == 1) : ?>
|
||||
|
||||
<thead><tr>
|
||||
|
||||
<th class="title">
|
||||
<?php echo JHtml::_('grid.sort', 'COM_WEBLINKS_GRID_TITLE', 'title', $listDirn, $listOrder); ?>
|
||||
</th>
|
||||
<?php if ($this->params->get('show_link_hits')) : ?>
|
||||
<th class="hits">
|
||||
<?php echo JHtml::_('grid.sort', 'JGLOBAL_HITS', 'hits', $listDirn, $listOrder); ?>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
</thead>
|
||||
<?php endif; ?>
|
||||
<tbody>
|
||||
<?php foreach ($this->items as $i => $item) : ?>
|
||||
<?php if ($this->items[$i]->state == 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="title">
|
||||
<p>
|
||||
<?php if ($this->params->get('icons') == 0) : ?>
|
||||
<?php echo JText::_('COM_WEBLINKS_LINK'); ?>
|
||||
<?php elseif ($this->params->get('icons') == 1) : ?>
|
||||
<?php if (!$this->params->get('link_icons')) : ?>
|
||||
<?php echo JHtml::_('image', 'system/'.$this->params->get('link_icons', 'weblink.png'), JText::_('COM_WEBLINKS_LINK'), null, true); ?>
|
||||
<?php else: ?>
|
||||
<?php echo '<img src="'.$this->params->get('link_icons').'" alt="'.JText::_('COM_WEBLINKS_LINK').'" />'; ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
// Compute the correct link
|
||||
$menuclass = 'category'.$this->pageclass_sfx;
|
||||
$link = $item->link;
|
||||
$width = $item->params->get('width');
|
||||
$height = $item->params->get('height');
|
||||
if ($width == null || $height == null)
|
||||
{
|
||||
$width = 600;
|
||||
$height = 500;
|
||||
}
|
||||
|
||||
switch ($item->params->get('target', $this->params->get('target')))
|
||||
{
|
||||
case 1:
|
||||
// open in a new window
|
||||
echo '<a href="'. $link .'" target="_blank" class="'. $menuclass .'" rel="nofollow">'.
|
||||
$this->escape($item->title) .'</a>';
|
||||
break;
|
||||
|
||||
case 2:
|
||||
// open in a popup window
|
||||
$attribs = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width='.$this->escape($width).',height='.$this->escape($height).'';
|
||||
echo "<a href=\"$link\" onclick=\"window.open(this.href, 'targetWindow', '".$attribs."'); return false;\">".
|
||||
$this->escape($item->title).'</a>';
|
||||
break;
|
||||
case 3:
|
||||
// open in a modal window
|
||||
JHtml::_('behavior.modal', 'a.modal');
|
||||
echo '<a class="modal" href="'.$link.'" rel="{handler: \'iframe\', size: {x:'.$this->escape($width).', y:'.$this->escape($height).'}}">'.
|
||||
$this->escape($item->title). ' </a>';
|
||||
break;
|
||||
|
||||
default:
|
||||
// open in parent window
|
||||
echo '<a href="'. $link . '" class="'. $menuclass .'" rel="nofollow">'.
|
||||
$this->escape($item->title) . ' </a>';
|
||||
break;
|
||||
}
|
||||
?>
|
||||
<?php // Code to add the edit link for the weblink. ?>
|
||||
|
||||
<?php if ($canEdit) : ?>
|
||||
<ul class="actions">
|
||||
<li class="edit-icon">
|
||||
<?php echo JHtml::_('icon.edit', $item, $params); ?>
|
||||
</li>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
<?php $tagsData = $item->tags->getItemTags('com_weblinks.weblink', $item->id); ?>
|
||||
<?php if ($this->params->get('show_tags', 1)) : ?>
|
||||
<?php $this->item->tagLayout = new JLayoutFile('joomla.content.tags'); ?>
|
||||
<?php echo $this->item->tagLayout->render($tagsData); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (($this->params->get('show_link_description')) and ($item->description != '')) : ?>
|
||||
<?php $images = json_decode($item->images); ?>
|
||||
<?php if (isset($images->image_first) and !empty($images->image_first)) : ?>
|
||||
<?php $imgfloat = (empty($images->float_first)) ? $this->params->get('float_first') : $images->float_first; ?>
|
||||
<div class="img-intro-<?php echo htmlspecialchars($imgfloat); ?>"> <img
|
||||
<?php if ($images->image_first_caption):
|
||||
echo 'class="caption"'.' title="' .htmlspecialchars($images->image_first_caption) .'"';
|
||||
endif; ?>
|
||||
src="<?php echo htmlspecialchars($images->image_first); ?>" alt="<?php echo htmlspecialchars($images->image_first_alt); ?>"/> </div>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($images->image_second) and !empty($images->image_second)) : ?>
|
||||
<?php $imgfloat = (empty($images->float_second)) ? $this->params->get('float_second') : $images->float_second; ?>
|
||||
<div class="pull-<?php echo htmlspecialchars($imgfloat); ?> item-image"> <img
|
||||
<?php if ($images->image_second_caption):
|
||||
echo 'class="caption"'.' title="' .htmlspecialchars($images->image_second_caption) .'"';
|
||||
endif; ?>
|
||||
src="<?php echo htmlspecialchars($images->image_second); ?>" alt="<?php echo htmlspecialchars($images->image_second_alt); ?>"/> </div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $item->description; ?>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<?php if ($this->params->get('show_link_hits')) : ?>
|
||||
<td class="hits">
|
||||
<?php echo $item->hits; ?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?php // Code to add a link to submit a weblink. ?>
|
||||
<?php /* if ($canCreate) : // TODO This is not working due to some problem in the router, I think. Ref issue #23685 ?>
|
||||
<?php echo JHtml::_('icon.create', $item, $item->params); ?>
|
||||
<?php endif; */ ?>
|
||||
<?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; ?>
|
||||
</form>
|
||||
<?php endif; ?>
|
1
templates/beez3/html/com_weblinks/category/index.html
Normal file
1
templates/beez3/html/com_weblinks/category/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
113
templates/beez3/html/com_weblinks/form/edit.php
Normal file
113
templates/beez3/html/com_weblinks/form/edit.php
Normal file
@ -0,0 +1,113 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_weblinks
|
||||
*
|
||||
* @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');
|
||||
|
||||
// Create shortcut to parameters.
|
||||
$params = $this->state->get('params');
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
Joomla.submitbutton = function(task)
|
||||
{
|
||||
if (task == 'weblink.cancel' || document.formvalidator.isValid(document.id('adminForm')))
|
||||
{
|
||||
<?php echo $this->form->getField('description')->save(); ?>
|
||||
Joomla.submitform(task);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<div class="edit<?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; ?>
|
||||
<form action="<?php echo JRoute::_('index.php?option=com_weblinks&view=form&w_id='.(int) $this->item->id); ?>" method="post" name="adminForm" id="adminForm" class="form-validate form-vertical">
|
||||
<div class="btn-toolbar">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-primary" onclick="Joomla.submitbutton('weblink.save')">
|
||||
<i class="icon-ok"></i> <?php echo JText::_('JSAVE') ?>
|
||||
</button>
|
||||
</div>
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn" onclick="Joomla.submitbutton('weblink.cancel')">
|
||||
<i class="icon-cancel"></i> <?php echo JText::_('JCANCEL') ?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr class="hr-condensed" />
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('title'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('title'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('alias'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('alias'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('catid'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('catid'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('url'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('url'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php if ($this->user->authorise('core.edit.state', 'com_weblinks.weblink')) : ?>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('state'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('state'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('language'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('language'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getLabel('description'); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('description'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="return" value="<?php echo $this->return_page;?>" />
|
||||
<input type="hidden" name="task" value="" />
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</form>
|
||||
</div>
|
1
templates/beez3/html/com_weblinks/form/index.html
Normal file
1
templates/beez3/html/com_weblinks/form/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
1
templates/beez3/html/com_weblinks/index.html
Normal file
1
templates/beez3/html/com_weblinks/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
1
templates/beez3/html/index.html
Normal file
1
templates/beez3/html/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
40
templates/beez3/html/message.php
Normal file
40
templates/beez3/html/message.php
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Template.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;
|
||||
|
||||
function renderMessage($msgList)
|
||||
{
|
||||
$buffer = null;
|
||||
$buffer .= "\n<div id=\"system-message-container\">";
|
||||
|
||||
if (is_array($msgList))
|
||||
{
|
||||
$buffer .= "\n<dl id=\"system-message\">";
|
||||
foreach ($msgList as $type => $msgs)
|
||||
{
|
||||
if (count($msgs))
|
||||
{
|
||||
$buffer .= "\n<dt class=\"" . strtolower($type) . "\">" . JText::_($type) . "</dt>";
|
||||
$buffer .= "\n<dd class=\"" . strtolower($type) . " message\">";
|
||||
$buffer .= "\n\t<ul>";
|
||||
foreach ($msgs as $msg)
|
||||
{
|
||||
$buffer .= "\n\t\t<li>" . $msg . "</li>";
|
||||
}
|
||||
$buffer .= "\n\t</ul>";
|
||||
$buffer .= "\n</dd>";
|
||||
}
|
||||
$buffer .= "\n</dl>";
|
||||
}
|
||||
|
||||
$buffer .= "\n</div>";
|
||||
return $buffer;
|
||||
}
|
||||
}
|
62
templates/beez3/html/mod_breadcrumbs/default.php
Normal file
62
templates/beez3/html/mod_breadcrumbs/default.php
Normal file
@ -0,0 +1,62 @@
|
||||
<?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;
|
||||
?>
|
||||
|
||||
<div class = "breadcrumbs<?php echo $moduleclass_sfx; ?>">
|
||||
<?php if ($params->get('showHere', 1))
|
||||
{
|
||||
echo '<span class="showHere">' .JText::_('MOD_BREADCRUMBS_HERE').'</span>';
|
||||
}
|
||||
|
||||
// Get rid of duplicated entries on trail including home page when using multilanguage
|
||||
for ($i = 0; $i < $count; $i++)
|
||||
{
|
||||
if ($i == 1 && !empty($list[$i]->link) && !empty($list[$i - 1]->link) && $list[$i]->link == $list[$i - 1]->link)
|
||||
{
|
||||
unset($list[$i]);
|
||||
}
|
||||
}
|
||||
|
||||
// Find last and penultimate items in breadcrumbs list
|
||||
end($list);
|
||||
$last_item_key = key($list);
|
||||
prev($list);
|
||||
$penult_item_key = key($list);
|
||||
|
||||
// Generate the trail
|
||||
foreach ($list as $key => $item) :
|
||||
// Make a link if not the last item in the breadcrumbs
|
||||
$show_last = $params->get('showLast', 1);
|
||||
if ($key != $last_item_key)
|
||||
{
|
||||
// Render all but last item - along with separator
|
||||
if (!empty($item->link))
|
||||
{
|
||||
echo '<a href="' . $item->link . '" class="pathway">' . $item->name . '</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<span>' . $item->name . '</span>';
|
||||
}
|
||||
|
||||
if (($key != $penult_item_key) || $show_last)
|
||||
{
|
||||
echo ' '.$separator.' ';
|
||||
}
|
||||
|
||||
}
|
||||
elseif ($show_last)
|
||||
{
|
||||
// Render last item if reqd.
|
||||
echo '<span>' . $item->name . '</span>';
|
||||
}
|
||||
endforeach; ?>
|
||||
</div>
|
1
templates/beez3/html/mod_breadcrumbs/index.html
Normal file
1
templates/beez3/html/mod_breadcrumbs/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
115
templates/beez3/html/modules.php
Normal file
115
templates/beez3/html/modules.php
Normal file
@ -0,0 +1,115 @@
|
||||
<?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;
|
||||
|
||||
/**
|
||||
* beezDivision chrome.
|
||||
*
|
||||
* @since 3.0
|
||||
*/
|
||||
function modChrome_beezDivision($module, &$params, &$attribs)
|
||||
{
|
||||
$headerLevel = isset($attribs['headerLevel']) ? (int) $attribs['headerLevel'] : 3;
|
||||
if (!empty ($module->content)) { ?>
|
||||
<div class="moduletable<?php echo htmlspecialchars($params->get('moduleclass_sfx')); ?>">
|
||||
<?php if ($module->showtitle) { ?> <h<?php echo $headerLevel; ?>><?php echo $module->title; ?></h<?php echo $headerLevel; ?>>
|
||||
<?php }; ?> <?php echo $module->content; ?></div>
|
||||
<?php };
|
||||
}
|
||||
|
||||
/**
|
||||
* beezHide chrome.
|
||||
*
|
||||
* @since 3.0
|
||||
*/
|
||||
function modChrome_beezHide($module, &$params, &$attribs)
|
||||
{
|
||||
$headerLevel = isset($attribs['headerLevel']) ? (int) $attribs['headerLevel'] : 3;
|
||||
$state = isset($attribs['state']) ? (int) $attribs['state'] :0;
|
||||
|
||||
if (!empty ($module->content)) { ?>
|
||||
|
||||
<div
|
||||
class="moduletable_js <?php echo htmlspecialchars($params->get('moduleclass_sfx'));?>"><?php if ($module->showtitle) : ?>
|
||||
<h<?php echo $headerLevel; ?> class="js_heading"> <?php echo $module->title; ?> <a href="#"
|
||||
title="<?php echo JText::_('TPL_BEEZ3_CLICK'); ?>"
|
||||
onclick="auf('module_<?php echo $module->id; ?>'); return false"
|
||||
class="opencloselink" id="link_<?php echo $module->id?>"> <span
|
||||
class="no"><img src="templates/beez3/images/plus.png"
|
||||
alt="<?php if ($state == 1) { echo JText::_('TPL_BEEZ3_ALTOPEN');} else {echo JText::_('TPL_BEEZ3_ALTCLOSE');} ?>" />
|
||||
</span></a></h<?php echo $headerLevel; ?>> <?php endif; ?>
|
||||
<div class="module_content <?php if ($state == 1){echo "open";} ?>"
|
||||
id="module_<?php echo $module->id; ?>" tabindex="-1"><?php echo $module->content; ?></div>
|
||||
</div>
|
||||
<?php }
|
||||
}
|
||||
|
||||
/**
|
||||
* beezTabs chrome.
|
||||
*
|
||||
* @since 3.0
|
||||
*/
|
||||
function modChrome_beezTabs($module, $params, $attribs)
|
||||
{
|
||||
$area = isset($attribs['id']) ? (int) $attribs['id'] :'1';
|
||||
$area = 'area-'.$area;
|
||||
|
||||
static $modulecount;
|
||||
static $modules;
|
||||
|
||||
if ($modulecount < 1)
|
||||
{
|
||||
$modulecount = count(JModuleHelper::getModules($module->position));
|
||||
$modules = array();
|
||||
}
|
||||
|
||||
if ($modulecount == 1)
|
||||
{
|
||||
$temp = new stdClass;
|
||||
$temp->content = $module->content;
|
||||
$temp->title = $module->title;
|
||||
$temp->params = $module->params;
|
||||
$temp->id = $module->id;
|
||||
$modules[] = $temp;
|
||||
// list of moduletitles
|
||||
// list of moduletitles
|
||||
echo '<div id="'. $area.'" class="tabouter"><ul class="tabs">';
|
||||
|
||||
foreach ($modules as $rendermodule)
|
||||
{
|
||||
echo '<li class="tab"><a href="#" id="link_'.$rendermodule->id.'" class="linkopen" onclick="tabshow(\'module_'. $rendermodule->id.'\');return false">'.$rendermodule->title.'</a></li>';
|
||||
}
|
||||
echo '</ul>';
|
||||
$counter = 0;
|
||||
// modulecontent
|
||||
foreach ($modules as $rendermodule)
|
||||
{
|
||||
$counter ++;
|
||||
|
||||
echo '<div tabindex="-1" class="tabcontent tabopen" id="module_'.$rendermodule->id.'">';
|
||||
echo $rendermodule->content;
|
||||
if ($counter != count($modules))
|
||||
{
|
||||
echo '<a href="#" class="unseen" onclick="nexttab(\'module_'. $rendermodule->id.'\');return false;" id="next_'.$rendermodule->id.'">'.JText::_('TPL_BEEZ3_NEXTTAB').'</a>';
|
||||
}
|
||||
echo '</div>';
|
||||
}
|
||||
$modulecount--;
|
||||
echo '</div>';
|
||||
} else {
|
||||
$temp = new stdClass;
|
||||
$temp->content = $module->content;
|
||||
$temp->params = $module->params;
|
||||
$temp->title = $module->title;
|
||||
$temp->id = $module->id;
|
||||
$modules[] = $temp;
|
||||
$modulecount--;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user