You've already forked joomla_test
first commit
This commit is contained in:
251
templates/as002036free/html/com_contact/contact/default.php
Normal file
251
templates/as002036free/html/com_contact/contact/default.php
Normal file
@ -0,0 +1,251 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_contact
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$cparams = JComponentHelper::getParams('com_media');
|
||||
|
||||
jimport('joomla.html.html.bootstrap');
|
||||
?>
|
||||
<div class="page page-contact page-contact__<?php echo $this->pageclass_sfx?>">
|
||||
|
||||
<!-- Heading -->
|
||||
<?php if ($this->params->get('show_page_heading')) : ?>
|
||||
<div class="page_header">
|
||||
<h1><?php echo $this->escape($this->params->get('page_heading')); ?></h1>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Contact name -->
|
||||
<?php if ($this->contact->name && $this->params->get('show_name')) : ?>
|
||||
<div clas="contact_name">
|
||||
<h2>
|
||||
<?php if ($this->item->published == 0): ?>
|
||||
<span class="label label-warning"><?php echo JText::_('JUNPUBLISHED'); ?></span>
|
||||
<?php endif; ?>
|
||||
<?php echo $this->contact->name; ?>
|
||||
</h2>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Category -->
|
||||
<?php if ($this->params->get('show_contact_category') == 'show_no_link') : ?>
|
||||
<div class="contact_category">
|
||||
<h3>
|
||||
<?php echo $this->contact->category_title; ?>
|
||||
</h3>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Category With link -->
|
||||
<?php if ($this->params->get('show_contact_category') == 'show_with_link') : ?>
|
||||
<?php $contactLink = ContactHelperRoute::getCategoryRoute($this->contact->catid); ?>
|
||||
<div class="contact_category contact_category__link">
|
||||
<h3>
|
||||
<a href="<?php echo $contactLink; ?>">
|
||||
<?php echo $this->escape($this->contact->category_title); ?>
|
||||
</a>
|
||||
</h3>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Contact list -->
|
||||
<?php if ($this->params->get('show_contact_list') && count($this->contacts) > 1) : ?>
|
||||
<form action="#" method="get" name="selectForm" id="selectForm">
|
||||
<?php echo JText::_('COM_CONTACT_SELECT_CONTACT'); ?>
|
||||
<?php echo JHtml::_('select.genericlist', $this->contacts, 'id', 'class="inputbox" onchange="document.location.href = this.value"', 'link', 'name', $this->contact->link);?>
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- TABS Contact details -->
|
||||
<?php if ($this->params->get('presentation_style') == 'tabs'):?>
|
||||
<ul class="nav nav-tabs" id="myTab">
|
||||
<li><a data-toggle="tab" href="#basic-details"><?php echo JText::_('COM_CONTACT_DETAILS'); ?></a></li>
|
||||
<?php if ($this->params->get('show_email_form') && ($this->contact->email_to || $this->contact->user_id)) : ?><li><a data-toggle="tab" href="#display-form"><?php echo JText::_('COM_CONTACT_EMAIL_FORM'); ?></a></li><?php endif; ?>
|
||||
<?php if ($this->params->get('show_links')) : ?><li><a data-toggle="tab" href="#display-links"><?php echo JText::_('COM_CONTACT_LINKS'); ?></a></li><?php endif; ?>
|
||||
<?php if ($this->params->get('show_articles') && $this->contact->user_id && $this->contact->articles) : ?><li><a data-toggle="tab" href="#display-articles"><?php echo JText::_('JGLOBAL_ARTICLES'); ?></a></li><?php endif; ?>
|
||||
<?php if ($this->params->get('show_profile') && $this->contact->user_id && JPluginHelper::isEnabled('user', 'profile')) : ?><li><a data-toggle="tab" href="#display-profile"><?php echo JText::_('COM_CONTACT_PROFILE'); ?></a></li><?php endif; ?>
|
||||
<?php if ($this->contact->misc && $this->params->get('show_misc')) : ?><li><a data-toggle="tab" href="#display-misc"><?php echo JText::_('COM_CONTACT_OTHER_INFORMATION'); ?></a></li><?php endif; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('presentation_style') == 'sliders'): ?>
|
||||
<?php echo JHtml::_('bootstrap.startAccordion', 'slide-contact', array('active' => 'basic-details')); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'tabs'): ?>
|
||||
<?php echo JHtml::_('bootstrap.startPane', 'myTab', array('active' => 'basic-details')); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('presentation_style') == 'sliders'): ?>
|
||||
<?php echo JHtml::_('bootstrap.addSlide', 'slide-contact', JText::_('COM_CONTACT_DETAILS'), 'basic-details'); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'tabs'): ?>
|
||||
<?php echo JHtml::_('bootstrap.addPanel', 'myTab', 'basic-details'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<!-- PLAIN Contact Details -->
|
||||
<?php if ($this->params->get('presentation_style') == 'plain'):?>
|
||||
<?php /* echo '<h3>'. JText::_('COM_CONTACT_DETAILS').'</h3>'; */ ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->contact->image && $this->params->get('show_image')) : ?>
|
||||
<div class="thumbnail pull-right">
|
||||
<?php echo JHtml::_('image', $this->contact->image, JText::_('COM_CONTACT_IMAGE_DETAILS'), array('align' => 'middle')); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->contact->con_position && $this->params->get('show_position')) : ?>
|
||||
<dl class="contact-position dl-horizontal">
|
||||
<dd>
|
||||
<?php echo $this->contact->con_position; ?>
|
||||
</dd>
|
||||
</dl>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') !== 'plain'):?>
|
||||
<?php echo $this->loadTemplate('address'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('presentation_style') == 'sliders'): ?>
|
||||
<?php echo JHtml::_('bootstrap.endSlide'); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'tabs'): ?>
|
||||
<?php echo JHtml::_('bootstrap.endPanel'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- CONTACT FORM -->
|
||||
|
||||
<?php if ($this->params->get('show_contact_list')) : ?>
|
||||
|
||||
<?php if ($this->params->get('presentation_style') == 'sliders'): ?>
|
||||
<?php echo JHtml::_('bootstrap.addSlide', 'slide-contact', JText::_('COM_CONTACT_EMAIL_FORM'), 'display-form'); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'tabs'): ?>
|
||||
<?php echo JHtml::_('bootstrap.addPanel', 'myTab', 'display-form'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Form -->
|
||||
|
||||
<!-- Misc -->
|
||||
<?php if ($this->contact->misc && $this->params->get('show_misc')) : ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'plain'):?>
|
||||
|
||||
<div class="contact_misc">
|
||||
<?php echo $this->contact->misc; ?>
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Contact details -->
|
||||
<?php if ($this->params->get('presentation_style') == 'plain'):?>
|
||||
<br />
|
||||
<div class="row-fluid">
|
||||
<?php echo $this->loadTemplate('address'); ?>
|
||||
</div>
|
||||
<br />
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $this->loadTemplate('form'); ?>
|
||||
|
||||
<?php if ($this->params->get('presentation_style') == 'sliders'): ?>
|
||||
<?php echo JHtml::_('bootstrap.endSlide'); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'tabs'): ?>
|
||||
<?php echo JHtml::_('bootstrap.endPanel'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<!-- MISC INFO -->
|
||||
|
||||
<?php if ($this->contact->misc && $this->params->get('show_misc')) : ?>
|
||||
|
||||
<?php if ($this->params->get('presentation_style') == 'sliders'): ?>
|
||||
<?php echo JHtml::_('bootstrap.addSlide', 'slide-contact', JText::_('COM_CONTACT_OTHER_INFORMATION'), 'display-misc'); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'tabs'): ?>
|
||||
<?php echo JHtml::_('bootstrap.addPanel', 'myTab', 'display-misc'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('presentation_style') !== 'plain'):?>
|
||||
<?php echo $this->contact->misc; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('presentation_style') == 'sliders'): ?>
|
||||
<?php echo JHtml::_('bootstrap.endSlide'); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'tabs'): ?>
|
||||
<?php echo JHtml::_('bootstrap.endPanel'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
|
||||
|
||||
<?php if ($this->params->get('show_links')) : ?>
|
||||
<?php echo $this->loadTemplate('links'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_articles') && $this->contact->user_id && $this->contact->articles) : ?>
|
||||
|
||||
<?php if ($this->params->get('presentation_style') == 'sliders'): ?>
|
||||
<?php echo JHtml::_('bootstrap.addSlide', 'slide-contact', JText::_('JGLOBAL_ARTICLES'), 'display-articles'); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'tabs'): ?>
|
||||
<?php echo JHtml::_('bootstrap.addPanel', 'myTab', 'display-articles'); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'plain'):?>
|
||||
<?php echo '<h3>'. JText::_('JGLOBAL_ARTICLES').'</h3>'; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $this->loadTemplate('articles'); ?>
|
||||
|
||||
<?php if ($this->params->get('presentation_style') == 'sliders'): ?>
|
||||
<?php echo JHtml::_('bootstrap.endSlide'); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'tabs'): ?>
|
||||
<?php echo JHtml::_('bootstrap.endPanel'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_profile') && $this->contact->user_id && JPluginHelper::isEnabled('user', 'profile')) : ?>
|
||||
|
||||
<?php if ($this->params->get('presentation_style') == 'sliders'): ?>
|
||||
<?php echo JHtml::_('bootstrap.addSlide', 'slide-contact', JText::_('COM_CONTACT_PROFILE'), 'display-profile'); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'tabs'): ?>
|
||||
<?php echo JHtml::_('bootstrap.addPanel', 'myTab', 'display-profile'); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'plain'):?>
|
||||
<?php echo '<h3>'. JText::_('COM_CONTACT_PROFILE').'</h3>'; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $this->loadTemplate('profile'); ?>
|
||||
|
||||
<?php if ($this->params->get('presentation_style') == 'sliders'): ?>
|
||||
<?php echo JHtml::_('bootstrap.endSlide'); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'tabs'): ?>
|
||||
<?php echo JHtml::_('bootstrap.endPanel'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php if ($this->params->get('presentation_style') == 'sliders'): ?>
|
||||
<?php echo JHtml::_('bootstrap.endAccordion'); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'tabs'): ?>
|
||||
<?php echo JHtml::_('bootstrap.endPane'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
@ -0,0 +1,107 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_contact
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* marker_class: Class based on the selection of text, none, or #__
|
||||
* jicon-text, jicon-none, jicon-icon
|
||||
*/
|
||||
?>
|
||||
|
||||
|
||||
<div class="contact_details">
|
||||
|
||||
<?php if (($this->params->get('address_check') > 0) &&
|
||||
($this->contact->address || $this->contact->suburb || $this->contact->state || $this->contact->country || $this->contact->postcode)) : ?>
|
||||
|
||||
<div class="span6">
|
||||
|
||||
<?php if ($this->params->get('address_check') > 0) : ?>
|
||||
<i class="icons-marker icon-home"></i>
|
||||
<?php endif; ?>
|
||||
<div class="contact_address">
|
||||
<?php if ($this->contact->address && $this->params->get('show_street_address')) : ?>
|
||||
<?php echo $this->contact->address; ?><br/>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->contact->suburb && $this->params->get('show_suburb')) : ?>
|
||||
<?php echo $this->contact->suburb; ?><br/>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->contact->state && $this->params->get('show_state')) : ?>
|
||||
<?php echo $this->contact->state; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->contact->postcode && $this->params->get('show_postcode')) : ?>
|
||||
<?php echo $this->contact->postcode; ?><br/>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->contact->country && $this->params->get('show_country')) : ?>
|
||||
<?php echo $this->contact->country; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="span6">
|
||||
<?php if ($this->contact->email_to && $this->params->get('show_email')) : ?>
|
||||
|
||||
<i class="icons-marker icon-envelope"></i>
|
||||
<div class="contact_details_emailto">
|
||||
<?php echo $this->contact->email_to; ?>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->contact->telephone && $this->params->get('show_telephone')) : ?>
|
||||
<i class="icons-marker icon-phone"></i>
|
||||
<div class="contact_details_telephone">
|
||||
<?php echo nl2br($this->contact->telephone); ?>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->contact->fax && $this->params->get('show_fax')) : ?>
|
||||
<i class="icons-marker icon-print"></i>
|
||||
<div class="contact_details_fax">
|
||||
<?php echo nl2br($this->contact->fax); ?>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->contact->mobile && $this->params->get('show_mobile')) :?>
|
||||
<i class="icons-marker icon-mobile"></i>
|
||||
<div class="contact_details_mobile">
|
||||
<?php echo nl2br($this->contact->mobile); ?>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->contact->webpage && $this->params->get('show_webpage')) : ?>
|
||||
<i class="icons-marker icon-list-alt"></i>
|
||||
<div class="contact_details_webpage">
|
||||
<a href="<?php echo $this->contact->webpage; ?>" target="_blank">
|
||||
<?php echo $this->contact->webpage; ?></a>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<?php if ($this->params->get('allow_vcard')) : ?>
|
||||
<div class="contact_vcard">
|
||||
<i class="muted"><?php echo JText::_('COM_CONTACT_DOWNLOAD_INFORMATION_AS');?>
|
||||
<a href="<?php echo JRoute::_('index.php?option=com_contact&view=contact&id='.$this->contact->id . '&format=vcf'); ?>">
|
||||
<?php echo JText::_('COM_CONTACT_VCARD');?></a>
|
||||
</i>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
@ -0,0 +1,88 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_contact
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
JHtml::_('behavior.keepalive');
|
||||
JHtml::_('behavior.formvalidation');
|
||||
JHtml::_('behavior.tooltip');
|
||||
if (isset($this->error)) : ?>
|
||||
<div class="contact-error">
|
||||
<?php echo $this->error; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="contact_form">
|
||||
<form id="contact-form" action="<?php echo JRoute::_('index.php'); ?>" method="post" class="form-validate">
|
||||
<fieldset>
|
||||
<!-- <legend></legend> -->
|
||||
<p class="muted">
|
||||
<i class="muted"><?php echo JText::_('COM_CONTACT_FORM_LABEL'); ?></i>
|
||||
</p>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<div class="row-fluid">
|
||||
<div class="span5">
|
||||
<?php echo $this->form->getLabel('contact_name'); ?>
|
||||
<div class="controls"><?php echo $this->form->getInput('contact_name'); ?></div>
|
||||
|
||||
<?php echo $this->form->getLabel('contact_email'); ?>
|
||||
<div class="controls"><?php echo $this->form->getInput('contact_email'); ?></div>
|
||||
|
||||
<?php echo $this->form->getLabel('contact_subject'); ?>
|
||||
<div class="controls"><?php echo $this->form->getInput('contact_subject'); ?></div>
|
||||
</div>
|
||||
|
||||
<div class="span7">
|
||||
<?php echo $this->form->getLabel('contact_message'); ?>
|
||||
<div class="controls"><?php echo $this->form->getInput('contact_message'); ?></div>
|
||||
<?php //Dynamically load any additional fields from plugins. ?>
|
||||
<?php foreach ($this->form->getFieldsets() as $fieldset): ?>
|
||||
<?php if ($fieldset->name != 'contact'):?>
|
||||
<?php $fields = $this->form->getFieldset($fieldset->name);?>
|
||||
<?php foreach($fields as $field): ?>
|
||||
<div class="control-group">
|
||||
<?php if ($field->hidden): ?>
|
||||
<div class="controls">
|
||||
<?php echo $field->input;?>
|
||||
</div>
|
||||
<?php else:?>
|
||||
<div class="control-label">
|
||||
<?php echo $field->label; ?>
|
||||
<?php if (!$field->required && $field->type != "Spacer"): ?>
|
||||
<span class="optional"><?php echo JText::_('COM_CONTACT_OPTIONAL');?></span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="controls"><?php echo $field->input;?></div>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
<?php endforeach;?>
|
||||
<?php endif ?>
|
||||
<?php endforeach;?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="controls">
|
||||
|
||||
<button class="btn validate btn-primary pull-right" type="submit"><?php echo JText::_('COM_CONTACT_CONTACT_SEND'); ?></button>
|
||||
|
||||
<?php if ($this->params->get('show_email_copy')) { ?>
|
||||
<div class="contact_email-copy pull-right">
|
||||
<?php echo $this->form->getLabel('contact_email_copy'); ?>
|
||||
<span class="checkbox-radio-wrap__inline"><?php echo $this->form->getInput('contact_email_copy'); ?></span>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<input type="hidden" name="option" value="com_contact" />
|
||||
<input type="hidden" name="task" value="contact.submit" />
|
||||
<input type="hidden" name="return" value="<?php echo $this->return_page;?>" />
|
||||
<input type="hidden" name="id" value="<?php echo $this->contact->slug; ?>" />
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
|
||||
<iframe
|
||||
width="550"
|
||||
height="352"
|
||||
frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/?ie=UTF8&t=m&ll=40.579591,-73.970668&spn=0.011082,0.023561&z=15&output=embed"></iframe>
|
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
1
templates/as002036free/html/com_contact/index.html
Normal file
1
templates/as002036free/html/com_contact/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
50
templates/as002036free/html/com_content/archive/default.php
Normal file
50
templates/as002036free/html/com_content/archive/default.php
Normal file
@ -0,0 +1,50 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
|
||||
|
||||
JHtml::_('behavior.caption');
|
||||
?>
|
||||
<div class="page-archive page-archive__<?php echo $this->pageclass_sfx;?>">
|
||||
|
||||
<?php if ($this->params->get('show_page_heading', 1)) : ?>
|
||||
<div class="page_header">
|
||||
<h1>
|
||||
<?php echo $this->escape($this->params->get('page_heading')); ?>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
<form id="adminForm" action="<?php echo JRoute::_('index.php')?>" method="post" class="form-inline page-archive_filters">
|
||||
<fieldset class="filters">
|
||||
<div class="filter-search alert alert-info">
|
||||
<?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 span2" 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="btn btn-primary pull-right"><?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>
|
@ -0,0 +1,195 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
|
||||
$params = $this->params;
|
||||
?>
|
||||
|
||||
<div id="page-archive_items">
|
||||
<?php foreach ($this->items as $i => $item) : ?>
|
||||
<?php $info = $item->params->get('info_block_position', 0); ?>
|
||||
<div class="row<?php echo $i % 2; ?>">
|
||||
<div class="item">
|
||||
<div class="item_header">
|
||||
<p class="item_title">
|
||||
<b><?php if ($params->get('link_titles')) : ?>
|
||||
<a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($item->slug, $item->catslug)); ?>"> <?php echo $this->escape($item->title); ?></a>
|
||||
<?php else: ?>
|
||||
<?php echo $this->escape($item->title); ?>
|
||||
<?php endif; ?></b>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<?php $useDefList = ($params->get('show_modify_date') || $params->get('show_publish_date')
|
||||
|| $params->get('show_hits') || $params->get('show_category') || $params->get('show_parent_category')); ?>
|
||||
<?php if ($useDefList && ($info == 0 || $info == 2)) : ?>
|
||||
<div class="item_info muted">
|
||||
<dl class="item_info_dl">
|
||||
|
||||
<!-- <dt class="article-info-term">
|
||||
<?php /*echo JText::_('COM_CONTENT_ARTICLE_INFO');*/ ?>
|
||||
</dt> -->
|
||||
|
||||
<?php if ($params->get('show_parent_category') && !empty($item->parent_slug)) : ?>
|
||||
<dd>
|
||||
<div class="item_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') && !empty($item->parent_slug)) : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $title); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_category')) : ?>
|
||||
<dd>
|
||||
<div class="item_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('TPL_IN', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('TPL_IN', $title); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_publish_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_published">
|
||||
<?php echo JText::sprintf('TPL_ON', JHtml::_('date', $item->publish_up, JText::_('DATE_FORMAT_TPL4'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_author') && !empty($item->author )) : ?>
|
||||
<dd class="item_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(
|
||||
'TPL_BY',
|
||||
JHtml::_('link', JRoute::_('index.php?option=com_contact&view=contact&id='.$item->contactid), $author)
|
||||
); ?>
|
||||
<?php else :?>
|
||||
<?php echo JText::sprintf('TPL_BY', $author); ?>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php if ($info == 0): ?>
|
||||
<?php if ($params->get('show_modify_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_modified">
|
||||
<?php echo JText::sprintf('COM_CONTENT_LAST_UPDATED', JHtml::_('date', $item->modified, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_create_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_create">
|
||||
<?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $item->created, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_hits')) : ?>
|
||||
<dd>
|
||||
<div class="item_hits">
|
||||
<?php echo JText::sprintf('COM_CONTENT_ARTICLE_HITS', $item->hits); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</dl>
|
||||
</div>
|
||||
<?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; ?>
|
||||
|
||||
<?php if ($useDefList && ($info == 1 || $info == 2)) : ?>
|
||||
<div class="item_info muted">
|
||||
<dl class="item_info_dl">
|
||||
|
||||
<!-- <dt class="article-info-term"><?php /*echo JText::_('COM_CONTENT_ARTICLE_INFO');*/ ?></dt> -->
|
||||
|
||||
<?php if ($info == 1): ?>
|
||||
<?php if ($params->get('show_parent_category') && !empty($item->parent_slug)) : ?>
|
||||
<dd>
|
||||
<div class="item_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; ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_category')) : ?>
|
||||
<dd>
|
||||
<div class="item_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('TPL_IN', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('TPL_IN', $title); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_publish_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_published">
|
||||
<?php echo JText::sprintf('TPL_ON', JHtml::_('date', $item->publish_up, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_create_date')) : ?>
|
||||
<dd>
|
||||
<div class="create"><?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $item->modified, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_modify_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_modified"><?php echo JText::sprintf('COM_CONTENT_LAST_UPDATED', JHtml::_('date', $item->modified, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_hits')) : ?>
|
||||
<dd>
|
||||
<div class="item_hits">
|
||||
<?php echo JText::sprintf('COM_CONTENT_ARTICLE_HITS', $item->hits); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
</dl>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<div class="pagination">
|
||||
<p class="counter"> <?php echo $this->pagination->getPagesCounter(); ?> </p>
|
||||
<?php echo $this->pagination->getPagesLinks(); ?>
|
||||
</div>
|
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
299
templates/as002036free/html/com_content/article/default.php
Normal file
299
templates/as002036free/html/com_content/article/default.php
Normal file
@ -0,0 +1,299 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
|
||||
|
||||
// Create shortcuts to some parameters.
|
||||
$params = $this->item->params;
|
||||
$images = json_decode($this->item->images);
|
||||
$urls = json_decode($this->item->urls);
|
||||
$canEdit = $params->get('access-edit');
|
||||
$user = JFactory::getUser();
|
||||
$info = $params->get('info_block_position', 0);
|
||||
JHtml::_('behavior.caption');
|
||||
|
||||
?>
|
||||
<div class="page-item page-item__<?php echo $this->pageclass_sfx?>">
|
||||
|
||||
<?php /*if ($this->params->get('show_page_heading', 1)) : ?>
|
||||
<div class="page-header">
|
||||
<h1> <?php echo $this->escape($this->params->get('page_heading')); ?> </h1>
|
||||
</div>
|
||||
<?php endif;*/
|
||||
|
||||
if (!empty($this->item->pagination) && $this->item->pagination && !$this->item->paginationposition && $this->item->paginationrelative)
|
||||
{
|
||||
echo $this->item->pagination;
|
||||
}
|
||||
?>
|
||||
<?php if (!$this->print) : ?>
|
||||
<?php if ($canEdit || $params->get('show_print_icon') || $params->get('show_email_icon')) : ?>
|
||||
<div class="item_icons btn-group pull-right">
|
||||
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> <i class="icon-cog"></i> <span class="caret"></span> </a>
|
||||
<?php // Note the actions class is deprecated. Use dropdown-menu instead. ?>
|
||||
<ul class="dropdown-menu actions">
|
||||
<?php if ($params->get('show_print_icon')) : ?>
|
||||
<li class="print-icon"> <?php echo JHtml::_('icon.print_popup', $this->item, $params); ?> </li>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_email_icon')) : ?>
|
||||
<li class="email-icon"> <?php echo JHtml::_('icon.email', $this->item, $params); ?> </li>
|
||||
<?php endif; ?>
|
||||
<?php if ($canEdit) : ?>
|
||||
<li class="edit-icon"> <?php echo JHtml::_('icon.edit', $this->item, $params); ?> </li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php else : ?>
|
||||
<div class="pull-right">
|
||||
<?php echo JHtml::_('icon.print_screen', $this->item, $params); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php if ($params->get('show_title')) : ?>
|
||||
<div class="item_header">
|
||||
<h2 class="item_title">
|
||||
<?php if ($this->item->state == 0): ?>
|
||||
<span class="label label-warning"><?php echo JText::_('JUNPUBLISHED'); ?></span>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_title')) : ?>
|
||||
<?php echo $this->escape($this->item->title); ?>
|
||||
<?php endif; ?>
|
||||
</h2>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($images->image_fulltext) && !empty($images->image_fulltext)) : ?>
|
||||
<?php $imgfloat = (empty($images->float_fulltext)) ? $params->get('float_fulltext') : $images->float_fulltext; ?>
|
||||
<div class="item_img img-full img-full__<?php echo htmlspecialchars($imgfloat); ?> item-image"> <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 $useDefList = ($params->get('show_modify_date') || $params->get('show_publish_date')
|
||||
|| $params->get('show_hits') || $params->get('show_category') || $params->get('show_parent_category')); ?>
|
||||
<?php if ($useDefList && ($info == 0 || $info == 2)) : ?>
|
||||
<div class="item_info muted">
|
||||
<dl class="item_info_dl">
|
||||
<!-- <dt class="article-info-term"><?php /*echo JText::_('COM_CONTENT_ARTICLE_INFO');*/ ?></dt>
|
||||
-->
|
||||
<?php if ($params->get('show_parent_category') && !empty($this->item->parent_slug)) : ?>
|
||||
<dd>
|
||||
<div class="item_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') && !empty($this->item->parent_slug)) : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $title); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_category')) : ?>
|
||||
<dd>
|
||||
<div class="item_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') && $this->item->catslug) : ?>
|
||||
<?php echo JText::sprintf('TPL_IN', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('TPL_IN', $title); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_publish_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_published">
|
||||
<?php echo JHtml::_('date', $this->item->publish_up, JText::_('DATE_FORMAT_TPL4')); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_author') && !empty($this->item->author )) : ?>
|
||||
<dd class="item_createdby">
|
||||
<?php $author = $this->item->created_by_alias ? $this->item->created_by_alias : $this->item->author; ?>
|
||||
<?php if (!empty($this->item->contactid) && $params->get('link_author') == true) : ?>
|
||||
<?php
|
||||
$needle = 'index.php?option=com_contact&view=contact&id=' . $this->item->contactid;
|
||||
$menu = JFactory::getApplication()->getMenu();
|
||||
$item = $menu->getItems('link', $needle, true);
|
||||
$cntlink = !empty($item) ? $needle . '&Itemid=' . $item->id : $needle;
|
||||
?>
|
||||
<?php echo JText::sprintf('TPL_BY', JHtml::_('link', JRoute::_($cntlink), $author)); ?>
|
||||
<?php else: ?>
|
||||
<?php echo JText::sprintf('TPL_BY', $author); ?>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php if ($info == 0): ?>
|
||||
<?php if ($params->get('show_modify_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_modified">
|
||||
<?php echo JText::sprintf('COM_CONTENT_LAST_UPDATED', JHtml::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_create_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_create">
|
||||
<?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $this->item->created, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_hits')) : ?>
|
||||
<dd>
|
||||
<div class="item_hits">
|
||||
<?php echo JText::sprintf('COM_CONTENT_ARTICLE_HITS', $this->item->hits); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</dl>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!$params->get('show_intro')) : echo $this->item->event->afterDisplayTitle; endif; ?>
|
||||
<?php echo $this->item->event->beforeDisplayContent; ?>
|
||||
|
||||
<?php if (isset($urls) && ((!empty($urls->urls_position) && ($urls->urls_position == '0')) || ($params->get('urls_position') == '0' && empty($urls->urls_position)))
|
||||
|| (empty($urls->urls_position) && (!$params->get('urls_position')))) : ?>
|
||||
<?php echo $this->loadTemplate('links'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('access-view')):?>
|
||||
|
||||
|
||||
<?php
|
||||
if (!empty($this->item->pagination) && $this->item->pagination && !$this->item->paginationposition && !$this->item->paginationrelative):
|
||||
echo $this->item->pagination;
|
||||
endif;
|
||||
?>
|
||||
<?php if (isset ($this->item->toc)) :
|
||||
echo $this->item->toc;
|
||||
endif; ?>
|
||||
|
||||
<div class="item_fulltext"><?php echo $this->item->text; ?></div>
|
||||
|
||||
<?php if ($useDefList && ($info == 1 || $info == 2)) : ?>
|
||||
<div class="item_info muted">
|
||||
<dl class="item_info_dl">
|
||||
<!-- <dt class="article-info-term"><?php /*echo JText::_('COM_CONTENT_ARTICLE_INFO');*/ ?></dt> -->
|
||||
|
||||
<?php if ($info == 1): ?>
|
||||
<?php if ($params->get('show_parent_category') && !empty($this->item->parent_slug)) : ?>
|
||||
<dd>
|
||||
<div class="item_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') && $this->item->parent_slug) : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $title); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_category')) : ?>
|
||||
<dd>
|
||||
<div class="item_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') && $this->item->catslug) : ?>
|
||||
<?php echo JText::sprintf('TPL_IN', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('TPL_IN', $title); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_publish_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_published">
|
||||
<?php echo JText::sprintf('TPL_ON', JHtml::_('date', $this->item->publish_up, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_create_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_create"><?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_modify_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_modified"><?php echo JText::sprintf('COM_CONTENT_LAST_UPDATED', JHtml::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_hits')) : ?>
|
||||
<dd>
|
||||
<div class="item_hits">
|
||||
<?php echo JText::sprintf('COM_CONTENT_ARTICLE_HITS', $this->item->hits); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
</dl>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
if (!empty($this->item->pagination) && $this->item->pagination && $this->item->paginationposition && !$this->item->paginationrelative):
|
||||
echo $this->item->pagination;
|
||||
?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($urls) && ((!empty($urls->urls_position) && ($urls->urls_position == '1')) || ($params->get('urls_position') == '1'))): ?>
|
||||
<?php echo $this->loadTemplate('links'); ?>
|
||||
<?php endif; ?>
|
||||
<?php //optional teaser intro text for guests ?>
|
||||
<?php elseif ($params->get('show_noauth') == true && $user->get('guest')) : ?>
|
||||
<?php echo $this->item->introtext; ?>
|
||||
<?php //Optional link to let them register to see the whole article. ?>
|
||||
<?php if ($params->get('show_readmore') && $this->item->fulltext != null) :
|
||||
$link1 = JRoute::_('index.php?option=com_users&view=login');
|
||||
$link = new JURI($link1);?>
|
||||
<div class="item_readmore">
|
||||
<a href="<?php echo $link; ?>" class="btn btn-info readmore">
|
||||
<?php $attribs = json_decode($this->item->attribs); ?>
|
||||
<?php
|
||||
if ($attribs->alternative_readmore == null) :
|
||||
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>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
if (!empty($this->item->pagination) && $this->item->pagination && $this->item->paginationposition && $this->item->paginationrelative) :
|
||||
echo $this->item->pagination;
|
||||
?>
|
||||
<?php endif; ?>
|
||||
<?php echo $this->item->event->afterDisplayContent; ?> </div>
|
310
templates/as002036free/html/com_content/article/gallery.php
Normal file
310
templates/as002036free/html/com_content/article/gallery.php
Normal file
@ -0,0 +1,310 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
|
||||
|
||||
// Create shortcuts to some parameters.
|
||||
$params = $this->item->params;
|
||||
$images = json_decode($this->item->images);
|
||||
$urls = json_decode($this->item->urls);
|
||||
$canEdit = $params->get('access-edit');
|
||||
$user = JFactory::getUser();
|
||||
$info = $params->get('info_block_position', 0);
|
||||
JHtml::_('behavior.caption');
|
||||
|
||||
?>
|
||||
<div class="page-item page-item__<?php echo $this->pageclass_sfx?>">
|
||||
|
||||
<?php /*if ($this->params->get('show_page_heading', 1)) : ?>
|
||||
<div class="page-header">
|
||||
<h1> <?php echo $this->escape($this->params->get('page_heading')); ?> </h1>
|
||||
</div>
|
||||
<?php endif;*/
|
||||
|
||||
if (!empty($this->item->pagination) && $this->item->pagination && !$this->item->paginationposition && $this->item->paginationrelative)
|
||||
{
|
||||
echo $this->item->pagination;
|
||||
}
|
||||
?>
|
||||
<?php if (!$this->print) : ?>
|
||||
<?php if ($canEdit || $params->get('show_print_icon') || $params->get('show_email_icon')) : ?>
|
||||
<div class="item_icons btn-group pull-right">
|
||||
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> <i class="icon-cog"></i> <span class="caret"></span> </a>
|
||||
<?php // Note the actions class is deprecated. Use dropdown-menu instead. ?>
|
||||
<ul class="dropdown-menu actions">
|
||||
<?php if ($params->get('show_print_icon')) : ?>
|
||||
<li class="print-icon"> <?php echo JHtml::_('icon.print_popup', $this->item, $params); ?> </li>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_email_icon')) : ?>
|
||||
<li class="email-icon"> <?php echo JHtml::_('icon.email', $this->item, $params); ?> </li>
|
||||
<?php endif; ?>
|
||||
<?php if ($canEdit) : ?>
|
||||
<li class="edit-icon"> <?php echo JHtml::_('icon.edit', $this->item, $params); ?> </li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php else : ?>
|
||||
<div class="pull-right">
|
||||
<?php echo JHtml::_('icon.print_screen', $this->item, $params); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_title') || $params->get('show_author')) : ?>
|
||||
<div class="item_header">
|
||||
<h2 class="item_title">
|
||||
<?php if ($this->item->state == 0): ?>
|
||||
<span class="label label-warning"><?php echo JText::_('JUNPUBLISHED'); ?></span>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_title')) : ?>
|
||||
<?php echo $this->escape($this->item->title); ?>
|
||||
<?php endif; ?>
|
||||
</h2>
|
||||
<?php if ($params->get('show_author') && !empty($this->item->author )) : ?>
|
||||
|
||||
<div class="item_createdby">
|
||||
<?php $author = $this->item->created_by_alias ? $this->item->created_by_alias : $this->item->author; ?>
|
||||
<?php if (!empty($this->item->contactid) && $params->get('link_author') == true) : ?>
|
||||
<?php
|
||||
$needle = 'index.php?option=com_contact&view=contact&id=' . $this->item->contactid;
|
||||
$menu = JFactory::getApplication()->getMenu();
|
||||
$item = $menu->getItems('link', $needle, true);
|
||||
$cntlink = !empty($item) ? $needle . '&Itemid=' . $item->id : $needle;
|
||||
?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY', JHtml::_('link', JRoute::_($cntlink), $author)); ?>
|
||||
<?php else: ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY', $author); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php $useDefList = ($params->get('show_modify_date') || $params->get('show_publish_date')
|
||||
|| $params->get('show_hits') || $params->get('show_category') || $params->get('show_parent_category')); ?>
|
||||
<?php if ($useDefList && ($info == 0 || $info == 2)) : ?>
|
||||
<div class="item_info muted">
|
||||
<dl class="item_info_dl">
|
||||
<!-- <dt class="article-info-term"><?php /*echo JText::_('COM_CONTENT_ARTICLE_INFO');*/ ?></dt>
|
||||
-->
|
||||
<?php if ($params->get('show_parent_category') && !empty($this->item->parent_slug)) : ?>
|
||||
<dd>
|
||||
<div class="item_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') && !empty($this->item->parent_slug)) : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $title); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_category')) : ?>
|
||||
<dd>
|
||||
<div class="item_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') && $this->item->catslug) : ?>
|
||||
<?php echo JText::sprintf('TPL_IN', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('TPL_IN', $title); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_publish_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_published">
|
||||
<?php echo JText::sprintf('TPL_ON', JHtml::_('date', $this->item->publish_up, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($info == 0): ?>
|
||||
<?php if ($params->get('show_modify_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_modified">
|
||||
<?php echo JText::sprintf('COM_CONTENT_LAST_UPDATED', JHtml::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_create_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_create">
|
||||
<?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $this->item->created, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_hits')) : ?>
|
||||
<dd>
|
||||
<div class="item_hits">
|
||||
<?php echo JText::sprintf('COM_CONTENT_ARTICLE_HITS', $this->item->hits); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</dl>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!$params->get('show_intro')) : echo $this->item->event->afterDisplayTitle; endif; ?>
|
||||
<?php echo $this->item->event->beforeDisplayContent; ?>
|
||||
|
||||
<?php if (isset($urls) && ((!empty($urls->urls_position) && ($urls->urls_position == '0')) || ($params->get('urls_position') == '0' && empty($urls->urls_position)))
|
||||
|| (empty($urls->urls_position) && (!$params->get('urls_position')))) : ?>
|
||||
<?php echo $this->loadTemplate('links'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('access-view')):?>
|
||||
|
||||
|
||||
<!-- Article Image -->
|
||||
<?php if (isset($images->image_fulltext) and !empty($images->image_fulltext)) : ?>
|
||||
<?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="page-gallery_img">
|
||||
<div class="item_img img-full img-full__<?php echo htmlspecialchars($imgfloat); ?> span5">
|
||||
<a class="touchGalleryLink zoom" href="<?php echo htmlspecialchars($images->image_fulltext); ?>">
|
||||
<span class="zoom-bg"></span>
|
||||
<span class="zoom-icon"></span>
|
||||
<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); ?>"/>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
if (!empty($this->item->pagination) && $this->item->pagination && !$this->item->paginationposition && !$this->item->paginationrelative):
|
||||
echo $this->item->pagination;
|
||||
endif;
|
||||
?>
|
||||
<?php if (isset ($this->item->toc)) :
|
||||
echo $this->item->toc;
|
||||
endif; ?>
|
||||
|
||||
<div class="item_fulltext"><?php echo $this->item->text; ?></div>
|
||||
|
||||
<?php if ($useDefList && ($info == 1 || $info == 2)) : ?>
|
||||
<div class="item_info muted">
|
||||
<dl class="item_info_dl">
|
||||
<!-- <dt class="article-info-term"><?php/* echo JText::_('COM_CONTENT_ARTICLE_INFO');*/ ?></dt> -->
|
||||
|
||||
<?php if ($info == 1): ?>
|
||||
<?php if ($params->get('show_parent_category') && !empty($this->item->parent_slug)) : ?>
|
||||
<dd>
|
||||
<div class="item_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') && $this->item->parent_slug) : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $title); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_category')) : ?>
|
||||
<dd>
|
||||
<div class="item_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') && $this->item->catslug) : ?>
|
||||
<?php echo JText::sprintf('TPL_IN', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('TPL_IN', $title); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_publish_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_published">
|
||||
<?php echo JText::sprintf('TPL_ON', JHtml::_('date', $this->item->publish_up, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_create_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_create"><?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_modify_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_modified"><?php echo JText::sprintf('COM_CONTENT_LAST_UPDATED', JHtml::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_hits')) : ?>
|
||||
<dd>
|
||||
<div class="item_hits">
|
||||
<?php echo JText::sprintf('COM_CONTENT_ARTICLE_HITS', $this->item->hits); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
</dl>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
if (!empty($this->item->pagination) && $this->item->pagination && $this->item->paginationposition && !$this->item->paginationrelative):
|
||||
echo $this->item->pagination;
|
||||
?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($urls) && ((!empty($urls->urls_position) && ($urls->urls_position == '1')) || ($params->get('urls_position') == '1'))): ?>
|
||||
<?php echo $this->loadTemplate('links'); ?>
|
||||
<?php endif; ?>
|
||||
<?php //optional teaser intro text for guests ?>
|
||||
<?php elseif ($params->get('show_noauth') == true && $user->get('guest')) : ?>
|
||||
<?php echo $this->item->introtext; ?>
|
||||
<?php //Optional link to let them register to see the whole article. ?>
|
||||
<?php if ($params->get('show_readmore') && $this->item->fulltext != null) :
|
||||
$link1 = JRoute::_('index.php?option=com_users&view=login');
|
||||
$link = new JURI($link1);?>
|
||||
<div class="item_readmore">
|
||||
<a href="<?php echo $link; ?>" class="btn btn-info readmore">
|
||||
<?php $attribs = json_decode($this->item->attribs); ?>
|
||||
<?php
|
||||
if ($attribs->alternative_readmore == null) :
|
||||
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>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
if (!empty($this->item->pagination) && $this->item->pagination && $this->item->paginationposition && $this->item->paginationrelative) :
|
||||
echo $this->item->pagination;
|
||||
?>
|
||||
<?php endif; ?>
|
||||
<?php echo $this->item->event->afterDisplayContent; ?> </div>
|
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
127
templates/as002036free/html/com_content/category/blog.php
Normal file
127
templates/as002036free/html/com_content/category/blog.php
Normal file
@ -0,0 +1,127 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @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="page-blog page-blog__<?php echo $this->pageclass_sfx;?>">
|
||||
|
||||
<?php if ($this->params->get('show_page_heading', 1)) : ?>
|
||||
<div class="page_header">
|
||||
<h2> <?php echo $this->escape($this->params->get('page_heading')); ?> </h2>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_category_title', 1) or $this->params->get('page_subheading')) : ?>
|
||||
<div class="category_title">
|
||||
<h2> <?php echo $this->escape($this->params->get('page_subheading')); ?>
|
||||
<?php if ($this->params->get('show_category_title')) : ?>
|
||||
<span class="subheading-category"><?php echo $this->category->title;?></span>
|
||||
<?php endif; ?>
|
||||
</h2>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_tags', 1) && !empty($this->category->tags->itemTags)) : ?>
|
||||
<?php $this->category->tagLayout = new JLayoutFile('joomla.content.tags'); ?>
|
||||
<?php echo $this->category->tagLayout->render($this->category->tags->itemTags); ?>
|
||||
<?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 (empty($this->lead_items) && empty($this->link_items) && empty($this->intro_items)) : ?>
|
||||
<?php if ($this->params->get('show_no_articles', 1)) : ?>
|
||||
<p><?php echo JText::_('COM_CONTENT_NO_ARTICLES'); ?></p>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php $leadingcount = 0; ?>
|
||||
<?php if (!empty($this->lead_items)) : ?>
|
||||
<div class="items-leading">
|
||||
<?php foreach ($this->lead_items as &$item) : ?>
|
||||
<div class="item item__blog leading-<?php echo $leadingcount; ?><?php echo $item->state == 0 ? ' system-unpublished' : null; ?>">
|
||||
<?php
|
||||
$this->item = &$item;
|
||||
echo $this->loadTemplate('item');
|
||||
?>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<?php
|
||||
$leadingcount++;
|
||||
?>
|
||||
<?php endforeach; ?>
|
||||
</div><!-- end items-leading -->
|
||||
<div class="clearfix"></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 $rowcount = ((int) $key % (int) $this->columns) + 1; ?>
|
||||
<?php if ($rowcount == 1) : ?>
|
||||
<?php $row = $counter / $this->columns; ?>
|
||||
<div class="items-row cols-<?php echo (int) $this->columns;?> <?php echo 'row-'.$row; ?> row-fluid clearfix">
|
||||
<?php endif; ?>
|
||||
<div class="span<?php echo round((12 / $this->columns));?>">
|
||||
<div class="item column-<?php echo $rowcount;?><?php echo $item->state == 0 ? ' system-unpublished' : null; ?>">
|
||||
<?php
|
||||
$this->item = &$item;
|
||||
echo $this->loadTemplate('item');
|
||||
?>
|
||||
</div><!-- end item -->
|
||||
<?php $counter++; ?>
|
||||
</div><!-- end span -->
|
||||
<?php if (($rowcount == $this->columns) or ($counter == $introcount)) : ?>
|
||||
</div><!-- end row -->
|
||||
<?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 (!empty($this->children[$this->category->id])&& $this->maxLevel != 0) : ?>
|
||||
<div class="category_children">
|
||||
<?php if ($this->params->get('show_category_heading_title_text', 1) == 1) : ?>
|
||||
<h3> <?php echo JTEXT::_('JGLOBAL_SUBCATEGORIES'); ?> </h3>
|
||||
<?php endif; ?>
|
||||
<?php echo $this->loadTemplate('children'); ?> </div>
|
||||
<?php endif; ?>
|
||||
<?php if (($this->params->def('show_pagination', 1) == 1 || ($this->params->get('show_pagination') == 2)) && ($this->pagination->get('pages.total') > 1)) : ?>
|
||||
|
||||
<div class="pagination">
|
||||
<?php if ($this->params->def('show_pagination_results', 1)) : ?>
|
||||
<p class="counter pull-right"> <?php echo $this->pagination->getPagesCounter(); ?> </p>
|
||||
<?php endif; ?>
|
||||
<?php echo $this->pagination->getPagesLinks(); ?> </div>
|
||||
<?php endif; ?>
|
||||
</div>
|
@ -0,0 +1,66 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
$class = ' class="first"';
|
||||
|
||||
JHtml::_('bootstrap.tooltip');
|
||||
|
||||
if (count($this->children[$this->category->id]) > 0 && $this->maxLevel != 0) : ?>
|
||||
|
||||
<?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;
|
||||
?>
|
||||
<div<?php echo $class; ?>>
|
||||
<?php $class = ''; ?>
|
||||
<h3 class="page-header item-title"><a href="<?php echo JRoute::_(ContentHelperRoute::getCategoryRoute($child->id));?>">
|
||||
<?php echo $this->escape($child->title); ?></a>
|
||||
<?php if ( $this->params->get('show_cat_num_articles', 1)) : ?>
|
||||
<span class="badge badge-info tip hasTooltip" title="<?php echo JText::_('COM_CONTENT_NUM_ITEMS'); ?>">
|
||||
<?php echo $child->getNumItems(true); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (count($child->getChildren()) > 0) : ?>
|
||||
<a href="#category-<?php echo $child->id;?>" data-toggle="collapse" data-toggle="button" class="btn btn-mini pull-right"><i class="icon-plus"></i></a>
|
||||
<?php endif;?>
|
||||
|
||||
</h3>
|
||||
|
||||
<?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 (count($child->getChildren()) > 0) :?>
|
||||
<div class="collapse fade" id="category-<?php echo $child->id;?>">
|
||||
<?php
|
||||
$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++;
|
||||
?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php endif;
|
267
templates/as002036free/html/com_content/category/blog_item.php
Normal file
267
templates/as002036free/html/com_content/category/blog_item.php
Normal file
@ -0,0 +1,267 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Create a shortcut for params.
|
||||
$params = &$this->item->params;
|
||||
$images = json_decode($this->item->images);
|
||||
$canEdit = $this->item->params->get('access-edit');
|
||||
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
|
||||
$info = $this->item->params->get('info_block_position', 0);
|
||||
JHtml::_('behavior.tooltip');
|
||||
JHtml::_('behavior.framework');
|
||||
?>
|
||||
|
||||
<!-- Intro image -->
|
||||
<?php if (isset($images->image_intro) && !empty($images->image_intro)) : ?>
|
||||
<?php $imgfloat = (empty($images->float_intro)) ? $params->get('float_intro') : $images->float_intro; ?>
|
||||
<div class="item_img img-intro 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; ?>
|
||||
|
||||
<!-- Icons -->
|
||||
<?php if ($params->get('show_print_icon') || $params->get('show_email_icon') || $canEdit) : ?>
|
||||
<div class="item_icons btn-group pull-right"> <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> <i class="icon-cog"></i> <span class="caret"></span> </a>
|
||||
<ul class="dropdown-menu">
|
||||
<?php if ($params->get('show_print_icon')) : ?>
|
||||
<li class="print-icon"> <?php echo JHtml::_('icon.print_popup', $this->item, $params); ?> </li>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_email_icon')) : ?>
|
||||
<li class="email-icon"> <?php echo JHtml::_('icon.email', $this->item, $params); ?> </li>
|
||||
<?php endif; ?>
|
||||
<?php if ($canEdit) : ?>
|
||||
<li class="edit-icon"> <?php echo JHtml::_('icon.edit', $this->item, $params); ?> </li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- title/author -->
|
||||
<?php if ($params->get('show_title')) : ?>
|
||||
<div class="item_header">
|
||||
<?php if ($params->get('show_title')) : ?>
|
||||
<p class="item_title">
|
||||
<?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; ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->item->state == 0) : ?>
|
||||
<span class="label label-warning"><?php echo JText::_('JUNPUBLISHED'); ?></span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- info TOP -->
|
||||
<?php // to do not that elegant would be nice to group the params ?>
|
||||
<?php $useDefList = ($params->get('show_modify_date') || $params->get('show_publish_date')
|
||||
|| $params->get('show_hits') || $params->get('show_category') || $params->get('show_parent_category')); ?>
|
||||
<?php if ($useDefList && ($info == 0 || $info == 2)) : ?>
|
||||
<div class="item_info muted">
|
||||
<dl class="item_info_dl">
|
||||
|
||||
<!-- <dt class="article-info-term">
|
||||
<?php /*echo JText::_('COM_CONTENT_ARTICLE_INFO');*/ ?>
|
||||
</dt> -->
|
||||
|
||||
<?php if ($params->get('show_parent_category') && !empty($this->item->parent_slug)) : ?>
|
||||
<dd>
|
||||
<div class="item_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') && !empty($this->item->parent_slug)) : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $title); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_category')) : ?>
|
||||
<dd>
|
||||
<div class="item_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') && $this->item->catslug) : ?>
|
||||
<?php echo JText::sprintf('TPL_IN', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('TPL_IN', $title); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_publish_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_published">
|
||||
<?php echo JHtml::_('date', $this->item->publish_up, JText::_('DATE_FORMAT_TPL4')); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_author') && !empty($this->item->author )) : ?>
|
||||
<dd class="item_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(
|
||||
'TPL_BY',
|
||||
JHtml::_('link', JRoute::_('index.php?option=com_contact&view=contact&id=' . $this->item->contactid), $author)
|
||||
); ?>
|
||||
<?php else :?>
|
||||
<?php echo JText::sprintf('TPL_BY', $author); ?>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php if ($info == 0): ?>
|
||||
<?php if ($params->get('show_modify_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_modified">
|
||||
<?php echo JText::sprintf('COM_CONTENT_LAST_UPDATED', JHtml::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_create_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_create">
|
||||
<?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $this->item->created, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_hits')) : ?>
|
||||
<dd>
|
||||
<div class="item_hits">
|
||||
<?php echo JText::sprintf('COM_CONTENT_ARTICLE_HITS', $this->item->hits); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</dl>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!$params->get('show_intro')) : ?>
|
||||
<?php echo $this->item->event->afterDisplayTitle; ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $this->item->event->beforeDisplayContent; ?>
|
||||
|
||||
<!-- Introtext -->
|
||||
<div class="item_introtext"><?php echo $this->item->introtext; ?></div>
|
||||
|
||||
<!-- info BOTTOM -->
|
||||
<?php if ($useDefList && ($info == 1 || $info == 2)) : ?>
|
||||
<div class="item_info muted">
|
||||
<dl class="item_info_dl">
|
||||
|
||||
<!-- <dt class="article-info-term"><?php /*echo JText::_('COM_CONTENT_ARTICLE_INFO');*/ ?></dt> -->
|
||||
|
||||
<?php if ($info == 1): ?>
|
||||
<?php if ($params->get('show_parent_category') && !empty($this->item->parent_slug)) : ?>
|
||||
<dd>
|
||||
<div class="item_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') && $this->item->parent_slug) : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $title); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_category')) : ?>
|
||||
<dd>
|
||||
<div class="item_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') && $this->item->catslug) : ?>
|
||||
<?php echo JText::sprintf('TPL_IN', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('TPL_IN', $title); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_publish_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_published">
|
||||
<?php echo JText::sprintf('COM_CONTENT_PUBLISHED_DATE_ON', JHtml::_('date', $this->item->publish_up, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_create_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_create"><?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_modify_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_modified"><?php echo JText::sprintf('COM_CONTENT_LAST_UPDATED', JHtml::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_hits')) : ?>
|
||||
<dd>
|
||||
<div class="item_hits">
|
||||
<?php echo JText::sprintf('COM_CONTENT_ARTICLE_HITS', $this->item->hits); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
</dl>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- More -->
|
||||
<?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;
|
||||
?>
|
||||
<a class="btn btn-info" 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('TPL_COM_CONTENT_READ_MORE_TITLE');
|
||||
else :
|
||||
echo JText::_('TPL_COM_CONTENT_READ_MORE') . ': ';
|
||||
echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit'));
|
||||
endif; ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $this->item->event->afterDisplayContent; ?>
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
|
||||
|
||||
<div class="items-more">
|
||||
<ul class="nav nav-tabs nav-stacked">
|
||||
<?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; ?>
|
||||
</ul>
|
||||
</div>
|
115
templates/as002036free/html/com_content/category/category.php
Normal file
115
templates/as002036free/html/com_content/category/category.php
Normal file
@ -0,0 +1,115 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers');
|
||||
|
||||
JHtml::_('behavior.caption');
|
||||
?>
|
||||
<div class="page-category page-category__<?php echo $this->pageclass_sfx;?>">
|
||||
|
||||
<?php if ($this->params->get('show_page_heading', 1)) : ?>
|
||||
<div class="page_header">
|
||||
<h1> <?php echo $this->escape($this->params->get('page_heading')); ?> </h1>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_category_title', 1) or $this->params->get('page_subheading')) : ?>
|
||||
<div class="category_title">
|
||||
<h2> <?php echo $this->escape($this->params->get('page_subheading')); ?>
|
||||
<?php if ($this->params->get('show_category_title')) : ?>
|
||||
<span class="subheading-category"><?php echo $this->category->title;?></span>
|
||||
<?php endif; ?>
|
||||
</h2>
|
||||
</div>
|
||||
<?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) : ?>
|
||||
<div class="leading-<?php echo $leadingcount; ?><?php echo $item->state == 0 ? ' system-unpublished' : null; ?>">
|
||||
<?php
|
||||
$this->item = &$item;
|
||||
echo $this->loadTemplate('item');
|
||||
?>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<?php
|
||||
$leadingcount++;
|
||||
?>
|
||||
<?php endforeach; ?>
|
||||
</div><!-- end items-leading -->
|
||||
<div class="clearfix"></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; ?> row-fluid">
|
||||
<?php endif; ?>
|
||||
<div class="span<?php echo round((12 / $this->columns));?>">
|
||||
<div class="item column-<?php echo $rowcount;?><?php echo $item->state == 0 ? ' system-unpublished' : null; ?>">
|
||||
<?php
|
||||
$this->item = &$item;
|
||||
echo $this->loadTemplate('item');
|
||||
?>
|
||||
</div><!-- end item -->
|
||||
<?php $counter++; ?>
|
||||
</div><!-- end spann -->
|
||||
<?php if (($rowcount == $this->columns) or ($counter == $introcount)): ?>
|
||||
</div><!-- end row -->
|
||||
<?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 (!empty($this->children[$this->category->id])&& $this->maxLevel != 0) : ?>
|
||||
<div class="category_children">
|
||||
<h3> <?php echo JTEXT::_('JGLOBAL_SUBCATEGORIES'); ?> </h3>
|
||||
<?php echo $this->loadTemplate('children'); ?> </div>
|
||||
<?php endif; ?>
|
||||
<?php if (($this->params->def('show_pagination', 1) == 1 || ($this->params->get('show_pagination') == 2)) && ($this->pagination->get('pages.total') > 1)) : ?>
|
||||
|
||||
<div class="pagination">
|
||||
<?php if ($this->params->def('show_pagination_results', 1)) : ?>
|
||||
<p class="counter pull-right"> <?php echo $this->pagination->getPagesCounter(); ?> </p>
|
||||
<?php endif; ?>
|
||||
<?php echo $this->pagination->getPagesLinks(); ?> </div>
|
||||
<?php endif; ?>
|
||||
</div>
|
494
templates/as002036free/html/com_content/category/category.xml
Normal file
494
templates/as002036free/html/com_content/category/category.xml
Normal file
@ -0,0 +1,494 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<metadata>
|
||||
<layout title="TPL_COM_CONTENT_CATEGORY_VIEW_ARTICLES_TITLE" option="TPL_COM_CONTENT_CATEGORY_VIEW_ARTICLES_OPTION">
|
||||
<help
|
||||
key = "JHELP_MENUS_MENU_ITEM_ARTICLE_CATEGORY_BLOG"
|
||||
/>
|
||||
<message>
|
||||
<![CDATA[TPL_COM_CONTENT_CATEGORY_VIEW_ARTICLES_DESC]]>
|
||||
</message>
|
||||
</layout>
|
||||
|
||||
<!-- Add fields to the request variables for the layout. -->
|
||||
<fields name="request">
|
||||
<fieldset name="request"
|
||||
>
|
||||
|
||||
<field name="id" type="category"
|
||||
description="JGLOBAL_CHOOSE_CATEGORY_DESC"
|
||||
extension="com_content"
|
||||
label="JGLOBAL_CHOOSE_CATEGORY_LABEL"
|
||||
required="true"
|
||||
/>
|
||||
</fieldset>
|
||||
</fields>
|
||||
|
||||
<!-- Add fields to the parameters object for the layout. -->
|
||||
<fields name="params">
|
||||
<fieldset name="basic" label="JGLOBAL_CATEGORY_OPTIONS">
|
||||
|
||||
<field name="layout_type"
|
||||
type="hidden"
|
||||
default="blog"
|
||||
/>
|
||||
|
||||
<field name="show_category_title" type="list"
|
||||
label="JGLOBAL_SHOW_CATEGORY_TITLE"
|
||||
description="JGLOBAL_SHOW_CATEGORY_TITLE_DESC"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="show_description" type="list"
|
||||
description="JGLOBAL_SHOW_CATEGORY_DESCRIPTION_DESC"
|
||||
label="JGLOBAL_SHOW_CATEGORY_DESCRIPTION_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="show_description_image" type="list"
|
||||
description="JGLOBAL_SHOW_CATEGORY_IMAGE_DESC"
|
||||
label="JGLOBAL_SHOW_CATEGORY_IMAGE_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="maxLevel" type="list"
|
||||
description="JGLOBAL_MAXLEVEL_DESC"
|
||||
label="JGLOBAL_MAXLEVEL_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="-1">JALL</option>
|
||||
<option value="0">JNONE</option>
|
||||
<option value="1">J1</option>
|
||||
<option value="2">J2</option>
|
||||
<option value="3">J3</option>
|
||||
<option value="4">J4</option>
|
||||
<option value="5">J5</option>
|
||||
</field>
|
||||
|
||||
<field name="show_empty_categories" type="list"
|
||||
label="JGLOBAL_SHOW_EMPTY_CATEGORIES_LABEL"
|
||||
description="COM_CONTENT_SHOW_EMPTY_CATEGORIES_DESC"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="show_no_articles" type="list"
|
||||
label="COM_CONTENT_NO_ARTICLES_LABEL"
|
||||
description="COM_CONTENT_NO_ARTICLES_DESC"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="show_subcat_desc" type="list"
|
||||
label="JGLOBAL_SHOW_SUBCATEGORIES_DESCRIPTION_LABEL"
|
||||
description="JGLOBAL_SHOW_SUBCATEGORIES_DESCRIPTION_DESC"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="show_cat_num_articles" type="list"
|
||||
label="COM_CONTENT_NUMBER_CATEGORY_ITEMS_LABEL"
|
||||
description="COM_CONTENT_NUMBER_CATEGORY_ITEMS_DESC"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="page_subheading" type="text"
|
||||
description="JGLOBAL_SUBHEADING_DESC"
|
||||
label="JGLOBAL_SUBHEADING_LABEL"
|
||||
size="20"
|
||||
/>
|
||||
|
||||
</fieldset>
|
||||
|
||||
<fieldset name="advanced" label="JGLOBAL_BLOG_LAYOUT_OPTIONS">
|
||||
|
||||
<field name="bloglayout" type="spacer" class="text"
|
||||
label="JGLOBAL_SUBSLIDER_BLOG_LAYOUT_LABEL"
|
||||
/>
|
||||
|
||||
|
||||
<field name="num_leading_articles" type="text"
|
||||
description="JGLOBAL_NUM_LEADING_ARTICLES_DESC"
|
||||
label="JGLOBAL_NUM_LEADING_ARTICLES_LABEL"
|
||||
size="3"
|
||||
/>
|
||||
|
||||
<field name="num_intro_articles" type="text"
|
||||
description="JGLOBAL_NUM_INTRO_ARTICLES_DESC"
|
||||
label="JGLOBAL_NUM_INTRO_ARTICLES_LABEL"
|
||||
size="3"
|
||||
/>
|
||||
|
||||
<field name="num_columns" type="text"
|
||||
description="JGLOBAL_NUM_COLUMNS_DESC"
|
||||
label="JGLOBAL_NUM_COLUMNS_LABEL"
|
||||
size="3"
|
||||
/>
|
||||
|
||||
<field name="num_links" type="text"
|
||||
description="JGLOBAL_NUM_LINKS_DESC"
|
||||
label="JGLOBAL_NUM_LINKS_LABEL"
|
||||
size="3"
|
||||
/>
|
||||
|
||||
<field name="multi_column_order" type="list"
|
||||
description="JGLOBAL_MULTI_COLUMN_ORDER_DESC"
|
||||
label="JGLOBAL_MULTI_COLUMN_ORDER_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="0">JGLOBAL_DOWN</option>
|
||||
<option value="1">JGLOBAL_ACROSS</option>
|
||||
</field>
|
||||
<field name="subcategories" type="spacer" class="spacer"
|
||||
label="JGLOBAL_SUBSLIDER_BLOG_EXTENDED_LABEL"
|
||||
/>
|
||||
|
||||
<field name="show_subcategory_content" type="list"
|
||||
|
||||
description="JGLOBAL_SHOW_SUBCATEGORY_CONTENT_DESC"
|
||||
label="JGLOBAL_SHOW_SUBCATEGORY_CONTENT_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="0">JNONE</option>
|
||||
<option value="-1">JALL</option>
|
||||
<option value="1">J1</option>
|
||||
<option value="2">J2</option>
|
||||
<option value="3">J3</option>
|
||||
<option value="4">J4</option>
|
||||
<option value="5">J5</option>
|
||||
</field>
|
||||
|
||||
<field
|
||||
name="spacer1"
|
||||
type="spacer"
|
||||
hr="true"
|
||||
/>
|
||||
|
||||
<field name="orderby_pri" type="list"
|
||||
description="JGLOBAL_CATEGORY_ORDER_DESC"
|
||||
label="JGLOBAL_CATEGORY_ORDER_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="none">JGLOBAL_NO_ORDER</option>
|
||||
<option value="alpha">JGLOBAL_TITLE_ALPHABETICAL</option>
|
||||
<option value="ralpha">JGLOBAL_TITLE_REVERSE_ALPHABETICAL</option>
|
||||
<option value="order">JGLOBAL_CATEGORY_MANAGER_ORDER</option>
|
||||
</field>
|
||||
|
||||
<field name="orderby_sec" type="list"
|
||||
description="JGLOBAL_ARTICLE_ORDER_DESC"
|
||||
label="JGLOBAL_ARTICLE_ORDER_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="front">COM_CONTENT_FEATURED_ORDER</option>
|
||||
<option value="rdate">JGLOBAL_MOST_RECENT_FIRST</option>
|
||||
<option value="date">JGLOBAL_OLDEST_FIRST</option>
|
||||
<option value="alpha">JGLOBAL_TITLE_ALPHABETICAL</option>
|
||||
<option value="ralpha">JGLOBAL_TITLE_REVERSE_ALPHABETICAL</option>
|
||||
<option value="author">JGLOBAL_AUTHOR_ALPHABETICAL</option>
|
||||
<option value="rauthor">JGLOBAL_AUTHOR_REVERSE_ALPHABETICAL</option>
|
||||
<option value="hits">JGLOBAL_MOST_HITS</option>
|
||||
<option value="rhits">JGLOBAL_LEAST_HITS</option>
|
||||
<option value="order">JGLOBAL_ORDERING</option>
|
||||
</field>
|
||||
|
||||
<field name="order_date" type="list"
|
||||
description="JGLOBAL_ORDERING_DATE_DESC"
|
||||
label="JGLOBAL_ORDERING_DATE_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="created">JGLOBAL_CREATED</option>
|
||||
<option value="modified">JGLOBAL_MODIFIED</option>
|
||||
<option value="published">JPUBLISHED</option>
|
||||
</field>
|
||||
|
||||
<field name="show_pagination" type="list"
|
||||
description="JGLOBAL_PAGINATION_DESC"
|
||||
label="JGLOBAL_PAGINATION_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
<option value="2">JGLOBAL_AUTO</option>
|
||||
</field>
|
||||
|
||||
<field name="show_pagination_results" type="list"
|
||||
label="JGLOBAL_PAGINATION_RESULTS_LABEL"
|
||||
description="JGLOBAL_PAGINATION_RESULTS_DESC">
|
||||
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
</fieldset>
|
||||
|
||||
<fieldset name="article" label="COM_CONTENT_ATTRIBS_FIELDSET_LABEL">
|
||||
<field name="show_title" type="list"
|
||||
description="JGLOBAL_SHOW_TITLE_DESC"
|
||||
label="JGLOBAL_SHOW_TITLE_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="link_titles" type="list"
|
||||
description="JGLOBAL_LINKED_TITLES_DESC"
|
||||
label="JGLOBAL_LINKED_TITLES_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JNO</option>
|
||||
<option value="1">JYES</option>
|
||||
</field>
|
||||
|
||||
<field name="show_intro" type="list"
|
||||
description="JGLOBAL_SHOW_INTRO_DESC"
|
||||
label="JGLOBAL_SHOW_INTRO_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field
|
||||
name="info_block_position"
|
||||
type="list"
|
||||
default="0"
|
||||
label="COM_CONTENT_FIELD_INFOBLOCK_POSITION_LABEL"
|
||||
description="COM_CONTENT_FIELD_INFOBLOCK_POSITION_DESC">
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">COM_CONTENT_FIELD_OPTION_ABOVE</option>
|
||||
<option value="1">COM_CONTENT_FIELD_OPTION_BELOW</option>
|
||||
<option value="2">COM_CONTENT_FIELD_OPTION_SPLIT</option>
|
||||
</field>
|
||||
|
||||
<field name="show_category" type="list"
|
||||
description="JGLOBAL_SHOW_CATEGORY_DESC"
|
||||
label="JGLOBAL_SHOW_CATEGORY_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="link_category" type="list"
|
||||
description="JGLOBAL_LINK_CATEGORY_DESC"
|
||||
label="JGLOBAL_LINK_CATEGORY_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JNO</option>
|
||||
<option value="1">JYES</option>
|
||||
</field>
|
||||
|
||||
<field name="show_parent_category" type="list"
|
||||
description="JGLOBAL_SHOW_PARENT_CATEGORY_DESC"
|
||||
label="JGLOBAL_SHOW_PARENT_CATEGORY_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="link_parent_category" type="list"
|
||||
description="JGLOBAL_LINK_PARENT_CATEGORY_DESC"
|
||||
label="JGLOBAL_LINK_PARENT_CATEGORY_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JNO</option>
|
||||
<option value="1">JYES</option>
|
||||
</field>
|
||||
|
||||
<field name="show_author" type="list"
|
||||
description="JGLOBAL_SHOW_AUTHOR_DESC"
|
||||
label="JGLOBAL_SHOW_AUTHOR_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="link_author" type="list"
|
||||
description="JGLOBAL_LINK_AUTHOR_DESC"
|
||||
label="JGLOBAL_LINK_AUTHOR_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JNo</option>
|
||||
<option value="1">JYes</option>
|
||||
</field>
|
||||
|
||||
<field name="show_create_date" type="list"
|
||||
description="JGLOBAL_SHOW_CREATE_DATE_DESC"
|
||||
label="JGLOBAL_SHOW_CREATE_DATE_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="show_modify_date" type="list"
|
||||
description="JGLOBAL_SHOW_MODIFY_DATE_DESC"
|
||||
label="JGLOBAL_SHOW_MODIFY_DATE_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="show_publish_date" type="list"
|
||||
description="JGLOBAL_SHOW_PUBLISH_DATE_DESC"
|
||||
label="JGLOBAL_SHOW_PUBLISH_DATE_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="show_item_navigation" type="list"
|
||||
description="JGLOBAL_SHOW_NAVIGATION_DESC"
|
||||
label="JGLOBAL_SHOW_NAVIGATION_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
|
||||
<field
|
||||
name="show_vote" type="list"
|
||||
label="JGLOBAL_SHOW_VOTE_LABEL"
|
||||
description="JGLOBAL_SHOW_VOTE_DESC"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field
|
||||
name="show_readmore"
|
||||
type="list"
|
||||
description="JGLOBAL_SHOW_READMORE_DESC"
|
||||
label="JGLOBAL_SHOW_READMORE_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field
|
||||
name="show_readmore_title"
|
||||
type="list"
|
||||
label="JGLOBAL_SHOW_READMORE_TITLE_LABEL"
|
||||
description="JGLOBAL_SHOW_READMORE_TITLE_DESC"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="show_icons" type="list"
|
||||
description="JGLOBAL_SHOW_ICONS_DESC"
|
||||
label="JGLOBAL_SHOW_ICONS_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="show_print_icon" type="list"
|
||||
description="JGLOBAL_SHOW_PRINT_ICON_DESC"
|
||||
label="JGLOBAL_SHOW_PRINT_ICON_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="show_email_icon" type="list"
|
||||
description="JGLOBAL_Show_Email_Icon_Desc"
|
||||
label="JGLOBAL_Show_Email_Icon_Label"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="show_hits" type="list"
|
||||
description="JGLOBAL_SHOW_HITS_DESC"
|
||||
label="JGLOBAL_SHOW_HITS_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="show_noauth" type="list"
|
||||
description="JGLOBAL_SHOW_UNAUTH_LINKS_DESC"
|
||||
label="JGLOBAL_SHOW_UNAUTH_LINKS_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JNO</option>
|
||||
<option value="1">JYES</option>
|
||||
</field>
|
||||
|
||||
</fieldset>
|
||||
<fieldset name="integration"
|
||||
>
|
||||
|
||||
<field name="show_feed_link" type="list"
|
||||
description="JGLOBAL_SHOW_FEED_LINK_DESC"
|
||||
label="JGLOBAL_SHOW_FEED_LINK_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="feed_summary" type="list"
|
||||
description="JGLOBAL_FEED_SUMMARY_DESC"
|
||||
label="JGLOBAL_FEED_SUMMARY_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="0">JGLOBAL_INTRO_TEXT</option>
|
||||
<option value="1">JGLOBAL_FULL_TEXT</option>
|
||||
</field>
|
||||
</fieldset>
|
||||
</fields>
|
||||
</metadata>
|
@ -0,0 +1,66 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
$class = ' class="first"';
|
||||
|
||||
JHtml::_('bootstrap.tooltip');
|
||||
|
||||
if (count($this->children[$this->category->id]) > 0 && $this->maxLevel != 0) : ?>
|
||||
|
||||
<?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;
|
||||
?>
|
||||
<div<?php echo $class; ?>>
|
||||
<?php $class = ''; ?>
|
||||
<h3 class="page-header item-title"><a href="<?php echo JRoute::_(ContentHelperRoute::getCategoryRoute($child->id));?>">
|
||||
<?php echo $this->escape($child->title); ?></a>
|
||||
<?php if ( $this->params->get('show_cat_num_articles', 1)) : ?>
|
||||
<span class="badge badge-info tip hasTooltip" title="<?php echo JText::_('COM_CONTENT_NUM_ITEMS'); ?>">
|
||||
<?php echo $child->getNumItems(true); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (count($child->getChildren()) > 0) : ?>
|
||||
<a href="#category-<?php echo $child->id;?>" data-toggle="collapse" data-toggle="button" class="btn btn-mini pull-right"><i class="icon-plus"></i></a>
|
||||
<?php endif;?>
|
||||
|
||||
</h3>
|
||||
|
||||
<?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 (count($child->getChildren()) > 0) :?>
|
||||
<div class="collapse fade" id="category-<?php echo $child->id;?>">
|
||||
<?php
|
||||
$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++;
|
||||
?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php endif;
|
@ -0,0 +1,266 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Create a shortcut for params.
|
||||
$params = &$this->item->params;
|
||||
$images = json_decode($this->item->images);
|
||||
$canEdit = $this->item->params->get('access-edit');
|
||||
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
|
||||
$info = $this->item->params->get('info_block_position', 0);
|
||||
JHtml::_('behavior.tooltip');
|
||||
JHtml::_('behavior.framework');
|
||||
?>
|
||||
|
||||
<!-- Icons -->
|
||||
<?php if ($params->get('show_print_icon') || $params->get('show_email_icon') || $canEdit) : ?>
|
||||
<div class="item_icons btn-group pull-right"> <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> <i class="icon-cog"></i> <span class="caret"></span> </a>
|
||||
<ul class="dropdown-menu">
|
||||
<?php if ($params->get('show_print_icon')) : ?>
|
||||
<li class="print-icon"> <?php echo JHtml::_('icon.print_popup', $this->item, $params); ?> </li>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_email_icon')) : ?>
|
||||
<li class="email-icon"> <?php echo JHtml::_('icon.email', $this->item, $params); ?> </li>
|
||||
<?php endif; ?>
|
||||
<?php if ($canEdit) : ?>
|
||||
<li class="edit-icon"> <?php echo JHtml::_('icon.edit', $this->item, $params); ?> </li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Intro image -->
|
||||
<?php if (isset($images->image_intro) && !empty($images->image_intro)) : ?>
|
||||
<?php $imgfloat = (empty($images->float_intro)) ? $params->get('float_intro') : $images->float_intro; ?>
|
||||
<div class="item_img img-intro 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; ?>
|
||||
|
||||
<!-- title/author -->
|
||||
<?php if ($params->get('show_title') || $this->item->state == 0 || ($params->get('show_author') && !empty($this->item->author ))) : ?>
|
||||
<div class="item_header">
|
||||
<?php if ($params->get('show_title')) : ?>
|
||||
<h2 class="item_title">
|
||||
<?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 ($this->item->state == 0) : ?>
|
||||
<span class="label label-warning"><?php echo JText::_('JUNPUBLISHED'); ?></span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_author') && !empty($this->item->author )) : ?>
|
||||
<div class="item_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(
|
||||
'TPL_BY',
|
||||
JHtml::_('link', JRoute::_('index.php?option=com_contact&view=contact&id=' . $this->item->contactid), $author)
|
||||
); ?>
|
||||
<?php else :?>
|
||||
<?php echo JText::sprintf('TPL_BY', $author); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- info TOP -->
|
||||
<?php // to do not that elegant would be nice to group the params ?>
|
||||
<?php $useDefList = ($params->get('show_modify_date') || $params->get('show_publish_date')
|
||||
|| $params->get('show_hits') || $params->get('show_category') || $params->get('show_parent_category')); ?>
|
||||
<?php if ($useDefList && ($info == 0 || $info == 2)) : ?>
|
||||
<div class="item_info muted">
|
||||
<dl class="item_info_dl">
|
||||
|
||||
<!-- <dt class="article-info-term">
|
||||
<?php /*echo JText::_('COM_CONTENT_ARTICLE_INFO');*/ ?>
|
||||
</dt> -->
|
||||
|
||||
<?php if ($params->get('show_parent_category') && !empty($this->item->parent_slug)) : ?>
|
||||
<dd>
|
||||
<div class="item_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') && !empty($this->item->parent_slug)) : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $title); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_category')) : ?>
|
||||
<dd>
|
||||
<div class="item_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') && $this->item->catslug) : ?>
|
||||
<?php echo JText::sprintf('TPL_IN', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('TPL_IN', $title); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_publish_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_published">
|
||||
<?php echo JText::sprintf('TPL_ON', JHtml::_('date', $this->item->publish_up, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($info == 0): ?>
|
||||
<?php if ($params->get('show_modify_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_modified">
|
||||
<?php echo JText::sprintf('COM_CONTENT_LAST_UPDATED', JHtml::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_create_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_create">
|
||||
<?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $this->item->created, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_hits')) : ?>
|
||||
<dd>
|
||||
<div class="item_hits">
|
||||
<?php echo JText::sprintf('COM_CONTENT_ARTICLE_HITS', $this->item->hits); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</dl>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!$params->get('show_intro')) : ?>
|
||||
<?php echo $this->item->event->afterDisplayTitle; ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $this->item->event->beforeDisplayContent; ?>
|
||||
|
||||
<!-- Introtext -->
|
||||
<div class="item_introtext"><?php echo $this->item->introtext; ?></div>
|
||||
|
||||
<!-- info BOTTOM -->
|
||||
<?php if ($useDefList && ($info == 1 || $info == 2)) : ?>
|
||||
<div class="item_info muted">
|
||||
<dl class="item_info_dl">
|
||||
|
||||
<!-- <dt class="article-info-term"><?php /*echo JText::_('COM_CONTENT_ARTICLE_INFO');*/ ?></dt> -->
|
||||
|
||||
<?php if ($info == 1): ?>
|
||||
<?php if ($params->get('show_parent_category') && !empty($this->item->parent_slug)) : ?>
|
||||
<dd>
|
||||
<div class="item_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') && $this->item->parent_slug) : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $title); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_category')) : ?>
|
||||
<dd>
|
||||
<div class="item_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') && $this->item->catslug) : ?>
|
||||
<?php echo JText::sprintf('TPL_IN', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('TPL_IN', $title); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_publish_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_published">
|
||||
<?php echo JText::sprintf('COM_CONTENT_PUBLISHED_DATE_ON', JHtml::_('date', $this->item->publish_up, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_create_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_create"><?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_modify_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_modified"><?php echo JText::sprintf('COM_CONTENT_LAST_UPDATED', JHtml::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_hits')) : ?>
|
||||
<dd>
|
||||
<div class="item_hits">
|
||||
<?php echo JText::sprintf('COM_CONTENT_ARTICLE_HITS', $this->item->hits); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
</dl>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- More -->
|
||||
<?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;
|
||||
?>
|
||||
<a class="btn btn_info" 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('TPL_COM_CONTENT_READ_MORE_TITLE');
|
||||
else :
|
||||
echo JText::_('TPL_COM_CONTENT_READ_MORE');
|
||||
echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit'));
|
||||
endif; ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $this->item->event->afterDisplayContent; ?>
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
|
||||
|
||||
<div class="items-more">
|
||||
<ul class="nav nav-tabs nav-stacked">
|
||||
<?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; ?>
|
||||
</ul>
|
||||
</div>
|
227
templates/as002036free/html/com_content/category/gallery.php
Normal file
227
templates/as002036free/html/com_content/category/gallery.php
Normal file
@ -0,0 +1,227 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers');
|
||||
|
||||
JHtml::_('behavior.caption');
|
||||
?>
|
||||
<div class="page-gallery page-gallery__<?php echo $this->pageclass_sfx;?>">
|
||||
|
||||
<?php if ($this->params->get('show_page_heading', 1)) : ?>
|
||||
<div class="page_header">
|
||||
<h1> <?php echo $this->escape($this->params->get('page_heading')); ?> </h1>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_category_title', 1) or $this->params->get('page_subheading')) : ?>
|
||||
<div class="category_title">
|
||||
<h2> <?php echo $this->escape($this->params->get('page_subheading')); ?>
|
||||
<?php if ($this->params->get('show_category_title')) : ?>
|
||||
<span class="subheading-category"><?php echo $this->category->title;?></span>
|
||||
<?php endif; ?>
|
||||
</h2>
|
||||
</div>
|
||||
<?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; ?>
|
||||
|
||||
<!-- Filter -->
|
||||
<?php
|
||||
$galleryCategories = array();
|
||||
foreach ($this->intro_items as $key => &$item){
|
||||
$categoryTitle = strtolower(str_replace(" ","_",$item->category_title));
|
||||
$galleryCategories[] = $categoryTitle;
|
||||
};
|
||||
|
||||
$galleryCategories = array_unique($galleryCategories);
|
||||
?>
|
||||
|
||||
<?php if((!empty($this->lead_items) || (!empty($this->intro_items))) && $this->params->get('show_filter')): ?>
|
||||
<div class="well">
|
||||
<div class="row">
|
||||
<div class="filters span10">
|
||||
|
||||
<ul id="filters" class="unstyled">
|
||||
<li><b><?php echo JText::_('TPL_COM_CONTENT_GALLERY_FILTER_BY_CATEGORY'); ?>:</b></li>
|
||||
<li><a href="#" data-filter="*" class="selected"><?php echo JText::_('TPL_COM_CONTENT_GALLERY_FILTER_SHOW_ALL'); ?></a></li>
|
||||
<?php foreach ($galleryCategories as $key => $value) : ?>
|
||||
<li><a class="" href="#"data-filter=".<?php echo $value; ?>"><?php echo ucwords(str_replace("_"," ",$value)); ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php $leadingcount = 0; ?>
|
||||
<?php if (!empty($this->lead_items)) : ?>
|
||||
<div class="items-leading">
|
||||
<?php foreach ($this->lead_items as &$item) : ?>
|
||||
<div class="leading-<?php echo $leadingcount; ?><?php echo $item->state == 0 ? ' system-unpublished' : null; ?>">
|
||||
<?php
|
||||
$this->item = &$item;
|
||||
echo $this->loadTemplate('item');
|
||||
?>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<?php
|
||||
$leadingcount++;
|
||||
?>
|
||||
<?php endforeach; ?>
|
||||
</div><!-- end items-leading -->
|
||||
<div class="clearfix"></div>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php
|
||||
$introcount = (count($this->intro_items));
|
||||
$counter = 0;
|
||||
?>
|
||||
|
||||
<?php if (!empty($this->intro_items)) : ?>
|
||||
<?php $row = $counter / $this->columns; ?>
|
||||
<?php
|
||||
$galleryContainerId = "";
|
||||
$galleryContainerClass = "singleColumn";
|
||||
if($this->params->get('show_filter')){
|
||||
$galleryContainerId = "isotopeContainer";
|
||||
$galleryContainerClass = "thumbnails";
|
||||
}
|
||||
?>
|
||||
<ul id="<?php echo $galleryContainerId; ?>" class="items-row cols-<?php echo (int) $this->columns;?> <?php echo $galleryContainerClass /*'row-'.$row;*/; ?>">
|
||||
|
||||
<?php foreach ($this->intro_items as $key => &$item) : ?>
|
||||
<?php
|
||||
$key = ($key - $leadingcount) + 1;
|
||||
$rowcount = (((int) $key - 1) % (int) $this->columns) + 1;
|
||||
|
||||
if ($rowcount == 1) :
|
||||
?>
|
||||
|
||||
<?php endif; ?>
|
||||
<li class="item span<?php echo round((12 / $this->columns)) ;?> <?php echo strtolower(str_replace(" ","_",$item->category_title)); ?>">
|
||||
<?php
|
||||
$this->item = &$item;
|
||||
echo $this->loadTemplate('item');
|
||||
?>
|
||||
<?php $counter++; ?>
|
||||
<div class="clearfix"></div>
|
||||
</li><!-- end span -->
|
||||
<?php if (($rowcount == $this->columns) or ($counter == $introcount)): ?>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</ul><!-- end row -->
|
||||
<?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', 1) == 1 || ($this->params->get('show_pagination') == 2)) && ($this->pagination->get('pages.total') > 1)) : ?>
|
||||
|
||||
<div class="pagination">
|
||||
<?php if ($this->params->def('show_pagination_results', 1)) : ?>
|
||||
<p class="counter pull-right"> <?php echo $this->pagination->getPagesCounter(); ?> </p>
|
||||
<?php endif; ?>
|
||||
<?php echo $this->pagination->getPagesLinks(); ?> </div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function() {
|
||||
(function($){
|
||||
$(window).load(function(){
|
||||
|
||||
$(window).resize(function(){
|
||||
$windowWidth = $(window).width();
|
||||
});
|
||||
|
||||
var $container = $('#isotopeContainer');
|
||||
|
||||
$container.isotope({
|
||||
animationEngine: 'best-available',
|
||||
animationOptions: {
|
||||
queue: false,
|
||||
duration: 800
|
||||
},
|
||||
containerClass : 'isotope',
|
||||
containerStyle: {
|
||||
position: 'relative',
|
||||
overflow: 'hidden'
|
||||
},
|
||||
hiddenClass : 'isotope-hidden',
|
||||
itemClass : 'isotope-item',
|
||||
itemPositionDataEnabled: false,
|
||||
layoutMode : 'fitRows',
|
||||
resizable: true,
|
||||
resizesContainer : true,
|
||||
sortBy : 'title',
|
||||
sortAscending : true,
|
||||
transformsEnabled: !$.browser.opera // disable transforms in Opera
|
||||
});
|
||||
|
||||
// filter items when filter link is clicked
|
||||
$('#filters a').click(function(){
|
||||
var selector = $(this).attr('data-filter');
|
||||
$container.isotope({ filter: selector });
|
||||
return false;
|
||||
});
|
||||
|
||||
var $optionSets = $('#filters li'),
|
||||
$optionLinks = $optionSets.find('a');
|
||||
|
||||
$optionLinks.click(function(){
|
||||
var $this = $(this);
|
||||
// don't proceed if already selected
|
||||
if ( $this.hasClass('selected') ) {
|
||||
return false;
|
||||
}
|
||||
var $optionSet = $this.parents('#filters');
|
||||
$optionSet.find('.selected').removeClass('selected');
|
||||
$this.addClass('selected');
|
||||
|
||||
// make option object dynamically, i.e. { filter: '.my-filter-class' }
|
||||
var options = {},
|
||||
key = $optionSet.attr('data-option-key'),
|
||||
value = $this.attr('data-option-value');
|
||||
// parse 'false' as false boolean
|
||||
value = value === 'false' ? false : value;
|
||||
options[ key ] = value;
|
||||
if ( key === 'layoutMode' && typeof changeLayoutMode === 'function' ) {
|
||||
// changes in layout modes need extra logic
|
||||
changeLayoutMode( $this, options )
|
||||
} else {
|
||||
// otherwise, apply new options
|
||||
$container.isotope( options );
|
||||
}
|
||||
|
||||
return false;
|
||||
});
|
||||
});
|
||||
})(jQuery);
|
||||
});
|
||||
</script>
|
511
templates/as002036free/html/com_content/category/gallery.xml
Normal file
511
templates/as002036free/html/com_content/category/gallery.xml
Normal file
@ -0,0 +1,511 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<metadata>
|
||||
<layout title="TPL_COM_CONTENT_CATEGORY_VIEW_GALLERY_TITLE" option="TPL_COM_CONTENT_CATEGORY_VIEW_GALLERY_OPTION">
|
||||
<help
|
||||
key = "JHELP_MENUS_MENU_ITEM_ARTICLE_CATEGORY_BLOG"
|
||||
/>
|
||||
<message>
|
||||
<![CDATA[TPL_COM_CONTENT_CATEGORY_VIEW_GALLERY_DESC]]>
|
||||
</message>
|
||||
</layout>
|
||||
|
||||
<!-- Add fields to the request variables for the layout. -->
|
||||
<fields name="request">
|
||||
<fieldset name="request"
|
||||
>
|
||||
|
||||
<field name="id" type="category"
|
||||
description="JGLOBAL_CHOOSE_CATEGORY_DESC"
|
||||
extension="com_content"
|
||||
label="JGLOBAL_CHOOSE_CATEGORY_LABEL"
|
||||
required="true"
|
||||
/>
|
||||
</fieldset>
|
||||
</fields>
|
||||
|
||||
<!-- Add fields to the parameters object for the layout. -->
|
||||
<fields name="params">
|
||||
<fieldset name="basic" label="JGLOBAL_CATEGORY_OPTIONS">
|
||||
|
||||
<field name="layout_type"
|
||||
type="hidden"
|
||||
default="blog"
|
||||
/>
|
||||
|
||||
<field name="show_category_title" type="list"
|
||||
label="JGLOBAL_SHOW_CATEGORY_TITLE"
|
||||
description="JGLOBAL_SHOW_CATEGORY_TITLE_DESC"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="show_description" type="list"
|
||||
description="JGLOBAL_SHOW_CATEGORY_DESCRIPTION_DESC"
|
||||
label="JGLOBAL_SHOW_CATEGORY_DESCRIPTION_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="show_description_image" type="list"
|
||||
description="JGLOBAL_SHOW_CATEGORY_IMAGE_DESC"
|
||||
label="JGLOBAL_SHOW_CATEGORY_IMAGE_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="maxLevel" type="list"
|
||||
description="JGLOBAL_MAXLEVEL_DESC"
|
||||
label="JGLOBAL_MAXLEVEL_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="-1">JALL</option>
|
||||
<option value="0">JNONE</option>
|
||||
<option value="1">J1</option>
|
||||
<option value="2">J2</option>
|
||||
<option value="3">J3</option>
|
||||
<option value="4">J4</option>
|
||||
<option value="5">J5</option>
|
||||
</field>
|
||||
|
||||
<field name="show_empty_categories" type="list"
|
||||
label="JGLOBAL_SHOW_EMPTY_CATEGORIES_LABEL"
|
||||
description="COM_CONTENT_SHOW_EMPTY_CATEGORIES_DESC"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="show_no_articles" type="list"
|
||||
label="COM_CONTENT_NO_ARTICLES_LABEL"
|
||||
description="COM_CONTENT_NO_ARTICLES_DESC"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="show_subcat_desc" type="list"
|
||||
label="JGLOBAL_SHOW_SUBCATEGORIES_DESCRIPTION_LABEL"
|
||||
description="JGLOBAL_SHOW_SUBCATEGORIES_DESCRIPTION_DESC"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="show_cat_num_articles" type="list"
|
||||
label="COM_CONTENT_NUMBER_CATEGORY_ITEMS_LABEL"
|
||||
description="COM_CONTENT_NUMBER_CATEGORY_ITEMS_DESC"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="page_subheading" type="text"
|
||||
description="JGLOBAL_SUBHEADING_DESC"
|
||||
label="JGLOBAL_SUBHEADING_LABEL"
|
||||
size="20"
|
||||
/>
|
||||
|
||||
</fieldset>
|
||||
|
||||
<fieldset name="advanced" label="JGLOBAL_BLOG_LAYOUT_OPTIONS">
|
||||
|
||||
<field name="bloglayout" type="spacer" class="text"
|
||||
label="JGLOBAL_SUBSLIDER_BLOG_LAYOUT_LABEL"
|
||||
/>
|
||||
|
||||
|
||||
<field name="num_leading_articles" type="text"
|
||||
description="JGLOBAL_NUM_LEADING_ARTICLES_DESC"
|
||||
label="JGLOBAL_NUM_LEADING_ARTICLES_LABEL"
|
||||
size="3"
|
||||
/>
|
||||
|
||||
<field name="num_intro_articles" type="text"
|
||||
description="JGLOBAL_NUM_INTRO_ARTICLES_DESC"
|
||||
label="JGLOBAL_NUM_INTRO_ARTICLES_LABEL"
|
||||
size="3"
|
||||
/>
|
||||
|
||||
<field name="num_columns" type="text"
|
||||
description="JGLOBAL_NUM_COLUMNS_DESC"
|
||||
label="JGLOBAL_NUM_COLUMNS_LABEL"
|
||||
size="3"
|
||||
/>
|
||||
|
||||
<field name="num_links" type="text"
|
||||
description="JGLOBAL_NUM_LINKS_DESC"
|
||||
label="JGLOBAL_NUM_LINKS_LABEL"
|
||||
size="3"
|
||||
/>
|
||||
|
||||
<field name="multi_column_order" type="list"
|
||||
description="JGLOBAL_MULTI_COLUMN_ORDER_DESC"
|
||||
label="JGLOBAL_MULTI_COLUMN_ORDER_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="0">JGLOBAL_DOWN</option>
|
||||
<option value="1">JGLOBAL_ACROSS</option>
|
||||
</field>
|
||||
<field name="subcategories" type="spacer" class="spacer"
|
||||
label="JGLOBAL_SUBSLIDER_BLOG_EXTENDED_LABEL"
|
||||
/>
|
||||
|
||||
<field name="show_subcategory_content" type="list"
|
||||
|
||||
description="JGLOBAL_SHOW_SUBCATEGORY_CONTENT_DESC"
|
||||
label="JGLOBAL_SHOW_SUBCATEGORY_CONTENT_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="0">JNONE</option>
|
||||
<option value="-1">JALL</option>
|
||||
<option value="1">J1</option>
|
||||
<option value="2">J2</option>
|
||||
<option value="3">J3</option>
|
||||
<option value="4">J4</option>
|
||||
<option value="5">J5</option>
|
||||
</field>
|
||||
|
||||
<field name="show_filter" type="list"
|
||||
label="TPL_GALLERY_SHOW_FILTER_LABEL"
|
||||
description="TPL_GALLERY_SHOW_FILTER_DESC">
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="image_float" type="list"
|
||||
label="TPL_GALLERY_IMAGE_FLOAT_LABEL"
|
||||
description="TPL_GALLERY_IMAGE_FLOAT_DESC">
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="left">TPL_LEFT</option>
|
||||
<option value="right">TPL_RIGHT</option>
|
||||
</field>
|
||||
|
||||
|
||||
<field
|
||||
name="spacer1"
|
||||
type="spacer"
|
||||
hr="true"
|
||||
/>
|
||||
|
||||
|
||||
|
||||
<field name="orderby_pri" type="list"
|
||||
description="JGLOBAL_CATEGORY_ORDER_DESC"
|
||||
label="JGLOBAL_CATEGORY_ORDER_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="none">JGLOBAL_NO_ORDER</option>
|
||||
<option value="alpha">JGLOBAL_TITLE_ALPHABETICAL</option>
|
||||
<option value="ralpha">JGLOBAL_TITLE_REVERSE_ALPHABETICAL</option>
|
||||
<option value="order">JGLOBAL_CATEGORY_MANAGER_ORDER</option>
|
||||
</field>
|
||||
|
||||
<field name="orderby_sec" type="list"
|
||||
description="JGLOBAL_ARTICLE_ORDER_DESC"
|
||||
label="JGLOBAL_ARTICLE_ORDER_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="front">COM_CONTENT_FEATURED_ORDER</option>
|
||||
<option value="rdate">JGLOBAL_MOST_RECENT_FIRST</option>
|
||||
<option value="date">JGLOBAL_OLDEST_FIRST</option>
|
||||
<option value="alpha">JGLOBAL_TITLE_ALPHABETICAL</option>
|
||||
<option value="ralpha">JGLOBAL_TITLE_REVERSE_ALPHABETICAL</option>
|
||||
<option value="author">JGLOBAL_AUTHOR_ALPHABETICAL</option>
|
||||
<option value="rauthor">JGLOBAL_AUTHOR_REVERSE_ALPHABETICAL</option>
|
||||
<option value="hits">JGLOBAL_MOST_HITS</option>
|
||||
<option value="rhits">JGLOBAL_LEAST_HITS</option>
|
||||
<option value="order">JGLOBAL_ORDERING</option>
|
||||
</field>
|
||||
|
||||
<field name="order_date" type="list"
|
||||
description="JGLOBAL_ORDERING_DATE_DESC"
|
||||
label="JGLOBAL_ORDERING_DATE_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="created">JGLOBAL_CREATED</option>
|
||||
<option value="modified">JGLOBAL_MODIFIED</option>
|
||||
<option value="published">JPUBLISHED</option>
|
||||
</field>
|
||||
|
||||
<field name="show_pagination" type="list"
|
||||
description="JGLOBAL_PAGINATION_DESC"
|
||||
label="JGLOBAL_PAGINATION_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
<option value="2">JGLOBAL_AUTO</option>
|
||||
</field>
|
||||
|
||||
<field name="show_pagination_results" type="list"
|
||||
label="JGLOBAL_PAGINATION_RESULTS_LABEL"
|
||||
description="JGLOBAL_PAGINATION_RESULTS_DESC">
|
||||
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
</fieldset>
|
||||
|
||||
<fieldset name="article" label="COM_CONTENT_ATTRIBS_FIELDSET_LABEL">
|
||||
<field name="show_title" type="list"
|
||||
description="JGLOBAL_SHOW_TITLE_DESC"
|
||||
label="JGLOBAL_SHOW_TITLE_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="link_titles" type="list"
|
||||
description="JGLOBAL_LINKED_TITLES_DESC"
|
||||
label="JGLOBAL_LINKED_TITLES_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JNO</option>
|
||||
<option value="1">JYES</option>
|
||||
</field>
|
||||
|
||||
<field name="show_intro" type="list"
|
||||
description="JGLOBAL_SHOW_INTRO_DESC"
|
||||
label="JGLOBAL_SHOW_INTRO_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field
|
||||
name="info_block_position"
|
||||
type="list"
|
||||
default="0"
|
||||
label="COM_CONTENT_FIELD_INFOBLOCK_POSITION_LABEL"
|
||||
description="COM_CONTENT_FIELD_INFOBLOCK_POSITION_DESC">
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">COM_CONTENT_FIELD_OPTION_ABOVE</option>
|
||||
<option value="1">COM_CONTENT_FIELD_OPTION_BELOW</option>
|
||||
<option value="2">COM_CONTENT_FIELD_OPTION_SPLIT</option>
|
||||
</field>
|
||||
|
||||
<field name="show_category" type="list"
|
||||
description="JGLOBAL_SHOW_CATEGORY_DESC"
|
||||
label="JGLOBAL_SHOW_CATEGORY_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="link_category" type="list"
|
||||
description="JGLOBAL_LINK_CATEGORY_DESC"
|
||||
label="JGLOBAL_LINK_CATEGORY_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JNO</option>
|
||||
<option value="1">JYES</option>
|
||||
</field>
|
||||
|
||||
<field name="show_parent_category" type="list"
|
||||
description="JGLOBAL_SHOW_PARENT_CATEGORY_DESC"
|
||||
label="JGLOBAL_SHOW_PARENT_CATEGORY_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="link_parent_category" type="list"
|
||||
description="JGLOBAL_LINK_PARENT_CATEGORY_DESC"
|
||||
label="JGLOBAL_LINK_PARENT_CATEGORY_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JNO</option>
|
||||
<option value="1">JYES</option>
|
||||
</field>
|
||||
|
||||
<field name="show_author" type="list"
|
||||
description="JGLOBAL_SHOW_AUTHOR_DESC"
|
||||
label="JGLOBAL_SHOW_AUTHOR_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="link_author" type="list"
|
||||
description="JGLOBAL_LINK_AUTHOR_DESC"
|
||||
label="JGLOBAL_LINK_AUTHOR_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JNo</option>
|
||||
<option value="1">JYes</option>
|
||||
</field>
|
||||
|
||||
<field name="show_create_date" type="list"
|
||||
description="JGLOBAL_SHOW_CREATE_DATE_DESC"
|
||||
label="JGLOBAL_SHOW_CREATE_DATE_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="show_modify_date" type="list"
|
||||
description="JGLOBAL_SHOW_MODIFY_DATE_DESC"
|
||||
label="JGLOBAL_SHOW_MODIFY_DATE_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="show_publish_date" type="list"
|
||||
description="JGLOBAL_SHOW_PUBLISH_DATE_DESC"
|
||||
label="JGLOBAL_SHOW_PUBLISH_DATE_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="show_item_navigation" type="list"
|
||||
description="JGLOBAL_SHOW_NAVIGATION_DESC"
|
||||
label="JGLOBAL_SHOW_NAVIGATION_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
|
||||
<field
|
||||
name="show_vote" type="list"
|
||||
label="JGLOBAL_SHOW_VOTE_LABEL"
|
||||
description="JGLOBAL_SHOW_VOTE_DESC"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field
|
||||
name="show_readmore"
|
||||
type="list"
|
||||
description="JGLOBAL_SHOW_READMORE_DESC"
|
||||
label="JGLOBAL_SHOW_READMORE_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field
|
||||
name="show_readmore_title"
|
||||
type="list"
|
||||
label="JGLOBAL_SHOW_READMORE_TITLE_LABEL"
|
||||
description="JGLOBAL_SHOW_READMORE_TITLE_DESC"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="show_icons" type="list"
|
||||
description="JGLOBAL_SHOW_ICONS_DESC"
|
||||
label="JGLOBAL_SHOW_ICONS_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="show_print_icon" type="list"
|
||||
description="JGLOBAL_SHOW_PRINT_ICON_DESC"
|
||||
label="JGLOBAL_SHOW_PRINT_ICON_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="show_email_icon" type="list"
|
||||
description="JGLOBAL_Show_Email_Icon_Desc"
|
||||
label="JGLOBAL_Show_Email_Icon_Label"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="show_hits" type="list"
|
||||
description="JGLOBAL_SHOW_HITS_DESC"
|
||||
label="JGLOBAL_SHOW_HITS_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="show_noauth" type="list"
|
||||
description="JGLOBAL_SHOW_UNAUTH_LINKS_DESC"
|
||||
label="JGLOBAL_SHOW_UNAUTH_LINKS_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="use_article">COM_CONTENT_FIELD_VALUE_USE_ARTICLE_SETTINGS</option>
|
||||
<option value="0">JNO</option>
|
||||
<option value="1">JYES</option>
|
||||
</field>
|
||||
|
||||
</fieldset>
|
||||
<fieldset name="integration"
|
||||
>
|
||||
|
||||
<field name="show_feed_link" type="list"
|
||||
description="JGLOBAL_SHOW_FEED_LINK_DESC"
|
||||
label="JGLOBAL_SHOW_FEED_LINK_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field name="feed_summary" type="list"
|
||||
description="JGLOBAL_FEED_SUMMARY_DESC"
|
||||
label="JGLOBAL_FEED_SUMMARY_LABEL"
|
||||
>
|
||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="0">JGLOBAL_INTRO_TEXT</option>
|
||||
<option value="1">JGLOBAL_FULL_TEXT</option>
|
||||
</field>
|
||||
</fieldset>
|
||||
</fields>
|
||||
</metadata>
|
@ -0,0 +1,83 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
$class = 'first';
|
||||
|
||||
JHtml::_('bootstrap.tooltip');
|
||||
|
||||
if (count($this->children[$this->category->id]) > 0 && $this->maxLevel != 0) : ?>
|
||||
|
||||
<?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 = 'last';
|
||||
endif;
|
||||
?>
|
||||
<div class="<?php echo $class; ?> span4 category_child">
|
||||
<?php $class = ''; ?>
|
||||
|
||||
<?php
|
||||
$child_params = explode('"', $child->params);
|
||||
$subcatImg = str_replace('\\', '', $child_params[7]);
|
||||
|
||||
?>
|
||||
<?php if($subcatImg): ?>
|
||||
<div class="item_img category_item">
|
||||
<a href="<?php echo JRoute::_(ContentHelperRoute::getCategoryRoute($child->id));?>">
|
||||
<img src="<?php echo JURI::base() . $subcatImg ?>" alt="">
|
||||
</a>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
|
||||
<p class="category_title">
|
||||
<b>
|
||||
<a href="<?php echo JRoute::_(ContentHelperRoute::getCategoryRoute($child->id));?>">
|
||||
<?php echo $this->escape($child->title); ?>
|
||||
</a>
|
||||
<?php if ( $this->params->get('show_cat_num_articles', 1)) : ?>
|
||||
<span class="badge badge-info tip hasTooltip" title="<?php echo JText::_('COM_CONTENT_NUM_ITEMS'); ?>">
|
||||
<?php echo $child->getNumItems(true); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (count($child->getChildren()) > 0) : ?>
|
||||
<a href="#category-<?php echo $child->id;?>" data-toggle="collapse" data-toggle="button" class="btn btn-mini pull-right"><i class="icon-plus"></i></a>
|
||||
<?php endif;?>
|
||||
</b>
|
||||
</p>
|
||||
|
||||
<?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 (count($child->getChildren()) > 0) :?>
|
||||
<div class="collapse fade" id="category-<?php echo $child->id;?>">
|
||||
<?php
|
||||
$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++;
|
||||
?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php endif;
|
@ -0,0 +1,294 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Create a shortcut for params.
|
||||
$params = &$this->item->params;
|
||||
$images = json_decode($this->item->images);
|
||||
$canEdit = $this->item->params->get('access-edit');
|
||||
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
|
||||
$info = $this->item->params->get('info_block_position', 0);
|
||||
JHtml::_('behavior.tooltip');
|
||||
JHtml::_('behavior.framework');
|
||||
?>
|
||||
|
||||
<!-- Icons -->
|
||||
<?php if ($params->get('show_print_icon') || $params->get('show_email_icon') || $canEdit) : ?>
|
||||
<div class="item_icons btn-group pull-right"> <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> <i class="icon-cog"></i> <span class="caret"></span> </a>
|
||||
<ul class="dropdown-menu">
|
||||
<?php if ($params->get('show_print_icon')) : ?>
|
||||
<li class="print-icon"> <?php echo JHtml::_('icon.print_popup', $this->item, $params); ?> </li>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_email_icon')) : ?>
|
||||
<li class="email-icon"> <?php echo JHtml::_('icon.email', $this->item, $params); ?> </li>
|
||||
<?php endif; ?>
|
||||
<?php if ($canEdit) : ?>
|
||||
<li class="edit-icon"> <?php echo JHtml::_('icon.edit', $this->item, $params); ?> </li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
|
||||
<!-- Image -->
|
||||
<?php if (isset($images->image_intro) and !empty($images->image_intro)) : ?>
|
||||
|
||||
<?php
|
||||
$categoryImgFloat = $this->params->get('image_float');
|
||||
|
||||
if($categoryImgFloat == 'use_article'){
|
||||
$imgfloat = (empty($images->float_intro)) ? $params->get('float_intro') : $images->float_intro;
|
||||
} else {
|
||||
$imgfloat = $categoryImgFloat;
|
||||
}
|
||||
?>
|
||||
<div class="item_img img-intro img-intro__<?php echo htmlspecialchars($imgfloat); ?>">
|
||||
|
||||
<?php if (isset($images->image_fulltext) and !empty($images->image_fulltext)) : ?>
|
||||
<a class="touchGalleryLink zoom" href="<?php echo htmlspecialchars($images->image_fulltext); ?>">
|
||||
<span class="zoom-bg"></span>
|
||||
<span class="zoom-icon"></span>
|
||||
<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); ?>"/>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<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); ?>"/>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<!-- title/author -->
|
||||
<?php if ($params->get('show_title') || $this->item->state == 0 || ($params->get('show_author') && !empty($this->item->author ))) : ?>
|
||||
<div class="item_header">
|
||||
<?php if ($params->get('show_title')) : ?>
|
||||
<p class="item_title">
|
||||
<?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; ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->item->state == 0) : ?>
|
||||
<span class="label label-warning"><?php echo JText::_('JUNPUBLISHED'); ?></span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_author') && !empty($this->item->author )) : ?>
|
||||
<div class="item_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(
|
||||
'TPL_BY',
|
||||
JHtml::_('link', JRoute::_('index.php?option=com_contact&view=contact&id=' . $this->item->contactid), $author)
|
||||
); ?>
|
||||
<?php else :?>
|
||||
<?php echo JText::sprintf('TPL_BY', $author); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- info TOP -->
|
||||
<?php // to do not that elegant would be nice to group the params ?>
|
||||
<?php $useDefList = ($params->get('show_modify_date') || $params->get('show_publish_date')
|
||||
|| $params->get('show_hits') || $params->get('show_category') || $params->get('show_parent_category')); ?>
|
||||
<?php if ($useDefList && ($info == 0 || $info == 2)) : ?>
|
||||
<div class="item_info muted">
|
||||
<dl class="item_info_dl">
|
||||
|
||||
<!-- <dt class="article-info-term">
|
||||
<?php /*echo JText::_('COM_CONTENT_ARTICLE_INFO');*/ ?>
|
||||
</dt> -->
|
||||
|
||||
<?php if ($params->get('show_parent_category') && !empty($this->item->parent_slug)) : ?>
|
||||
<dd>
|
||||
<div class="item_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') && !empty($this->item->parent_slug)) : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $title); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_category')) : ?>
|
||||
<dd>
|
||||
<div class="item_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') && $this->item->catslug) : ?>
|
||||
<?php echo JText::sprintf('TPL_IN', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('TPL_IN', $title); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_publish_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_published">
|
||||
<?php echo JText::sprintf('TPL_ON', JHtml::_('date', $this->item->publish_up, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($info == 0): ?>
|
||||
<?php if ($params->get('show_modify_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_modified">
|
||||
<?php echo JText::sprintf('COM_CONTENT_LAST_UPDATED', JHtml::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_create_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_create">
|
||||
<?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $this->item->created, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_hits')) : ?>
|
||||
<dd>
|
||||
<div class="item_hits">
|
||||
<?php echo JText::sprintf('COM_CONTENT_ARTICLE_HITS', $this->item->hits); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</dl>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!$params->get('show_intro')) : ?>
|
||||
<?php echo $this->item->event->afterDisplayTitle; ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $this->item->event->beforeDisplayContent; ?>
|
||||
|
||||
<!-- Introtext -->
|
||||
<div class="item_introtext"><?php echo $this->item->introtext; ?></div>
|
||||
|
||||
<!-- info BOTTOM -->
|
||||
<?php if ($useDefList && ($info == 1 || $info == 2)) : ?>
|
||||
<div class="item_info muted">
|
||||
<dl class="item_info_dl">
|
||||
|
||||
<!-- <dt class="article-info-term"><?php /*echo JText::_('COM_CONTENT_ARTICLE_INFO');*/ ?></dt> -->
|
||||
|
||||
<?php if ($info == 1): ?>
|
||||
<?php if ($params->get('show_parent_category') && !empty($this->item->parent_slug)) : ?>
|
||||
<dd>
|
||||
<div class="item_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') && $this->item->parent_slug) : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $title); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_category')) : ?>
|
||||
<dd>
|
||||
<div class="item_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') && $this->item->catslug) : ?>
|
||||
<?php echo JText::sprintf('TPL_IN', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('TPL_IN', $title); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_publish_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_published">
|
||||
<?php echo JText::sprintf('COM_CONTENT_PUBLISHED_DATE_ON', JHtml::_('date', $this->item->publish_up, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_create_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_create"><?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_modify_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_modified"><?php echo JText::sprintf('COM_CONTENT_LAST_UPDATED', JHtml::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_hits')) : ?>
|
||||
<dd>
|
||||
<div class="item_hits">
|
||||
<?php echo JText::sprintf('COM_CONTENT_ARTICLE_HITS', $this->item->hits); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
</dl>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- More -->
|
||||
<?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;
|
||||
?>
|
||||
<a class="btn btn-info" 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('TPL_COM_CONTENT_READ_MORE_TITLE');
|
||||
else :
|
||||
echo JText::_('TPL_COM_CONTENT_READ_MORE') . ': ';
|
||||
echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit'));
|
||||
endif; ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $this->item->event->afterDisplayContent; ?>
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
|
||||
|
||||
<div class="items-more">
|
||||
<ul class="nav nav-tabs nav-stacked">
|
||||
<?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; ?>
|
||||
</ul>
|
||||
</div>
|
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
97
templates/as002036free/html/com_content/featured/default.php
Normal file
97
templates/as002036free/html/com_content/featured/default.php
Normal file
@ -0,0 +1,97 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
|
||||
|
||||
JHtml::_('behavior.caption');
|
||||
|
||||
// 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
|
||||
?>
|
||||
<div class="page-featured page-featured__<?php echo $this->pageclass_sfx;?>">
|
||||
<?php if ($this->params->get('show_page_heading') != 0) : ?>
|
||||
<div class="page_header">
|
||||
<h1>
|
||||
<?php echo $this->escape($this->params->get('page_heading')); ?>
|
||||
</h1>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php $leadingcount = 0; ?>
|
||||
<?php if (!empty($this->lead_items)) : ?>
|
||||
<div class="items-leading">
|
||||
<?php foreach ($this->lead_items as &$item) : ?>
|
||||
<div class="item item__featured leading<?php echo $leadingcount; ?><?php echo $item->state == 0 ? ' system-unpublished' : null; ?>">
|
||||
<?php
|
||||
$this->item = &$item;
|
||||
echo $this->loadTemplate('item');
|
||||
?>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<?php
|
||||
$leadingcount++;
|
||||
?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<div class="clearfix"></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; ?> row-fluid">
|
||||
<?php endif; ?>
|
||||
<div class="item item__featured column-<?php echo $rowcount;?><?php echo $item->state == 0 ? ' system-unpublished' : null; ?> span<?php echo round((12 / $this->columns));?>">
|
||||
<?php
|
||||
$this->item = &$item;
|
||||
echo $this->loadTemplate('item');
|
||||
?>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<?php $counter++; ?>
|
||||
|
||||
<?php if (($rowcount == $this->columns) or ($counter == $introcount)): ?>
|
||||
|
||||
</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 pull-right">
|
||||
<?php echo $this->pagination->getPagesCounter(); ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
<?php echo $this->pagination->getPagesLinks(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
@ -0,0 +1,257 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Create a shortcut for params.
|
||||
$params = &$this->item->params;
|
||||
$images = json_decode($this->item->images);
|
||||
$canEdit = $this->item->params->get('access-edit');
|
||||
$info = $this->item->params->get('info_block_position', 0);
|
||||
?>
|
||||
<?php if ($this->item->state == 0) : ?>
|
||||
<div class="system-unpublished">
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_print_icon') || $params->get('show_email_icon') || $canEdit) : ?>
|
||||
<div class="btn-group pull-right"> <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> <i class="icon-cog"></i><span class="caret"></span> </a>
|
||||
<ul class="dropdown-menu">
|
||||
<?php if ($params->get('show_print_icon')) : ?>
|
||||
<li class="print-icon"> <?php echo JHtml::_('icon.print_popup', $this->item, $params); ?> </li>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_email_icon')) : ?>
|
||||
<li class="email-icon"> <?php echo JHtml::_('icon.email', $this->item, $params); ?> </li>
|
||||
<?php endif; ?>
|
||||
<?php if ($canEdit) : ?>
|
||||
<li class="edit-icon"> <?php echo JHtml::_('icon.edit', $this->item, $params); ?> </li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?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="item_img img-intro 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 if ($params->get('show_title')) : ?>
|
||||
<div class="item_header">
|
||||
<h2 class="item_title">
|
||||
<?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>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->item->state == 0): ?>
|
||||
<span class="label label-warning"><?php echo JText::_('JUNPUBLISHED'); ?></span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_author') && !empty($this->item->author )) : ?>
|
||||
<div class="item_author">
|
||||
<?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('TPL_BY',
|
||||
JHtml::_('link', JRoute::_('index.php?option=com_contact&view=contact&id='.$this->item->contactid), $author)
|
||||
); ?>
|
||||
<?php else :?>
|
||||
<?php echo JText::sprintf('TPL_BY', $author); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php // Todo Not that elegant would be nice to group the params ?>
|
||||
<?php $useDefList = (($params->get('show_modify_date')) or ($params->get('show_publish_date'))
|
||||
or ($params->get('show_hits'))); ?>
|
||||
<?php if ($useDefList AND ($info == 0 OR $info == 2)) : ?>
|
||||
<div class="article-info muted">
|
||||
<dl class="article-info">
|
||||
<dt class="article-info-term"><?php echo JText::_('COM_CONTENT_ARTICLE_INFO'); ?></dt>
|
||||
|
||||
<?php if ($params->get('show_parent_category') && !empty($this->item->parent_slug)) : ?>
|
||||
<dd>
|
||||
<div class="item_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 !empty($this->item->parent_slug)) : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $title); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_category')) : ?>
|
||||
<dd>
|
||||
<div class="item_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('TPL_IN', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('TPL_IN', $title); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_publish_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_published">
|
||||
<?php echo JText::sprintf('TPL_ON', JHtml::_('date', $this->item->publish_up, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($info == 0): ?>
|
||||
<?php if ($params->get('show_modify_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_modified">
|
||||
<?php echo JText::sprintf('COM_CONTENT_LAST_UPDATED', JHtml::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_create_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_create">
|
||||
<?php echo JText::sprintf('COM_CONTENT_LAST_UPDATED', JHtml::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_hits')) : ?>
|
||||
<dd>
|
||||
<div class="item_hits">
|
||||
<?php echo JText::sprintf('COM_CONTENT_ARTICLE_HITS', $this->item->hits); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</dl>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php if (!$params->get('show_intro')) : ?>
|
||||
<?php echo $this->item->event->afterDisplayTitle; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $this->item->event->beforeDisplayContent; ?> <?php echo $this->item->introtext; ?>
|
||||
<?php if ($useDefList AND ($info == 1 OR $info == 2)) : ?>
|
||||
<div class="item_info muted">
|
||||
<dl class="item_info_dl">
|
||||
|
||||
<!-- <dt class="article-info-term"><?php /* echo JText::_('COM_CONTENT_ARTICLE_INFO'); */?></dt> -->
|
||||
|
||||
<?php if ($info == 1): ?>
|
||||
<?php if ($params->get('show_parent_category') AND !empty($this->item->parent_slug)) : ?>
|
||||
<dd>
|
||||
<div class="item_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; ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_category')) : ?>
|
||||
<dd>
|
||||
<div class="item_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; ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_publish_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_published">
|
||||
<?php echo JText::sprintf('COM_CONTENT_PUBLISHED_DATE_ON', JHtml::_('date', $this->item->publish_up, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_create_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_create">
|
||||
<?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_modify_date')) : ?>
|
||||
<dd>
|
||||
<div class="item_modified">
|
||||
<?php echo JText::sprintf('COM_CONTENT_LAST_UPDATED', JHtml::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_hits')) : ?>
|
||||
<dd>
|
||||
<div class="item_hits">
|
||||
<?php echo JText::sprintf('COM_CONTENT_ARTICLE_HITS', $this->item->hits); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
</dl>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?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;
|
||||
?>
|
||||
|
||||
<a class="btn btn-info readmore" href="<?php echo $link; ?>"> <!-- <i class="icon-chevron-right"></i> -->
|
||||
|
||||
<?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('TPL_COM_CONTENT_READ_MORE_TITLE');
|
||||
else :
|
||||
echo JText::_('TPL_COM_CONTENT_READ_MORE');
|
||||
echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit'));
|
||||
endif; ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->item->state == 0) : ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php echo $this->item->event->afterDisplayContent; ?>
|
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
335
templates/as002036free/html/com_content/form/edit.php
Normal file
335
templates/as002036free/html/com_content/form/edit.php
Normal file
@ -0,0 +1,335 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
JHtml::_('behavior.keepalive');
|
||||
JHtml::_('behavior.tooltip');
|
||||
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';
|
||||
}
|
||||
?>
|
||||
|
||||
<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);
|
||||
} else {
|
||||
alert('<?php echo $this->escape(JText::_('JGLOBAL_VALIDATION_FORM_FAILED')); ?>');
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<div class="page-item__edit page-item__edit__<?php echo $this->pageclass_sfx; ?>">
|
||||
|
||||
<?php if ($params->get('show_page_heading', 1)) : ?>
|
||||
<div class="page_header">
|
||||
<h1>
|
||||
<?php echo $this->escape($params->get('page_heading')); ?>
|
||||
</h1>
|
||||
</div>
|
||||
<?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 form-vertical">
|
||||
<div class="btn-toolbar">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-primary" onclick="Joomla.submitbutton('article.save')">
|
||||
<?php echo JText::_('JSAVE') ?>
|
||||
</button>
|
||||
</div>
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn" onclick="Joomla.submitbutton('article.cancel')">
|
||||
<i class="icon-cancel"></i> <?php echo JText::_('JCANCEL') ?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<fieldset>
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#editor" data-toggle="tab"><?php echo JText::_('JEDITOR') ?></a></li>
|
||||
<?php if ($params->get('show_urls_images_frontend') ): ?>
|
||||
<li><a href="#images" data-toggle="tab"><?php echo JText::_('COM_CONTENT_IMAGES_AND_URLS') ?></a></li>
|
||||
<?php endif; ?>
|
||||
<li><a href="#publishing" data-toggle="tab"><?php echo JText::_('COM_CONTENT_PUBLISHING') ?></a></li>
|
||||
<li><a href="#language" data-toggle="tab"><?php echo JText::_('JFIELD_LANGUAGE_LABEL') ?></a></li>
|
||||
<li><a href="#metadata" data-toggle="tab"><?php echo JText::_('COM_CONTENT_METADATA') ?></a></li>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active" id="editor">
|
||||
<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; ?>
|
||||
|
||||
<?php echo $this->form->getInput('articletext'); ?>
|
||||
</div>
|
||||
<?php if ($params->get('show_urls_images_frontend')): ?>
|
||||
<div class="tab-pane" id="images">
|
||||
<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>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="tab-pane" id="publishing">
|
||||
<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; ?>
|
||||
</div>
|
||||
<div class="tab-pane" id="language">
|
||||
<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>
|
||||
<div class="tab-pane" id="metadata">
|
||||
<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; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
1
templates/as002036free/html/com_content/form/index.html
Normal file
1
templates/as002036free/html/com_content/form/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
1
templates/as002036free/html/com_content/index.html
Normal file
1
templates/as002036free/html/com_content/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
1
templates/as002036free/html/com_finder/index.html
Normal file
1
templates/as002036free/html/com_finder/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
41
templates/as002036free/html/com_finder/search/default.php
Normal file
41
templates/as002036free/html/com_finder/search/default.php
Normal file
@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_finder
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
JHtml::_('behavior.framework');
|
||||
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');
|
||||
JHtml::stylesheet('com_finder/finder.css', false, true, false);
|
||||
?>
|
||||
|
||||
<div class="page_finder page_finder__<?php echo $this->pageclass_sfx; ?>">
|
||||
<?php if ($this->params->get('show_page_heading')) : ?>
|
||||
<h1>
|
||||
<?php if ($this->escape($this->params->get('page_heading'))) : ?>
|
||||
<?php echo $this->escape($this->params->get('page_heading')); ?>
|
||||
<?php else : ?>
|
||||
<?php echo $this->escape($this->params->get('page_title')); ?>
|
||||
<?php endif; ?>
|
||||
</h1>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_search_form', 1)): ?>
|
||||
<div id="search-form">
|
||||
<?php echo $this->loadTemplate('form'); ?>
|
||||
</div>
|
||||
<?php endif;
|
||||
|
||||
// Load the search results layout if we are performing a search.
|
||||
if ($this->query->search === true):
|
||||
?>
|
||||
<div id="search-results">
|
||||
<?php echo $this->loadTemplate('results'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
110
templates/as002036free/html/com_finder/search/default_form.php
Normal file
110
templates/as002036free/html/com_finder/search/default_form.php
Normal file
@ -0,0 +1,110 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_finder
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
window.addEvent('domready', function() {
|
||||
<?php if ($this->params->get('show_advanced', 1)): ?>
|
||||
/*
|
||||
* This segment of code adds the slide effect to the advanced search box.
|
||||
*/
|
||||
if (document.id('advanced-search') != null) {
|
||||
var searchSlider = new Fx.Slide('advanced-search');
|
||||
|
||||
<?php if (!$this->params->get('expand_advanced', 0)): ?>
|
||||
searchSlider.hide();
|
||||
<?php endif; ?>
|
||||
|
||||
document.id('advanced-search-toggle').addEvent('click', function(e) {
|
||||
e = new Event(e);
|
||||
e.stop();
|
||||
searchSlider.toggle();
|
||||
});
|
||||
}
|
||||
|
||||
/*
|
||||
* This segment of code disables select boxes that have no value when the
|
||||
* form is submitted so that the URL doesn't get blown up with null values.
|
||||
*/
|
||||
if (document.id('finder-search') != null) {
|
||||
document.id('finder-search').addEvent('submit', function(e){
|
||||
e = new Event(e);
|
||||
e.stop();
|
||||
|
||||
if (document.id('advanced-search') != null) {
|
||||
// Disable select boxes with no value selected.
|
||||
document.id('advanced-search').getElements('select').each(function(s){
|
||||
if (!s.getProperty('value')) {
|
||||
s.setProperty('disabled', 'disabled');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
document.id('finder-search').submit();
|
||||
});
|
||||
}
|
||||
<?php endif; ?>
|
||||
/*
|
||||
* This segment of code sets up the autocompleter.
|
||||
*/
|
||||
<?php if ($this->params->get('show_autosuggest', 1)): ?>
|
||||
<?php JHtml::script('com_finder/autocompleter.js', false, true); ?>
|
||||
var url = '<?php echo JRoute::_('index.php?option=com_finder&task=suggestions.display&format=json&tmpl=component', false); ?>';
|
||||
var completer = new Autocompleter.Request.JSON(document.id('q'), url, {'postVar': 'q'});
|
||||
<?php endif; ?>
|
||||
});
|
||||
</script>
|
||||
|
||||
<form id="finder-search" action="<?php echo JRoute::_($this->query->toURI()); ?>" method="get" class="form-inline">
|
||||
<?php echo $this->getFields(); ?>
|
||||
|
||||
<?php
|
||||
/*
|
||||
* DISABLED UNTIL WEIRD VALUES CAN BE TRACKED DOWN.
|
||||
*/
|
||||
if (false && $this->state->get('list.ordering') !== 'relevance_dsc'): ?>
|
||||
<input type="hidden" name="o" value="<?php echo $this->escape($this->state->get('list.ordering')); ?>" />
|
||||
<?php endif; ?>
|
||||
|
||||
<fieldset class="word">
|
||||
|
||||
<div class="control-group">
|
||||
<label for="q">
|
||||
<?php echo JText::_('COM_FINDER_SEARCH_TERMS'); ?>
|
||||
</label>
|
||||
<input type="text" name="q" id="q" size="30" value="<?php echo $this->escape($this->query->input); ?>" class="inputbox" />
|
||||
<?php if ($this->escape($this->query->input) != '' || $this->params->get('allow_empty_search')):?>
|
||||
<button name="Search" type="submit" class="btn btn-primary"><i class="icon-search icon-white"></i> <?php echo JText::_('JSEARCH_FILTER_SUBMIT');?></button>
|
||||
<?php else: ?>
|
||||
<button name="Search" type="submit" class="btn btn-primary disabled"><i class="icon-search icon-white"></i> <?php echo JText::_('JSEARCH_FILTER_SUBMIT');?></button>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<?php if ($this->params->get('show_advanced', 1)): ?>
|
||||
<a href="#advancedSearch" data-toggle="collapse" class="btn"><i class="icon-list"></i> <?php echo JText::_('COM_FINDER_ADVANCED_SEARCH_TOGGLE'); ?></a>
|
||||
<?php endif; ?>
|
||||
</fieldset>
|
||||
|
||||
<?php if ($this->params->get('show_advanced', 1)): ?>
|
||||
<div id="advancedSearch" class="collapse">
|
||||
<hr />
|
||||
<?php if ($this->params->get('show_advanced_tips', 1)): ?>
|
||||
<div class="advanced-search-tip">
|
||||
<?php echo JText::_('COM_FINDER_ADVANCED_TIPS'); ?>
|
||||
</div>
|
||||
<hr />
|
||||
<?php endif; ?>
|
||||
<div id="finder-filter-window">
|
||||
<?php echo JHtml::_('filter.select', $this->query, $this->params); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</form>
|
1
templates/as002036free/html/com_finder/search/index.html
Normal file
1
templates/as002036free/html/com_finder/search/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
1
templates/as002036free/html/com_search/index.html
Normal file
1
templates/as002036free/html/com_search/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
34
templates/as002036free/html/com_search/search/default.php
Normal file
34
templates/as002036free/html/com_search/search/default.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_search
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
|
||||
<div class="page page-search page-search__<?php echo $this->pageclass_sfx; ?>">
|
||||
|
||||
<?php if ($this->params->get('show_page_heading', 1)) : ?>
|
||||
<div class="page_header">
|
||||
<h1>
|
||||
<?php if ($this->escape($this->params->get('page_heading'))) :?>
|
||||
<?php echo $this->escape($this->params->get('page_heading')); ?>
|
||||
<?php else : ?>
|
||||
<?php echo $this->escape($this->params->get('page_title')); ?>
|
||||
<?php endif; ?>
|
||||
</h1>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php echo $this->loadTemplate('form'); ?>
|
||||
<?php if ($this->error == null && count($this->results) > 0) :
|
||||
echo $this->loadTemplate('results');
|
||||
else :
|
||||
echo $this->loadTemplate('error');
|
||||
endif; ?>
|
||||
</div>
|
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_search
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
|
||||
<?php if($this->error): ?>
|
||||
<div class="error">
|
||||
<?php echo $this->escape($this->error); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_search
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$lang = JFactory::getLanguage();
|
||||
$upper_limit = $lang->getUpperLimitSearchWord();
|
||||
|
||||
JHtml::_('bootstrap.tooltip');
|
||||
?>
|
||||
<form id="searchForm" action="<?php echo JRoute::_('index.php?option=com_search');?>" method="post">
|
||||
|
||||
<div class="btn-toolbar">
|
||||
<div class="btn-group pull-left">
|
||||
<input type="text" name="searchword" placeholder="<?php echo JText::_('COM_SEARCH_SEARCH_KEYWORD'); ?>" id="search-searchword" size="30" maxlength="<?php echo $upper_limit; ?>" value="<?php echo $this->escape($this->origkeyword); ?>" class="inputbox" />
|
||||
</div>
|
||||
<div class="btn-group pull-left">
|
||||
<button name="Search" onclick="this.form.submit()" class="btn hasTooltip btn-primary" title="<?php echo JText::_('COM_SEARCH_SEARCH');?>"><i class="icon-search"></i></button>
|
||||
</div>
|
||||
<input type="hidden" name="task" value="search" />
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
<div class="searchintro<?php echo $this->params->get('pageclass_sfx'); ?>">
|
||||
<?php if (!empty($this->searchword)):?>
|
||||
<p><?php echo JText::plural('COM_SEARCH_SEARCH_KEYWORD_N_RESULTS', '<span class="badge badge-info">'. $this->total. '</span>');?></p>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
|
||||
<fieldset class="phrases">
|
||||
<legend><?php echo JText::_('COM_SEARCH_FOR');?>
|
||||
</legend>
|
||||
<div class="phrases-box">
|
||||
<?php echo $this->lists['searchphrase']; ?>
|
||||
</div>
|
||||
<div class="ordering-box">
|
||||
<label for="ordering" class="ordering">
|
||||
<?php echo JText::_('COM_SEARCH_ORDERING');?>
|
||||
</label>
|
||||
<?php echo $this->lists['ordering'];?>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<?php if ($this->params->get('search_areas', 1)) : ?>
|
||||
<fieldset class="only">
|
||||
<legend><?php echo JText::_('COM_SEARCH_SEARCH_ONLY');?></legend>
|
||||
<?php foreach ($this->searchareas['search'] as $val => $txt) :
|
||||
$checked = is_array($this->searchareas['active']) && in_array($val, $this->searchareas['active']) ? 'checked="checked"' : '';
|
||||
?>
|
||||
<label for="area-<?php echo $val;?>" class="checkbox">
|
||||
<input type="checkbox" name="areas[]" value="<?php echo $val;?>" id="area-<?php echo $val;?>" <?php echo $checked;?> >
|
||||
<?php echo JText::_($txt); ?>
|
||||
</label>
|
||||
<?php endforeach; ?>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->total > 0) : ?>
|
||||
|
||||
<div class="form-limit well">
|
||||
<label for="limit">
|
||||
<?php echo JText::_('JGLOBAL_DISPLAY_NUM'); ?>
|
||||
</label>
|
||||
<?php echo $this->pagination->getLimitBox(); ?>
|
||||
</div>
|
||||
<p class="counter">
|
||||
<?php echo $this->pagination->getPagesCounter(); ?>
|
||||
</p>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</form>
|
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_search
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
|
||||
<dl class="search-results<?php echo $this->pageclass_sfx; ?>">
|
||||
<?php foreach($this->results as $result) : ?>
|
||||
<dt class="result-title">
|
||||
<?php echo $this->pagination->limitstart + $result->count.'. ';?>
|
||||
<?php if ($result->href) :?>
|
||||
<a href="<?php echo JRoute::_($result->href); ?>"<?php if ($result->browsernav == 1) :?> target="_blank"<?php endif;?>>
|
||||
<?php echo $this->escape($result->title);?>
|
||||
</a>
|
||||
<?php else:?>
|
||||
<?php echo $this->escape($result->title);?>
|
||||
<?php endif; ?>
|
||||
</dt>
|
||||
<?php if ($result->section) : ?>
|
||||
<dd class="result-category">
|
||||
<span class="small<?php echo $this->pageclass_sfx; ?>">
|
||||
(<?php echo $this->escape($result->section); ?>)
|
||||
</span>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<dd class="result-text">
|
||||
<?php echo $result->text; ?>
|
||||
</dd>
|
||||
<?php if ($this->params->get('show_date')) : ?>
|
||||
<dd class="result-created<?php echo $this->pageclass_sfx; ?>">
|
||||
<?php echo JText::sprintf('JGLOBAL_CREATED_DATE_ON', $result->created); ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</dl>
|
||||
|
||||
<div class="pagination">
|
||||
<?php echo $this->pagination->getPagesLinks(); ?>
|
||||
</div>
|
1
templates/as002036free/html/com_search/search/index.html
Normal file
1
templates/as002036free/html/com_search/search/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
1
templates/as002036free/html/com_users/index.html
Normal file
1
templates/as002036free/html/com_users/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
@ -0,0 +1,81 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_users
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
JHtml::_('behavior.keepalive');
|
||||
?>
|
||||
<div class="page-login page-login__<?php echo $this->pageclass_sfx?>">
|
||||
<?php if ($this->params->get('show_page_heading')) : ?>
|
||||
<div class="page-header">
|
||||
<h1>
|
||||
<?php echo $this->escape($this->params->get('page_heading')); ?>
|
||||
</h1>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (($this->params->get('logindescription_show') == 1 && str_replace(' ', '', $this->params->get('login_description')) != '') || $this->params->get('login_image') != '') : ?>
|
||||
<div class="login-description">
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($this->params->get('logindescription_show') == 1) : ?>
|
||||
<?php echo $this->params->get('login_description'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (($this->params->get('login_image') != '')) :?>
|
||||
<img src="<?php echo $this->escape($this->params->get('login_image')); ?>" class="login-image" alt="<?php echo JTEXT::_('COM_USER_LOGIN_IMAGE_ALT')?>"/>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (($this->params->get('logindescription_show') == 1 && str_replace(' ', '', $this->params->get('login_description')) != '') || $this->params->get('login_image') != '') : ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<form action="<?php echo JRoute::_('index.php?option=com_users&task=user.login'); ?>" method="post" class="">
|
||||
|
||||
<fieldset class="">
|
||||
<?php foreach ($this->form->getFieldset('credentials') as $field): ?>
|
||||
<?php if (!$field->hidden): ?>
|
||||
<div class="control-label">
|
||||
<?php echo $field->label; ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $field->input; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<button type="submit" class="btn btn-primary"><?php echo JText::_('JLOGIN'); ?></button>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="return" value="<?php echo base64_encode($this->params->get('login_redirect_url', $this->form->getValue('return'))); ?>" />
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
<div style="margin-bottom: 40px">
|
||||
<ul class="item-list">
|
||||
<li>
|
||||
<a href="<?php echo JRoute::_('index.php?option=com_users&view=reset'); ?>">
|
||||
<?php echo JText::_('COM_USERS_LOGIN_RESET'); ?></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<?php echo JRoute::_('index.php?option=com_users&view=remind'); ?>">
|
||||
<?php echo JText::_('COM_USERS_LOGIN_REMIND'); ?></a>
|
||||
</li>
|
||||
<?php
|
||||
$usersConfig = JComponentHelper::getParams('com_users');
|
||||
if ($usersConfig->get('allowUserRegistration')) : ?>
|
||||
<li>
|
||||
<a href="<?php echo JRoute::_('index.php?option=com_users&view=registration'); ?>">
|
||||
<?php echo JText::_('COM_USERS_LOGIN_REGISTER'); ?></a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
1
templates/as002036free/html/com_users/login/index.html
Normal file
1
templates/as002036free/html/com_users/login/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
36
templates/as002036free/html/com_users/profile/default.php
Normal file
36
templates/as002036free/html/com_users/profile/default.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_users
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
JHtml::_('behavior.tooltip');
|
||||
?>
|
||||
<div class="page_profile page_profile__<?php echo $this->pageclass_sfx?>">
|
||||
<?php if (JFactory::getUser()->id == $this->data->id) : ?>
|
||||
<ul class="btn-toolbar pull-right">
|
||||
<li class="btn-group">
|
||||
<a class="btn" href="<?php echo JRoute::_('index.php?option=com_users&task=profile.edit&user_id='.(int) $this->data->id);?>">
|
||||
<i class="icon-user"></i> <?php echo JText::_('COM_USERS_Edit_Profile'); ?></a>
|
||||
</li>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('show_page_heading')) : ?>
|
||||
<div class="page_header">
|
||||
<h1>
|
||||
<?php echo $this->escape($this->params->get('page_heading')); ?>
|
||||
</h1>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $this->loadTemplate('core'); ?>
|
||||
|
||||
<?php echo $this->loadTemplate('params'); ?>
|
||||
|
||||
<?php echo $this->loadTemplate('custom'); ?>
|
||||
|
||||
</div>
|
68
templates/as002036free/html/com_users/profile/edit.php
Normal file
68
templates/as002036free/html/com_users/profile/edit.php
Normal file
@ -0,0 +1,68 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_users
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
JHtml::_('behavior.keepalive');
|
||||
JHtml::_('behavior.tooltip');
|
||||
JHtml::_('behavior.formvalidation');
|
||||
//load user_profile plugin language
|
||||
$lang = JFactory::getLanguage();
|
||||
$lang->load('plg_user_profile', JPATH_ADMINISTRATOR);
|
||||
?>
|
||||
<div class="page-profile__edit page-profile__edit__<?php echo $this->pageclass_sfx?>">
|
||||
<?php if ($this->params->get('show_page_heading')) : ?>
|
||||
<div class="page_header">
|
||||
<h1><?php echo $this->escape($this->params->get('page_heading')); ?></h1>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<form id="member-profile" action="<?php echo JRoute::_('index.php?option=com_users&task=profile.save'); ?>" method="post" class="form-validate form-vertical" enctype="multipart/form-data">
|
||||
<?php foreach ($this->form->getFieldsets() as $group => $fieldset):// Iterate through the form fieldsets and display each one.?>
|
||||
<?php $fields = $this->form->getFieldset($group);?>
|
||||
<?php if (count($fields)):?>
|
||||
<fieldset>
|
||||
<?php if (isset($fieldset->label)):// If the fieldset has a label set, display it as the legend.?>
|
||||
<legend><?php echo JText::_($fieldset->label); ?></legend>
|
||||
<?php endif;?>
|
||||
<?php foreach ($fields as $field):// Iterate through the fields in the set and display them.?>
|
||||
<?php if ($field->hidden):// If the field is hidden, just display the input.?>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<?php echo $field->input;?>
|
||||
</div>
|
||||
</div>
|
||||
<?php else:?>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $field->label; ?>
|
||||
<?php if (!$field->required && $field->type != 'Spacer'): ?>
|
||||
<span class="optional"><?php echo JText::_('COM_USERS_OPTIONAL'); ?></span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $field->input; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<?php endforeach;?>
|
||||
</fieldset>
|
||||
<?php endif;?>
|
||||
<?php endforeach;?>
|
||||
|
||||
<div class="controls">
|
||||
<button type="submit" class="btn btn-primary validate"><span><?php echo JText::_('JSUBMIT'); ?></span></button>
|
||||
<a class="btn" href="<?php echo JRoute::_(''); ?>" title="<?php echo JText::_('JCANCEL'); ?>"><?php echo JText::_('JCANCEL'); ?></a>
|
||||
|
||||
<input type="hidden" name="option" value="com_users" />
|
||||
<input type="hidden" name="task" value="profile.save" />
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
1
templates/as002036free/html/com_users/profile/index.html
Normal file
1
templates/as002036free/html/com_users/profile/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_users
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
<div class="page-registration__complete page-registration__complete__<?php echo $this->pageclass_sfx;?>">
|
||||
<?php if ($this->params->get('show_page_heading')) : ?>
|
||||
<div class="page_header">
|
||||
<h1>
|
||||
<?php echo $this->escape($this->params->get('page_heading')); ?>
|
||||
</h1>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
@ -0,0 +1,60 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_users
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
JHtml::_('behavior.keepalive');
|
||||
JHtml::_('behavior.tooltip');
|
||||
JHtml::_('behavior.formvalidation');
|
||||
?>
|
||||
<div class="page-registration page-registration__<?php echo $this->pageclass_sfx?>">
|
||||
<?php if ($this->params->get('show_page_heading')) : ?>
|
||||
<div class="page_header">
|
||||
<h1><?php echo $this->escape($this->params->get('page_heading')); ?></h1>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<form id="member-registration" action="<?php echo JRoute::_('index.php?option=com_users&task=registration.register'); ?>" method="post" class="form-validate">
|
||||
<?php foreach ($this->form->getFieldsets() as $fieldset): // Iterate through the form fieldsets and display each one.?>
|
||||
<?php $fields = $this->form->getFieldset($fieldset->name);?>
|
||||
<?php if (count($fields)):?>
|
||||
<fieldset>
|
||||
<?php if (isset($fieldset->label)):// If the fieldset has a label set, display it as the legend.
|
||||
?>
|
||||
<legend><?php echo JText::_($fieldset->label);?></legend>
|
||||
<?php endif;?>
|
||||
<?php foreach($fields as $field):// Iterate through the fields in the set and display them.?>
|
||||
<?php if ($field->hidden):// If the field is hidden, just display the input.?>
|
||||
<?php echo $field->input;?>
|
||||
<?php else:?>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $field->label; ?>
|
||||
<?php if (!$field->required && $field->type != 'Spacer'): ?>
|
||||
<span class="optional"><?php echo JText::_('COM_USERS_OPTIONAL');?></span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $field->input;?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<?php endforeach;?>
|
||||
</fieldset>
|
||||
<?php endif;?>
|
||||
<?php endforeach;?>
|
||||
<div class="controls">
|
||||
<button type="submit" class="btn btn-primary validate"><?php echo JText::_('JREGISTER');?></button>
|
||||
<a class="btn cancel" href="<?php echo JRoute::_('');?>" title="<?php echo JText::_('JCANCEL');?>"><?php echo JText::_('JCANCEL');?></a>
|
||||
</div>
|
||||
<input type="hidden" name="option" value="com_users" />
|
||||
<input type="hidden" name="task" value="registration.register" />
|
||||
<?php echo JHtml::_('form.token');?>
|
||||
</form>
|
||||
</div>
|
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
39
templates/as002036free/html/com_users/remind/default.php
Normal file
39
templates/as002036free/html/com_users/remind/default.php
Normal file
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_users
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
JHtml::_('behavior.keepalive');
|
||||
JHtml::_('behavior.tooltip');
|
||||
JHtml::_('behavior.formvalidation');
|
||||
?>
|
||||
<div class="page-remind page-remind__<?php echo $this->pageclass_sfx?>">
|
||||
<?php if ($this->params->get('show_page_heading')) : ?>
|
||||
<div class="page_header">
|
||||
<h1>
|
||||
<?php echo $this->escape($this->params->get('page_heading')); ?>
|
||||
</h1>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<form id="user-registration" action="<?php echo JRoute::_('index.php?option=com_users&task=remind.remind'); ?>" method="post" class="form-validate">
|
||||
<fieldset>
|
||||
<?php foreach ($this->form->getFieldsets() as $fieldset): ?>
|
||||
<p><?php echo JText::_($fieldset->label); ?></p>
|
||||
|
||||
<?php foreach ($this->form->getFieldset($fieldset->name) as $name => $field): ?>
|
||||
<?php echo $field->label; ?>
|
||||
<?php echo $field->input; ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endforeach; ?>
|
||||
<button type="submit" class="btn btn-primary validate"><?php echo JText::_('JSUBMIT'); ?></button>
|
||||
</fieldset>
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</form>
|
||||
</div>
|
1
templates/as002036free/html/com_users/remind/index.html
Normal file
1
templates/as002036free/html/com_users/remind/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
40
templates/as002036free/html/com_users/reset/complete.php
Normal file
40
templates/as002036free/html/com_users/reset/complete.php
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_users
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
JHtml::_('behavior.keepalive');
|
||||
JHtml::_('behavior.formvalidation');
|
||||
?>
|
||||
<div class="page-reset__complete page-reset__complete__<?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_users&task=reset.complete'); ?>" method="post" class="form-validate">
|
||||
|
||||
<?php foreach ($this->form->getFieldsets() as $fieldset): ?>
|
||||
<p><?php echo JText::_($fieldset->label); ?></p> <fieldset>
|
||||
<dl>
|
||||
<?php foreach ($this->form->getFieldset($fieldset->name) as $name => $field): ?>
|
||||
<dt><?php echo $field->label; ?></dt>
|
||||
<dd><?php echo $field->input; ?></dd>
|
||||
<?php endforeach; ?>
|
||||
</dl>
|
||||
</fieldset>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<div>
|
||||
<button type="submit" class="btn btn-primary validate"><?php echo JText::_('JSUBMIT'); ?></button>
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
40
templates/as002036free/html/com_users/reset/confirm.php
Normal file
40
templates/as002036free/html/com_users/reset/confirm.php
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_users
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
JHtml::_('behavior.keepalive');
|
||||
JHtml::_('behavior.formvalidation');
|
||||
?>
|
||||
<div class="page-reset__confirm page-reset__confirm__<?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_users&task=reset.confirm'); ?>" method="post" class="form-validate">
|
||||
|
||||
<?php foreach ($this->form->getFieldsets() as $fieldset): ?>
|
||||
<p><?php echo JText::_($fieldset->label); ?></p> <fieldset>
|
||||
<dl>
|
||||
<?php foreach ($this->form->getFieldset($fieldset->name) as $name => $field): ?>
|
||||
<dt><?php echo $field->label; ?></dt>
|
||||
<dd><?php echo $field->input; ?></dd>
|
||||
<?php endforeach; ?>
|
||||
</dl>
|
||||
</fieldset>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<div>
|
||||
<button type="submit" class="validate btn btn-primary"><?php echo JText::_('JSUBMIT'); ?></button>
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
39
templates/as002036free/html/com_users/reset/default.php
Normal file
39
templates/as002036free/html/com_users/reset/default.php
Normal file
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_users
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
JHtml::_('behavior.keepalive');
|
||||
JHtml::_('behavior.tooltip');
|
||||
JHtml::_('behavior.formvalidation');
|
||||
?>
|
||||
<div class="page-reset page-reset__<?php echo $this->pageclass_sfx?>">
|
||||
<?php if ($this->params->get('show_page_heading')) : ?>
|
||||
<div class="page_header">
|
||||
<h1>
|
||||
<?php echo $this->escape($this->params->get('page_heading')); ?>
|
||||
</h1>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<form id="user-registration" action="<?php echo JRoute::_('index.php?option=com_users&task=reset.request'); ?>" method="post" class="form-validate">
|
||||
|
||||
<?php foreach ($this->form->getFieldsets() as $fieldset): ?>
|
||||
<p><?php echo JText::_($fieldset->label); ?></p>
|
||||
<fieldset>
|
||||
<?php foreach ($this->form->getFieldset($fieldset->name) as $name => $field): ?>
|
||||
<?php echo $field->label; ?>
|
||||
<?php echo $field->input; ?>
|
||||
<?php endforeach; ?>
|
||||
<button type="submit" class="btn btn-primary validate"><?php echo JText::_('JSUBMIT'); ?></button>
|
||||
</fieldset>
|
||||
<?php endforeach; ?>
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</form>
|
||||
</div>
|
1
templates/as002036free/html/com_users/reset/index.html
Normal file
1
templates/as002036free/html/com_users/reset/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
115
templates/as002036free/html/com_weblinks/form/edit.php
Normal file
115
templates/as002036free/html/com_weblinks/form/edit.php
Normal file
@ -0,0 +1,115 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_weblinks
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
JHtml::_('behavior.keepalive');
|
||||
JHtml::_('behavior.tooltip');
|
||||
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);
|
||||
}
|
||||
else {
|
||||
alert('<?php echo $this->escape(JText::_('JGLOBAL_VALIDATION_FORM_FAILED'));?>');
|
||||
}
|
||||
}
|
||||
</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-horizontal">
|
||||
<div class="btn-toolbar">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-primary" onclick="Joomla.submitbutton('weblink.save')">
|
||||
<?php echo JText::_('JSAVE') ?>
|
||||
</button>
|
||||
</div>
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-primary" 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/as002036free/html/com_weblinks/form/index.html
Normal file
1
templates/as002036free/html/com_weblinks/form/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
1
templates/as002036free/html/com_weblinks/index.html
Normal file
1
templates/as002036free/html/com_weblinks/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
51
templates/as002036free/html/editor_content.css
Normal file
51
templates/as002036free/html/editor_content.css
Normal file
@ -0,0 +1,51 @@
|
||||
body {
|
||||
background: #000;
|
||||
font-family: Arial,sans-serif;
|
||||
line-height: 1.3em;
|
||||
font-size: 96%;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-family:Helvetica ,Arial,sans-serif;
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
color: #ff0000;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-family: Arial, Helvetica,sans-serif;
|
||||
font-size: 14px;;
|
||||
font-weight: normal;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-weight: bold;
|
||||
font-family: Helvetica,Arial,sans-serif;
|
||||
font-size: 19px;
|
||||
color: #135cae;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-weight: bold;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
a:link, a:visited {
|
||||
color: #1B57B1; text-decoration: none;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #00c;
|
||||
text-decoration: none;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
div.caption { padding: 0 10px 0 10px; }
|
||||
div.caption img { border: 1px solid #CCC; }
|
||||
div.caption p { font-size: .90em; color: #666; text-align: center; }
|
||||
|
||||
div.teaser { background:#ccc; }
|
1
templates/as002036free/html/index.html
Normal file
1
templates/as002036free/html/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
51
templates/as002036free/html/mod_articles_news/_item.php
Normal file
51
templates/as002036free/html/mod_articles_news/_item.php
Normal file
@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_articles_news
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
$images = json_decode($item->images);
|
||||
|
||||
$item_heading = $params->get('item_heading', 'h4');
|
||||
?>
|
||||
<?php if ($params->get('item_title')) : ?>
|
||||
|
||||
<<?php echo $item_heading; ?> class="newsflash-title<?php echo $params->get('moduleclass_sfx'); ?>">
|
||||
<?php if ($params->get('link_titles') && $item->link != '') : ?>
|
||||
<a href="<?php echo $item->link;?>">
|
||||
<?php echo $item->title;?></a>
|
||||
<?php else : ?>
|
||||
<?php echo $item->title; ?>
|
||||
<?php endif; ?>
|
||||
</<?php echo $item_heading; ?>>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php /** For Intro Image **/ if (isset($images->image_intro) and !empty($images->image_intro)) : ?>
|
||||
<?php $imgfloat = (empty($images->float_intro)) ? $item->params->get('float_intro') : $images->float_intro; ?>
|
||||
<div class="img-intro-<?php echo htmlspecialchars($imgfloat); ?>">
|
||||
<a href="<?php echo $item->link; ?>">
|
||||
<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); ?>"/>
|
||||
</a>
|
||||
</div>
|
||||
<?php /** End For Intro Image **/endif; ?>
|
||||
|
||||
<?php if (!$params->get('intro_only')) :
|
||||
echo $item->afterDisplayTitle;
|
||||
endif; ?>
|
||||
|
||||
<?php echo $item->beforeDisplayContent; ?>
|
||||
|
||||
<?php echo $item->introtext; ?>
|
||||
|
||||
<?php if (isset($item->link) && $item->readmore != 0 && $params->get('readmore')) :
|
||||
echo '<a class="readmore" href="'.$item->link.'">'.$item->linkText.'</a>';
|
||||
endif; ?>
|
24
templates/as002036free/html/mod_articles_news/default.php
Normal file
24
templates/as002036free/html/mod_articles_news/default.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_articles_news
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
<div class="mod-newsflash mod-newsflash__<?php echo $moduleclass_sfx; ?>">
|
||||
<?php
|
||||
foreach ($list as $item) :
|
||||
?>
|
||||
<div class="item">
|
||||
<?php
|
||||
require JModuleHelper::getLayoutPath('mod_articles_news', '_item');
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
endforeach;
|
||||
?>
|
||||
</div>
|
26
templates/as002036free/html/mod_articles_news/horizontal.php
Normal file
26
templates/as002036free/html/mod_articles_news/horizontal.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_articles_news
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
|
||||
<ul class="mod-newsflash mod-newsflash__horiz mod-newsflash__horiz__<?php echo $params->get('moduleclass_sfx'); ?>">
|
||||
<?php for ($i = 0, $n = count($list); $i < $n; $i ++) :
|
||||
$item = $list[$i]; ?>
|
||||
<li>
|
||||
<?php require JModuleHelper::getLayoutPath('mod_articles_news', '_item');
|
||||
|
||||
if ($n > 1 && (($i < $n - 1) || $params->get('showLastSeparator'))) : ?>
|
||||
|
||||
<span class="article-separator"> </span>
|
||||
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endfor; ?>
|
||||
</ul>
|
1
templates/as002036free/html/mod_articles_news/index.html
Normal file
1
templates/as002036free/html/mod_articles_news/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
22
templates/as002036free/html/mod_articles_news/vertical.php
Normal file
22
templates/as002036free/html/mod_articles_news/vertical.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_articles_news
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
<ul class="mod-newsflash mod-newsflash__vert mod-newsflash__vert__<?php echo $params->get('moduleclass_sfx'); ?>">
|
||||
<?php for ($i = 0, $n = count($list); $i < $n; $i ++) :
|
||||
$item = $list[$i]; ?>
|
||||
<li class="newsflash-item">
|
||||
<?php require JModuleHelper::getLayoutPath('mod_articles_news', '_item');
|
||||
if ($n > 1 && (($i < $n - 1) || $params->get('showLastSeparator'))) : ?>
|
||||
<span class="article-separator"> </span>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endfor; ?>
|
||||
</ul>
|
51
templates/as002036free/html/mod_breadcrumbs/default.php
Normal file
51
templates/as002036free/html/mod_breadcrumbs/default.php
Normal file
@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_breadcrumbs
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
JHtml::_('bootstrap.tooltip');
|
||||
?>
|
||||
|
||||
<ul class="breadcrumb <?php echo $moduleclass_sfx; ?>">
|
||||
<?php if ($params->get('showHere', 1))
|
||||
{
|
||||
echo '<span class="showHere">' .JText::_('MOD_BREADCRUMBS_HERE').'</span>';
|
||||
}
|
||||
?>
|
||||
<?php for ($i = 0; $i < $count; $i ++) :
|
||||
// Workaround for duplicate Home when using multilanguage
|
||||
if ($i == 1 && !empty($list[$i]->link) && !empty($list[$i - 1]->link) && $list[$i]->link == $list[$i - 1]->link)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
// If not the last item in the breadcrumbs add the separator
|
||||
echo '<li>';
|
||||
if ($i < $count - 1)
|
||||
{
|
||||
if (!empty($list[$i]->link)) {
|
||||
echo '<a href="'.$list[$i]->link.'" class="pathway">'.$list[$i]->name.'</a>';
|
||||
} else {
|
||||
echo '<span>';
|
||||
echo $list[$i]->name;
|
||||
echo '</span>';
|
||||
}
|
||||
if ($i < $count - 2)
|
||||
{
|
||||
echo '<span class="divider"></span>';
|
||||
}
|
||||
} elseif ($params->get('showLast', 1)) { // when $i == $count -1 and 'showLast' is true
|
||||
if($i > 0){
|
||||
echo '<span class="divider"></span>';
|
||||
}
|
||||
echo '<span>';
|
||||
echo $list[$i]->name;
|
||||
echo '</span>';
|
||||
}
|
||||
echo '<li>';
|
||||
endfor; ?>
|
||||
</ul>
|
1
templates/as002036free/html/mod_breadcrumbs/index.html
Normal file
1
templates/as002036free/html/mod_breadcrumbs/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
16
templates/as002036free/html/mod_custom/default.php
Normal file
16
templates/as002036free/html/mod_custom/default.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_custom
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
|
||||
|
||||
<div class="mod-custom mod-custom__<?php echo $moduleclass_sfx ?>" <?php if ($params->get('backgroundimage')): ?> style="background-image:url(<?php echo $params->get('backgroundimage');?>)"<?php endif;?> >
|
||||
<?php echo $module->content;?>
|
||||
</div>
|
1
templates/as002036free/html/mod_custom/index.html
Normal file
1
templates/as002036free/html/mod_custom/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
154
templates/as002036free/html/mod_finder/default.php
Normal file
154
templates/as002036free/html/mod_finder/default.php
Normal file
@ -0,0 +1,154 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_finder
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
JHtml::_('behavior.framework');
|
||||
JHtml::_('bootstrap.tooltip');
|
||||
JHtml::addIncludePath(JPATH_SITE . '/components/com_finder/helpers/html');
|
||||
|
||||
// Load the smart search component language file.
|
||||
$lang = JFactory::getLanguage();
|
||||
$lang->load('com_finder', JPATH_SITE);
|
||||
|
||||
$suffix = $params->get('moduleclass_sfx');
|
||||
$output = '<input type="text" name="q" id="mod-finder-searchword" class="search-query input-medium" size="' . $params->get('field_size', 20) . '" value="' . htmlspecialchars(JFactory::getApplication()->input->get('q', '', 'string')) . '" />';
|
||||
$button = '';
|
||||
$label = '';
|
||||
|
||||
if ($params->get('show_label', 1))
|
||||
{
|
||||
$label = '<label for="mod-finder-searchword" class="finder">' . $params->get('alt_label', JText::_('JSEARCH_FILTER_SUBMIT')) . '</label>';
|
||||
|
||||
switch ($params->get('label_pos', 'left')):
|
||||
case 'top' :
|
||||
$label = $label . '<br />';
|
||||
$output = $label . $output;
|
||||
break;
|
||||
|
||||
case 'bottom' :
|
||||
$label = '<br />' . $label;
|
||||
$output = $output . $label;
|
||||
break;
|
||||
|
||||
case 'right' :
|
||||
$output = $output . $label;
|
||||
break;
|
||||
|
||||
case 'left' :
|
||||
default :
|
||||
$output = $label . $output;
|
||||
break;
|
||||
endswitch;
|
||||
}
|
||||
|
||||
if ($params->get('show_button', 1))
|
||||
{
|
||||
$button = '<button class="btn btn-primary hasTooltip finder" type="submit" title="' . JText::_('MOD_FINDER_SEARCH_BUTTON') . '"></button>';
|
||||
|
||||
switch ($params->get('button_pos', 'right')):
|
||||
case 'top' :
|
||||
$button = $button . '<br />';
|
||||
$output = $button . $output;
|
||||
break;
|
||||
|
||||
case 'bottom' :
|
||||
$button = '<br />' . $button;
|
||||
$output = $output . $button;
|
||||
break;
|
||||
|
||||
case 'right' :
|
||||
$output = $output . $button;
|
||||
break;
|
||||
|
||||
case 'left' :
|
||||
default :
|
||||
$output = $button . $output;
|
||||
break;
|
||||
endswitch;
|
||||
}
|
||||
|
||||
JHtml::stylesheet('com_finder/finder.css', false, true, false);
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
window.addEvent('domready', function() {
|
||||
var value;
|
||||
|
||||
// Set the input value if not already set.
|
||||
if (!document.id('mod-finder-searchword').getProperty('value')) {
|
||||
document.id('mod-finder-searchword').setProperty('value', '<?php echo JText::_('MOD_FINDER_SEARCH_VALUE', true); ?>');
|
||||
}
|
||||
|
||||
// Get the current value.
|
||||
value = document.id('mod-finder-searchword').getProperty('value');
|
||||
|
||||
// If the current value equals the default value, clear it.
|
||||
document.id('mod-finder-searchword').addEvent('focus', function() {
|
||||
if (this.getProperty('value') == '<?php echo JText::_('MOD_FINDER_SEARCH_VALUE', true); ?>') {
|
||||
this.setProperty('value', '');
|
||||
}
|
||||
});
|
||||
|
||||
// If the current value is empty, set the previous value.
|
||||
document.id('mod-finder-searchword').addEvent('blur', function() {
|
||||
if (!this.getProperty('value')) {
|
||||
this.setProperty('value', value);
|
||||
}
|
||||
});
|
||||
|
||||
document.id('mod-finder-searchform').addEvent('submit', function(e){
|
||||
e = new Event(e);
|
||||
e.stop();
|
||||
|
||||
// Disable select boxes with no value selected.
|
||||
if (document.id('mod-finder-advanced') != null) {
|
||||
document.id('mod-finder-advanced').getElements('select').each(function(s){
|
||||
if (!s.getProperty('value')) {
|
||||
s.setProperty('disabled', 'disabled');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
document.id('mod-finder-searchform').submit();
|
||||
});
|
||||
|
||||
/*
|
||||
* This segment of code sets up the autocompleter.
|
||||
*/
|
||||
<?php if ($params->get('show_autosuggest', 1)): ?>
|
||||
<?php JHtml::script('com_finder/autocompleter.js', false, true); ?>
|
||||
var url = '<?php echo JRoute::_('index.php?option=com_finder&task=suggestions.display&format=json&tmpl=component', false); ?>';
|
||||
var ModCompleter = new Autocompleter.Request.JSON(document.id('mod-finder-searchword'), url, {'postVar': 'q'});
|
||||
<?php endif; ?>
|
||||
});
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
<form id="mod-finder-searchform" action="<?php echo JRoute::_($route); ?>" method="get" class="form-search">
|
||||
<div class="finder">
|
||||
<?php
|
||||
// Show the form fields.
|
||||
echo $output;
|
||||
?>
|
||||
|
||||
<?php if ($params->get('show_advanced', 1)): ?>
|
||||
<?php if ($params->get('show_advanced', 1) == 2): ?>
|
||||
<br />
|
||||
<a href="<?php echo JRoute::_($route); ?>"><?php echo JText::_('COM_FINDER_ADVANCED_SEARCH'); ?></a>
|
||||
<?php elseif ($params->get('show_advanced', 1) == 1): ?>
|
||||
<div id="mod-finder-advanced">
|
||||
<?php echo JHtml::_('filter.select', $query, $params); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php echo modFinderHelper::getGetFields($route); ?>
|
||||
</div>
|
||||
</form>
|
1
templates/as002036free/html/mod_finder/index.html
Normal file
1
templates/as002036free/html/mod_finder/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
19
templates/as002036free/html/mod_footer/custom.php
Normal file
19
templates/as002036free/html/mod_footer/custom.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_footer
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$app = JFactory::getApplication();
|
||||
$sitename = $app->getCfg( 'sitename' );
|
||||
?>
|
||||
|
||||
<div class="mod-footer mod-footer__<?php echo $moduleclass_sfx ?>">
|
||||
<span class="siteName"><?php echo $sitename. ' </span>© '. date('Y'); ?> | <a href="index.php/privacy-policy"><?php echo JText::_('TPL_PRIVACY_POLICY'); ?></a> <!-- <a href="index.php/terms-of-use"><?php /*echo JText::_('TPL_TERMS_OF_USE');*/ ?></a> -->
|
||||
</div>
|
||||
|
1
templates/as002036free/html/mod_footer/index.html
Normal file
1
templates/as002036free/html/mod_footer/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
71
templates/as002036free/html/mod_login/default.php
Normal file
71
templates/as002036free/html/mod_login/default.php
Normal file
@ -0,0 +1,71 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_login
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
JHtml::_('behavior.keepalive');
|
||||
JHtml::_('bootstrap.tooltip');
|
||||
|
||||
$moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx'));
|
||||
?>
|
||||
|
||||
<div class="mod-login mod-login__<?php echo $moduleclass_sfx ?>">
|
||||
<form action="<?php echo JRoute::_('index.php', true, $params->get('usesecure')); ?>" method="post" id="login-form" class="">
|
||||
<?php if ($params->get('pretext')): ?>
|
||||
<div class="mod-login_pretext">
|
||||
<p><?php echo $params->get('pretext'); ?></p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="mod-login_userdata">
|
||||
|
||||
<label for="mod-login_username" class=""><?php echo JText::_('MOD_LOGIN_VALUE_USERNAME'); ?></label>
|
||||
<input class="inputbox mod-login_username" type="text" name="username" tabindex="1" size="18" placeholder="<?php echo JText::_('MOD_LOGIN_VALUE_USERNAME') ?>" />
|
||||
|
||||
<label for="mod-login_passwd" class=""><?php echo JText::_('JGLOBAL_PASSWORD'); ?></label>
|
||||
<input class="inputbox mod-login_passwd" type="password" name="password" tabindex="2" size="18" placeholder="<?php echo JText::_('JGLOBAL_PASSWORD') ?>" />
|
||||
|
||||
<?php if (JPluginHelper::isEnabled('system', 'remember')) : ?>
|
||||
<label for="mod-login_remember" class="checkbox"><?php echo JText::_('MOD_LOGIN_REMEMBER_ME') ?>
|
||||
<input class="mod-login_remember" type="checkbox" name="remember" value="yes"/>
|
||||
</label>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="mod-login_submit">
|
||||
<button type="submit" tabindex="3" name="Submit" class="btn btn-primary"><?php echo JText::_('JLOGIN') ?></button>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$usersConfig = JComponentHelper::getParams('com_users'); ?>
|
||||
|
||||
<ul class="unstyled">
|
||||
<li>
|
||||
<a href="<?php echo JRoute::_('index.php?option=com_users&view=remind'); ?>" class="" title="<?php echo JText::_('MOD_LOGIN_FORGOT_YOUR_USERNAME'); ?>"><?php echo JText::_('TPL_REMIND'); ?></a></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<?php echo JRoute::_('index.php?option=com_users&view=reset'); ?>" class="" title="<?php echo JText::_('MOD_LOGIN_FORGOT_YOUR_PASSWORD'); ?>"><?php echo JText::_('TPL_RESET'); ?></a></a>
|
||||
</li>
|
||||
<?php if ($usersConfig->get('allowUserRegistration')) : ?>
|
||||
<li>
|
||||
<a href="<?php echo JRoute::_('index.php?option=com_users&view=registration'); ?>"><?php echo JText::_('MOD_LOGIN_REGISTER'); ?></a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
|
||||
<input type="hidden" name="option" value="com_users" />
|
||||
<input type="hidden" name="task" value="user.login" />
|
||||
<input type="hidden" name="return" value="<?php echo $return; ?>" />
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</div>
|
||||
<?php if ($params->get('posttext')): ?>
|
||||
<div class="mod-login_posttext">
|
||||
<p><?php echo $params->get('posttext'); ?></p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</form>
|
||||
</div>
|
33
templates/as002036free/html/mod_login/default_logout.php
Normal file
33
templates/as002036free/html/mod_login/default_logout.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_login
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
JHtml::_('behavior.keepalive');
|
||||
?>
|
||||
<form action="<?php echo JRoute::_('index.php', true, $params->get('usesecure')); ?>" method="post" id="login-form" class="form-vertical">
|
||||
<?php if ($params->get('greeting')) : ?>
|
||||
<div class="login-greeting">
|
||||
<p>
|
||||
<?php if ($params->get('name') == 0) : {
|
||||
echo JText::sprintf('MOD_LOGIN_HINAME', htmlspecialchars($user->get('name')));
|
||||
} else : {
|
||||
echo JText::sprintf('MOD_LOGIN_HINAME', htmlspecialchars($user->get('username')));
|
||||
} endif; ?>
|
||||
</p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="control-group">
|
||||
<input type="submit" name="Submit" class="btn btn-primary" value="<?php echo JText::_('JLOGOUT'); ?>" />
|
||||
<input type="hidden" name="option" value="com_users" />
|
||||
<input type="hidden" name="task" value="user.logout" />
|
||||
<input type="hidden" name="return" value="<?php echo $return; ?>" />
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</div>
|
||||
</form>
|
1
templates/as002036free/html/mod_login/index.html
Normal file
1
templates/as002036free/html/mod_login/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
86
templates/as002036free/html/mod_menu/default.php
Normal file
86
templates/as002036free/html/mod_menu/default.php
Normal file
@ -0,0 +1,86 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_menu
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Note. It is important to remove spaces between elements.
|
||||
?>
|
||||
<?php // The menu class is deprecated. Use nav instead. ?>
|
||||
<div class="mod-menu">
|
||||
<ul class="nav menu <?php echo $class_sfx;?>"<?php
|
||||
$tag = '';
|
||||
if ($params->get('tag_id') != null)
|
||||
{
|
||||
$tag = $params->get('tag_id').'';
|
||||
echo ' id="'.$tag.'"';
|
||||
}
|
||||
?>>
|
||||
<?php
|
||||
foreach ($list as $i => &$item) :
|
||||
$class = 'item-'.$item->id;
|
||||
if ($item->id == $active_id) {
|
||||
$class .= ' current';
|
||||
}
|
||||
|
||||
if (in_array($item->id, $path)) {
|
||||
$class .= ' active';
|
||||
}
|
||||
elseif ($item->type == 'alias') {
|
||||
$aliasToId = $item->params->get('aliasoptions');
|
||||
if (count($path) > 0 && $aliasToId == $path[count($path) - 1]) {
|
||||
$class .= ' active';
|
||||
}
|
||||
elseif (in_array($aliasToId, $path)) {
|
||||
$class .= ' alias-parent-active';
|
||||
}
|
||||
}
|
||||
|
||||
if ($item->deeper) {
|
||||
$class .= ' deeper';
|
||||
}
|
||||
|
||||
if ($item->parent) {
|
||||
$class .= ' parent';
|
||||
}
|
||||
|
||||
if (!empty($class)) {
|
||||
$class = ' class="'.trim($class) .'"';
|
||||
}
|
||||
|
||||
echo '<li'.$class.'>';
|
||||
|
||||
// Render the menu item.
|
||||
switch ($item->type) :
|
||||
case 'separator':
|
||||
case 'url':
|
||||
case 'component':
|
||||
require JModuleHelper::getLayoutPath('mod_menu', 'default_'.$item->type);
|
||||
break;
|
||||
|
||||
default:
|
||||
require JModuleHelper::getLayoutPath('mod_menu', 'default_url');
|
||||
break;
|
||||
endswitch;
|
||||
|
||||
// The next item is deeper.
|
||||
if ($item->deeper) {
|
||||
echo '<ul class="nav-child unstyled small">';
|
||||
}
|
||||
// The next item is shallower.
|
||||
elseif ($item->shallower) {
|
||||
echo '</li>';
|
||||
echo str_repeat('</ul></li>', $item->level_diff);
|
||||
}
|
||||
// The next item is on the same level.
|
||||
else {
|
||||
echo '</li>';
|
||||
}
|
||||
endforeach;
|
||||
?></ul>
|
||||
</div>
|
37
templates/as002036free/html/mod_menu/default_component.php
Normal file
37
templates/as002036free/html/mod_menu/default_component.php
Normal file
@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_menu
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Note. It is important to remove spaces between elements.
|
||||
$class = $item->anchor_css ? 'class="'.$item->anchor_css.'" ' : '';
|
||||
$title = $item->anchor_title ? 'title="'.$item->anchor_title.'" ' : '';
|
||||
if ($item->menu_image) {
|
||||
$item->params->get('menu_text', 1) ?
|
||||
$linktype = '<img src="'.$item->menu_image.'" alt="'.$item->title.'" /><span class="image-title">'.$item->title.'</span> ' :
|
||||
$linktype = '<img src="'.$item->menu_image.'" alt="'.$item->title.'" />';
|
||||
}
|
||||
else { $linktype = $item->title;
|
||||
}
|
||||
|
||||
switch ($item->browserNav) :
|
||||
default:
|
||||
case 0:
|
||||
?><a <?php echo $class; ?>href="<?php echo $item->flink; ?>" <?php echo $title; ?>><?php echo $linktype; ?></a><?php
|
||||
break;
|
||||
case 1:
|
||||
// _blank
|
||||
?><a <?php echo $class; ?>href="<?php echo $item->flink; ?>" target="_blank" <?php echo $title; ?>><?php echo $linktype; ?></a><?php
|
||||
break;
|
||||
case 2:
|
||||
// window.open
|
||||
?><a <?php echo $class; ?>href="<?php echo $item->flink; ?>" onclick="window.open(this.href,'targetWindow','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes');return false;" <?php echo $title; ?>><?php echo $linktype; ?></a>
|
||||
<?php
|
||||
break;
|
||||
endswitch;
|
22
templates/as002036free/html/mod_menu/default_separator.php
Normal file
22
templates/as002036free/html/mod_menu/default_separator.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_menu
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Note. It is important to remove spaces between elements.
|
||||
$title = $item->anchor_title ? 'title="'.$item->anchor_title.'" ' : '';
|
||||
if ($item->menu_image) {
|
||||
$item->params->get('menu_text', 1) ?
|
||||
$linktype = '<img src="'.$item->menu_image.'" alt="'.$item->title.'" /><span class="image-title">'.$item->title.'</span> ' :
|
||||
$linktype = '<img src="'.$item->menu_image.'" alt="'.$item->title.'" />';
|
||||
}
|
||||
else { $linktype = $item->title;
|
||||
}
|
||||
|
||||
?><span class="separator"><?php echo $title; ?><?php echo $linktype; ?></span>
|
39
templates/as002036free/html/mod_menu/default_url.php
Normal file
39
templates/as002036free/html/mod_menu/default_url.php
Normal file
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_menu
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Note. It is important to remove spaces between elements.
|
||||
$class = $item->anchor_css ? 'class="'.$item->anchor_css.'" ' : '';
|
||||
$title = $item->anchor_title ? 'title="'.$item->anchor_title.'" ' : '';
|
||||
if ($item->menu_image) {
|
||||
$item->params->get('menu_text', 1) ?
|
||||
$linktype = '<img src="'.$item->menu_image.'" alt="'.$item->title.'" /><span class="image-title">'.$item->title.'</span> ' :
|
||||
$linktype = '<img src="'.$item->menu_image.'" alt="'.$item->title.'" />';
|
||||
}
|
||||
else { $linktype = $item->title;
|
||||
}
|
||||
$flink = $item->flink;
|
||||
$flink = JFilterOutput::ampReplace(htmlspecialchars($flink));
|
||||
|
||||
switch ($item->browserNav) :
|
||||
default:
|
||||
case 0:
|
||||
?><a <?php echo $class; ?>href="<?php echo $flink; ?>" <?php echo $title; ?>><?php echo $linktype; ?></a><?php
|
||||
break;
|
||||
case 1:
|
||||
// _blank
|
||||
?><a <?php echo $class; ?>href="<?php echo $flink; ?>" target="_blank" <?php echo $title; ?>><?php echo $linktype; ?></a><?php
|
||||
break;
|
||||
case 2:
|
||||
// window.open
|
||||
$options = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,'.$params->get('window_open');
|
||||
?><a <?php echo $class; ?>href="<?php echo $flink; ?>" onclick="window.open(this.href,'targetWindow','<?php echo $options;?>');return false;" <?php echo $title; ?>><?php echo $linktype; ?></a><?php
|
||||
break;
|
||||
endswitch;
|
1
templates/as002036free/html/mod_menu/index.html
Normal file
1
templates/as002036free/html/mod_menu/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
87
templates/as002036free/html/mod_menu/social.php
Normal file
87
templates/as002036free/html/mod_menu/social.php
Normal file
@ -0,0 +1,87 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_menu
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Note. It is important to remove spaces between elements.
|
||||
?>
|
||||
<?php // The menu class is deprecated. Use nav instead. ?>
|
||||
|
||||
<div class="mod-menu__social">
|
||||
<ul class="menu <?php echo $class_sfx;?>"<?php
|
||||
$tag = '';
|
||||
if ($params->get('tag_id') != null)
|
||||
{
|
||||
$tag = $params->get('tag_id').'';
|
||||
echo ' id="'.$tag.'"';
|
||||
}
|
||||
?>>
|
||||
<?php
|
||||
foreach ($list as $i => &$item) :
|
||||
$class = 'item-'.$item->id;
|
||||
if ($item->id == $active_id) {
|
||||
$class .= ' current';
|
||||
}
|
||||
|
||||
if (in_array($item->id, $path)) {
|
||||
$class .= ' active';
|
||||
}
|
||||
elseif ($item->type == 'alias') {
|
||||
$aliasToId = $item->params->get('aliasoptions');
|
||||
if (count($path) > 0 && $aliasToId == $path[count($path) - 1]) {
|
||||
$class .= ' active';
|
||||
}
|
||||
elseif (in_array($aliasToId, $path)) {
|
||||
$class .= ' alias-parent-active';
|
||||
}
|
||||
}
|
||||
|
||||
if ($item->deeper) {
|
||||
$class .= ' deeper';
|
||||
}
|
||||
|
||||
if ($item->parent) {
|
||||
$class .= ' parent';
|
||||
}
|
||||
|
||||
if (!empty($class)) {
|
||||
$class = ' class="'.trim($class) .'"';
|
||||
}
|
||||
|
||||
echo '<li'.$class.'>';
|
||||
|
||||
// Render the menu item.
|
||||
switch ($item->type) :
|
||||
case 'separator':
|
||||
case 'url':
|
||||
case 'component':
|
||||
require JModuleHelper::getLayoutPath('mod_menu', 'social_'.$item->type);
|
||||
break;
|
||||
|
||||
default:
|
||||
require JModuleHelper::getLayoutPath('mod_menu', 'social_url');
|
||||
break;
|
||||
endswitch;
|
||||
|
||||
// The next item is deeper.
|
||||
if ($item->deeper) {
|
||||
echo '<ul class="nav-child unstyled small">';
|
||||
}
|
||||
// The next item is shallower.
|
||||
elseif ($item->shallower) {
|
||||
echo '</li>';
|
||||
echo str_repeat('</ul></li>', $item->level_diff);
|
||||
}
|
||||
// The next item is on the same level.
|
||||
else {
|
||||
echo '</li>';
|
||||
}
|
||||
endforeach;
|
||||
?></ul>
|
||||
</div>
|
37
templates/as002036free/html/mod_menu/social_component.php
Normal file
37
templates/as002036free/html/mod_menu/social_component.php
Normal file
@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_menu
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Note. It is important to remove spaces between elements.
|
||||
$class = $item->anchor_css ? 'class="'.$item->anchor_css.'" ' : '';
|
||||
$title = $item->anchor_title ? 'title="'.$item->anchor_title.'" ' : '';
|
||||
if ($item->menu_image) {
|
||||
$item->params->get('menu_text', 1) ?
|
||||
$linktype = '<img src="'.$item->menu_image.'" alt="'.$item->title.'" /><span class="image-title">'.$item->title.'</span> ' :
|
||||
$linktype = '<img src="'.$item->menu_image.'" alt="'.$item->title.'" />';
|
||||
}
|
||||
else { $linktype = /*$item->title*/ "";
|
||||
}
|
||||
|
||||
switch ($item->browserNav) :
|
||||
default:
|
||||
case 0:
|
||||
?><a <?php echo $class; ?>href="<?php echo $item->flink; ?>" <?php echo $title; ?>><?php echo $linktype; ?></a><?php
|
||||
break;
|
||||
case 1:
|
||||
// _blank
|
||||
?><a <?php echo $class; ?>href="<?php echo $item->flink; ?>" target="_blank" <?php echo $title; ?>><?php echo $linktype; ?></a><?php
|
||||
break;
|
||||
case 2:
|
||||
// window.open
|
||||
?><a <?php echo $class; ?>href="<?php echo $item->flink; ?>" onclick="window.open(this.href,'targetWindow','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes');return false;" <?php echo $title; ?>><?php echo $linktype; ?></a>
|
||||
<?php
|
||||
break;
|
||||
endswitch;
|
22
templates/as002036free/html/mod_menu/social_separator.php
Normal file
22
templates/as002036free/html/mod_menu/social_separator.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_menu
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Note. It is important to remove spaces between elements.
|
||||
$title = $item->anchor_title ? 'title="'.$item->anchor_title.'" ' : '';
|
||||
if ($item->menu_image) {
|
||||
$item->params->get('menu_text', 1) ?
|
||||
$linktype = '<img src="'.$item->menu_image.'" alt="'.$item->title.'" /><span class="image-title">'.$item->title.'</span> ' :
|
||||
$linktype = '<img src="'.$item->menu_image.'" alt="'.$item->title.'" />';
|
||||
}
|
||||
else { $linktype = $item->title;
|
||||
}
|
||||
|
||||
?><span class="separator"><?php echo $title; ?><?php echo $linktype; ?></span>
|
39
templates/as002036free/html/mod_menu/social_url.php
Normal file
39
templates/as002036free/html/mod_menu/social_url.php
Normal file
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_menu
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Note. It is important to remove spaces between elements.
|
||||
$class = $item->anchor_css ? 'class="'.$item->anchor_css.'" ' : '';
|
||||
$title = $item->anchor_title ? 'title="'.$item->anchor_title.'" ' : '';
|
||||
if ($item->menu_image) {
|
||||
$item->params->get('menu_text', 1) ?
|
||||
$linktype = '<img src="'.$item->menu_image.'" alt="'.$item->title.'" /><span class="image-title">'.$item->title.'</span> ' :
|
||||
$linktype = '<img src="'.$item->menu_image.'" alt="'.$item->title.'" />';
|
||||
}
|
||||
else { $linktype = /*$item->title*/ "";
|
||||
}
|
||||
$flink = $item->flink;
|
||||
$flink = JFilterOutput::ampReplace(htmlspecialchars($flink));
|
||||
|
||||
switch ($item->browserNav) :
|
||||
default:
|
||||
case 0:
|
||||
?><a <?php echo $class; ?>href="<?php echo $flink; ?>" <?php echo $title; ?>><?php echo $linktype; ?></a><?php
|
||||
break;
|
||||
case 1:
|
||||
// _blank
|
||||
?><a <?php echo $class; ?>href="<?php echo $flink; ?>" target="_blank" <?php echo $title; ?>><?php echo $linktype; ?></a><?php
|
||||
break;
|
||||
case 2:
|
||||
// window.open
|
||||
$options = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,'.$params->get('window_open');
|
||||
?><a <?php echo $class; ?>href="<?php echo $flink; ?>" onclick="window.open(this.href,'targetWindow','<?php echo $options;?>');return false;" <?php echo $title; ?>><?php echo $linktype; ?></a><?php
|
||||
break;
|
||||
endswitch;
|
52
templates/as002036free/html/mod_search/default.php
Normal file
52
templates/as002036free/html/mod_search/default.php
Normal file
@ -0,0 +1,52 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_search
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
<div class="mod-search mod-search__<?php echo $moduleclass_sfx ?>">
|
||||
<form action="<?php echo JRoute::_('index.php');?>" method="post" class="navbar-form">
|
||||
<?php
|
||||
$output = '<label for="searchword" class="element-invisible">' . $label . '</label> <input name="searchword" maxlength="' . $maxlength . '" class="inputbox mod-search_searchword" type="text" size="' . $width . '" value="" onblur="if (this.value==\'\') this.value=\'' . $text . '\';" onfocus="if (this.value==\'' . $text . '\') this.value=\'\';" />';
|
||||
|
||||
if ($button) :
|
||||
if ($imagebutton) :
|
||||
$button = ' <input type="image" value="' . $button_text . '" class="button' . $moduleclass_sfx.'" src="' . $img . '" onclick="this.form.searchword.focus();"/>';
|
||||
else :
|
||||
$button = ' <button class="btn btn-primary btn-search" onclick="this.form.searchword.focus();">' . $button_text . '</button>';
|
||||
endif;
|
||||
endif;
|
||||
|
||||
switch ($button_pos) :
|
||||
case 'top' :
|
||||
$button = $button . '<br />';
|
||||
$output = $button . $output;
|
||||
break;
|
||||
|
||||
case 'bottom' :
|
||||
$button = '<br />' . $button;
|
||||
$output = $output . $button;
|
||||
break;
|
||||
|
||||
case 'right' :
|
||||
$output = $output . $button;
|
||||
break;
|
||||
|
||||
case 'left' :
|
||||
default :
|
||||
$output = $button . $output;
|
||||
break;
|
||||
endswitch;
|
||||
|
||||
echo $output;
|
||||
?>
|
||||
<input type="hidden" name="task" value="search" />
|
||||
<input type="hidden" name="option" value="com_search" />
|
||||
<input type="hidden" name="Itemid" value="<?php echo $mitemid; ?>" />
|
||||
</form>
|
||||
</div>
|
52
templates/as002036free/html/mod_search/error.php
Normal file
52
templates/as002036free/html/mod_search/error.php
Normal file
@ -0,0 +1,52 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_search
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
<div class="mod-search mod-search__<?php echo $moduleclass_sfx ?>">
|
||||
<form action="<?php echo JRoute::_('index.php');?>" method="post" class="form-inline">
|
||||
<?php
|
||||
$output = '<label for="mod-search-searchword" class="element-invisible">' . $label . '</label> <input name="searchword" id="mod-search-searchword" maxlength="' . $maxlength . '" class="inputbox" type="text" size="' . $width . '" value="' . $text . '" onblur="if (this.value==\'\') this.value=\'' . $text . '\';" onfocus="if (this.value==\'' . $text . '\') this.value=\'\';" />';
|
||||
|
||||
if ($button) :
|
||||
if ($imagebutton) :
|
||||
$button = ' <input type="image" value="' . $button_text . '" class="button' . $moduleclass_sfx.'" src="' . $img . '" onclick="this.form.searchword.focus();"/>';
|
||||
else :
|
||||
$button = ' <button class="button btn btn-primary" onclick="this.form.searchword.focus();">' . $button_text . '</button>';
|
||||
endif;
|
||||
endif;
|
||||
|
||||
switch ($button_pos) :
|
||||
case 'top' :
|
||||
$button = $button . '<br />';
|
||||
$output = $button . $output;
|
||||
break;
|
||||
|
||||
case 'bottom' :
|
||||
$button = '<br />' . $button;
|
||||
$output = $output . $button;
|
||||
break;
|
||||
|
||||
case 'right' :
|
||||
$output = $output . $button;
|
||||
break;
|
||||
|
||||
case 'left' :
|
||||
default :
|
||||
$output = $button . $output;
|
||||
break;
|
||||
endswitch;
|
||||
|
||||
echo $output;
|
||||
?>
|
||||
<input type="hidden" name="task" value="search" />
|
||||
<input type="hidden" name="option" value="com_search" />
|
||||
<input type="hidden" name="Itemid" value="<?php echo $mitemid; ?>" />
|
||||
</form>
|
||||
</div>
|
1
templates/as002036free/html/mod_search/index.html
Normal file
1
templates/as002036free/html/mod_search/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
132
templates/as002036free/html/modules.php
Normal file
132
templates/as002036free/html/modules.php
Normal file
@ -0,0 +1,132 @@
|
||||
<?php
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* This is a file to add template specific chrome to module rendering. To use it you would
|
||||
* set the style attribute for the given module(s) include in your template to use the style
|
||||
* for each given modChrome function.
|
||||
*
|
||||
* eg. To render a module mod_test in the submenu style, you would use the following include:
|
||||
* <jdoc:include type="module" name="test" style="submenu" />
|
||||
*
|
||||
* This gives template designers ultimate control over how modules are rendered.
|
||||
*
|
||||
* NOTICE: All chrome wrapping methods should be named: modChrome_{STYLE} and take the same
|
||||
* two arguments.
|
||||
*/
|
||||
|
||||
/*
|
||||
* themeHtml5 (chosen themeHtml5 tag and font headder tags)
|
||||
*/
|
||||
|
||||
function modChrome_themeHtml5($module, &$params, &$attribs)
|
||||
{
|
||||
$moduleTag = $params->get('module_tag');
|
||||
$headerTag = htmlspecialchars($params->get('header_tag'));
|
||||
$headerClass = $params->get('header_class');
|
||||
$bootstrapSize = $params->get('bootstrap_size');
|
||||
$moduleClass = !empty($bootstrapSize) ? ' span' . (int) $bootstrapSize . '' : '';
|
||||
$moduleclassSfx = htmlspecialchars($params->get('moduleclass_sfx'));
|
||||
|
||||
if (!empty ($module->content))
|
||||
{
|
||||
$html = "<{$moduleTag} class=\"moduletable {$moduleclassSfx} {$moduleClass}\">";
|
||||
$html .= "<div class=\"moduletable-wrapper\">";
|
||||
|
||||
if ((bool) $module->showtitle)
|
||||
{
|
||||
$html .= "<{$headerTag} class=\"module_title {$headerClass}\">{$module->title}</{$headerTag}>";
|
||||
}
|
||||
|
||||
$html .= $module->content;
|
||||
$html .= "</div>";
|
||||
$html .= "</{$moduleTag}>";
|
||||
|
||||
echo $html;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function modChrome_html5nosize($module, &$params, &$attribs)
|
||||
{
|
||||
$moduleTag = $params->get('module_tag');
|
||||
$headerTag = htmlspecialchars($params->get('header_tag'));
|
||||
$headerClass = $params->get('header_class');
|
||||
$bootstrapSize = $params->get('bootstrap_size');
|
||||
//$moduleClass = !empty($bootstrapSize) ? ' span' . (int) $bootstrapSize . '' : '';
|
||||
$moduleclassSfx = htmlspecialchars($params->get('moduleclass_sfx'));
|
||||
|
||||
if (!empty ($module->content))
|
||||
{
|
||||
$html = "<{$moduleTag} class=\"moduletable {$moduleclassSfx}\">";
|
||||
|
||||
if ((bool) $module->showtitle){
|
||||
$html .= "<{$headerTag} class=\"module_title {$headerClass}\">{$module->title}</{$headerTag}>";
|
||||
}
|
||||
|
||||
$html .= $module->content;
|
||||
$html .= "</{$moduleTag}>";
|
||||
|
||||
echo $html;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
function modChrome_modal($module, &$params, &$attribs)
|
||||
{
|
||||
$moduleTag = $params->get('module_tag');
|
||||
$headerTag = htmlspecialchars($params->get('header_tag'));
|
||||
$headerClass = $params->get('header_class');
|
||||
$bootstrapSize = $params->get('bootstrap_size');
|
||||
// $moduleClass = !empty($bootstrapSize) ? ' span' . (int) $bootstrapSize . '' : '';
|
||||
$moduleclassSfx = htmlspecialchars($params->get('moduleclass_sfx'));
|
||||
|
||||
if (!empty ($module->content))
|
||||
{
|
||||
$html = "<div class=\"modal fade moduletable {$moduleclassSfx} loginPopup\" id=\"modal\">";
|
||||
$html .= "<button type=\"button\" class=\"close modalClose\">×</button>";
|
||||
|
||||
if ((bool) $module->showtitle){
|
||||
$html .= "<div class=\"modal-header\">";
|
||||
$html .= "<{$headerTag} class=\"{$headerClass}\">{$module->title}</{$headerTag}>";
|
||||
$html .= "</div>";
|
||||
}
|
||||
|
||||
$html .= "<div class=\"modal-body\">";
|
||||
$html .= $module->content;
|
||||
$html .= "</div>";
|
||||
|
||||
$html .= "</{$moduleTag}>";
|
||||
|
||||
echo $html;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function modChrome_wshadow($module, &$params, &$attribs)
|
||||
{
|
||||
$moduleTag = $params->get('module_tag');
|
||||
$headerTag = htmlspecialchars($params->get('header_tag'));
|
||||
$headerClass = $params->get('header_class');
|
||||
$bootstrapSize = $params->get('bootstrap_size');
|
||||
$moduleClass = !empty($bootstrapSize) ? ' span' . (int) $bootstrapSize . '' : '';
|
||||
$moduleclassSfx = htmlspecialchars($params->get('moduleclass_sfx'));
|
||||
|
||||
if (!empty ($module->content))
|
||||
{
|
||||
$html = "<{$moduleTag} class=\"moduletable wshadow {$moduleclassSfx} {$moduleClass}\">";
|
||||
|
||||
if ((bool) $module->showtitle)
|
||||
{
|
||||
$html .= "<{$headerTag} class=\"module_title {$headerClass}\">{$module->title}</{$headerTag}>";
|
||||
}
|
||||
|
||||
$html .= $module->content;
|
||||
$html .= "</{$moduleTag}>";
|
||||
|
||||
$html .= "<div class=\"shadow span{$bootstrapSize}\"><span></span></div>";
|
||||
|
||||
echo $html;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user