feat(deployed): add trada template 1.0 (no-source, vetted live)
trada template (saihoai); the dropped webshell html/mod_articles_category/meant.php is excluded; unmapped -> deployed files. Signed-off-by: LÁZÁR Imre <imre@illusion.hu> Assisted-by: claude-code@claude-opus-4-8
This commit is contained in:
parent
3a45537dfe
commit
e905b51c4e
40
deployed/trada/templates/trada/component.php
Normal file
40
deployed/trada/templates/trada/component.php
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Templates.protostar
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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();
|
||||
$doc = JFactory::getDocument();
|
||||
$this->language = $doc->language;
|
||||
$this->direction = $doc->direction;
|
||||
|
||||
// Add JavaScript Frameworks
|
||||
JHtml::_('bootstrap.framework');
|
||||
|
||||
// Add Stylesheets
|
||||
$doc->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/template.css');
|
||||
|
||||
// Load optional rtl Bootstrap css and Bootstrap bugfixes
|
||||
JHtmlBootstrap::loadCss($includeMaincss = false, $this->direction);
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
|
||||
<jdoc:include type="head" />
|
||||
<!--[if lt IE 9]>
|
||||
<script src="<?php echo JUri::root(true); ?>/media/jui/js/html5.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body class="contentpane modal">
|
||||
<jdoc:include type="message" />
|
||||
<jdoc:include type="component" />
|
||||
</body>
|
||||
</html>
|
||||
139
deployed/trada/templates/trada/error.php
Normal file
139
deployed/trada/templates/trada/error.php
Normal file
@ -0,0 +1,139 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Templates.protostar
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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();
|
||||
$doc = JFactory::getDocument();
|
||||
$user = JFactory::getUser();
|
||||
$this->language = $doc->language;
|
||||
$this->direction = $doc->direction;
|
||||
$doc->setTitle( $this->title );
|
||||
|
||||
// Getting params from template
|
||||
$params = $app->getTemplate(true)->params;
|
||||
|
||||
// Detecting Active Variables
|
||||
$option = $app->input->getCmd('option', '');
|
||||
$view = $app->input->getCmd('view', '');
|
||||
$layout = $app->input->getCmd('layout', '');
|
||||
$task = $app->input->getCmd('task', '');
|
||||
$itemid = $app->input->getCmd('Itemid', '');
|
||||
$sitename = $app->get('sitename');
|
||||
$this->params = $app->getTemplate(true)->params;
|
||||
$skin = $this->params->get( 'templateSkin', 'light' );
|
||||
$baseUrlSkin = $this->baseurl . '/templates/' . $this->template . '/skins/' . $skin . '/';
|
||||
|
||||
// Add JavaScript Frameworks
|
||||
JHtml::_('bootstrap.framework');
|
||||
|
||||
/* JQUERY:: MAP.JS */
|
||||
$doc->addScript('//maps.googleapis.com/maps/api/js?sensor=false');
|
||||
|
||||
/* JQUERY:: PLUGIN.JS */
|
||||
$doc->addScript($baseUrlSkin . '/js/jquery.plugin.min.js');
|
||||
|
||||
/* JQUERY:: INDEX.JS **** FOR INDEX JQUERY CODE **** */
|
||||
$doc->addScript($baseUrlSkin . '/js/index.min.js');
|
||||
|
||||
/* JQUERY:: LIGHTBOX.JS */
|
||||
$doc->addScript($baseUrlSkin . '/js/lightbox-plus-jquery.min.js');
|
||||
|
||||
|
||||
// Add Stylesheets
|
||||
$doc->addStyleSheet($baseUrlSkin . 'css/bootstrap.min.css');
|
||||
|
||||
/* CSS:: ANIMATION */
|
||||
$doc->addStyleSheet($baseUrlSkin . 'css/animator.css');
|
||||
|
||||
/* CSS:: ANIMATION */
|
||||
$doc->addStyleSheet($baseUrlSkin . 'css/jquery.slider.css');
|
||||
|
||||
/* CSS:: FONTS */
|
||||
$doc->addStyleSheet($baseUrlSkin . 'css/font-awesome.min.css');
|
||||
$doc->addStyleSheet($baseUrlSkin . 'css/simple-line-icons.css');
|
||||
$doc->addStyleSheet('//fonts.googleapis.com/css?family=Montserrat:400,700');
|
||||
$doc->addStyleSheet('//fonts.googleapis.com/css?family=Droid+Serif:400,400italic,700');
|
||||
|
||||
/* CSS:: */
|
||||
$doc->addStyleSheet($baseUrlSkin . 'css/lightbox.css');
|
||||
$doc->addStyleSheet($baseUrlSkin . 'css/reset.css');
|
||||
$doc->addStyleSheet($baseUrlSkin . 'css/main.css');
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<title><?php echo $this->title; ?> <?php echo htmlspecialchars($this->error->getMessage(), ENT_QUOTES, 'UTF-8'); ?></title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<!-- FAVORITE AND APPLE TOUCH ICONS -->
|
||||
<link rel="apple-touch-icon" sizes="57x57" href="<?php echo $this->baseurl . '/templates/' . $this->template; ?>/images/fav/apple-touch-icon-57x57.png">
|
||||
<link rel="apple-touch-icon" sizes="60x60" href="<?php echo $this->baseurl . '/templates/' . $this->template; ?>/images/fav/apple-touch-icon-60x60.png">
|
||||
<link rel="icon" type="image/png" href="<?php echo $this->baseurl . '/templates/' . $this->template; ?>/images/fav/favicon-32x32.png" sizes="32x32">
|
||||
<link rel="icon" type="image/png" href="<?php echo $this->baseurl . '/templates/' . $this->template; ?>/images/fav/favicon-16x16.png" sizes="16x16">
|
||||
<?php echo $doc->getBuffer('head'); ?>
|
||||
</head>
|
||||
|
||||
<body class="<?php echo $skin; ?> t-overlay t-inner_page <?php echo $option
|
||||
. ' view-' . $view
|
||||
. ($layout ? ' layout-' . $layout : ' no-layout')
|
||||
. ($task ? ' task-' . $task : ' no-task')
|
||||
. ($itemid ? ' itemid-' . $itemid : '')
|
||||
. ($params->get('fluidContainer') ? ' fluid' : '')
|
||||
. ' ' . $params->get('pageclass_sfx', '' );
|
||||
?>">
|
||||
|
||||
<div class="t-overlay_box">
|
||||
<img src="<?php echo $this->baseurl . '/templates/' . $this->template; ?>/images/loading.gif" class="t-loading_img" alt="">
|
||||
</div>
|
||||
|
||||
<!-- ******** HEADER START ******** -->
|
||||
<header id="t-header" class="t-header wow fadeInDown clearfix" data-wow-duration="2s" >
|
||||
<div class="col-lg-12 t-header_inner">
|
||||
<div class="row">
|
||||
<div class="col-lg-2 col-md-2 col-sm-2 col-xs-12 t-header_logo">
|
||||
<a href="<?php echo JUri::root(); ?>" class="t_logo">
|
||||
<?php echo $this->params->get( 'logoFile', $this->params->get( 'logoText', 'Trada' ) ); ?>
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-lg-8 col-md-8 col-sm-8 col-xs-12 t-header_nav">
|
||||
<?php if ($doc->countModules('position-0')) : ?>
|
||||
<?php echo $doc->getBuffer('modules', 'position-0', array('style' => 'none')); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="col-lg-2 col-md-2 col-sm-2 col-xs-12 t-header_social">
|
||||
<?php if ($doc->countModules('position-1')) : ?>
|
||||
<?php echo $doc->getBuffer('modules', 'position-1', array('style' => 'none')); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="t-header_mobile_nav" id="t-header_mobile_nav">
|
||||
<i class="fa fa-navicon"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<!-- ******** HEADER END ******** -->
|
||||
|
||||
<?php if ($doc->countModules('position-4')) : ?>
|
||||
<?php echo $doc->getBuffer('modules', 'position-4', array('style' => 'none')); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<section id="t-blog_container" class="t-not_found">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<i class="fa fa-meh-o"></i>
|
||||
<p><?php echo JText::_('JERROR_LAYOUT_PAGE_NOT_FOUND'); ?></p>
|
||||
<a href="<?php echo JUri::root(); ?>"><?php echo JText::_('JERROR_LAYOUT_GO_TO_THE_HOME_PAGE'); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
BIN
deployed/trada/templates/trada/favicon.ico
Normal file
BIN
deployed/trada/templates/trada/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.0 KiB |
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_contact
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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');
|
||||
|
||||
JFactory::getDocument()->addScriptDeclaration("
|
||||
jQuery(function($) {
|
||||
$('.categories-list').find('[id^=category-btn-]').each(function(index, btn) {
|
||||
var btn = $(btn);
|
||||
btn.on('click', function() {
|
||||
btn.find('span').toggleClass('icon-plus');
|
||||
btn.find('span').toggleClass('icon-minus');
|
||||
});
|
||||
});
|
||||
});");
|
||||
?>
|
||||
<div class="categories-list<?php echo $this->pageclass_sfx;?>">
|
||||
<?php
|
||||
echo JLayoutHelper::render('joomla.content.categories_default', $this);
|
||||
echo $this->loadTemplate('items');
|
||||
?>
|
||||
</div>
|
||||
@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_contact
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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');
|
||||
|
||||
$class = ' class="first"';
|
||||
if (count($this->items[$this->parent->id]) > 0 && $this->maxLevelcat != 0) :
|
||||
?>
|
||||
<?php foreach($this->items[$this->parent->id] as $id => $item) : ?>
|
||||
<?php
|
||||
if ($this->params->get('show_empty_categories_cat') || $item->numitems || count($item->getChildren())) :
|
||||
if (!isset($this->items[$this->parent->id][$id + 1]))
|
||||
{
|
||||
$class = ' class="last"';
|
||||
}
|
||||
?>
|
||||
<div <?php echo $class; ?> >
|
||||
<?php $class = ''; ?>
|
||||
<h3 class="page-header item-title">
|
||||
<a href="<?php echo JRoute::_(ContactHelperRoute::getCategoryRoute($item->id)); ?>">
|
||||
<?php echo $this->escape($item->title); ?></a>
|
||||
<?php if ($this->params->get('show_cat_items_cat') == 1) :?>
|
||||
<span class="badge badge-info tip hasTooltip" title="<?php echo JHtml::tooltipText('COM_CONTACT_NUM_ITEMS'); ?>">
|
||||
<?php echo $item->numitems; ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
<?php if (count($item->getChildren()) > 0 && $this->maxLevelcat > 1) : ?>
|
||||
<a id="category-btn-<?php echo $item->id;?>" href="#category-<?php echo $item->id;?>"
|
||||
data-toggle="collapse" data-toggle="button" class="btn btn-mini pull-right"><span class="icon-plus"></span></a>
|
||||
<?php endif;?>
|
||||
</h3>
|
||||
<?php if ($this->params->get('show_subcat_desc_cat') == 1) :?>
|
||||
<?php if ($item->description) : ?>
|
||||
<div class="category-desc">
|
||||
<?php echo JHtml::_('content.prepare', $item->description, '', 'com_contact.categories'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (count($item->getChildren()) > 0 && $this->maxLevelcat > 1) :?>
|
||||
<div class="collapse fade" id="category-<?php echo $item->id;?>">
|
||||
<?php
|
||||
$this->items[$item->id] = $item->getChildren();
|
||||
$this->parent = $item;
|
||||
$this->maxLevelcat--;
|
||||
echo $this->loadTemplate('items');
|
||||
$this->parent = $item->getParent();
|
||||
$this->maxLevelcat++;
|
||||
?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?><?php endif; ?>
|
||||
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_contact
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$this->subtemplatename = 'items';
|
||||
echo JLayoutHelper::render('joomla.content.category_default', $this);
|
||||
@ -0,0 +1,55 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_contact
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
$class = ' class="first"';
|
||||
if (count($this->children[$this->category->id]) > 0 && $this->maxLevel != 0) :
|
||||
?>
|
||||
<ul class="list-striped list-condensed">
|
||||
<?php foreach ($this->children[$this->category->id] as $id => $child) : ?>
|
||||
<?php
|
||||
if ($this->params->get('show_empty_categories') || $child->numitems || count($child->getChildren())) :
|
||||
if (!isset($this->children[$this->category->id][$id + 1]))
|
||||
{
|
||||
$class = ' class="last"';
|
||||
}
|
||||
?>
|
||||
<li<?php echo $class; ?>>
|
||||
<?php $class = ''; ?>
|
||||
<h4 class="item-title">
|
||||
<a href="<?php echo JRoute::_(ContactHelperRoute::getCategoryRoute($child->id)); ?>">
|
||||
<?php echo $this->escape($child->title); ?>
|
||||
</a>
|
||||
|
||||
<?php if ($this->params->get('show_cat_items') == 1) :?>
|
||||
<span class="badge badge-info pull-right" title="<?php echo JText::_('COM_CONTACT_CAT_NUM'); ?>"><?php echo $child->numitems; ?></span>
|
||||
<?php endif; ?>
|
||||
</h4>
|
||||
|
||||
<?php if ($this->params->get('show_subcat_desc') == 1) : ?>
|
||||
<?php if ($child->description) : ?>
|
||||
<div class="category-desc">
|
||||
<?php echo JHtml::_('content.prepare', $child->description, '', 'com_contact.category'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (count($child->getChildren()) > 0 ) :
|
||||
$this->children[$child->id] = $child->getChildren();
|
||||
$this->category = $child;
|
||||
$this->maxLevel--;
|
||||
echo $this->loadTemplate('children');
|
||||
$this->category = $child->getParent();
|
||||
$this->maxLevel++;
|
||||
endif; ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
@ -0,0 +1,112 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_contact
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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.core');
|
||||
|
||||
$listOrder = $this->escape($this->state->get('list.ordering'));
|
||||
$listDirn = $this->escape($this->state->get('list.direction'));
|
||||
?>
|
||||
<?php if (empty($this->items)) : ?>
|
||||
<p> <?php echo JText::_('COM_CONTACT_NO_CONTACTS'); ?> </p>
|
||||
<?php else : ?>
|
||||
|
||||
<form action="<?php echo htmlspecialchars(JUri::getInstance()->toString()); ?>" method="post" name="adminForm" id="adminForm">
|
||||
<?php if ($this->params->get('filter_field') != 'hide' || $this->params->get('show_pagination_limit')) :?>
|
||||
<fieldset class="filters btn-toolbar">
|
||||
<?php if ($this->params->get('filter_field') != 'hide') :?>
|
||||
<div class="btn-group">
|
||||
<label class="filter-search-lbl element-invisible" for="filter-search"><span class="label label-warning"><?php echo JText::_('JUNPUBLISHED'); ?></span><?php echo JText::_('COM_CONTACT_FILTER_LABEL') . ' '; ?></label>
|
||||
<input type="text" name="filter-search" id="filter-search" value="<?php echo $this->escape($this->state->get('list.filter')); ?>" class="inputbox" onchange="document.adminForm.submit();" title="<?php echo JText::_('COM_CONTACT_FILTER_SEARCH_DESC'); ?>" placeholder="<?php echo JText::_('COM_CONTACT_FILTER_SEARCH_DESC'); ?>" />
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_pagination_limit')) : ?>
|
||||
<div class="btn-group pull-right">
|
||||
<label for="limit" class="element-invisible">
|
||||
<?php echo JText::_('JGLOBAL_DISPLAY_NUM'); ?>
|
||||
</label>
|
||||
<?php echo $this->pagination->getLimitBox(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
|
||||
<ul class="category list-striped">
|
||||
<?php foreach ($this->items as $i => $item) : ?>
|
||||
|
||||
<?php if (in_array($item->access, $this->user->getAuthorisedViewLevels())) : ?>
|
||||
<?php if ($this->items[$i]->published == 0) : ?>
|
||||
<li class="system-unpublished cat-list-row<?php echo $i % 2; ?>">
|
||||
<?php else: ?>
|
||||
<li class="cat-list-row<?php echo $i % 2; ?>" >
|
||||
<?php endif; ?>
|
||||
|
||||
<span class="pull-right">
|
||||
<?php if ($this->params->get('show_telephone_headings') AND !empty($item->telephone)) : ?>
|
||||
<?php echo JText::sprintf('COM_CONTACT_TELEPHONE_NUMBER', $item->telephone); ?><br />
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_mobile_headings') AND !empty ($item->mobile)) : ?>
|
||||
<?php echo JText::sprintf('COM_CONTACT_MOBILE_NUMBER', $item->mobile); ?><br />
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_fax_headings') AND !empty($item->fax) ) : ?>
|
||||
<?php echo JText::sprintf('COM_CONTACT_FAX_NUMBER', $item->fax); ?><br />
|
||||
<?php endif; ?>
|
||||
</span>
|
||||
|
||||
<p>
|
||||
<div class="list-title">
|
||||
<a href="<?php echo JRoute::_(ContactHelperRoute::getContactRoute($item->slug, $item->catid)); ?>">
|
||||
<?php echo $item->name; ?></a>
|
||||
<?php if ($this->items[$i]->published == 0) : ?>
|
||||
<span class="label label-warning"><?php echo JText::_('JUNPUBLISHED'); ?></span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php if ($this->params->get('show_position_headings')) : ?>
|
||||
<?php echo $item->con_position; ?><br />
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('show_email_headings')) : ?>
|
||||
<?php echo $item->email_to; ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('show_suburb_headings') AND !empty($item->suburb)) : ?>
|
||||
<?php echo $item->suburb . ', '; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_state_headings') AND !empty($item->state)) : ?>
|
||||
<?php echo $item->state . ', '; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_country_headings') AND !empty($item->country)) : ?>
|
||||
<?php echo $item->country; ?><br />
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
||||
<?php if ($this->params->get('show_pagination', 2)) : ?>
|
||||
<div class="pagination">
|
||||
<?php if ($this->params->def('show_pagination_results', 1)) : ?>
|
||||
<p class="counter">
|
||||
<?php echo $this->pagination->getPagesCounter(); ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
<?php echo $this->pagination->getPagesLinks(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div>
|
||||
<input type="hidden" name="filter_order" value="<?php echo $listOrder; ?>" />
|
||||
<input type="hidden" name="filter_order_Dir" value="<?php echo $listDirn; ?>" />
|
||||
</div>
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_contact
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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 id="t-get_in_touch" class="t-secondary_bg t-get_in_touch t-section contact">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<?php if ($this->contact->name && $this->params->get('show_name')) : ?>
|
||||
<header class="t-section_header wow fadeInUp" style="visibility: visible; animation-name: fadeInUp;">
|
||||
<h3><?php echo $this->contact->name; ?></h3>
|
||||
<div class="t-section_header_arrow">
|
||||
<span class="t-section_header_border">
|
||||
<i class="t-section_header_arrow_dot"></i>
|
||||
</span>
|
||||
</div>
|
||||
</header>
|
||||
<div class="t-section_pera">
|
||||
<?php echo $this->contact->misc; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="t-get_in_tuch_form"><?php echo $this->loadTemplate('form'); ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -0,0 +1,127 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_contact
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* Marker_class: Class based on the selection of text, none, or icons
|
||||
* jicon-text, jicon-none, jicon-icon
|
||||
*/
|
||||
?>
|
||||
<dl class="contact-address dl-horizontal" itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
|
||||
<?php if (($this->params->get('address_check') > 0) &&
|
||||
($this->contact->address || $this->contact->suburb || $this->contact->state || $this->contact->country || $this->contact->postcode)) : ?>
|
||||
<?php if ($this->params->get('address_check') > 0) : ?>
|
||||
<dt>
|
||||
<span class="<?php echo $this->params->get('marker_class'); ?>" >
|
||||
<?php echo $this->params->get('marker_address'); ?>
|
||||
</span>
|
||||
</dt>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->contact->address && $this->params->get('show_street_address')) : ?>
|
||||
<dd>
|
||||
<span class="contact-street" itemprop="streetAddress">
|
||||
<?php echo nl2br($this->contact->address) . '<br />'; ?>
|
||||
</span>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->contact->suburb && $this->params->get('show_suburb')) : ?>
|
||||
<dd>
|
||||
<span class="contact-suburb" itemprop="addressLocality">
|
||||
<?php echo $this->contact->suburb . '<br />'; ?>
|
||||
</span>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->contact->state && $this->params->get('show_state')) : ?>
|
||||
<dd>
|
||||
<span class="contact-state" itemprop="addressRegion">
|
||||
<?php echo $this->contact->state . '<br />'; ?>
|
||||
</span>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->contact->postcode && $this->params->get('show_postcode')) : ?>
|
||||
<dd>
|
||||
<span class="contact-postcode" itemprop="postalCode">
|
||||
<?php echo $this->contact->postcode . '<br />'; ?>
|
||||
</span>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->contact->country && $this->params->get('show_country')) : ?>
|
||||
<dd>
|
||||
<span class="contact-country" itemprop="addressCountry">
|
||||
<?php echo $this->contact->country . '<br />'; ?>
|
||||
</span>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->contact->email_to && $this->params->get('show_email')) : ?>
|
||||
<dt>
|
||||
<span class="<?php echo $this->params->get('marker_class'); ?>" itemprop="email">
|
||||
<?php echo nl2br($this->params->get('marker_email')); ?>
|
||||
</span>
|
||||
</dt>
|
||||
<dd>
|
||||
<span class="contact-emailto">
|
||||
<?php echo $this->contact->email_to; ?>
|
||||
</span>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->contact->telephone && $this->params->get('show_telephone')) : ?>
|
||||
<dt>
|
||||
<span class="<?php echo $this->params->get('marker_class'); ?>" >
|
||||
<?php echo $this->params->get('marker_telephone'); ?>
|
||||
</span>
|
||||
</dt>
|
||||
<dd>
|
||||
<span class="contact-telephone" itemprop="telephone">
|
||||
<?php echo nl2br($this->contact->telephone); ?>
|
||||
</span>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->contact->fax && $this->params->get('show_fax')) : ?>
|
||||
<dt>
|
||||
<span class="<?php echo $this->params->get('marker_class'); ?>">
|
||||
<?php echo $this->params->get('marker_fax'); ?>
|
||||
</span>
|
||||
</dt>
|
||||
<dd>
|
||||
<span class="contact-fax" itemprop="faxNumber">
|
||||
<?php echo nl2br($this->contact->fax); ?>
|
||||
</span>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->contact->mobile && $this->params->get('show_mobile')) :?>
|
||||
<dt>
|
||||
<span class="<?php echo $this->params->get('marker_class'); ?>" >
|
||||
<?php echo $this->params->get('marker_mobile'); ?>
|
||||
</span>
|
||||
</dt>
|
||||
<dd>
|
||||
<span class="contact-mobile" itemprop="telephone">
|
||||
<?php echo nl2br($this->contact->mobile); ?>
|
||||
</span>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->contact->webpage && $this->params->get('show_webpage')) : ?>
|
||||
<dt>
|
||||
<span class="<?php echo $this->params->get('marker_class'); ?>" >
|
||||
</span>
|
||||
</dt>
|
||||
<dd>
|
||||
<span class="contact-webpage">
|
||||
<a href="<?php echo $this->contact->webpage; ?>" target="_blank" itemprop="url">
|
||||
<?php echo JStringPunycode::urlToUTF8($this->contact->webpage); ?></a>
|
||||
</span>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
</dl>
|
||||
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_contact
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_SITE . '/components/com_content/helpers/route.php';
|
||||
|
||||
?>
|
||||
<?php if ($this->params->get('show_articles')) : ?>
|
||||
<div class="contact-articles">
|
||||
<ul class="nav nav-tabs nav-stacked">
|
||||
<?php foreach ($this->item->articles as $article) : ?>
|
||||
<li>
|
||||
<?php echo JHtml::_('link', JRoute::_(ContentHelperRoute::getArticleRoute($article->slug, $article->catid, $article->language)), htmlspecialchars($article->title, ENT_COMPAT, 'UTF-8')); ?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
@ -0,0 +1,82 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_contact
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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.formvalidator');
|
||||
|
||||
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 xform-horizontal">
|
||||
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 t-get_in_touch_input">
|
||||
<div class="t-single_input">
|
||||
<div class="control-label"><?php echo $this->form->getLabel('contact_name'); ?></div>
|
||||
<div class="controls"><?php echo $this->form->getInput('contact_name'); ?></div>
|
||||
</div>
|
||||
<div class="t-single_input">
|
||||
<div class="control-label"><?php echo $this->form->getLabel('contact_email'); ?></div>
|
||||
<div class="controls"><?php echo $this->form->getInput('contact_email'); ?></div>
|
||||
</div>
|
||||
<div class="t-single_input">
|
||||
<div class="control-label"><?php echo $this->form->getLabel('contact_subject'); ?></div>
|
||||
<div class="controls"><?php echo $this->form->getInput('contact_subject'); ?></div>
|
||||
</div>
|
||||
<?php if ($this->params->get('show_email_copy')) : ?>
|
||||
<div class="t-single_input hidden">
|
||||
<div class="control-label"><?php echo $this->form->getLabel('contact_email_copy'); ?></div>
|
||||
<div class="controls"><?php echo $this->form->getInput('contact_email_copy'); ?></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?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="t-single_input">
|
||||
<?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 class="col-lg-6 col-md-6 col-sm-6 col-xs-12 t-get_in_touch_textarea">
|
||||
<div class="t-single_input">
|
||||
<div class="control-label"><?php echo $this->form->getLabel('contact_message'); ?></div>
|
||||
<div class="controls"><?php echo $this->form->getInput('contact_message'); ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<div class="xform-actions">
|
||||
<button class="t-btn t-get_in_touch_submit validate" type="submit"><?php echo JText::_('COM_CONTACT_CONTACT_SEND'); ?></button>
|
||||
<input type="hidden" name="option" value="com_contact" />
|
||||
<input type="hidden" name="task" value="contact.submit" />
|
||||
<input type="hidden" name="return" value="<?php echo $this->return_page; ?>" />
|
||||
<input type="hidden" name="id" value="<?php echo $this->contact->slug; ?>" />
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@ -0,0 +1,55 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_contact
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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->params->get('presentation_style') == 'sliders') : ?>
|
||||
<?php echo JHtml::_('bootstrap.addSlide', 'slide-contact', JText::_('COM_CONTACT_LINKS'), 'display-links'); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'tabs') : ?>
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'display-links', JText::_('COM_CONTACT_LINKS', true)); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('presentation_style') == 'plain'):?>
|
||||
<?php echo '<h3>' . JText::_('COM_CONTACT_LINKS') . '</h3>'; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="contact-links">
|
||||
<ul class="nav nav-tabs nav-stacked">
|
||||
<?php
|
||||
// Letters 'a' to 'e'
|
||||
foreach (range('a', 'e') as $char) :
|
||||
$link = $this->contact->params->get('link' . $char);
|
||||
$label = $this->contact->params->get('link' . $char . '_name');
|
||||
|
||||
if (!$link) :
|
||||
continue;
|
||||
endif;
|
||||
|
||||
// Add 'http://' if not present
|
||||
$link = (0 === strpos($link, 'http')) ? $link : 'http://' . $link;
|
||||
|
||||
// If no label is present, take the link
|
||||
$label = ($label) ? $label : $link;
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $link; ?>" itemprop="url">
|
||||
<?php echo $label; ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<?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.endTab'); ?>
|
||||
<?php endif; ?>
|
||||
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_contact
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
<?php if (JPluginHelper::isEnabled('user', 'profile')) :
|
||||
$fields = $this->item->profile->getFieldset('profile'); ?>
|
||||
<div class="contact-profile" id="users-profile-custom">
|
||||
<dl class="dl-horizontal">
|
||||
<?php foreach ($fields as $profile) :
|
||||
if ($profile->value) :
|
||||
echo '<dt>' . $profile->label . '</dt>';
|
||||
$profile->text = htmlspecialchars($profile->value, ENT_COMPAT, 'UTF-8');
|
||||
|
||||
switch ($profile->id) :
|
||||
case "profile_website":
|
||||
$v_http = substr($profile->value, 0, 4);
|
||||
|
||||
if ($v_http == "http") :
|
||||
echo '<dd><a href="' . $profile->text . '">' . JStringPunycode::urlToUTF8($profile->text) . '</a></dd>';
|
||||
else :
|
||||
echo '<dd><a href="http://' . $profile->text . '">' . JStringPunycode::urlToUTF8($profile->text) . '</a></dd>';
|
||||
endif;
|
||||
break;
|
||||
|
||||
case "profile_dob":
|
||||
echo '<dd>' . JHtml::_('date', $profile->text, JText::_('DATE_FORMAT_LC4'), false) . '</dd>';
|
||||
break;
|
||||
|
||||
default:
|
||||
echo '<dd>' . $profile->text . '</dd>';
|
||||
break;
|
||||
endswitch;
|
||||
endif;
|
||||
endforeach; ?>
|
||||
</dl>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_contact
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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');
|
||||
|
||||
// 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="blog-featured<?php echo $this->pageclass_sfx;?>">
|
||||
<?php if ($this->params->get('show_page_heading') != 0 ) : ?>
|
||||
<h1>
|
||||
<?php echo $this->escape($this->params->get('page_heading')); ?>
|
||||
</h1>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $this->loadTemplate('items'); ?>
|
||||
<?php if ($this->params->def('show_pagination', 2) == 1 || ($this->params->get('show_pagination') == 2 && $this->pagination->pagesTotal > 1)) : ?>
|
||||
<div class="pagination">
|
||||
|
||||
<?php if ($this->params->def('show_pagination_results', 1)) : ?>
|
||||
<p class="counter">
|
||||
<?php echo $this->pagination->getPagesCounter(); ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
<?php echo $this->pagination->getPagesLinks(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
@ -0,0 +1,166 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_contact
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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.core');
|
||||
|
||||
$listOrder = $this->escape($this->state->get('list.ordering'));
|
||||
$listDirn = $this->escape($this->state->get('list.direction'));
|
||||
|
||||
// Create a shortcut for params.
|
||||
$params = &$this->item->params;
|
||||
?>
|
||||
|
||||
<?php if (empty($this->items)) : ?>
|
||||
<p> <?php echo JText::_('COM_CONTACT_NO_CONTACTS'); ?> </p>
|
||||
<?php else : ?>
|
||||
|
||||
<form action="<?php echo htmlspecialchars(JUri::getInstance()->toString()); ?>" method="post" name="adminForm" id="adminForm">
|
||||
<fieldset class="filters">
|
||||
<legend class="hidelabeltxt"><?php echo JText::_('JGLOBAL_FILTER_LABEL'); ?></legend>
|
||||
<?php if ($this->params->get('show_pagination_limit')) : ?>
|
||||
<div class="display-limit">
|
||||
<?php echo JText::_('JGLOBAL_DISPLAY_NUM'); ?> 
|
||||
<?php echo $this->pagination->getLimitBox(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<input type="hidden" name="filter_order" value="<?php echo $listOrder; ?>" />
|
||||
<input type="hidden" name="filter_order_Dir" value="<?php echo $listDirn; ?>" />
|
||||
</fieldset>
|
||||
|
||||
<table class="category">
|
||||
<?php if ($this->params->get('show_headings')) : ?>
|
||||
<thead><tr>
|
||||
<th class="item-num">
|
||||
<?php echo JText::_('JGLOBAL_NUM'); ?>
|
||||
</th>
|
||||
<th class="item-title">
|
||||
<?php echo JHtml::_('grid.sort', 'COM_CONTACT_CONTACT_EMAIL_NAME_LABEL', 'a.name', $listDirn, $listOrder); ?>
|
||||
</th>
|
||||
<?php if ($this->params->get('show_position_headings')) : ?>
|
||||
<th class="item-position">
|
||||
<?php echo JHtml::_('grid.sort', 'COM_CONTACT_POSITION', 'a.con_position', $listDirn, $listOrder); ?>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('show_email_headings')) : ?>
|
||||
<th class="item-email">
|
||||
<?php echo JText::_('JGLOBAL_EMAIL'); ?>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('show_telephone_headings')) : ?>
|
||||
<th class="item-phone">
|
||||
<?php echo JText::_('COM_CONTACT_TELEPHONE'); ?>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_mobile_headings')) : ?>
|
||||
<th class="item-phone">
|
||||
<?php echo JText::_('COM_CONTACT_MOBILE'); ?>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_fax_headings')) : ?>
|
||||
<th class="item-phone">
|
||||
<?php echo JText::_('COM_CONTACT_FAX'); ?>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_suburb_headings')) : ?>
|
||||
<th class="item-suburb">
|
||||
<?php echo JHtml::_('grid.sort', 'COM_CONTACT_SUBURB', 'a.suburb', $listDirn, $listOrder); ?>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_state_headings')) : ?>
|
||||
<th class="item-state">
|
||||
<?php echo JHtml::_('grid.sort', 'COM_CONTACT_STATE', 'a.state', $listDirn, $listOrder); ?>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_country_headings')) : ?>
|
||||
<th class="item-state">
|
||||
<?php echo JHtml::_('grid.sort', 'COM_CONTACT_COUNTRY', 'a.country', $listDirn, $listOrder); ?>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<?php endif; ?>
|
||||
|
||||
<tbody>
|
||||
<?php foreach ($this->items as $i => $item) : ?>
|
||||
<tr class="<?php echo ($i % 2) ? "odd" : "even"; ?>" itemscope itemtype="http://schema.org/Person">
|
||||
<td class="item-num">
|
||||
<?php echo $i; ?>
|
||||
</td>
|
||||
|
||||
<td class="item-title">
|
||||
<?php if ($this->items[$i]->published == 0) : ?>
|
||||
<span class="label label-warning"><?php echo JText::_('JUNPUBLISHED'); ?></span>
|
||||
<?php endif; ?>
|
||||
<a href="<?php echo JRoute::_(ContactHelperRoute::getContactRoute($item->slug, $item->catid)); ?>" itemprop="url">
|
||||
<span itemprop="name"><?php echo $item->name; ?></span>
|
||||
</a>
|
||||
</td>
|
||||
|
||||
<?php if ($this->params->get('show_position_headings')) : ?>
|
||||
<td class="item-position" itemprop="jobTitle">
|
||||
<?php echo $item->con_position; ?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_email_headings')) : ?>
|
||||
<td class="item-email" itemprop="email">
|
||||
<?php echo $item->email_to; ?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_telephone_headings')) : ?>
|
||||
<td class="item-phone" itemprop="telephone">
|
||||
<?php echo $item->telephone; ?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_mobile_headings')) : ?>
|
||||
<td class="item-phone" itemprop="telephone">
|
||||
<?php echo $item->mobile; ?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_fax_headings')) : ?>
|
||||
<td class="item-phone" itemprop="faxNumber">
|
||||
<?php echo $item->fax; ?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_suburb_headings')) : ?>
|
||||
<td class="item-suburb" itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
|
||||
<span itemprop="addressLocality"><?php echo $item->suburb; ?></span>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_state_headings')) : ?>
|
||||
<td class="item-state" itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
|
||||
<span itemprop="addressRegion"><?php echo $item->state; ?></span>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_country_headings')) : ?>
|
||||
<td class="item-state" itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
|
||||
<span itemprop="addressCountry"><?php echo $item->country; ?></span>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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::_('formbehavior.chosen', 'select');
|
||||
JHtml::_('behavior.caption');
|
||||
?>
|
||||
<div class="archive<?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="adminForm" action="<?php echo JRoute::_('index.php')?>" method="post" class="form-inline">
|
||||
<fieldset class="filters">
|
||||
<div class="filter-search">
|
||||
<?php if ($this->params->get('filter_field') != 'hide') : ?>
|
||||
<label class="filter-search-lbl element-invisible" for="filter-search"><?php echo JText::_('COM_CONTENT_TITLE_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();" placeholder="<?php echo JText::_('COM_CONTENT_TITLE_FILTER_LABEL'); ?>" />
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $this->form->monthField; ?>
|
||||
<?php echo $this->form->yearField; ?>
|
||||
<?php echo $this->form->limitField; ?>
|
||||
|
||||
<button type="submit" class="btn btn-primary" style="vertical-align: top;"><?php echo JText::_('JGLOBAL_FILTER_BUTTON'); ?></button>
|
||||
<input type="hidden" name="view" value="archive" />
|
||||
<input type="hidden" name="option" value="com_content" />
|
||||
<input type="hidden" name="limitstart" value="0" />
|
||||
</div>
|
||||
<br />
|
||||
</fieldset>
|
||||
|
||||
<?php echo $this->loadTemplate('items'); ?>
|
||||
</form>
|
||||
</div>
|
||||
@ -0,0 +1,216 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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="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; ?>" itemscope itemtype="http://schema.org/Article">
|
||||
<div class="page-header">
|
||||
<h2 itemprop="name">
|
||||
<?php if ($params->get('link_titles')) : ?>
|
||||
<a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($item->slug, $item->catid, $item->language)); ?>" itemprop="url">
|
||||
<?php echo $this->escape($item->title); ?>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<?php echo $this->escape($item->title); ?>
|
||||
<?php endif; ?>
|
||||
</h2>
|
||||
<?php if ($params->get('show_author') && !empty($item->author )) : ?>
|
||||
<div class="createdby" itemprop="author" itemscope itemtype="http://schema.org/Person">
|
||||
<?php $author = ($item->created_by_alias) ? $item->created_by_alias : $item->author; ?>
|
||||
<?php $author = '<span itemprop="name">' . $author . '</span>'; ?>
|
||||
<?php if (!empty($item->contact_link) && $params->get('link_author') == true) : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY', JHtml::_('link', $this->item->contact_link, $author, array('itemprop' => 'url'))); ?>
|
||||
<?php else: ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY', $author); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php $useDefList = ($params->get('show_modify_date') || $params->get('show_publish_date') || $params->get('show_create_date')
|
||||
|| $params->get('show_hits') || $params->get('show_category') || $params->get('show_parent_category')); ?>
|
||||
<?php if ($useDefList && ($info == 0 || $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($item->parent_slug)) : ?>
|
||||
<dd>
|
||||
<div class="parent-category-name">
|
||||
<?php $title = $this->escape($item->parent_title); ?>
|
||||
<?php if ($params->get('link_parent_category') && !empty($item->parent_slug)) : ?>
|
||||
<?php $url = '<a href="' . JRoute::_(ContentHelperRoute::getCategoryRoute($item->parent_slug)) . '" itemprop="genre">' . $title . '</a>'; ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', '<span itemprop="genre">' . $title . '</span>'); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_category')) : ?>
|
||||
<dd>
|
||||
<div class="category-name">
|
||||
<?php $title = $this->escape($item->category_title); ?>
|
||||
<?php if ($params->get('link_category') && $item->catslug) : ?>
|
||||
<?php $url = '<a href="' . JRoute::_(ContentHelperRoute::getCategoryRoute($item->catslug)) . '" itemprop="genre">' . $title . '</a>'; ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_CATEGORY', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_CATEGORY', '<span itemprop="genre">' . $title . '</span>'); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_publish_date')) : ?>
|
||||
<dd>
|
||||
<div class="published">
|
||||
<span class="icon-calendar"></span>
|
||||
<time datetime="<?php echo JHtml::_('date', $item->publish_up, 'c'); ?>" itemprop="datePublished">
|
||||
<?php echo JText::sprintf('COM_CONTENT_PUBLISHED_DATE_ON', JHtml::_('date', $item->publish_up, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</time>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($info == 0) : ?>
|
||||
<?php if ($params->get('show_modify_date')) : ?>
|
||||
<dd>
|
||||
<div class="modified">
|
||||
<span class="icon-calendar"></span>
|
||||
<time datetime="<?php echo JHtml::_('date', $item->modified, 'c'); ?>" itemprop="dateModified">
|
||||
<?php echo JText::sprintf('COM_CONTENT_LAST_UPDATED', JHtml::_('date', $item->modified, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</time>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_create_date')) : ?>
|
||||
<dd>
|
||||
<div class="create">
|
||||
<span class="icon-calendar"></span>
|
||||
<time datetime="<?php echo JHtml::_('date', $item->created, 'c'); ?>" itemprop="dateCreated">
|
||||
<?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $item->created, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</time>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_hits')) : ?>
|
||||
<dd>
|
||||
<div class="hits">
|
||||
<span class="icon-eye-open"></span>
|
||||
<meta itemprop="interactionCount" content="UserPageVisits:<?php echo $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')) : ?>
|
||||
<?php echo $item->event->afterDisplayTitle; ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $item->event->beforeDisplayContent; ?>
|
||||
<?php if ($params->get('show_intro')) :?>
|
||||
<div class="intro" itemprop="articleBody"> <?php echo JHtml::_('string.truncateComplex', $item->introtext, $params->get('introtext_limit')); ?> </div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($useDefList && ($info == 1 || $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 ($info == 1) : ?>
|
||||
<?php if ($params->get('show_parent_category') && !empty($item->parent_slug)) : ?>
|
||||
<dd>
|
||||
<div class="parent-category-name">
|
||||
<?php $title = $this->escape($item->parent_title); ?>
|
||||
<?php if ($params->get('link_parent_category') && $item->parent_slug) : ?>
|
||||
<?php $url = '<a href="' . JRoute::_(ContentHelperRoute::getCategoryRoute($item->parent_slug)) . '" itemprop="genre">' . $title . '</a>'; ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_PARENT', '<span itemprop="genre">' . $title . '</span>'); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_category')) : ?>
|
||||
<dd>
|
||||
<div class="category-name">
|
||||
<?php $title = $this->escape($item->category_title); ?>
|
||||
<?php if ($params->get('link_category') && $item->catslug) : ?>
|
||||
<?php $url = '<a href="' . JRoute::_(ContentHelperRoute::getCategoryRoute($item->catslug)) . '" itemprop="genre">' . $title . '</a>'; ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_CATEGORY', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_CATEGORY', '<span itemprop="genre">' . $title . '</span>'); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_publish_date')) : ?>
|
||||
<dd>
|
||||
<div class="published">
|
||||
<span class="icon-calendar"></span>
|
||||
<time datetime="<?php echo JHtml::_('date', $item->publish_up, 'c'); ?>" itemprop="datePublished">
|
||||
<?php echo JText::sprintf('COM_CONTENT_PUBLISHED_DATE_ON', JHtml::_('date', $item->publish_up, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</time>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_create_date')) : ?>
|
||||
<dd>
|
||||
<div class="create">
|
||||
<span class="icon-calendar"></span>
|
||||
<time datetime="<?php echo JHtml::_('date', $item->created, 'c'); ?>" itemprop="dateCreated">
|
||||
<?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $item->modified, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</time>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_modify_date')) : ?>
|
||||
<dd>
|
||||
<div class="modified">
|
||||
<span class="icon-calendar"></span>
|
||||
<time datetime="<?php echo JHtml::_('date', $item->modified, 'c'); ?>" itemprop="dateModified">
|
||||
<?php echo JText::sprintf('COM_CONTENT_LAST_UPDATED', JHtml::_('date', $item->modified, JText::_('DATE_FORMAT_LC3'))); ?>
|
||||
</time>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_hits')) : ?>
|
||||
<dd>
|
||||
<div class="hits">
|
||||
<span class="icon-eye-open"></span>
|
||||
<meta content="UserPageVisits:<?php echo $item->hits; ?>" itemprop="interactionCount" />
|
||||
<?php echo JText::sprintf('COM_CONTENT_ARTICLE_HITS', $item->hits); ?>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
</dl>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php echo $item->event->afterDisplayContent; ?>
|
||||
</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,167 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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="item-page<?php echo $this->pageclass_sfx; ?>" itemscope itemtype="http://schema.org/Article">
|
||||
<meta itemprop="inLanguage" content="<?php echo ($this->item->language === '*') ? JFactory::getConfig()->get('language') : $this->item->language; ?>" />
|
||||
<?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;
|
||||
if (!empty($this->item->pagination) && $this->item->pagination && !$this->item->paginationposition && $this->item->paginationrelative)
|
||||
{
|
||||
echo $this->item->pagination;
|
||||
}
|
||||
?>
|
||||
|
||||
<?php // Todo 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_create_date')
|
||||
|| $params->get('show_hits') || $params->get('show_category') || $params->get('show_parent_category') || $params->get('show_author') ); ?>
|
||||
|
||||
<?php if (!$useDefList && $this->print) : ?>
|
||||
<div id="pop-print" class="btn hidden-print">
|
||||
<?php echo JHtml::_('icon.print_screen', $this->item, $params); ?>
|
||||
</div>
|
||||
<div class="clearfix"> </div>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_title') || $params->get('show_author')) : ?>
|
||||
<div class="page-header">
|
||||
<h2 itemprop="name">
|
||||
<?php if ($params->get('show_title')) : ?>
|
||||
<?php echo $this->escape($this->item->title); ?>
|
||||
<?php endif; ?>
|
||||
</h2>
|
||||
<?php if ($this->item->state == 0) : ?>
|
||||
<span class="label label-warning"><?php echo JText::_('JUNPUBLISHED'); ?></span>
|
||||
<?php endif; ?>
|
||||
<?php if (strtotime($this->item->publish_up) > strtotime(JFactory::getDate())) : ?>
|
||||
<span class="label label-warning"><?php echo JText::_('JNOTPUBLISHEDYET'); ?></span>
|
||||
<?php endif; ?>
|
||||
<?php if ((strtotime($this->item->publish_down) < strtotime(JFactory::getDate())) && $this->item->publish_down != JFactory::getDbo()->getNullDate()) : ?>
|
||||
<span class="label label-warning"><?php echo JText::_('JEXPIRED'); ?></span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if (!$this->print) : ?>
|
||||
<?php if ($canEdit || $params->get('show_print_icon') || $params->get('show_email_icon')) : ?>
|
||||
<?php echo JLayoutHelper::render('joomla.content.icons', array('params' => $params, 'item' => $this->item, 'print' => false)); ?>
|
||||
<?php endif; ?>
|
||||
<?php else : ?>
|
||||
<?php if ($useDefList) : ?>
|
||||
<div id="pop-print" class="btn hidden-print">
|
||||
<?php echo JHtml::_('icon.print_screen', $this->item, $params); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($useDefList && ($info == 0 || $info == 2)) : ?>
|
||||
<?php echo JLayoutHelper::render('joomla.content.info_block.block', array('item' => $this->item, 'params' => $params, 'position' => 'above')); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($info == 0 && $params->get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?>
|
||||
<?php $this->item->tagLayout = new JLayoutFile('joomla.content.tags'); ?>
|
||||
|
||||
<?php echo $this->item->tagLayout->render($this->item->tags->itemTags); ?>
|
||||
<?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 (isset($images->image_fulltext) && !empty($images->image_fulltext)) : ?>
|
||||
<?php $imgfloat = (empty($images->float_fulltext)) ? $params->get('float_fulltext') : $images->float_fulltext; ?>
|
||||
<div class="pull-<?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); ?>" itemprop="image"/> </div>
|
||||
<?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 itemprop="articleBody">
|
||||
<?php echo $this->item->text; ?>
|
||||
</div>
|
||||
|
||||
<?php if ($useDefList && ($info == 1 || $info == 2)) : ?>
|
||||
<?php echo JLayoutHelper::render('joomla.content.info_block.block', array('item' => $this->item, 'params' => $params, 'position' => 'below')); ?>
|
||||
<?php if ($params->get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?>
|
||||
<?php $this->item->tagLayout = new JLayoutFile('joomla.content.tags'); ?>
|
||||
<?php echo $this->item->tagLayout->render($this->item->tags->itemTags); ?>
|
||||
<?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 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) : ?>
|
||||
<?php $menu = JFactory::getApplication()->getMenu(); ?>
|
||||
<?php $active = $menu->getActive(); ?>
|
||||
<?php $itemId = $active->id; ?>
|
||||
<?php $link = new JUri(JRoute::_('index.php?option=com_users&view=login&Itemid=' . $itemId, false)); ?>
|
||||
<?php $link->setVar('return', base64_encode(JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language), false))); ?>
|
||||
<p class="readmore">
|
||||
<a href="<?php echo $link; ?>" class="register">
|
||||
<?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>
|
||||
</p>
|
||||
<?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,79 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Create shortcut
|
||||
$urls = json_decode($this->item->urls);
|
||||
|
||||
// Create shortcuts to some parameters.
|
||||
$params = $this->item->params;
|
||||
if ($urls && (!empty($urls->urla) || !empty($urls->urlb) || !empty($urls->urlc))) :
|
||||
?>
|
||||
<div class="content-links">
|
||||
<ul class="nav nav-tabs nav-stacked">
|
||||
<?php
|
||||
$urlarray = array(
|
||||
array($urls->urla, $urls->urlatext, $urls->targeta, 'a'),
|
||||
array($urls->urlb, $urls->urlbtext, $urls->targetb, 'b'),
|
||||
array($urls->urlc, $urls->urlctext, $urls->targetc, 'c')
|
||||
);
|
||||
foreach ($urlarray as $url) :
|
||||
$link = $url[0];
|
||||
$label = $url[1];
|
||||
$target = $url[2];
|
||||
$id = $url[3];
|
||||
|
||||
if ( ! $link) :
|
||||
continue;
|
||||
endif;
|
||||
|
||||
// If no label is present, take the link
|
||||
$label = ($label) ? $label : $link;
|
||||
|
||||
// If no target is present, use the default
|
||||
$target = $target ? $target : $params->get('target' . $id);
|
||||
?>
|
||||
<li class="content-links-<?php echo $id; ?>">
|
||||
<?php
|
||||
// Compute the correct link
|
||||
|
||||
switch ($target)
|
||||
{
|
||||
case 1:
|
||||
// Open in a new window
|
||||
echo '<a href="' . htmlspecialchars($link) . '" target="_blank" rel="nofollow">' .
|
||||
htmlspecialchars($label) . '</a>';
|
||||
break;
|
||||
|
||||
case 2:
|
||||
// Open in a popup window
|
||||
$attribs = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=600';
|
||||
echo "<a href=\"" . htmlspecialchars($link) . "\" onclick=\"window.open(this.href, 'targetWindow', '" . $attribs . "'); return false;\">" .
|
||||
htmlspecialchars($label) . '</a>';
|
||||
break;
|
||||
case 3:
|
||||
// Open in a modal window
|
||||
JHtml::_('behavior.modal', 'a.modal');
|
||||
echo '<a class="modal" href="' . htmlspecialchars($link) . '" rel="{handler: \'iframe\', size: {x:600, y:600}}">' .
|
||||
htmlspecialchars($label) . ' </a>';
|
||||
break;
|
||||
|
||||
default:
|
||||
// Open in parent window
|
||||
echo '<a href="' . htmlspecialchars($link) . '" rel="nofollow">' .
|
||||
htmlspecialchars($label) . ' </a>';
|
||||
break;
|
||||
}
|
||||
?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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');
|
||||
|
||||
JFactory::getDocument()->addScriptDeclaration("
|
||||
jQuery(function($) {
|
||||
$('.categories-list').find('[id^=category-btn-]').each(function(index, btn) {
|
||||
var btn = $(btn);
|
||||
btn.on('click', function() {
|
||||
btn.find('span').toggleClass('icon-plus');
|
||||
btn.find('span').toggleClass('icon-minus');
|
||||
});
|
||||
});
|
||||
});");
|
||||
?>
|
||||
<div class="categories-list<?php echo $this->pageclass_sfx;?>">
|
||||
<?php
|
||||
echo JLayoutHelper::render('joomla.content.categories_default', $this);
|
||||
echo $this->loadTemplate('items');
|
||||
?>
|
||||
</div>
|
||||
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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');
|
||||
|
||||
JFactory::getDocument()->addScriptDeclaration("
|
||||
jQuery(function($) {
|
||||
$('.categories-list').find('[id^=category-btn-]').each(function(index, btn) {
|
||||
var btn = $(btn);
|
||||
btn.on('click', function() {
|
||||
btn.find('span').toggleClass('icon-plus');
|
||||
btn.find('span').toggleClass('icon-minus');
|
||||
});
|
||||
});
|
||||
});");
|
||||
?>
|
||||
<div class="categories-list<?php echo $this->pageclass_sfx;?>">
|
||||
<?php
|
||||
echo JLayoutHelper::render('joomla.content.categories_default', $this);
|
||||
echo $this->loadTemplate('items');
|
||||
?>
|
||||
</div>
|
||||
@ -0,0 +1,68 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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');
|
||||
|
||||
$class = ' class="first"';
|
||||
$lang = JFactory::getLanguage();
|
||||
|
||||
if (count($this->items[$this->parent->id]) > 0 && $this->maxLevelcat != 0) :
|
||||
?>
|
||||
<?php foreach($this->items[$this->parent->id] as $id => $item) : ?>
|
||||
<?php
|
||||
if ($this->params->get('show_empty_categories_cat') || $item->numitems || count($item->getChildren())) :
|
||||
if (!isset($this->items[$this->parent->id][$id + 1]))
|
||||
{
|
||||
$class = ' class="last"';
|
||||
}
|
||||
?>
|
||||
<div <?php echo $class; ?> >
|
||||
<?php $class = ''; ?>
|
||||
<h3 class="page-header item-title">
|
||||
<a href="<?php echo JRoute::_(ContentHelperRoute::getCategoryRoute($item->id));?>">
|
||||
<?php echo $this->escape($item->title); ?></a>
|
||||
<?php if ($this->params->get('show_cat_num_articles_cat') == 1) :?>
|
||||
<span class="badge badge-info tip hasTooltip" title="<?php echo JHtml::tooltipText('COM_CONTENT_NUM_ITEMS'); ?>">
|
||||
<?php echo $item->numitems; ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
<?php if (count($item->getChildren()) > 0 && $this->maxLevelcat > 1) : ?>
|
||||
<a id="category-btn-<?php echo $item->id;?>" href="#category-<?php echo $item->id;?>"
|
||||
data-toggle="collapse" data-toggle="button" class="btn btn-mini pull-right"><span class="icon-plus"></span></a>
|
||||
<?php endif;?>
|
||||
</h3>
|
||||
<?php if ($this->params->get('show_description_image') && $item->getParams()->get('image')) : ?>
|
||||
<img src="<?php echo $item->getParams()->get('image'); ?>" alt="<?php echo htmlspecialchars($item->getParams()->get('image_alt')); ?>" />
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('show_subcat_desc_cat') == 1) :?>
|
||||
<?php if ($item->description) : ?>
|
||||
<div class="category-desc">
|
||||
<?php echo JHtml::_('content.prepare', $item->description, '', 'com_content.categories'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (count($item->getChildren()) > 0 && $this->maxLevelcat > 1) :?>
|
||||
<div class="collapse fade" id="category-<?php echo $item->id;?>">
|
||||
<?php
|
||||
$this->items[$item->id] = $item->getChildren();
|
||||
$this->parent = $item;
|
||||
$this->maxLevelcat--;
|
||||
echo $this->loadTemplate('items');
|
||||
$this->parent = $item->getParent();
|
||||
$this->maxLevelcat++;
|
||||
?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
@ -0,0 +1,68 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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');
|
||||
|
||||
$class = ' class="first"';
|
||||
$lang = JFactory::getLanguage();
|
||||
|
||||
if (count($this->items[$this->parent->id]) > 0 && $this->maxLevelcat != 0) :
|
||||
?>
|
||||
<?php foreach($this->items[$this->parent->id] as $id => $item) : ?>
|
||||
<?php
|
||||
if ($this->params->get('show_empty_categories_cat') || $item->numitems || count($item->getChildren())) :
|
||||
if (!isset($this->items[$this->parent->id][$id + 1]))
|
||||
{
|
||||
$class = ' class="last"';
|
||||
}
|
||||
?>
|
||||
<div <?php echo $class; ?> >
|
||||
<?php $class = ''; ?>
|
||||
<h3 class="page-header item-title">
|
||||
<a href="<?php echo JRoute::_(ContentHelperRoute::getCategoryRoute($item->id));?>">
|
||||
<?php echo $this->escape($item->title); ?></a>
|
||||
<?php if ($this->params->get('show_cat_num_articles_cat') == 1) :?>
|
||||
<span class="badge badge-info tip hasTooltip" title="<?php echo JHtml::tooltipText('COM_CONTENT_NUM_ITEMS'); ?>">
|
||||
<?php echo $item->numitems; ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
<?php if (count($item->getChildren()) > 0 && $this->maxLevelcat > 1) : ?>
|
||||
<a id="category-btn-<?php echo $item->id;?>" href="#category-<?php echo $item->id;?>"
|
||||
data-toggle="collapse" data-toggle="button" class="btn btn-mini pull-right"><span class="icon-plus"></span></a>
|
||||
<?php endif;?>
|
||||
</h3>
|
||||
<?php if ($this->params->get('show_description_image') && $item->getParams()->get('image')) : ?>
|
||||
<img src="<?php echo $item->getParams()->get('image'); ?>" alt="<?php echo htmlspecialchars($item->getParams()->get('image_alt')); ?>" />
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('show_subcat_desc_cat') == 1) :?>
|
||||
<?php if ($item->description) : ?>
|
||||
<div class="category-desc">
|
||||
<?php echo JHtml::_('content.prepare', $item->description, '', 'com_content.categories'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (count($item->getChildren()) > 0 && $this->maxLevelcat > 1) :?>
|
||||
<div class="collapse fade" id="category-<?php echo $item->id;?>">
|
||||
<?php
|
||||
$this->items[$item->id] = $item->getChildren();
|
||||
$this->parent = $item;
|
||||
$this->maxLevelcat--;
|
||||
echo $this->loadTemplate('items');
|
||||
$this->parent = $item->getParent();
|
||||
$this->maxLevelcat++;
|
||||
?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
@ -0,0 +1,118 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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="blog<?php echo $this->pageclass_sfx; ?>" itemscope itemtype="http://schema.org/Blog">
|
||||
<?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('show_category_title', 1) or $this->params->get('page_subheading')) : ?>
|
||||
<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>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_cat_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 clearfix">
|
||||
<?php if ($this->params->get('show_description_image') && $this->category->getParams()->get('image')) : ?>
|
||||
<img src="<?php echo $this->category->getParams()->get('image'); ?>" alt="<?php echo htmlspecialchars($this->category->getParams()->get('image_alt')); ?>"/>
|
||||
<?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>
|
||||
<?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 clearfix">
|
||||
<?php foreach ($this->lead_items as &$item) : ?>
|
||||
<div class="leading-<?php echo $leadingcount; ?><?php echo $item->state == 0 ? ' system-unpublished' : null; ?>"
|
||||
itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
|
||||
<?php
|
||||
$this->item = & $item;
|
||||
echo $this->loadTemplate('item');
|
||||
?>
|
||||
</div>
|
||||
<?php $leadingcount++; ?>
|
||||
<?php endforeach; ?>
|
||||
</div><!-- end items-leading -->
|
||||
<?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; ?>"
|
||||
itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
|
||||
<?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="cat-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,81 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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');
|
||||
|
||||
$class = ' class="first"';
|
||||
$lang = JFactory::getLanguage();
|
||||
|
||||
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 = ''; ?>
|
||||
<?php if ($lang->isRtl()) : ?>
|
||||
<h3 class="page-header item-title">
|
||||
<?php if ( $this->params->get('show_cat_num_articles', 1)) : ?>
|
||||
<span class="badge badge-info tip hasTooltip" title="<?php echo JHtml::tooltipText('COM_CONTENT_NUM_ITEMS'); ?>">
|
||||
<?php echo $child->getNumItems(true); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
<a href="<?php echo JRoute::_(ContentHelperRoute::getCategoryRoute($child->id)); ?>">
|
||||
<?php echo $this->escape($child->title); ?></a>
|
||||
|
||||
<?php if (count($child->getChildren()) > 0 && $this->maxLevel > 1) : ?>
|
||||
<a href="#category-<?php echo $child->id;?>" data-toggle="collapse" data-toggle="button" class="btn btn-mini pull-right"><span class="icon-plus"></span></a>
|
||||
<?php endif;?>
|
||||
</h3>
|
||||
<?php else : ?>
|
||||
<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 JHtml::tooltipText('COM_CONTENT_NUM_ITEMS'); ?>">
|
||||
<?php echo $child->getNumItems(true); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (count($child->getChildren()) > 0 && $this->maxLevel > 1) : ?>
|
||||
<a href="#category-<?php echo $child->id;?>" data-toggle="collapse" data-toggle="button" class="btn btn-mini pull-right"><span class="icon-plus"></span></a>
|
||||
<?php endif;?>
|
||||
<?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 && $this->maxLevel > 1) : ?>
|
||||
<div class="collapse fade" id="category-<?php echo $child->id; ?>">
|
||||
<?php
|
||||
$this->children[$child->id] = $child->getChildren();
|
||||
$this->category = $child;
|
||||
$this->maxLevel--;
|
||||
echo $this->loadTemplate('children');
|
||||
$this->category = $child->getParent();
|
||||
$this->maxLevel++;
|
||||
?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php endif;
|
||||
@ -0,0 +1,73 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Layout
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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;
|
||||
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');
|
||||
$canEdit = $this->item->params->get('access-edit');
|
||||
$info = $params->get('info_block_position', 0);
|
||||
?>
|
||||
<?php if ($this->item->state == 0 || strtotime($this->item->publish_up) > strtotime(JFactory::getDate())
|
||||
|| ((strtotime($this->item->publish_down) < strtotime(JFactory::getDate())) && $this->item->publish_down != JFactory::getDbo()->getNullDate())) : ?>
|
||||
<div class="system-unpublished">
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo JLayoutHelper::render('joomla.content.blog_style_default_item_title', $this->item); ?>
|
||||
|
||||
<?php if ($canEdit || $params->get('show_print_icon') || $params->get('show_email_icon')) : ?>
|
||||
<?php echo JLayoutHelper::render('joomla.content.icons', array('params' => $params, 'item' => $this->item, 'print' => false)); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_tags') && !empty($this->item->tags->itemTags)) : ?>
|
||||
<?php echo JLayoutHelper::render('joomla.content.tags', $this->item->tags->itemTags); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php // Todo 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_create_date')
|
||||
|| $params->get('show_hits') || $params->get('show_category') || $params->get('show_parent_category') || $params->get('show_author') ); ?>
|
||||
|
||||
<?php if ($useDefList && ($info == 0 || $info == 2)) : ?>
|
||||
<?php echo JLayoutHelper::render('joomla.content.info_block.block', array('item' => $this->item, 'params' => $params, 'position' => 'above')); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo JLayoutHelper::render('joomla.content.intro_image', $this->item); ?>
|
||||
|
||||
|
||||
<?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 && ($info == 1 || $info == 2)) : ?>
|
||||
<?php echo JLayoutHelper::render('joomla.content.info_block.block', array('item' => $this->item, 'params' => $params, 'position' => 'below')); ?>
|
||||
<?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, $this->item->language));
|
||||
else :
|
||||
$menu = JFactory::getApplication()->getMenu();
|
||||
$active = $menu->getActive();
|
||||
$itemId = $active->id;
|
||||
$link = new JUri(JRoute::_('index.php?option=com_users&view=login&Itemid=' . $itemId, false));
|
||||
$link->setVar('return', base64_encode(JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language), false)));
|
||||
endif; ?>
|
||||
|
||||
<?php echo JLayoutHelper::render('joomla.content.readmore', array('item' => $this->item, 'params' => $params, 'link' => $link)); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->item->state == 0 || strtotime($this->item->publish_up) > strtotime(JFactory::getDate())
|
||||
|| ((strtotime($this->item->publish_down) < strtotime(JFactory::getDate())) && $this->item->publish_down != JFactory::getDbo()->getNullDate())) : ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $this->item->event->afterDisplayContent; ?>
|
||||
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
|
||||
|
||||
<ol 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, $item->language)); ?>">
|
||||
<?php echo $item->title; ?></a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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="category-list<?php echo $this->pageclass_sfx;?>">
|
||||
|
||||
<?php
|
||||
$this->subtemplatename = 'articles';
|
||||
echo JLayoutHelper::render('joomla.content.category_default', $this);
|
||||
?>
|
||||
|
||||
</div>
|
||||
@ -0,0 +1,222 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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/html');
|
||||
|
||||
// Create some shortcuts.
|
||||
$params = &$this->item->params;
|
||||
$n = count($this->items);
|
||||
$listOrder = $this->escape($this->state->get('list.ordering'));
|
||||
$listDirn = $this->escape($this->state->get('list.direction'));
|
||||
|
||||
// Check for at least one editable article
|
||||
$isEditable = false;
|
||||
|
||||
if (!empty($this->items))
|
||||
{
|
||||
foreach ($this->items as $article)
|
||||
{
|
||||
if ($article->params->get('access-edit'))
|
||||
{
|
||||
$isEditable = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<?php if (empty($this->items)) : ?>
|
||||
|
||||
<?php if ($this->params->get('show_no_articles', 1)) : ?>
|
||||
<p><?php echo JText::_('COM_CONTENT_NO_ARTICLES'); ?></p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<form action="<?php echo htmlspecialchars(JUri::getInstance()->toString()); ?>" method="post" name="adminForm" id="adminForm" class="form-inline">
|
||||
<?php if ($this->params->get('show_headings') || $this->params->get('filter_field') != 'hide' || $this->params->get('show_pagination_limit')) :?>
|
||||
<fieldset class="filters btn-toolbar clearfix">
|
||||
<?php if ($this->params->get('filter_field') != 'hide') :?>
|
||||
<div class="btn-group">
|
||||
<label class="filter-search-lbl element-invisible" for="filter-search">
|
||||
<?php echo JText::_('COM_CONTENT_' . $this->params->get('filter_field') . '_FILTER_LABEL') . ' '; ?>
|
||||
</label>
|
||||
<input type="text" name="filter-search" id="filter-search" value="<?php echo $this->escape($this->state->get('list.filter')); ?>" class="inputbox" onchange="document.adminForm.submit();" title="<?php echo JText::_('COM_CONTENT_FILTER_SEARCH_DESC'); ?>" placeholder="<?php echo JText::_('COM_CONTENT_' . $this->params->get('filter_field') . '_FILTER_LABEL'); ?>" />
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('show_pagination_limit')) : ?>
|
||||
<div class="btn-group pull-right">
|
||||
<label for="limit" class="element-invisible">
|
||||
<?php echo JText::_('JGLOBAL_DISPLAY_NUM'); ?>
|
||||
</label>
|
||||
<?php echo $this->pagination->getLimitBox(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<input type="hidden" name="filter_order" value="" />
|
||||
<input type="hidden" name="filter_order_Dir" value="" />
|
||||
<input type="hidden" name="limitstart" value="" />
|
||||
<input type="hidden" name="task" value="" />
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
|
||||
<table class="category table table-striped table-bordered table-hover">
|
||||
<?php
|
||||
$headerTitle = '';
|
||||
$headerDate = '';
|
||||
$headerAuthor = '';
|
||||
$headerHits = '';
|
||||
$headerEdit = '';
|
||||
?>
|
||||
<?php if ($this->params->get('show_headings')) : ?>
|
||||
<?php
|
||||
$headerTitle = 'headers="categorylist_header_title"';
|
||||
$headerDate = 'headers="categorylist_header_date"';
|
||||
$headerAuthor = 'headers="categorylist_header_author"';
|
||||
$headerHits = 'headers="categorylist_header_hits"';
|
||||
$headerEdit = 'headers="categorylist_header_edit"';
|
||||
?>
|
||||
<thead>
|
||||
<tr>
|
||||
<th id="categorylist_header_title">
|
||||
<?php echo JHtml::_('grid.sort', 'JGLOBAL_TITLE', 'a.title', $listDirn, $listOrder); ?>
|
||||
</th>
|
||||
<?php if ($date = $this->params->get('list_show_date')) : ?>
|
||||
<th id="categorylist_header_date">
|
||||
<?php if ($date == "created") : ?>
|
||||
<?php echo JHtml::_('grid.sort', 'COM_CONTENT_' . $date . '_DATE', 'a.created', $listDirn, $listOrder); ?>
|
||||
<?php elseif ($date == "modified") : ?>
|
||||
<?php echo JHtml::_('grid.sort', 'COM_CONTENT_' . $date . '_DATE', 'a.modified', $listDirn, $listOrder); ?>
|
||||
<?php elseif ($date == "published") : ?>
|
||||
<?php echo JHtml::_('grid.sort', 'COM_CONTENT_' . $date . '_DATE', 'a.publish_up', $listDirn, $listOrder); ?>
|
||||
<?php endif; ?>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('list_show_author')) : ?>
|
||||
<th id="categorylist_header_author">
|
||||
<?php echo JHtml::_('grid.sort', 'JAUTHOR', 'author', $listDirn, $listOrder); ?>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('list_show_hits')) : ?>
|
||||
<th id="categorylist_header_hits">
|
||||
<?php echo JHtml::_('grid.sort', 'JGLOBAL_HITS', 'a.hits', $listDirn, $listOrder); ?>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
<?php if ($isEditable) : ?>
|
||||
<th id="categorylist_header_edit"><?php echo JText::_('COM_CONTENT_EDIT_ITEM'); ?></th>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
</thead>
|
||||
<?php endif; ?>
|
||||
<tbody>
|
||||
<?php foreach ($this->items as $i => $article) : ?>
|
||||
<?php if ($this->items[$i]->state == 0) : ?>
|
||||
<tr class="system-unpublished cat-list-row<?php echo $i % 2; ?>">
|
||||
<?php else: ?>
|
||||
<tr class="cat-list-row<?php echo $i % 2; ?>" >
|
||||
<?php endif; ?>
|
||||
<td <?php echo $headerTitle; ?> class="list-title">
|
||||
<?php if (in_array($article->access, $this->user->getAuthorisedViewLevels())) : ?>
|
||||
<a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($article->slug, $article->catid, $article->language)); ?>">
|
||||
<?php echo $this->escape($article->title); ?>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<?php
|
||||
echo $this->escape($article->title) . ' : ';
|
||||
$menu = JFactory::getApplication()->getMenu();
|
||||
$active = $menu->getActive();
|
||||
$itemId = $active->id;
|
||||
$link = new JUri(JRoute::_('index.php?option=com_users&view=login&Itemid=' . $itemId, false));
|
||||
$link->setVar('return', base64_encode(JRoute::_(ContentHelperRoute::getArticleRoute($article->slug, $article->catid, $article->language), false)));
|
||||
?>
|
||||
<a href="<?php echo $link; ?>" class="register">
|
||||
<?php echo JText::_('COM_CONTENT_REGISTER_TO_READ_MORE'); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php if ($article->state == 0) : ?>
|
||||
<span class="list-published label label-warning">
|
||||
<?php echo JText::_('JUNPUBLISHED'); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
<?php if (strtotime($article->publish_up) > strtotime(JFactory::getDate())) : ?>
|
||||
<span class="list-published label label-warning">
|
||||
<?php echo JText::_('JNOTPUBLISHEDYET'); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
<?php if ((strtotime($article->publish_down) < strtotime(JFactory::getDate())) && $article->publish_down != JFactory::getDbo()->getNullDate()) : ?>
|
||||
<span class="list-published label label-warning">
|
||||
<?php echo JText::_('JEXPIRED'); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<?php if ($this->params->get('list_show_date')) : ?>
|
||||
<td <?php echo $headerDate; ?> class="list-date small">
|
||||
<?php
|
||||
echo JHtml::_(
|
||||
'date', $article->displayDate,
|
||||
$this->escape($this->params->get('date_format', JText::_('DATE_FORMAT_LC3')))
|
||||
); ?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('list_show_author', 1)) : ?>
|
||||
<td <?php echo $headerAuthor; ?> class="list-author">
|
||||
<?php if (!empty($article->author) || !empty($article->created_by_alias)) : ?>
|
||||
<?php $author = $article->author ?>
|
||||
<?php $author = ($article->created_by_alias ? $article->created_by_alias : $author);?>
|
||||
<?php if (!empty($article->contact_link) && $this->params->get('link_author') == true) : ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY', JHtml::_('link', $article->contact_link, $author)); ?>
|
||||
<?php else: ?>
|
||||
<?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY', $author); ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('list_show_hits', 1)) : ?>
|
||||
<td <?php echo $headerHits; ?> class="list-hits">
|
||||
<span class="badge badge-info">
|
||||
<?php echo JText::sprintf('JGLOBAL_HITS_COUNT', $article->hits); ?>
|
||||
</span>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
<?php if ($isEditable) : ?>
|
||||
<td <?php echo $headerEdit; ?> class="list-edit">
|
||||
<?php if ($article->params->get('access-edit')) : ?>
|
||||
<?php echo JHtml::_('icon.edit', $article, $params); ?>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php // Code to add a link to submit an article. ?>
|
||||
<?php if ($this->category->getParams()->get('access-create')) : ?>
|
||||
<?php echo JHtml::_('icon.create', $this->category, $this->category->params); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php // Add pagination links ?>
|
||||
<?php if (!empty($this->items)) : ?>
|
||||
<?php if (($this->params->def('show_pagination', 2) == 1 || ($this->params->get('show_pagination') == 2)) && ($this->pagination->pagesTotal > 1)) : ?>
|
||||
<div class="pagination">
|
||||
|
||||
<?php if ($this->params->def('show_pagination_results', 1)) : ?>
|
||||
<p class="counter pull-right">
|
||||
<?php echo $this->pagination->getPagesCounter(); ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $this->pagination->getPagesLinks(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
@ -0,0 +1,81 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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');
|
||||
|
||||
$class = ' class="first"';
|
||||
$lang = JFactory::getLanguage();
|
||||
?>
|
||||
|
||||
<?php if (count($this->children[$this->category->id]) > 0) : ?>
|
||||
<?php foreach ($this->children[$this->category->id] as $id => $child) : ?>
|
||||
<?php
|
||||
if ($this->params->get('show_empty_categories') || $child->getNumItems(true) || count($child->getChildren())) :
|
||||
if (!isset($this->children[$this->category->id][$id + 1])) :
|
||||
$class = ' class="last"';
|
||||
endif;
|
||||
?>
|
||||
|
||||
<div<?php echo $class; ?>>
|
||||
<?php $class = ''; ?>
|
||||
<?php if ($lang->isRtl()) : ?>
|
||||
<h3 class="page-header item-title">
|
||||
<?php if ( $this->params->get('show_cat_num_articles', 1)) : ?>
|
||||
<span class="badge badge-info tip hasTooltip" title="<?php echo JHtml::tooltipText('COM_CONTENT_NUM_ITEMS'); ?>">
|
||||
<?php echo $child->getNumItems(true); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
<a href="<?php echo JRoute::_(ContentHelperRoute::getCategoryRoute($child->id));?>">
|
||||
<?php echo $this->escape($child->title); ?></a>
|
||||
|
||||
<?php if (count($child->getChildren()) > 0 && $this->maxLevel > 1) : ?>
|
||||
<a href="#category-<?php echo $child->id;?>" data-toggle="collapse" data-toggle="button" class="btn btn-mini pull-right"><span class="icon-plus"></span></a>
|
||||
<?php endif;?>
|
||||
</h3>
|
||||
<?php else : ?>
|
||||
<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 JHtml::tooltipText('COM_CONTENT_NUM_ITEMS'); ?>">
|
||||
<?php echo $child->getNumItems(true); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (count($child->getChildren()) > 0 && $this->maxLevel > 1) : ?>
|
||||
<a href="#category-<?php echo $child->id;?>" data-toggle="collapse" data-toggle="button" class="btn btn-mini pull-right"><span class="icon-plus"></span></a>
|
||||
<?php endif;?>
|
||||
<?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 && $this->maxLevel > 1) :?>
|
||||
<div class="collapse fade" id="category-<?php echo $child->id;?>">
|
||||
<?php
|
||||
$this->children[$child->id] = $child->getChildren();
|
||||
$this->category = $child;
|
||||
$this->maxLevel--;
|
||||
echo $this->loadTemplate('children');
|
||||
$this->category = $child->getParent();
|
||||
$this->maxLevel++;
|
||||
?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
@ -0,0 +1,96 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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="blog-featured<?php echo $this->pageclass_sfx;?>" itemscope itemtype="http://schema.org/Blog">
|
||||
<?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 clearfix">
|
||||
<?php foreach ($this->lead_items as &$item) : ?>
|
||||
<div class="leading-<?php echo $leadingcount; ?><?php echo $item->state == 0 ? ' system-unpublished' : null; ?> clearfix"
|
||||
itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
|
||||
<?php
|
||||
$this->item = &$item;
|
||||
echo $this->loadTemplate('item');
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
$leadingcount++;
|
||||
?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
$introcount = (count($this->intro_items));
|
||||
$counter = 0;
|
||||
?>
|
||||
<?php if (!empty($this->intro_items)) : ?>
|
||||
<?php foreach ($this->intro_items as $key => &$item) : ?>
|
||||
|
||||
<?php
|
||||
$key = ($key - $leadingcount) + 1;
|
||||
$rowcount = (((int) $key - 1) % (int) $this->columns) + 1;
|
||||
$row = $counter / $this->columns;
|
||||
|
||||
if ($rowcount == 1) : ?>
|
||||
|
||||
<div class="items-row cols-<?php echo (int) $this->columns;?> <?php echo 'row-' . $row; ?> row-fluid">
|
||||
<?php endif; ?>
|
||||
<div class="item column-<?php echo $rowcount;?><?php echo $item->state == 0 ? ' system-unpublished' : null; ?> span<?php echo round((12 / $this->columns));?>"
|
||||
itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
|
||||
<?php
|
||||
$this->item = &$item;
|
||||
echo $this->loadTemplate('item');
|
||||
?>
|
||||
</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,100 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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 || strtotime($this->item->publish_up) > strtotime(JFactory::getDate())
|
||||
|| ((strtotime($this->item->publish_down) < strtotime(JFactory::getDate())) && $this->item->publish_down != JFactory::getDbo()->getNullDate())) : ?>
|
||||
<div class="system-unpublished">
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_title')) : ?>
|
||||
<h2 class="item-title" itemprop="name">
|
||||
<?php if ($params->get('link_titles') && $params->get('access-view')) : ?>
|
||||
<a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language)); ?>" itemprop="url">
|
||||
<?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 (strtotime($this->item->publish_up) > strtotime(JFactory::getDate())) : ?>
|
||||
<span class="label label-warning"><?php echo JText::_('JNOTPUBLISHEDYET'); ?></span>
|
||||
<?php endif; ?>
|
||||
<?php if ((strtotime($this->item->publish_down) < strtotime(JFactory::getDate())) && $this->item->publish_down != JFactory::getDbo()->getNullDate()) : ?>
|
||||
<span class="label label-warning"><?php echo JText::_('JEXPIRED'); ?></span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($canEdit || $params->get('show_print_icon') || $params->get('show_email_icon')) : ?>
|
||||
<?php echo JLayoutHelper::render('joomla.content.icons', array('params' => $params, 'item' => $this->item, 'print' => false)); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php // Todo 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_create_date')
|
||||
|| $params->get('show_hits') || $params->get('show_category') || $params->get('show_parent_category') || $params->get('show_author') ); ?>
|
||||
|
||||
<?php if ($useDefList && ($info == 0 || $info == 2)) : ?>
|
||||
<?php echo JLayoutHelper::render('joomla.content.info_block.block', array('item' => $this->item, 'params' => $params, 'position' => 'above')); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?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="pull-<?php echo htmlspecialchars($imgfloat); ?> item-image"> <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_intro')) : ?>
|
||||
<?php echo $this->item->event->afterDisplayTitle; ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $this->item->event->beforeDisplayContent; ?> <?php echo $this->item->introtext; ?>
|
||||
|
||||
<?php if ($useDefList && ($info == 1 || $info == 2)) : ?>
|
||||
<?php echo JLayoutHelper::render('joomla.content.info_block.block', array('item' => $this->item, 'params' => $params, 'position' => 'below')); ?>
|
||||
<?php if ($params->get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?>
|
||||
<?php echo JLayoutHelper::render('joomla.content.tags', $this->item->tags->itemTags); ?>
|
||||
<?php endif; ?>
|
||||
<?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, $this->item->language));
|
||||
else :
|
||||
$menu = JFactory::getApplication()->getMenu();
|
||||
$active = $menu->getActive();
|
||||
$itemId = $active->id;
|
||||
$link = new JUri(JRoute::_('index.php?option=com_users&view=login&Itemid=' . $itemId, false));
|
||||
$link->setVar('return', base64_encode(JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language), false)));
|
||||
endif; ?>
|
||||
|
||||
<?php echo JLayoutHelper::render('joomla.content.readmore', array('item' => $this->item, 'params' => $params, 'link' => $link)); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->item->state == 0 || strtotime($this->item->publish_up) > strtotime(JFactory::getDate())
|
||||
|| ((strtotime($this->item->publish_down) < strtotime(JFactory::getDate())) && $this->item->publish_down != '0000-00-00 00:00:00' )) : ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $this->item->event->afterDisplayContent; ?>
|
||||
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
<ol 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, $item->language)); ?>">
|
||||
<?php echo $item->title; ?></a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
173
deployed/trada/templates/trada/html/com_content/form/edit.php
Normal file
173
deployed/trada/templates/trada/html/com_content/form/edit.php
Normal file
@ -0,0 +1,173 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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.tabstate');
|
||||
JHtml::_('behavior.keepalive');
|
||||
JHtml::_('behavior.calendar');
|
||||
JHtml::_('behavior.formvalidator');
|
||||
JHtml::_('formbehavior.chosen', 'select');
|
||||
JHtml::_('behavior.modal', 'a.modal_jform_contenthistory');
|
||||
|
||||
// Create shortcut to parameters.
|
||||
$params = $this->state->get('params');
|
||||
|
||||
// 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';
|
||||
}
|
||||
|
||||
JFactory::getDocument()->addScriptDeclaration("
|
||||
Joomla.submitbutton = function(task)
|
||||
{
|
||||
if (task == 'article.cancel' || document.formvalidator.isValid(document.getElementById('adminForm')))
|
||||
{
|
||||
" . $this->form->getField('articletext')->save() . "
|
||||
Joomla.submitform(task);
|
||||
}
|
||||
}
|
||||
");
|
||||
?>
|
||||
<div class="edit item-page<?php echo $this->pageclass_sfx; ?>">
|
||||
<?php if ($params->get('show_page_heading')) : ?>
|
||||
<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')">
|
||||
<span class="icon-ok"></span><?php echo JText::_('JSAVE') ?>
|
||||
</button>
|
||||
</div>
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn" onclick="Joomla.submitbutton('article.cancel')">
|
||||
<span class="icon-cancel"></span><?php echo JText::_('JCANCEL') ?>
|
||||
</button>
|
||||
</div>
|
||||
<?php if ($params->get('save_history', 0)) : ?>
|
||||
<div class="btn-group">
|
||||
<?php echo $this->form->getInput('contenthistory'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<fieldset>
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#editor" data-toggle="tab"><?php echo JText::_('COM_CONTENT_ARTICLE_CONTENT') ?></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; ?>
|
||||
<?php foreach ($this->form->getFieldsets('params') as $name => $fieldSet) : ?>
|
||||
<li><a href="#params-<?php echo $name; ?>" data-toggle="tab"><?php echo JText::_($fieldSet->label); ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
<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">
|
||||
<?php echo $this->form->renderField('title'); ?>
|
||||
|
||||
<?php if (is_null($this->item->id)) : ?>
|
||||
<?php echo $this->form->renderField('alias'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $this->form->getInput('articletext'); ?>
|
||||
</div>
|
||||
<?php if ($params->get('show_urls_images_frontend')): ?>
|
||||
<div class="tab-pane" id="images">
|
||||
<?php echo $this->form->renderField('image_intro', 'images'); ?>
|
||||
<?php echo $this->form->renderField('image_intro_alt', 'images'); ?>
|
||||
<?php echo $this->form->renderField('image_intro_caption', 'images'); ?>
|
||||
<?php echo $this->form->renderField('float_intro', 'images'); ?>
|
||||
<?php echo $this->form->renderField('image_fulltext', 'images'); ?>
|
||||
<?php echo $this->form->renderField('image_fulltext_alt', 'images'); ?>
|
||||
<?php echo $this->form->renderField('image_fulltext_caption', 'images'); ?>
|
||||
<?php echo $this->form->renderField('float_fulltext', 'images'); ?>
|
||||
<?php echo $this->form->renderField('urla', 'urls'); ?>
|
||||
<?php echo $this->form->renderField('urlatext', 'urls'); ?>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('targeta', 'urls'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo $this->form->renderField('urlb', 'urls'); ?>
|
||||
<?php echo $this->form->renderField('urlbtext', 'urls'); ?>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('targetb', 'urls'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo $this->form->renderField('urlc', 'urls'); ?>
|
||||
<?php echo $this->form->renderField('urlctext', 'urls'); ?>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getInput('targetc', 'urls'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php foreach ($this->form->getFieldsets('params') as $name => $fieldSet) : ?>
|
||||
<div class="tab-pane" id="params-<?php echo $name; ?>">
|
||||
<?php foreach ($this->form->getFieldset($name) as $field) : ?>
|
||||
<?php echo $field->renderField(); ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<div class="tab-pane" id="publishing">
|
||||
<?php echo $this->form->renderField('catid'); ?>
|
||||
<?php echo $this->form->renderField('tags'); ?>
|
||||
<?php if ($params->get('save_history', 0)) : ?>
|
||||
<?php echo $this->form->renderField('version_note'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $this->form->renderField('created_by_alias'); ?>
|
||||
<?php if ($this->item->params->get('access-change')) : ?>
|
||||
<?php echo $this->form->renderField('state'); ?>
|
||||
<?php echo $this->form->renderField('featured'); ?>
|
||||
<?php echo $this->form->renderField('publish_up'); ?>
|
||||
<?php echo $this->form->renderField('publish_down'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $this->form->renderField('access'); ?>
|
||||
<?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">
|
||||
<?php echo $this->form->renderField('language'); ?>
|
||||
</div>
|
||||
<div class="tab-pane" id="metadata">
|
||||
<?php echo $this->form->renderField('metadesc'); ?>
|
||||
<?php echo $this->form->renderField('metakey'); ?>
|
||||
|
||||
<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>
|
||||
@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_finder
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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.core');
|
||||
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');
|
||||
JHtml::stylesheet('com_finder/finder.css', false, true, false);
|
||||
?>
|
||||
|
||||
<div class="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>
|
||||
@ -0,0 +1,102 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_finder
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
if ($this->params->get('show_advanced', 1) || $this->params->get('show_autosuggest', 1))
|
||||
{
|
||||
JHtml::_('jquery.framework');
|
||||
|
||||
$script = "
|
||||
jQuery(function() {";
|
||||
if ($this->params->get('show_advanced', 1))
|
||||
{
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
$script .= "
|
||||
jQuery('#finder-search').on('submit', function(e){
|
||||
e.stopPropagation();
|
||||
// Disable select boxes with no value selected.
|
||||
jQuery('#advancedSearch').find('select').each(function(index, el) {
|
||||
var el = jQuery(el);
|
||||
if(!el.val()){
|
||||
el.attr('disabled', 'disabled');
|
||||
}
|
||||
});
|
||||
});";
|
||||
}
|
||||
/*
|
||||
* This segment of code sets up the autocompleter.
|
||||
*/
|
||||
if ($this->params->get('show_autosuggest', 1))
|
||||
{
|
||||
JHtml::_('script', 'media/jui/js/jquery.autocomplete.min.js', false, false, false, false, true);
|
||||
|
||||
$script .= "
|
||||
var suggest = jQuery('#q').autocomplete({
|
||||
serviceUrl: '" . JRoute::_('index.php?option=com_finder&task=suggestions.suggest&format=json&tmpl=component', false) . "',
|
||||
paramName: 'q',
|
||||
minChars: 1,
|
||||
maxHeight: 400,
|
||||
width: 300,
|
||||
zIndex: 9999,
|
||||
deferRequestBy: 500
|
||||
});";
|
||||
}
|
||||
|
||||
$script .= "
|
||||
});";
|
||||
|
||||
JFactory::getDocument()->addScriptDeclaration($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">
|
||||
<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"><span class="icon-search icon-white"></span> <?php echo JText::_('JSEARCH_FILTER_SUBMIT');?></button>
|
||||
<?php else: ?>
|
||||
<button name="Search" type="submit" class="btn btn-primary disabled"><span class="icon-search icon-white"></span> <?php echo JText::_('JSEARCH_FILTER_SUBMIT');?></button>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('show_advanced', 1)) : ?>
|
||||
<a href="#advancedSearch" data-toggle="collapse" class="btn"><span class="icon-list"></span> <?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<?php if ($this->params->get('expand_advanced', 0)) echo ' in'?>">
|
||||
<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>
|
||||
@ -0,0 +1,64 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_finder
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Get the mime type class.
|
||||
$mime = !empty($this->result->mime) ? 'mime-' . $this->result->mime : null;
|
||||
|
||||
$show_description = $this->params->get('show_description', 1);
|
||||
|
||||
if ($show_description)
|
||||
{
|
||||
// Calculate number of characters to display around the result
|
||||
$term_length = JString::strlen($this->query->input);
|
||||
$desc_length = $this->params->get('description_length', 255);
|
||||
$pad_length = $term_length < $desc_length ? floor(($desc_length - $term_length) / 2) : 0;
|
||||
|
||||
// Find the position of the search term
|
||||
$pos = JString::strpos(JString::strtolower($this->result->description), JString::strtolower($this->query->input));
|
||||
|
||||
// Find a potential start point
|
||||
$start = ($pos && $pos > $pad_length) ? $pos - $pad_length : 0;
|
||||
|
||||
// Find a space between $start and $pos, start right after it.
|
||||
$space = JString::strpos($this->result->description, ' ', $start > 0 ? $start - 1 : 0);
|
||||
$start = ($space && $space < $pos) ? $space + 1 : $start;
|
||||
|
||||
$description = JHtml::_('string.truncate', JString::substr($this->result->description, $start), $desc_length, true);
|
||||
}
|
||||
|
||||
$route = $this->result->route;
|
||||
|
||||
// Get the route with highlighting information.
|
||||
if (!empty($this->query->highlight)
|
||||
&& empty($this->result->mime)
|
||||
&& $this->params->get('highlight_terms', 1)
|
||||
&& JPluginHelper::isEnabled('system', 'highlight'))
|
||||
{
|
||||
$route .= '&highlight=' . base64_encode(json_encode($this->query->highlight));
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<li>
|
||||
<h4 class="result-title <?php echo $mime; ?>">
|
||||
<a href="<?php echo JRoute::_($route); ?>"><?php echo $this->result->title; ?></a>
|
||||
</h4>
|
||||
<?php if ($show_description) : ?>
|
||||
<p class="result-text<?php echo $this->pageclass_sfx; ?>">
|
||||
<?php echo $description; ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('show_url', 1)) : ?>
|
||||
<div class="small result-url<?php echo $this->pageclass_sfx; ?>">
|
||||
<?php echo $this->baseUrl, JRoute::_($this->result->route); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
@ -0,0 +1,81 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_finder
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
<?php // Display the suggested search if it is different from the current search. ?>
|
||||
<?php if (($this->suggested && $this->params->get('show_suggested_query', 1)) || ($this->explained && $this->params->get('show_explained_query', 1))) : ?>
|
||||
<div id="search-query-explained">
|
||||
<?php // Display the suggested search query. ?>
|
||||
<?php if ($this->suggested && $this->params->get('show_suggested_query', 1)) : ?>
|
||||
<?php // Replace the base query string with the suggested query string. ?>
|
||||
<?php $uri = JUri::getInstance($this->query->toUri()); ?>
|
||||
<?php $uri->setVar('q', $this->suggested); ?>
|
||||
|
||||
<?php // Compile the suggested query link. ?>
|
||||
<?php $linkUrl = JRoute::_($uri->toString(array('path', 'query'))); ?>
|
||||
<?php $link = '<a href="' . $linkUrl . '">' . $this->escape($this->suggested) . '</a>'; ?>
|
||||
|
||||
<?php echo JText::sprintf('COM_FINDER_SEARCH_SIMILAR', $link); ?>
|
||||
|
||||
<?php // Display the explained search query. ?>
|
||||
<?php elseif ($this->explained && $this->params->get('show_explained_query', 1)) : ?>
|
||||
<?php echo $this->explained; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php // Display the 'no results' message and exit the template. ?>
|
||||
<?php if ($this->total == 0) : ?>
|
||||
<div id="search-result-empty">
|
||||
<h2><?php echo JText::_('COM_FINDER_SEARCH_NO_RESULTS_HEADING'); ?></h2>
|
||||
<?php $multilang = JFactory::getApplication()->getLanguageFilter() ? '_MULTILANG' : ''; ?>
|
||||
<p><?php echo JText::sprintf('COM_FINDER_SEARCH_NO_RESULTS_BODY' . $multilang, $this->escape($this->query->input)); ?></p>
|
||||
</div>
|
||||
|
||||
<?php // Exit this template. ?>
|
||||
<?php return; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php // Activate the highlighter if enabled. ?>
|
||||
<?php if (!empty($this->query->highlight) && $this->params->get('highlight_terms', 1)) : ?>
|
||||
<?php JHtml::_('behavior.highlighter', $this->query->highlight); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php // Display a list of results ?>
|
||||
<br id="highlighter-start" />
|
||||
<ul class="search-results<?php echo $this->pageclass_sfx; ?> list-striped">
|
||||
<?php $this->baseUrl = JUri::getInstance()->toString(array('scheme', 'host', 'port')); ?>
|
||||
|
||||
<?php foreach ($this->results as $result) : ?>
|
||||
<?php $this->result = &$result; ?>
|
||||
<?php $layout = $this->getLayoutFile($this->result->layout); ?>
|
||||
<?php echo $this->loadTemplate($layout); ?>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<br id="highlighter-end" />
|
||||
|
||||
<?php // Display the pagination ?>
|
||||
<div class="search-pagination">
|
||||
<div class="pagination">
|
||||
<?php echo $this->pagination->getPagesLinks(); ?>
|
||||
</div>
|
||||
<div class="search-pages-counter">
|
||||
<?php
|
||||
// Prepare the pagination string. Results X - Y of Z
|
||||
$start = (int) $this->pagination->get('limitstart') + 1;
|
||||
$total = (int) $this->pagination->get('total');
|
||||
$limit = (int) $this->pagination->get('limit') * $this->pagination->get('pages.current');
|
||||
$limit = (int) ($limit > $total ? $total : $limit);
|
||||
|
||||
echo JText::sprintf('COM_FINDER_SEARCH_RESULTS_OF', $start, $limit, $total);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
@ -0,0 +1,85 @@
|
||||
<?php
|
||||
/**
|
||||
* @version 2.6.x
|
||||
* @package K2
|
||||
* @author JoomlaWorks http://www.joomlaworks.net
|
||||
* @copyright Copyright (c) 2006 - 2014 JoomlaWorks Ltd. All rights reserved.
|
||||
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
|
||||
<!-- Start K2 Category Layout -->
|
||||
<div id="k2Container" class="itemListView">
|
||||
|
||||
<?php if((isset($this->leading) || isset($this->primary) || isset($this->secondary) || isset($this->links)) && (count($this->leading) || count($this->primary) || count($this->secondary) || count($this->links))): ?>
|
||||
<!-- Item list -->
|
||||
<div class="itemList">
|
||||
|
||||
<?php if(isset($this->leading) && count($this->leading)): ?>
|
||||
<?php foreach($this->leading as $key=>$item): ?>
|
||||
<?php
|
||||
// Load category_item.php by default
|
||||
$this->item = $item;
|
||||
echo $this->loadTemplate('item');
|
||||
?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if(isset($this->primary) && count($this->primary)): ?>
|
||||
<?php foreach($this->primary as $key=>$item): ?>
|
||||
<?php
|
||||
// Load category_item.php by default
|
||||
$this->item=$item;
|
||||
echo $this->loadTemplate('item');
|
||||
?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if(isset($this->secondary) && count($this->secondary)): ?>
|
||||
<?php foreach($this->secondary as $key=>$item): ?>
|
||||
<?php
|
||||
// Load category_item.php by default
|
||||
$this->item = $item;
|
||||
echo $this->loadTemplate('item');
|
||||
?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if(isset($this->links) && count($this->links)): ?>
|
||||
<?php foreach($this->links as $key=>$item): ?>
|
||||
<?php
|
||||
// Load category_item_links.php by default
|
||||
$this->item=$item;
|
||||
echo $this->loadTemplate('item');
|
||||
?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Pagination -->
|
||||
<?php if($this->pagination->getPagesLinks()): ?>
|
||||
<div class="t-pagination clearfix">
|
||||
<div class="t-pagination_number pull-left">
|
||||
<?php if($this->params->get('catPagination')) echo $this->pagination->getPagesLinks(); ?>
|
||||
</div>
|
||||
<div class="t-pagination_nav pull-right">
|
||||
<?php $data = $this->pagination->getData(); ?>
|
||||
<ul>
|
||||
<?php if( property_exists( $data, 'previous' ) && $data->previous->link ) : ?>
|
||||
<li><a class="fa fa-caret-left" href="<?php echo $data->previous->link; ?>"></a></li>
|
||||
<?php endif; ?>
|
||||
<?php if( property_exists( $data, 'next' ) && $data->next->link ) : ?>
|
||||
<li><a class="fa fa-caret-right" href="<?php echo $data->next->link; ?>"></a></li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<!-- End K2 Category Layout -->
|
||||
@ -0,0 +1,113 @@
|
||||
<?php
|
||||
/**
|
||||
* @version 2.6.x
|
||||
* @package K2
|
||||
* @author JoomlaWorks http://www.joomlaworks.net
|
||||
* @copyright Copyright (c) 2006 - 2014 JoomlaWorks Ltd. All rights reserved.
|
||||
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Define default image size (do not change)
|
||||
K2HelperUtilities::setDefaultImage($this->item, 'itemlist', $this->params);
|
||||
|
||||
?>
|
||||
|
||||
<div class="t-single_blog">
|
||||
<?php if($this->item->params->get('catItemImage') && !empty($this->item->image)): ?>
|
||||
<!-- Item Image -->
|
||||
<a href="<?php echo $this->item->link; ?>" title="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>">
|
||||
<img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" class="img-responsive" />
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<div class="t-home_single_blog t-single_blog_text clearfix">
|
||||
<div class="col-lg-1 col-md-2 col-sm-2 col-xs-12 t-home_bloger_img">
|
||||
<div class="row">
|
||||
<div class="t-glyp_icon ">
|
||||
<?php if($this->item->params->get('catItemImage') && !empty($this->item->image)): ?>
|
||||
<span data-js-prompt="&#xe07f;" data-icon="" aria-hidden="true" class="glyph-item mega"></span>
|
||||
<?php endif; ?>
|
||||
<?php if(property_exists( $this->item->author, 'avatar' )): ?>
|
||||
<img class="wow swing center animated" alt="" data-wow-iteration="1" src="<?php echo $this->item->author->avatar; ?>" width="60">
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-11 col-md-10 col-sm-10 col-xs-12 t_home_blog_content pull-right">
|
||||
<div class="row t-home_blog_content_inner">
|
||||
<?php if($this->item->params->get('catItemTitle')): ?>
|
||||
<h5><?php echo $this->item->title; ?></h5>
|
||||
<?php endif; ?>
|
||||
<ul class="t-home_blog_info">
|
||||
<?php if($this->item->params->get('catItemDateCreated')): ?>
|
||||
<!-- Date created -->
|
||||
<li><span><?php echo JHTML::_( 'date', $this->item->created , 'M d Y' ); ?></span></li>
|
||||
<?php endif; ?>
|
||||
<?php if($this->item->params->get('catItemAuthor')): ?>
|
||||
<!-- Item Author -->
|
||||
<li><span class="catItemAuthor">
|
||||
<?php echo K2HelperUtilities::writtenBy($this->item->author->profile->gender); ?>
|
||||
<?php if(isset($this->item->author->link) && $this->item->author->link): ?>
|
||||
<a rel="author" href="<?php echo $this->item->author->link; ?>"><?php echo $this->item->author->name; ?></a>
|
||||
<?php else: ?>
|
||||
<?php echo $this->item->author->name; ?>
|
||||
<?php endif; ?>
|
||||
</span></li>
|
||||
<?php endif; ?>
|
||||
<?php if($this->item->params->get('catItemCommentsAnchor') && ( ($this->item->params->get('comments') == '2' && !$this->user->guest) || ($this->item->params->get('comments') == '1')) ): ?>
|
||||
<!-- Anchor link to comments below -->
|
||||
<li class="catItemCommentsLink">
|
||||
<?php if(!empty($this->item->event->K2CommentsCounter)): ?>
|
||||
<!-- K2 Plugins: K2CommentsCounter -->
|
||||
<span>
|
||||
<i aria-hidden="true" class="icon-bubbles"></i> <?php echo $this->item->event->K2CommentsCounter; ?>
|
||||
</span>
|
||||
<?php else: ?>
|
||||
<?php if($this->item->numOfComments > 0): ?>
|
||||
<a href="<?php echo $this->item->link; ?>#itemCommentsAnchor">
|
||||
<span><i aria-hidden="true" class="icon-bubbles"></i> <?php echo $this->item->numOfComments; ?></span>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<a href="<?php echo $this->item->link; ?>#itemCommentsAnchor">
|
||||
<span><i aria-hidden="true" class="icon-bubbles"></i> 0</span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php if($this->item->params->get('catItemRating')): ?>
|
||||
<!-- Item Rating -->
|
||||
<div class="catItemRatingBlock">
|
||||
<div class="itemRatingForm">
|
||||
<ul class="itemRatingList">
|
||||
<li class="itemCurrentRating" id="itemCurrentRating<?php echo $this->item->id; ?>" style="width:<?php echo $this->item->votingPercentage; ?>%;"></li>
|
||||
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_1_STAR_OUT_OF_5'); ?>" class="one-star">1</a></li>
|
||||
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_2_STARS_OUT_OF_5'); ?>" class="two-stars">2</a></li>
|
||||
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_3_STARS_OUT_OF_5'); ?>" class="three-stars">3</a></li>
|
||||
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_4_STARS_OUT_OF_5'); ?>" class="four-stars">4</a></li>
|
||||
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_5_STARS_OUT_OF_5'); ?>" class="five-stars">5</a></li>
|
||||
</ul>
|
||||
<div id="itemRatingLog<?php echo $this->item->id; ?>" class="itemRatingLog"><?php echo $this->item->numOfvotes; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
<?php if($this->item->params->get('catItemIntroText')): ?>
|
||||
<!-- Item introtext -->
|
||||
<div class="catItemIntroText">
|
||||
<?php echo $this->item->introtext; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->item->params->get('catItemReadMore')): ?>
|
||||
<!-- Item "read more..." link -->
|
||||
<a class="t-btn t-btn_bg k2ReadMore" href="<?php echo $this->item->link; ?>">
|
||||
<?php echo JText::_('K2_READ_MORE'); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/**
|
||||
* @version 2.6.x
|
||||
* @package K2
|
||||
* @author JoomlaWorks http://www.joomlaworks.net
|
||||
* @copyright Copyright (c) 2006 - 2014 JoomlaWorks Ltd. All rights reserved.
|
||||
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Define default image size (do not change)
|
||||
K2HelperUtilities::setDefaultImage($this->item, 'itemlist', $this->params);
|
||||
|
||||
?>
|
||||
|
||||
<!-- Start K2 Item Layout (links) -->
|
||||
<div class="catItemView group<?php echo ucfirst($this->item->itemGroup); ?><?php if($this->item->params->get('pageclass_sfx')) echo ' '.$this->item->params->get('pageclass_sfx'); ?>">
|
||||
<?php if($this->item->params->get('catItemTitle')): ?>
|
||||
<!-- Item title -->
|
||||
<h3 class="catItemTitle">
|
||||
<?php if ($this->item->params->get('catItemTitleLinked')): ?>
|
||||
<a href="<?php echo $this->item->link; ?>">
|
||||
<?php echo $this->item->title; ?>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<?php echo $this->item->title; ?>
|
||||
<?php endif; ?>
|
||||
</h3>
|
||||
|
||||
<?php if($this->item->params->get('catItemImage') && !empty($this->item->image)): ?>
|
||||
<!-- Item Image -->
|
||||
<div class="catItemImageBlock">
|
||||
<span class="catItemImage">
|
||||
<a href="<?php echo $this->item->link; ?>" title="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>">
|
||||
<img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" />
|
||||
</a>
|
||||
</span>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<!-- End K2 Item Layout (links) -->
|
||||
214
deployed/trada/templates/trada/html/com_k2/default/item.php
Normal file
214
deployed/trada/templates/trada/html/com_k2/default/item.php
Normal file
@ -0,0 +1,214 @@
|
||||
<?php
|
||||
/**
|
||||
* @version 2.6.x
|
||||
* @package K2
|
||||
* @author JoomlaWorks http://www.joomlaworks.net
|
||||
* @copyright Copyright (c) 2006 - 2014 JoomlaWorks Ltd. All rights reserved.
|
||||
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
|
||||
<div class="t-blog_detail clearfix">
|
||||
<div class="col-lg-1 col-md-1 col-sm-2 col-xs-12 t-blog_detail_bloger_img">
|
||||
<div class="row">
|
||||
<div class="t-glyp_icon ">
|
||||
<span class="glyph-item mega" aria-hidden="true" data-icon="" data-js-prompt="&#xe07f;"></span>
|
||||
<?php if(property_exists( $this->item->author, 'avatar' )): ?>
|
||||
<img class="wow swing center animated" alt="" data-wow-iteration="1" style="visibility: visible; animation-iteration-count: 1; animation-name: swing;" src="<?php echo $this->item->author->avatar; ?>" width="60">
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-11 col-md-11 col-sm-10 col-xs-12 t-blog_detail_content">
|
||||
<?php if($this->item->params->get('itemImage') && !empty($this->item->image)): ?>
|
||||
<!-- Item Image -->
|
||||
<img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" class="img-responsive" />
|
||||
<?php endif; ?>
|
||||
<div class="t-blog_detail_info">
|
||||
<?php if($this->item->params->get('itemTitle')): ?>
|
||||
<h2><?php echo $this->item->title; ?></h2>
|
||||
<?php endif; ?>
|
||||
<ul class="t-blog_general_info">
|
||||
<?php if($this->item->params->get('catItemDateCreated')): ?>
|
||||
<!-- Date created -->
|
||||
<li><span><?php echo JHTML::_( 'date', $this->item->created , 'M d Y' ); ?></span></li>
|
||||
<?php endif; ?>
|
||||
<?php if($this->item->params->get('catItemAuthor')): ?>
|
||||
<!-- Item Author -->
|
||||
<li><span class="catItemAuthor">
|
||||
<?php echo K2HelperUtilities::writtenBy($this->item->author->profile->gender); ?>
|
||||
<?php echo $this->item->author->name; ?>
|
||||
</span></li>
|
||||
<?php endif; ?>
|
||||
<?php if($this->item->params->get('catItemCommentsAnchor') && ( ($this->item->params->get('comments') == '2' && !$this->user->guest) || ($this->item->params->get('comments') == '1')) ): ?>
|
||||
<!-- Anchor link to comments below -->
|
||||
<li class="catItemCommentsLink">
|
||||
<?php if(!empty($this->item->event->K2CommentsCounter)): ?>
|
||||
<!-- K2 Plugins: K2CommentsCounter -->
|
||||
<span>
|
||||
<i aria-hidden="true" class="icon-bubbles"></i> <?php echo $this->item->event->K2CommentsCounter; ?>
|
||||
</span>
|
||||
<?php else: ?>
|
||||
<?php if($this->item->numOfComments > 0): ?>
|
||||
<a href="<?php echo $this->item->link; ?>#itemCommentsAnchor">
|
||||
<span><i class="icon-bubbles" aria-hidden="true"></i> <?php echo $this->item->numOfComments; ?></span>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<a href="<?php echo $this->item->link; ?>#itemCommentsAnchor">
|
||||
<span><i aria-hidden="true" class="icon-bubbles"></i> 0</span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php if($this->item->params->get('itemRating')): ?>
|
||||
<!-- Item Rating -->
|
||||
<li>
|
||||
<div class="itemRatingBlock">
|
||||
<div class="itemRatingForm">
|
||||
<ul class="itemRatingList">
|
||||
<li class="itemCurrentRating" id="itemCurrentRating<?php echo $this->item->id; ?>" style="width:<?php echo $this->item->votingPercentage; ?>%;"></li>
|
||||
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_1_STAR_OUT_OF_5'); ?>" class="one-star">1</a></li>
|
||||
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_2_STARS_OUT_OF_5'); ?>" class="two-stars">2</a></li>
|
||||
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_3_STARS_OUT_OF_5'); ?>" class="three-stars">3</a></li>
|
||||
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_4_STARS_OUT_OF_5'); ?>" class="four-stars">4</a></li>
|
||||
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_5_STARS_OUT_OF_5'); ?>" class="five-stars">5</a></li>
|
||||
</ul>
|
||||
<div id="itemRatingLog<?php echo $this->item->id; ?>" class="itemRatingLog"><?php echo $this->item->numOfvotes; ?></div>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="t-blog_detail_text">
|
||||
<?php if(!empty($this->item->fulltext)): ?>
|
||||
<?php if($this->item->params->get('itemIntroText')): ?>
|
||||
<!-- Item introtext -->
|
||||
<div class="itemIntroText">
|
||||
<?php echo $this->item->introtext; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if($this->item->params->get('itemFullText')): ?>
|
||||
<!-- Item fulltext -->
|
||||
<div class="itemFullText">
|
||||
<?php echo $this->item->fulltext; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<!-- Item text -->
|
||||
<div class="itemFullText">
|
||||
<?php echo $this->item->introtext; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="t-pagination clearfix">
|
||||
<?php if($this->item->params->get('itemNavigation') && !JRequest::getCmd('print') && (isset($this->item->nextLink) || isset($this->item->previousLink))): ?>
|
||||
<div class="t-pagination_nav pull-left">
|
||||
<ul>
|
||||
<?php if(isset($this->item->previousLink)): ?>
|
||||
<li><a class="fa fa-caret-left" href="<?php echo $this->item->previousLink; ?>"></a></li>
|
||||
<?php endif; ?>
|
||||
<?php if(isset($this->item->nextLink)): ?>
|
||||
<li><a class="fa fa-caret-right" href="<?php echo $this->item->nextLink; ?>"></a></li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if($this->item->params->get('itemTwitterButton',1) || $this->item->params->get('itemFacebookButton',1) || $this->item->params->get('itemGooglePlusOneButton',1)): ?>
|
||||
<!-- Social sharing -->
|
||||
<div class="t-blog_social_links pull-right">
|
||||
<ul>
|
||||
|
||||
<?php if($this->item->params->get('itemTwitterButton',1)): ?>
|
||||
<!-- Twitter Button -->
|
||||
<li><a href="https://twitter.com/intent/tweet?text=<?php echo K2HelperUtilities::cleanHtml($this->item->title) . ' ' . $this->item->link; ?>" class="fa fa-twitter"></a></li>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($this->item->params->get('itemFacebookButton',1)): ?>
|
||||
<!-- Facebook Button -->
|
||||
<li><a href="https://www.facebook.com/sharer.php?u=<?php echo $this->item->link; ?>&t=<?php echo K2HelperUtilities::cleanHtml($this->item->title); ?>" class="fa fa-facebook"></a></li>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($this->item->params->get('itemGooglePlusOneButton',1)): ?>
|
||||
<!-- Google +1 Button -->
|
||||
<li><a href="https://plus.google.com/share?url=<?php echo $this->item->link; ?>" class="fa fa-google-plus"></a></li>
|
||||
<?php endif; ?>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- BLOG COMMENT START -->
|
||||
<?php if($this->item->params->get('itemComments') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2')) && empty($this->item->event->K2CommentsBlock)): ?>
|
||||
<!-- Item comments -->
|
||||
<a name="itemCommentsAnchor" id="itemCommentsAnchor"></a>
|
||||
|
||||
<div class="t-blog_comments xitemComments">
|
||||
|
||||
<?php if($this->item->params->get('commentsFormPosition')=='above' && $this->item->params->get('itemComments') && !JRequest::getInt('print') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2' && K2HelperPermissions::canAddComment($this->item->catid)))): ?>
|
||||
<!-- Item comments form -->
|
||||
<div class="itemCommentsForm">
|
||||
<?php echo $this->loadTemplate('comments_form'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($this->item->numOfComments>0 && $this->item->params->get('itemComments') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2'))): ?>
|
||||
<!-- Item user comments -->
|
||||
<header class="t-section_subheader">
|
||||
<h4 class="itemCommentsCounter">
|
||||
<span><?php echo $this->item->numOfComments; ?></span> <?php echo ($this->item->numOfComments>1) ? JText::_('K2_COMMENTS') : JText::_('K2_COMMENT'); ?>
|
||||
</h4>
|
||||
<span class="t-section_subheader_border"></span>
|
||||
</header>
|
||||
|
||||
<div class="t-comment_listing itemCommentsList">
|
||||
<?php foreach ($this->item->comments as $key=>$comment): ?>
|
||||
<div class="t-single_user_cemment">
|
||||
<header class="t-single_comment_header clearfix">
|
||||
<h5><?php echo JFilterOutput::cleanText($comment->userName); ?></h5>
|
||||
<span><?php echo JHTML::_('date', $comment->commentDate, JText::_('K2_DATE_FORMAT_LC2')); ?></span>
|
||||
</header>
|
||||
<div class="t-single_comment_text">
|
||||
<p><?php echo $comment->commentText; ?></p>
|
||||
</div>
|
||||
<?php if($comment->reportUserLink): ?>
|
||||
<a href="<?php echo $comment->reportUserLink; ?>" class="t-single_comment_reply"><?php echo JText::_('K2_FLAG_AS_SPAMMER'); ?></a>
|
||||
<?php endif; ?>
|
||||
<?php if($comment->userImage): ?>
|
||||
<div class="t-single_comment_user_img">
|
||||
<img src="<?php echo $comment->userImage; ?>" alt="<?php echo JFilterOutput::cleanText($comment->userName); ?>" width="<?php echo $this->item->params->get('commenterImgWidth'); ?>" class="wow swing center animated" data-wow-iteration="1" alt="" style="visibility: visible; animation-iteration-count: 1; animation-name: swing;" />
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
|
||||
<div class="itemCommentsPagination">
|
||||
<?php echo $this->pagination->getPagesLinks(); ?>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($this->item->params->get('commentsFormPosition')=='below' && $this->item->params->get('itemComments') && !JRequest::getInt('print') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2' && K2HelperPermissions::canAddComment($this->item->catid)))): ?>
|
||||
<!-- Item comments form -->
|
||||
<div class="itemCommentsForm">
|
||||
<?php echo $this->loadTemplate('comments_form'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php $user = JFactory::getUser(); if ($this->item->params->get('comments') == '2' && $user->guest): ?>
|
||||
<div><?php echo JText::_('K2_LOGIN_TO_POST_COMMENTS'); ?></div>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
@ -0,0 +1,65 @@
|
||||
<?php
|
||||
/**
|
||||
* @version 2.6.x
|
||||
* @package K2
|
||||
* @author JoomlaWorks http://www.joomlaworks.net
|
||||
* @copyright Copyright (c) 2006 - 2014 JoomlaWorks Ltd. All rights reserved.
|
||||
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
<div class="t-blog_leave_comment">
|
||||
<header class="t-section_subheader">
|
||||
<h4><?php echo JText::_('K2_LEAVE_A_COMMENT') ?></h4>
|
||||
<span class="t-section_subheader_border"></span>
|
||||
</header>
|
||||
<?php if($this->params->get('commentsFormNotes')): ?>
|
||||
<p class="xitemCommentsFormNotes text-left">
|
||||
<?php if($this->params->get('commentsFormNotesText')): ?>
|
||||
<?php echo nl2br($this->params->get('commentsFormNotesText')); ?>
|
||||
<?php else: ?>
|
||||
<?php echo JText::_('K2_COMMENT_FORM_NOTES') ?>
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
<form action="<?php echo JURI::root(true); ?>/index.php" method="post" id="comment-form" class="t-leave_comment_form form-validate">
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
|
||||
<label class="formName hidden" for="userName"><?php echo JText::_('K2_NAME'); ?> *</label>
|
||||
<input class="xinputbox" type="text" name="userName" id="userName" value="<?php echo JText::_('K2_ENTER_YOUR_NAME'); ?>" onblur="if(this.value=='') this.value='<?php echo JText::_('K2_ENTER_YOUR_NAME'); ?>';" onfocus="if(this.value=='<?php echo JText::_('K2_ENTER_YOUR_NAME'); ?>') this.value='';" />
|
||||
</div>
|
||||
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
|
||||
<label class="formEmail hidden" for="commentEmail"><?php echo JText::_('K2_EMAIL'); ?> *</label>
|
||||
<input class="xinputbox" type="text" name="commentEmail" id="commentEmail" value="<?php echo JText::_('K2_ENTER_YOUR_EMAIL_ADDRESS'); ?>" onblur="if(this.value=='') this.value='<?php echo JText::_('K2_ENTER_YOUR_EMAIL_ADDRESS'); ?>';" onfocus="if(this.value=='<?php echo JText::_('K2_ENTER_YOUR_EMAIL_ADDRESS'); ?>') this.value='';" />
|
||||
</div>
|
||||
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
|
||||
<label class="formUrl hidden" for="commentURL"><?php echo JText::_('K2_WEBSITE_URL'); ?></label>
|
||||
<input class="xinputbox" type="text" name="commentURL" id="commentURL" value="<?php echo JText::_('K2_ENTER_YOUR_SITE_URL'); ?>" onblur="if(this.value=='') this.value='<?php echo JText::_('K2_ENTER_YOUR_SITE_URL'); ?>';" onfocus="if(this.value=='<?php echo JText::_('K2_ENTER_YOUR_SITE_URL'); ?>') this.value='';" />
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
||||
<label class="formComment hidden" for="commentText"><?php echo JText::_('K2_MESSAGE'); ?> *</label>
|
||||
<textarea rows="20" cols="10" class="xinputbox" onblur="if(this.value=='') this.value='<?php echo JText::_('K2_ENTER_YOUR_MESSAGE_HERE'); ?>';" onfocus="if(this.value=='<?php echo JText::_('K2_ENTER_YOUR_MESSAGE_HERE'); ?>') this.value='';" name="commentText" id="commentText"><?php echo JText::_('K2_ENTER_YOUR_MESSAGE_HERE'); ?></textarea>
|
||||
</div>
|
||||
<?php if($this->params->get('recaptcha') && ($this->user->guest || $this->params->get('recaptchaForRegistered', 1))): ?>
|
||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
||||
<label class="formRecaptcha hidden"><?php echo JText::_('K2_ENTER_THE_TWO_WORDS_YOU_SEE_BELOW'); ?></label>
|
||||
<div id="recaptcha"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
||||
<input type="submit" class="button" id="xsubmitCommentButton" value="<?php echo JText::_('K2_SUBMIT_COMMENT'); ?>" />
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
||||
<span id="formLog"></span>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="option" value="com_k2" />
|
||||
<input type="hidden" name="view" value="item" />
|
||||
<input type="hidden" name="task" value="comment" />
|
||||
<input type="hidden" name="itemID" value="<?php echo JRequest::getInt('id'); ?>" />
|
||||
<?php echo JHTML::_('form.token'); ?>
|
||||
</form>
|
||||
</div>
|
||||
959
deployed/trada/templates/trada/html/com_k2/default/itemform.php
Normal file
959
deployed/trada/templates/trada/html/com_k2/default/itemform.php
Normal file
@ -0,0 +1,959 @@
|
||||
<?php
|
||||
/**
|
||||
* @version 2.6.x
|
||||
* @package K2
|
||||
* @author JoomlaWorks http://www.joomlaworks.net
|
||||
* @copyright Copyright (c) 2006 - 2014 JoomlaWorks Ltd. All rights reserved.
|
||||
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$document = JFactory::getDocument();
|
||||
$document->addScriptDeclaration("
|
||||
Joomla.submitbutton = function(pressbutton){
|
||||
if (pressbutton == 'cancel') {
|
||||
submitform( pressbutton );
|
||||
return;
|
||||
}
|
||||
if (\$K2.trim(\$K2('#title').val()) == '') {
|
||||
alert( '".JText::_('K2_ITEM_MUST_HAVE_A_TITLE', true)."' );
|
||||
}
|
||||
else if (\$K2.trim(\$K2('#catid').val()) == '0') {
|
||||
alert( '".JText::_('K2_PLEASE_SELECT_A_CATEGORY', true)."' );
|
||||
}
|
||||
else {
|
||||
syncExtraFieldsEditor();
|
||||
var validation = validateExtraFields();
|
||||
if(validation === true) {
|
||||
\$K2('#selectedTags option').attr('selected', 'selected');
|
||||
submitform( pressbutton );
|
||||
}
|
||||
}
|
||||
}
|
||||
");
|
||||
|
||||
?>
|
||||
|
||||
<form action="<?php echo JURI::root(true); ?>/index.php" enctype="multipart/form-data" method="post" name="adminForm" id="adminForm">
|
||||
<?php if($this->mainframe->isSite()): ?>
|
||||
<div id="k2FrontendContainer">
|
||||
<div id="k2Frontend">
|
||||
<table class="k2FrontendToolbar" cellpadding="2" cellspacing="4">
|
||||
<tr>
|
||||
<td id="toolbar-save" class="button">
|
||||
<a class="toolbar" href="#" onclick="Joomla.submitbutton('save'); return false;"> <span title="<?php echo JText::_('K2_SAVE'); ?>" class="icon-32-save icon-save"></span> <?php echo JText::_('K2_SAVE'); ?> </a>
|
||||
</td>
|
||||
<td id="toolbar-cancel" class="button">
|
||||
<a class="toolbar" href="#"> <span title="<?php echo JText::_('K2_CANCEL'); ?>" class="icon-32-cancel icon-cancel"></span> <?php echo JText::_('K2_CLOSE'); ?> </a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div id="k2FrontendEditToolbar">
|
||||
<h2 class="header icon-48-k2">
|
||||
<?php echo (JRequest::getInt('cid')) ? JText::_('K2_EDIT_ITEM') : JText::_('K2_ADD_ITEM'); ?>
|
||||
</h2>
|
||||
</div>
|
||||
<div class="clr"></div>
|
||||
<hr class="sep" />
|
||||
<div id="k2FrontendPermissionsNotice">
|
||||
<p><?php echo $this->permissionsMessage; ?></p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div id="k2ToggleSidebarContainer"> <a href="#" id="k2ToggleSidebar"><?php echo JText::_('K2_TOGGLE_SIDEBAR'); ?></a> </div>
|
||||
<table cellspacing="0" cellpadding="0" border="0" class="adminFormK2Container table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<table class="adminFormK2">
|
||||
<tr>
|
||||
<td class="adminK2LeftCol">
|
||||
<label for="title"><?php echo JText::_('K2_TITLE'); ?></label>
|
||||
</td>
|
||||
<td class="adminK2RightCol">
|
||||
<input class="text_area k2TitleBox" type="text" name="title" id="title" maxlength="250" value="<?php echo $this->row->title; ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="adminK2LeftCol">
|
||||
<label for="alias"><?php echo JText::_('K2_TITLE_ALIAS'); ?></label>
|
||||
</td>
|
||||
<td class="adminK2RightCol">
|
||||
<input class="text_area k2TitleAliasBox" type="text" name="alias" id="alias" maxlength="250" value="<?php echo $this->row->alias; ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="adminK2LeftCol">
|
||||
<label><?php echo JText::_('K2_CATEGORY'); ?></label>
|
||||
</td>
|
||||
<td class="adminK2RightCol">
|
||||
<?php echo $this->lists['categories']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="adminK2LeftCol">
|
||||
<label><?php echo JText::_('K2_TAGS'); ?></label>
|
||||
</td>
|
||||
<td class="adminK2RightCol">
|
||||
<?php if($this->params->get('taggingSystem')): ?>
|
||||
<!-- Free tagging -->
|
||||
<ul class="tags">
|
||||
<?php if(isset($this->row->tags) && count($this->row->tags)): ?>
|
||||
<?php foreach($this->row->tags as $tag): ?>
|
||||
<li class="tagAdded">
|
||||
<?php echo $tag->name; ?>
|
||||
<span title="<?php echo JText::_('K2_CLICK_TO_REMOVE_TAG'); ?>" class="tagRemove">x</span>
|
||||
<input type="hidden" name="tags[]" value="<?php echo $tag->name; ?>" />
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
<li class="tagAdd">
|
||||
<input type="text" id="search-field" />
|
||||
</li>
|
||||
<li class="clr"></li>
|
||||
</ul>
|
||||
<span class="k2Note"> <?php echo JText::_('K2_WRITE_A_TAG_AND_PRESS_RETURN_OR_COMMA_TO_ADD_IT'); ?> </span>
|
||||
<?php else: ?>
|
||||
<!-- Selection based tagging -->
|
||||
<?php if( !$this->params->get('lockTags') || $this->user->gid>23): ?>
|
||||
<div style="float:left;">
|
||||
<input type="text" name="tag" id="tag" />
|
||||
<input type="button" id="newTagButton" value="<?php echo JText::_('K2_ADD'); ?>" />
|
||||
</div>
|
||||
<div id="tagsLog"></div>
|
||||
<div class="clr"></div>
|
||||
<span class="k2Note"> <?php echo JText::_('K2_WRITE_A_TAG_AND_PRESS_ADD_TO_INSERT_IT_TO_THE_AVAILABLE_TAGS_LISTNEW_TAGS_ARE_APPENDED_AT_THE_BOTTOM_OF_THE_AVAILABLE_TAGS_LIST_LEFT'); ?> </span>
|
||||
<?php endif; ?>
|
||||
<table cellspacing="0" cellpadding="0" border="0" id="tagLists">
|
||||
<tr>
|
||||
<td id="tagListsLeft">
|
||||
<span><?php echo JText::_('K2_AVAILABLE_TAGS'); ?></span> <?php echo $this->lists['tags']; ?>
|
||||
</td>
|
||||
<td id="tagListsButtons">
|
||||
<input type="button" id="addTagButton" value="<?php echo JText::_('K2_ADD'); ?> »" />
|
||||
<br />
|
||||
<br />
|
||||
<input type="button" id="removeTagButton" value="« <?php echo JText::_('K2_REMOVE'); ?>" />
|
||||
</td>
|
||||
<td id="tagListsRight">
|
||||
<span><?php echo JText::_('K2_SELECTED_TAGS'); ?></span> <?php echo $this->lists['selectedTags']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if($this->mainframe->isAdmin() || ($this->mainframe->isSite() && $this->permissions->get('publish') || ($this->permissions->get('editPublished') && $this->row->id && $this->row->published) )): ?>
|
||||
<?php if($this->permissions->get('publish')): ?>
|
||||
<tr>
|
||||
<td class="adminK2LeftCol">
|
||||
<label for="featured"><?php echo JText::_('K2_IS_IT_FEATURED'); ?></label>
|
||||
</td>
|
||||
<td class="adminK2RightCol">
|
||||
<?php echo $this->lists['featured']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<tr>
|
||||
<td class="adminK2LeftCol">
|
||||
<label><?php echo JText::_('K2_PUBLISHED'); ?></label>
|
||||
</td>
|
||||
<td class="adminK2RightCol">
|
||||
<?php echo $this->lists['published']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
|
||||
<!-- Required extra field warning -->
|
||||
<div id="k2ExtraFieldsValidationResults">
|
||||
<h3><?php echo JText::_('K2_THE_FOLLOWING_FIELDS_ARE_REQUIRED'); ?></h3>
|
||||
<ul id="k2ExtraFieldsMissing">
|
||||
<li><?php echo JText::_('K2_LOADING'); ?></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- Tabs start here -->
|
||||
<div class="simpleTabs" id="k2Tabs">
|
||||
<ul class="simpleTabsNavigation">
|
||||
<li id="tabContent"><a href="#k2Tab1"><?php echo JText::_('K2_CONTENT'); ?></a></li>
|
||||
<?php if ($this->params->get('showImageTab')): ?>
|
||||
<li id="tabImage"><a href="#k2Tab2"><?php echo JText::_('K2_IMAGE'); ?></a></li>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('showImageGalleryTab')): ?>
|
||||
<li id="tabImageGallery"><a href="#k2Tab3"><?php echo JText::_('K2_IMAGE_GALLERY'); ?></a></li>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('showVideoTab')): ?>
|
||||
<li id="tabVideo"><a href="#k2Tab4"><?php echo JText::_('K2_MEDIA'); ?></a></li>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('showExtraFieldsTab')): ?>
|
||||
<li id="tabExtraFields"><a href="#k2Tab5"><?php echo JText::_('K2_EXTRA_FIELDS'); ?></a></li>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('showAttachmentsTab')): ?>
|
||||
<li id="tabAttachments"><a href="#k2Tab6"><?php echo JText::_('K2_ATTACHMENTS'); ?></a></li>
|
||||
<?php endif; ?>
|
||||
<?php if(count(array_filter($this->K2PluginsItemOther)) && $this->params->get('showK2Plugins')): ?>
|
||||
<li id="tabPlugins"><a href="#k2Tab7"><?php echo JText::_('K2_PLUGINS'); ?></a></li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
|
||||
<!-- Tab content -->
|
||||
<div class="simpleTabsContent" id="k2Tab1">
|
||||
<?php if($this->params->get('mergeEditors')): ?>
|
||||
<div class="k2ItemFormEditor"> <?php echo $this->text; ?>
|
||||
<div class="dummyHeight"></div>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div class="k2ItemFormEditor"> <span class="k2ItemFormEditorTitle"> <?php echo JText::_('K2_INTROTEXT_TEASER_CONTENTEXCERPT'); ?> </span> <?php echo $this->introtext; ?>
|
||||
<div class="dummyHeight"></div>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<div class="k2ItemFormEditor"> <span class="k2ItemFormEditorTitle"> <?php echo JText::_('K2_FULLTEXT_MAIN_CONTENT'); ?> </span> <?php echo $this->fulltext; ?>
|
||||
<div class="dummyHeight"></div>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if (count($this->K2PluginsItemContent)): ?>
|
||||
<div class="itemPlugins">
|
||||
<?php foreach($this->K2PluginsItemContent as $K2Plugin): ?>
|
||||
<?php if(!is_null($K2Plugin)): ?>
|
||||
<fieldset>
|
||||
<legend><?php echo $K2Plugin->name; ?></legend>
|
||||
<?php echo $K2Plugin->fields; ?>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php if ($this->params->get('showImageTab')): ?>
|
||||
<!-- Tab image -->
|
||||
<div class="simpleTabsContent" id="k2Tab2">
|
||||
<table class="admintable">
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_ITEM_IMAGE'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<input type="file" name="image" class="fileUpload" />
|
||||
<i>(<?php echo JText::_('K2_MAX_UPLOAD_SIZE'); ?>: <?php echo ini_get('upload_max_filesize'); ?>)</i>
|
||||
<br />
|
||||
<br />
|
||||
<input type="text" name="existingImage" id="existingImageValue" class="text_area" readonly />
|
||||
<input type="button" value="<?php echo JText::_('K2_BROWSE_SERVER'); ?>" id="k2ImageBrowseServer" />
|
||||
<br />
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_ITEM_IMAGE_CAPTION'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="image_caption" size="30" class="text_area" value="<?php echo $this->row->image_caption; ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_ITEM_IMAGE_CREDITS'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="image_credits" size="30" class="text_area" value="<?php echo $this->row->image_credits; ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<?php if (!empty($this->row->image)): ?>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_ITEM_IMAGE_PREVIEW'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<a class="modal" rel="{handler: 'image'}" href="<?php echo $this->row->image; ?>" title="<?php echo JText::_('K2_CLICK_ON_IMAGE_TO_PREVIEW_IN_ORIGINAL_SIZE'); ?>">
|
||||
<img alt="<?php echo $this->row->title; ?>" src="<?php echo $this->row->thumb; ?>" class="k2AdminImage" />
|
||||
</a>
|
||||
<input type="checkbox" name="del_image" id="del_image" />
|
||||
<label for="del_image"><?php echo JText::_('K2_CHECK_THIS_BOX_TO_DELETE_CURRENT_IMAGE_OR_JUST_UPLOAD_A_NEW_IMAGE_TO_REPLACE_THE_EXISTING_ONE'); ?></label>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
<?php if (count($this->K2PluginsItemImage)): ?>
|
||||
<div class="itemPlugins">
|
||||
<?php foreach($this->K2PluginsItemImage as $K2Plugin): ?>
|
||||
<?php if(!is_null($K2Plugin)): ?>
|
||||
<fieldset>
|
||||
<legend><?php echo $K2Plugin->name; ?></legend>
|
||||
<?php echo $K2Plugin->fields; ?>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('showImageGalleryTab')): ?>
|
||||
<!-- Tab image gallery -->
|
||||
<div class="simpleTabsContent" id="k2Tab3">
|
||||
<?php if ($this->lists['checkSIG']): ?>
|
||||
<table class="admintable table" id="item_gallery_content">
|
||||
<tr>
|
||||
<td align="right" valign="top" class="key">
|
||||
<?php echo JText::_('K2_COM_BE_ITEM_ITEM_IMAGE_GALLERY'); ?>
|
||||
</td>
|
||||
<td valign="top">
|
||||
<?php if($this->sigPro): ?>
|
||||
<a class="modal" rel="{handler: 'iframe', size: {x: 940, y: 560}}" href="index.php?option=com_sigpro&view=galleries&task=create&newFolder=<?php echo $this->sigProFolder; ?>&type=k2&tmpl=component&template=system"><?php echo JText::_('K2_COM_BE_ITEM_SIGPRO_UPLOAD'); ?></a> <i>(<?php echo JText::_('K2_COM_BE_ITEM_SIGPRO_UPLOAD_NOTE'); ?>)</i>
|
||||
<input name="sigProFolder" type="hidden" value="<?php echo $this->sigProFolder; ?>" />
|
||||
<br />
|
||||
<br />
|
||||
<?php echo JText::_('K2_OR'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo JText::_('K2_UPLOAD_A_ZIP_FILE_WITH_IMAGES'); ?> <input type="file" name="gallery" class="fileUpload" /> <span class="hasTip k2GalleryNotice" title="<?php echo JText::_('K2_UPLOAD_A_ZIP_FILE_HELP_HEADER'); ?>::<?php echo JText::_('K2_UPLOAD_A_ZIP_FILE_HELP_TEXT'); ?>"><?php echo JText::_('K2_UPLOAD_A_ZIP_FILE_HELP'); ?></span> <i>(<?php echo JText::_('K2_MAX_UPLOAD_SIZE'); ?>: <?php echo ini_get('upload_max_filesize'); ?>)</i>
|
||||
<br />
|
||||
<br />
|
||||
<?php echo JText::_('K2_OR_ENTER_A_FLICKR_SET_URL'); ?><?php echo JText::_('K2_OR_ENTER_A_FLICKR_SET_URL'); ?>
|
||||
<input type="text" name="flickrGallery" size="50" value="<?php echo ($this->row->galleryType == 'flickr') ? $this->row->galleryValue : ''; ?>" /> <span class="hasTip k2GalleryNotice" title="<?php echo JText::_('K2_VALID_FLICK_API_KEY_HELP_HEADER'); ?>::<?php echo JText::_('K2_VALID_FLICK_API_KEY_HELP_TEXT'); ?>"><?php echo JText::_('K2_UPLOAD_A_ZIP_FILE_HELP'); ?></span>
|
||||
|
||||
<?php if (!empty($this->row->gallery)): ?>
|
||||
<!-- Preview -->
|
||||
<div id="itemGallery">
|
||||
<?php echo $this->row->gallery; ?>
|
||||
<br />
|
||||
<input type="checkbox" name="del_gallery" id="del_gallery" />
|
||||
<label for="del_gallery"><?php echo JText::_('K2_CHECK_THIS_BOX_TO_DELETE_CURRENT_IMAGE_GALLERY_OR_JUST_UPLOAD_A_NEW_IMAGE_GALLERY_TO_REPLACE_THE_EXISTING_ONE'); ?></label>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php else: ?>
|
||||
<?php if (K2_JVERSION == '15'): ?>
|
||||
<dl id="system-message">
|
||||
<dt class="notice"><?php echo JText::_('K2_NOTICE'); ?></dt>
|
||||
<dd class="notice message fade">
|
||||
<ul>
|
||||
<li><?php echo JText::_('K2_NOTICE_PLEASE_INSTALL_JOOMLAWORKS_SIMPLE_IMAGE_GALLERY_PRO_PLUGIN_IF_YOU_WANT_TO_USE_THE_IMAGE_GALLERY_FEATURES_OF_K2'); ?></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
<?php elseif(K2_JVERSION == '25'): ?>
|
||||
<div id="system-message-container">
|
||||
<dl id="system-message">
|
||||
<dt class="notice"><?php echo JText::_('K2_NOTICE'); ?></dt>
|
||||
<dd class="notice message">
|
||||
<ul>
|
||||
<li><?php echo JText::_('K2_NOTICE_PLEASE_INSTALL_JOOMLAWORKS_SIMPLE_IMAGE_GALLERY_PRO_PLUGIN_IF_YOU_WANT_TO_USE_THE_IMAGE_GALLERY_FEATURES_OF_K2'); ?></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div class="alert">
|
||||
<h4 class="alert-heading"><?php echo JText::_('K2_NOTICE'); ?></h4>
|
||||
<div><p><?php echo JText::_('K2_NOTICE_PLEASE_INSTALL_JOOMLAWORKS_SIMPLE_IMAGE_GALLERY_PRO_PLUGIN_IF_YOU_WANT_TO_USE_THE_IMAGE_GALLERY_FEATURES_OF_K2'); ?></p></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php if (count($this->K2PluginsItemGallery)): ?>
|
||||
<div class="itemPlugins">
|
||||
<?php foreach($this->K2PluginsItemGallery as $K2Plugin): ?>
|
||||
<?php if(!is_null($K2Plugin)): ?>
|
||||
<fieldset>
|
||||
<legend><?php echo $K2Plugin->name; ?></legend>
|
||||
<?php echo $K2Plugin->fields; ?>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('showVideoTab')): ?>
|
||||
<!-- Tab video -->
|
||||
<div class="simpleTabsContent" id="k2Tab4">
|
||||
<?php if ($this->lists['checkAllVideos']): ?>
|
||||
<table class="admintable" id="item_video_content">
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_MEDIA_SOURCE'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<div id="k2VideoTabs" class="simpleTabs">
|
||||
<ul class="simpleTabsNavigation">
|
||||
<li><a href="#k2VideoTab1"><?php echo JText::_('K2_UPLOAD'); ?></a></li>
|
||||
<li><a href="#k2VideoTab2"><?php echo JText::_('K2_BROWSE_SERVERUSE_REMOTE_MEDIA'); ?></a></li>
|
||||
<li><a href="#k2VideoTab3"><?php echo JText::_('K2_MEDIA_USE_ONLINE_VIDEO_SERVICE'); ?></a></li>
|
||||
<li><a href="#k2VideoTab4"><?php echo JText::_('K2_EMBED'); ?></a></li>
|
||||
</ul>
|
||||
<div id="k2VideoTab1" class="simpleTabsContent">
|
||||
<div class="panel" id="Upload_video">
|
||||
<input type="file" name="video" class="fileUpload" />
|
||||
<i>(<?php echo JText::_('K2_MAX_UPLOAD_SIZE'); ?>: <?php echo ini_get('upload_max_filesize'); ?>)</i> </div>
|
||||
</div>
|
||||
<div id="k2VideoTab2" class="simpleTabsContent">
|
||||
<div class="panel" id="Remote_video"> <a id="k2MediaBrowseServer" href="index.php?option=com_k2&view=media&type=video&tmpl=component&fieldID=remoteVideo"><?php echo JText::_('K2_BROWSE_VIDEOS_ON_SERVER')?></a> <?php echo JText::_('K2_OR'); ?> <?php echo JText::_('K2_PASTE_REMOTE_VIDEO_URL'); ?>
|
||||
<br />
|
||||
<br />
|
||||
<input type="text" size="50" name="remoteVideo" id="remoteVideo" value="<?php echo $this->lists['remoteVideo'] ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div id="k2VideoTab3" class="simpleTabsContent">
|
||||
<div class="panel" id="Video_from_provider"> <?php echo JText::_('K2_SELECT_VIDEO_PROVIDER'); ?> <?php echo $this->lists['providers']; ?> <br/><br/> <?php echo JText::_('K2_AND_ENTER_VIDEO_ID'); ?>
|
||||
<input type="text" size="50" name="videoID" value="<?php echo $this->lists['providerVideo'] ?>" />
|
||||
<br />
|
||||
<br />
|
||||
<a class="modal" rel="{handler: 'iframe', size: {x: 990, y: 600}}" href="http://www.joomlaworks.net/allvideos-documentation"><?php echo JText::_('K2_READ_THE_ALLVIDEOS_DOCUMENTATION_FOR_MORE'); ?></a> </div>
|
||||
</div>
|
||||
<div id="k2VideoTab4" class="simpleTabsContent">
|
||||
<div class="panel" id="embedVideo">
|
||||
<?php echo JText::_('K2_PASTE_HTML_EMBED_CODE_BELOW'); ?>
|
||||
<br />
|
||||
<textarea name="embedVideo" rows="5" cols="50" class="textarea"><?php echo $this->lists['embedVideo']; ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_MEDIA_CAPTION'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="video_caption" size="50" class="text_area" value="<?php echo $this->row->video_caption; ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_MEDIA_CREDITS'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="video_credits" size="50" class="text_area" value="<?php echo $this->row->video_credits; ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<?php if($this->row->video): ?>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_MEDIA_PREVIEW'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $this->row->video; ?>
|
||||
<br />
|
||||
<input type="checkbox" name="del_video" id="del_video" />
|
||||
<label for="del_video"><?php echo JText::_('K2_CHECK_THIS_BOX_TO_DELETE_CURRENT_VIDEO_OR_USE_THE_FORM_ABOVE_TO_REPLACE_THE_EXISTING_ONE'); ?></label>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
<?php else: ?>
|
||||
<?php if (K2_JVERSION == '15'): ?>
|
||||
<dl id="system-message">
|
||||
<dt class="notice"><?php echo JText::_('K2_NOTICE'); ?></dt>
|
||||
<dd class="notice message fade">
|
||||
<ul>
|
||||
<li><?php echo JText::_('K2_NOTICE_PLEASE_INSTALL_JOOMLAWORKS_ALLVIDEOS_PLUGIN_IF_YOU_WANT_TO_USE_THE_FULL_VIDEO_FEATURES_OF_K2'); ?></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
<?php elseif(K2_JVERSION == '25'): ?>
|
||||
<div id="system-message-container">
|
||||
<dl id="system-message">
|
||||
<dt class="notice"><?php echo JText::_('K2_NOTICE'); ?></dt>
|
||||
<dd class="notice message">
|
||||
<ul>
|
||||
<li><?php echo JText::_('K2_NOTICE_PLEASE_INSTALL_JOOMLAWORKS_ALLVIDEOS_PLUGIN_IF_YOU_WANT_TO_USE_THE_FULL_VIDEO_FEATURES_OF_K2'); ?></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div class="alert">
|
||||
<h4 class="alert-heading"><?php echo JText::_('K2_NOTICE'); ?></h4>
|
||||
<div><p><?php echo JText::_('K2_NOTICE_PLEASE_INSTALL_JOOMLAWORKS_ALLVIDEOS_PLUGIN_IF_YOU_WANT_TO_USE_THE_FULL_VIDEO_FEATURES_OF_K2'); ?></p></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<table class="admintable" id="item_video_content">
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_MEDIA_SOURCE'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<div id="k2VideoTabs" class="simpleTabs">
|
||||
<ul class="simpleTabsNavigation">
|
||||
<li><a href="#k2VideoTab4"><?php echo JText::_('K2_EMBED'); ?></a></li>
|
||||
</ul>
|
||||
<div class="simpleTabsContent" id="k2VideoTab4">
|
||||
<div class="panel" id="embedVideo">
|
||||
<?php echo JText::_('K2_PASTE_HTML_EMBED_CODE_BELOW'); ?>
|
||||
<br />
|
||||
<textarea name="embedVideo" rows="5" cols="50" class="textarea"><?php echo $this->lists['embedVideo']; ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_MEDIA_CAPTION'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="video_caption" size="50" class="text_area" value="<?php echo $this->row->video_caption; ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_MEDIA_CREDITS'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="video_credits" size="50" class="text_area" value="<?php echo $this->row->video_credits; ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<?php if($this->row->video): ?>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_MEDIA_PREVIEW'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $this->row->video; ?>
|
||||
<br />
|
||||
<input type="checkbox" name="del_video" id="del_video" />
|
||||
<label for="del_video"><?php echo JText::_('K2_USE_THE_FORM_ABOVE_TO_REPLACE_THE_EXISTING_VIDEO_OR_CHECK_THIS_BOX_TO_DELETE_CURRENT_VIDEO'); ?></label>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
<?php if (count($this->K2PluginsItemVideo)): ?>
|
||||
<div class="itemPlugins">
|
||||
<?php foreach($this->K2PluginsItemVideo as $K2Plugin): ?>
|
||||
<?php if(!is_null($K2Plugin)): ?>
|
||||
<fieldset>
|
||||
<legend><?php echo $K2Plugin->name; ?></legend>
|
||||
<?php echo $K2Plugin->fields; ?>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('showExtraFieldsTab')): ?>
|
||||
<!-- Tab extra fields -->
|
||||
<div class="simpleTabsContent" id="k2Tab5">
|
||||
<div id="extraFieldsContainer">
|
||||
<?php if (count($this->extraFields)): ?>
|
||||
<table class="admintable" id="extraFields">
|
||||
<?php foreach($this->extraFields as $extraField): ?>
|
||||
<?php if($extraField->type == 'header'): ?>
|
||||
<tr>
|
||||
<td colspan="2" ><h4 class="k2ExtraFieldHeader"><?php echo $extraField->name; ?></h4></td>
|
||||
</tr>
|
||||
<?php else: ?>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<label for="K2ExtraField_<?php echo $extraField->id; ?>"><?php echo $extraField->name; ?></label>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $extraField->element; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
<?php else: ?>
|
||||
<?php if (K2_JVERSION == '15'): ?>
|
||||
<dl id="system-message">
|
||||
<dt class="notice"><?php echo JText::_('K2_NOTICE'); ?></dt>
|
||||
<dd class="notice message fade">
|
||||
<ul>
|
||||
<li><?php echo JText::_('K2_PLEASE_SELECT_A_CATEGORY_FIRST_TO_RETRIEVE_ITS_RELATED_EXTRA_FIELDS'); ?></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
<?php elseif (K2_JVERSION == '25'): ?>
|
||||
<div id="system-message-container">
|
||||
<dl id="system-message">
|
||||
<dt class="notice"><?php echo JText::_('K2_NOTICE'); ?></dt>
|
||||
<dd class="notice message">
|
||||
<ul>
|
||||
<li><?php echo JText::_('K2_PLEASE_SELECT_A_CATEGORY_FIRST_TO_RETRIEVE_ITS_RELATED_EXTRA_FIELDS'); ?></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div class="alert">
|
||||
<h4 class="alert-heading"><?php echo JText::_('K2_NOTICE'); ?></h4>
|
||||
<div>
|
||||
<p><?php echo JText::_('K2_PLEASE_SELECT_A_CATEGORY_FIRST_TO_RETRIEVE_ITS_RELATED_EXTRA_FIELDS'); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php if (count($this->K2PluginsItemExtraFields)): ?>
|
||||
<div class="itemPlugins">
|
||||
<?php foreach($this->K2PluginsItemExtraFields as $K2Plugin): ?>
|
||||
<?php if(!is_null($K2Plugin)): ?>
|
||||
<fieldset>
|
||||
<legend><?php echo $K2Plugin->name; ?></legend>
|
||||
<?php echo $K2Plugin->fields; ?>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('showAttachmentsTab')): ?>
|
||||
<!-- Tab attachements -->
|
||||
<div class="simpleTabsContent" id="k2Tab6">
|
||||
<div class="itemAttachments">
|
||||
<?php if (count($this->row->attachments)): ?>
|
||||
<table class="adminlist">
|
||||
<tr>
|
||||
<th>
|
||||
<?php echo JText::_('K2_FILENAME'); ?>
|
||||
</th>
|
||||
<th>
|
||||
<?php echo JText::_('K2_TITLE'); ?>
|
||||
</th>
|
||||
<th>
|
||||
<?php echo JText::_('K2_TITLE_ATTRIBUTE'); ?>
|
||||
</th>
|
||||
<th>
|
||||
<?php echo JText::_('K2_DOWNLOADS'); ?>
|
||||
</th>
|
||||
<th>
|
||||
<?php echo JText::_('K2_OPERATIONS'); ?>
|
||||
</th>
|
||||
</tr>
|
||||
<?php foreach($this->row->attachments as $attachment): ?>
|
||||
<tr>
|
||||
<td class="attachment_entry">
|
||||
<?php echo $attachment->filename; ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $attachment->title; ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $attachment->titleAttribute; ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $attachment->hits; ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?php echo $attachment->link; ?>"><?php echo JText::_('K2_DOWNLOAD'); ?></a> <a class="deleteAttachmentButton" href="<?php echo JURI::base(true); ?>/index.php?option=com_k2&view=item&task=deleteAttachment&id=<?php echo $attachment->id?>&cid=<?php echo $this->row->id; ?>"><?php echo JText::_('K2_DELETE'); ?></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div id="addAttachment">
|
||||
<input type="button" id="addAttachmentButton" value="<?php echo JText::_('K2_ADD_ATTACHMENT_FIELD'); ?>" />
|
||||
<i>(<?php echo JText::_('K2_MAX_UPLOAD_SIZE'); ?>: <?php echo ini_get('upload_max_filesize'); ?>)</i> </div>
|
||||
<div id="itemAttachments"></div>
|
||||
<?php if (count($this->K2PluginsItemAttachments)): ?>
|
||||
<div class="itemPlugins">
|
||||
<?php foreach($this->K2PluginsItemAttachments as $K2Plugin): ?>
|
||||
<?php if(!is_null($K2Plugin)): ?>
|
||||
<fieldset>
|
||||
<legend><?php echo $K2Plugin->name; ?></legend>
|
||||
<?php echo $K2Plugin->fields; ?>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if(count(array_filter($this->K2PluginsItemOther)) && $this->params->get('showK2Plugins')): ?>
|
||||
<!-- Tab other plugins -->
|
||||
<div class="simpleTabsContent" id="k2Tab7">
|
||||
<div class="itemPlugins">
|
||||
<?php foreach($this->K2PluginsItemOther as $K2Plugin): ?>
|
||||
<?php if(!is_null($K2Plugin)): ?>
|
||||
<fieldset>
|
||||
<legend><?php echo $K2Plugin->name; ?></legend>
|
||||
<?php echo $K2Plugin->fields; ?>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<!-- Tabs end here -->
|
||||
|
||||
<input type="hidden" name="isSite" value="<?php echo (int)$this->mainframe->isSite(); ?>" />
|
||||
<?php if($this->mainframe->isSite()): ?>
|
||||
<input type="hidden" name="lang" value="<?php echo JRequest::getCmd('lang'); ?>" />
|
||||
<?php endif; ?>
|
||||
<input type="hidden" name="id" value="<?php echo $this->row->id; ?>" />
|
||||
<input type="hidden" name="option" value="com_k2" />
|
||||
<input type="hidden" name="view" value="item" />
|
||||
<input type="hidden" name="task" value="<?php echo JRequest::getVar('task'); ?>" />
|
||||
<input type="hidden" name="Itemid" value="<?php echo JRequest::getInt('Itemid'); ?>" />
|
||||
<?php echo JHTML::_('form.token'); ?>
|
||||
</td>
|
||||
<td id="adminFormK2Sidebar"<?php if($this->mainframe->isSite() && !$this->params->get('sideBarDisplayFrontend')): ?> style="display:none;"<?php endif; ?> class="xmlParamsFields">
|
||||
<?php if($this->row->id): ?>
|
||||
<table class="sidebarDetails">
|
||||
<tr>
|
||||
<td>
|
||||
<strong><?php echo JText::_('K2_ITEM_ID'); ?></strong>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $this->row->id; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong><?php echo JText::_('K2_PUBLISHED'); ?></strong>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo ($this->row->published > 0) ? JText::_('K2_YES') : JText::_('K2_NO'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong><?php echo JText::_('K2_FEATURED'); ?></strong>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo ($this->row->featured > 0) ? JText::_('K2_YES'): JText::_('K2_NO'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong><?php echo JText::_('K2_CREATED_DATE'); ?></strong>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $this->lists['created']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong><?php echo JText::_('K2_CREATED_BY'); ?></strong>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $this->row->author; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong><?php echo JText::_('K2_MODIFIED_DATE'); ?></strong>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $this->lists['modified']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong><?php echo JText::_('K2_MODIFIED_BY'); ?></strong>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $this->row->moderator; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong><?php echo JText::_('K2_HITS'); ?></strong>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $this->row->hits; ?>
|
||||
<?php if($this->row->hits): ?>
|
||||
<input id="resetHitsButton" type="button" value="<?php echo JText::_('K2_RESET'); ?>" class="button" name="resetHits" />
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if($this->row->id): ?>
|
||||
<tr>
|
||||
<td>
|
||||
<strong><?php echo JText::_('K2_RATING'); ?></strong>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $this->row->ratingCount; ?> <?php echo JText::_('K2_VOTES'); ?>
|
||||
<?php if($this->row->ratingCount): ?>
|
||||
<br />
|
||||
(<?php echo JText::_('K2_AVERAGE_RATING'); ?>: <?php echo number_format(($this->row->ratingSum/$this->row->ratingCount),2); ?>/5.00)
|
||||
<?php endif; ?>
|
||||
<input id="resetRatingButton" type="button" value="<?php echo JText::_('K2_RESET'); ?>" class="button" name="resetRating" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
<div id="k2Accordion">
|
||||
<h3><a href="#"><?php echo JText::_('K2_AUTHOR_PUBLISHING_STATUS'); ?></a></h3>
|
||||
<div>
|
||||
<table class="admintable">
|
||||
<?php if(isset($this->lists['language'])): ?>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_LANGUAGE'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $this->lists['language']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_AUTHOR'); ?>
|
||||
</td>
|
||||
<td id="k2AuthorOptions">
|
||||
<span id="k2Author"><?php echo $this->row->author; ?></span>
|
||||
<?php if($this->mainframe->isAdmin() || ($this->mainframe->isSite() && $this->permissions->get('editAll'))): ?>
|
||||
<a class="modal" rel="{handler:'iframe', size: {x: 800, y: 460}}" href="index.php?option=com_k2&view=users&task=element&tmpl=component"><?php echo JText::_('K2_CHANGE'); ?></a>
|
||||
<input type="hidden" name="created_by" value="<?php echo $this->row->created_by; ?>" />
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_AUTHOR_ALIAS'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<input class="text_area" type="text" name="created_by_alias" maxlength="250" value="<?php echo $this->row->created_by_alias; ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_ACCESS_LEVEL'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $this->lists['access']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_CREATION_DATE'); ?>
|
||||
</td>
|
||||
<td class="k2ItemFormDateField">
|
||||
<?php echo $this->lists['createdCalendar']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_START_PUBLISHING'); ?>
|
||||
</td>
|
||||
<td class="k2ItemFormDateField">
|
||||
<?php echo $this->lists['publish_up']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_FINISH_PUBLISHING'); ?>
|
||||
</td>
|
||||
<td class="k2ItemFormDateField">
|
||||
<?php echo $this->lists['publish_down']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<h3><a href="#"><?php echo JText::_('K2_METADATA_INFORMATION'); ?></a></h3>
|
||||
<div>
|
||||
<table class="admintable">
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_DESCRIPTION'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<textarea name="metadesc" rows="5" cols="20"><?php echo $this->row->metadesc; ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_KEYWORDS'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<textarea name="metakey" rows="5" cols="20"><?php echo $this->row->metakey; ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_ROBOTS'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="meta[robots]" value="<?php echo $this->lists['metadata']->get('robots'); ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_AUTHOR'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="meta[author]" value="<?php echo $this->lists['metadata']->get('author'); ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php if($this->mainframe->isAdmin()): ?>
|
||||
<h3><a href="#"><?php echo JText::_('K2_ITEM_VIEW_OPTIONS_IN_CATEGORY_LISTINGS'); ?></a></h3>
|
||||
<div>
|
||||
<?php if(version_compare( JVERSION, '1.6.0', 'ge' )): ?>
|
||||
<fieldset class="panelform">
|
||||
<ul class="adminformlist">
|
||||
<?php foreach($this->form->getFieldset('item-view-options-listings') as $field): ?>
|
||||
<li>
|
||||
<?php if($field->type=='header'): ?>
|
||||
<div class="paramValueHeader"><?php echo $field->input; ?></div>
|
||||
<?php elseif($field->type=='Spacer'): ?>
|
||||
<div class="paramValueSpacer"> </div>
|
||||
<div class="clr"></div>
|
||||
<?php else: ?>
|
||||
<div class="paramLabel"><?php echo $field->label; ?></div>
|
||||
<div class="paramValue"><?php echo $field->input; ?></div>
|
||||
<div class="clr"></div>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</fieldset>
|
||||
<?php else: ?>
|
||||
<?php echo $this->form->render('params', 'item-view-options-listings'); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<h3><a href="#"><?php echo JText::_('K2_ITEM_VIEW_OPTIONS'); ?></a></h3>
|
||||
<div>
|
||||
<?php if(version_compare( JVERSION, '1.6.0', 'ge' )): ?>
|
||||
<fieldset class="panelform">
|
||||
<ul class="adminformlist">
|
||||
<?php foreach($this->form->getFieldset('item-view-options') as $field): ?>
|
||||
<li>
|
||||
<?php if($field->type=='header'): ?>
|
||||
<div class="paramValueHeader"><?php echo $field->input; ?></div>
|
||||
<?php elseif($field->type=='Spacer'): ?>
|
||||
<div class="paramValueSpacer"> </div>
|
||||
<div class="clr"></div>
|
||||
<?php else: ?>
|
||||
<div class="paramLabel"><?php echo $field->label; ?></div>
|
||||
<div class="paramValue"><?php echo $field->input; ?></div>
|
||||
<div class="clr"></div>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</fieldset>
|
||||
<?php else: ?>
|
||||
<?php echo $this->form->render('params', 'item-view-options'); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if($this->aceAclFlag): ?>
|
||||
<h3><a href="#"><?php echo JText::_('AceACL') . ' ' . JText::_('COM_ACEACL_COMMON_PERMISSIONS'); ?></a></h3>
|
||||
<div><?php AceaclApi::getWidget('com_k2.item.'.$this->row->id, true); ?></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="clr"></div>
|
||||
<?php if($this->mainframe->isSite()): ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</form>
|
||||
160
deployed/trada/templates/trada/html/com_k2/default/latest.php
Normal file
160
deployed/trada/templates/trada/html/com_k2/default/latest.php
Normal file
@ -0,0 +1,160 @@
|
||||
<?php
|
||||
/**
|
||||
* @version 2.6.x
|
||||
* @package K2
|
||||
* @author JoomlaWorks http://www.joomlaworks.net
|
||||
* @copyright Copyright (c) 2006 - 2014 JoomlaWorks Ltd. All rights reserved.
|
||||
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
|
||||
<!-- Start K2 Latest Layout -->
|
||||
<div id="k2Container" class="latestView<?php if($this->params->get('pageclass_sfx')) echo ' '.$this->params->get('pageclass_sfx'); ?>">
|
||||
|
||||
<?php if($this->params->get('show_page_title')): ?>
|
||||
<!-- Page title -->
|
||||
<div class="componentheading<?php echo $this->params->get('pageclass_sfx')?>">
|
||||
<?php echo $this->escape($this->params->get('page_title')); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php foreach($this->blocks as $key=>$block): ?>
|
||||
<div class="latestItemsContainer" style="width:<?php echo number_format(100/$this->params->get('latestItemsCols'), 1); ?>%;">
|
||||
|
||||
<?php if($this->source=='categories'): $category=$block; ?>
|
||||
|
||||
<?php if($this->params->get('categoryFeed') || $this->params->get('categoryImage') || $this->params->get('categoryTitle') || $this->params->get('categoryDescription')): ?>
|
||||
<!-- Start K2 Category block -->
|
||||
<div class="latestItemsCategory">
|
||||
<?php if($this->params->get('categoryFeed')): ?>
|
||||
<!-- RSS feed icon -->
|
||||
<div class="k2FeedIcon">
|
||||
<a href="<?php echo $category->feed; ?>" title="<?php echo JText::_('K2_SUBSCRIBE_TO_THIS_RSS_FEED'); ?>">
|
||||
<span><?php echo JText::_('K2_SUBSCRIBE_TO_THIS_RSS_FEED'); ?></span>
|
||||
</a>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('categoryImage') && !empty($category->image)): ?>
|
||||
<div class="latestItemsCategoryImage">
|
||||
<img src="<?php echo $category->image; ?>" alt="<?php echo K2HelperUtilities::cleanHtml($category->name); ?>" style="width:<?php echo $this->params->get('catImageWidth'); ?>px;height:auto;" />
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('categoryTitle')): ?>
|
||||
<h2><a href="<?php echo $category->link; ?>"><?php echo $category->name; ?></a></h2>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('categoryDescription') && isset($category->description)): ?>
|
||||
<p><?php echo $category->description; ?></p>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
|
||||
<!-- K2 Plugins: K2CategoryDisplay -->
|
||||
<?php echo $category->event->K2CategoryDisplay; ?>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<!-- End K2 Category block -->
|
||||
<?php endif; ?>
|
||||
|
||||
<?php else: $user=$block; ?>
|
||||
|
||||
<?php if ($this->params->get('userFeed') || $this->params->get('userImage') || $this->params->get('userName') || $this->params->get('userDescription') || $this->params->get('userURL') || $this->params->get('userEmail')): ?>
|
||||
<!-- Start K2 User block -->
|
||||
<div class="latestItemsUser">
|
||||
|
||||
<?php if($this->params->get('userFeed')): ?>
|
||||
<!-- RSS feed icon -->
|
||||
<div class="k2FeedIcon">
|
||||
<a href="<?php echo $user->feed; ?>" title="<?php echo JText::_('K2_SUBSCRIBE_TO_THIS_RSS_FEED'); ?>">
|
||||
<span><?php echo JText::_('K2_SUBSCRIBE_TO_THIS_RSS_FEED'); ?></span>
|
||||
</a>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('userImage') && !empty($user->avatar)): ?>
|
||||
<img src="<?php echo $user->avatar; ?>" alt="<?php echo $user->name; ?>" style="width:<?php echo $this->params->get('userImageWidth'); ?>px;height:auto;" />
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('userName')): ?>
|
||||
<h2><a rel="author" href="<?php echo $user->link; ?>"><?php echo $user->name; ?></a></h2>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('userDescription') && isset($user->profile->description)): ?>
|
||||
<p class="latestItemsUserDescription"><?php echo $user->profile->description; ?></p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('userURL') || $this->params->get('userEmail')): ?>
|
||||
<p class="latestItemsUserAdditionalInfo">
|
||||
<?php if ($this->params->get('userURL') && isset($user->profile->url)): ?>
|
||||
<span class="latestItemsUserURL">
|
||||
<?php echo JText::_('K2_WEBSITE_URL'); ?>: <a rel="me" href="<?php echo $user->profile->url; ?>" target="_blank"><?php echo $user->profile->url; ?></a>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('userEmail')): ?>
|
||||
<span class="latestItemsUserEmail">
|
||||
<?php echo JText::_('K2_EMAIL'); ?>: <?php echo JHTML::_('Email.cloak', $user->email); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
|
||||
<?php echo $user->event->K2UserDisplay; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<!-- End K2 User block -->
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Start Items list -->
|
||||
<div class="latestItemList">
|
||||
<?php if($this->params->get('latestItemsDisplayEffect')=="first"): ?>
|
||||
|
||||
<?php foreach ($block->items as $itemCounter=>$item): K2HelperUtilities::setDefaultImage($item, 'latest', $this->params); ?>
|
||||
<?php if($itemCounter==0): ?>
|
||||
<?php $this->item=$item; echo $this->loadTemplate('item'); ?>
|
||||
<?php else: ?>
|
||||
<h2 class="latestItemTitleList">
|
||||
<?php if ($item->params->get('latestItemTitleLinked')): ?>
|
||||
<a href="<?php echo $item->link; ?>">
|
||||
<?php echo $item->title; ?>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<?php echo $item->title; ?>
|
||||
<?php endif; ?>
|
||||
</h2>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php else: ?>
|
||||
|
||||
<?php foreach ($block->items as $item): K2HelperUtilities::setDefaultImage($item, 'latest', $this->params); ?>
|
||||
<?php $this->item=$item; echo $this->loadTemplate('item'); ?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<!-- End Item list -->
|
||||
|
||||
</div>
|
||||
|
||||
<?php if(($key+1)%($this->params->get('latestItemsCols'))==0): ?>
|
||||
<div class="clr"></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endforeach; ?>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<!-- End K2 Latest Layout -->
|
||||
@ -0,0 +1,167 @@
|
||||
<?php
|
||||
/**
|
||||
* @version 2.6.x
|
||||
* @package K2
|
||||
* @author JoomlaWorks http://www.joomlaworks.net
|
||||
* @copyright Copyright (c) 2006 - 2014 JoomlaWorks Ltd. All rights reserved.
|
||||
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
|
||||
<!-- Start K2 Item Layout -->
|
||||
<div class="latestItemView">
|
||||
|
||||
<!-- Plugins: BeforeDisplay -->
|
||||
<?php echo $this->item->event->BeforeDisplay; ?>
|
||||
|
||||
<!-- K2 Plugins: K2BeforeDisplay -->
|
||||
<?php echo $this->item->event->K2BeforeDisplay; ?>
|
||||
|
||||
<div class="latestItemHeader">
|
||||
<?php if($this->item->params->get('latestItemTitle')): ?>
|
||||
<!-- Item title -->
|
||||
<h2 class="latestItemTitle">
|
||||
<?php if ($this->item->params->get('latestItemTitleLinked')): ?>
|
||||
<a href="<?php echo $this->item->link; ?>">
|
||||
<?php echo $this->item->title; ?>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<?php echo $this->item->title; ?>
|
||||
<?php endif; ?>
|
||||
</h2>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<?php if($this->item->params->get('latestItemDateCreated')): ?>
|
||||
<!-- Date created -->
|
||||
<span class="latestItemDateCreated">
|
||||
<?php echo JHTML::_('date', $this->item->created , JText::_('K2_DATE_FORMAT_LC2')); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Plugins: AfterDisplayTitle -->
|
||||
<?php echo $this->item->event->AfterDisplayTitle; ?>
|
||||
|
||||
<!-- K2 Plugins: K2AfterDisplayTitle -->
|
||||
<?php echo $this->item->event->K2AfterDisplayTitle; ?>
|
||||
|
||||
<div class="latestItemBody">
|
||||
|
||||
<!-- Plugins: BeforeDisplayContent -->
|
||||
<?php echo $this->item->event->BeforeDisplayContent; ?>
|
||||
|
||||
<!-- K2 Plugins: K2BeforeDisplayContent -->
|
||||
<?php echo $this->item->event->K2BeforeDisplayContent; ?>
|
||||
|
||||
<?php if($this->item->params->get('latestItemImage') && !empty($this->item->image)): ?>
|
||||
<!-- Item Image -->
|
||||
<div class="latestItemImageBlock">
|
||||
<span class="latestItemImage">
|
||||
<a href="<?php echo $this->item->link; ?>" title="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>">
|
||||
<img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" style="width:<?php echo $this->item->imageWidth; ?>px;height:auto;" />
|
||||
</a>
|
||||
</span>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($this->item->params->get('latestItemIntroText')): ?>
|
||||
<!-- Item introtext -->
|
||||
<div class="latestItemIntroText">
|
||||
<?php echo $this->item->introtext; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
|
||||
<!-- Plugins: AfterDisplayContent -->
|
||||
<?php echo $this->item->event->AfterDisplayContent; ?>
|
||||
|
||||
<!-- K2 Plugins: K2AfterDisplayContent -->
|
||||
<?php echo $this->item->event->K2AfterDisplayContent; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
|
||||
<?php if($this->item->params->get('latestItemCategory') || $this->item->params->get('latestItemTags')): ?>
|
||||
<div class="latestItemLinks">
|
||||
|
||||
<?php if($this->item->params->get('latestItemCategory')): ?>
|
||||
<!-- Item category name -->
|
||||
<div class="latestItemCategory">
|
||||
<span><?php echo JText::_('K2_PUBLISHED_IN'); ?></span>
|
||||
<a href="<?php echo $this->item->category->link; ?>"><?php echo $this->item->category->name; ?></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($this->item->params->get('latestItemTags') && count($this->item->tags)): ?>
|
||||
<!-- Item tags -->
|
||||
<div class="latestItemTagsBlock">
|
||||
<span><?php echo JText::_('K2_TAGGED_UNDER'); ?></span>
|
||||
<ul class="latestItemTags">
|
||||
<?php foreach ($this->item->tags as $tag): ?>
|
||||
<li><a href="<?php echo $tag->link; ?>"><?php echo $tag->name; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
|
||||
<?php if($this->params->get('latestItemVideo') && !empty($this->item->video)): ?>
|
||||
<!-- Item video -->
|
||||
<div class="latestItemVideoBlock">
|
||||
<h3><?php echo JText::_('K2_RELATED_VIDEO'); ?></h3>
|
||||
<span class="latestItemVideo<?php if($this->item->videoType=='embedded'): ?> embedded<?php endif; ?>"><?php echo $this->item->video; ?></span>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($this->item->params->get('latestItemCommentsAnchor') && ( ($this->item->params->get('comments') == '2' && !$this->user->guest) || ($this->item->params->get('comments') == '1')) ): ?>
|
||||
<!-- Anchor link to comments below -->
|
||||
<div class="latestItemCommentsLink">
|
||||
<?php if(!empty($this->item->event->K2CommentsCounter)): ?>
|
||||
<!-- K2 Plugins: K2CommentsCounter -->
|
||||
<?php echo $this->item->event->K2CommentsCounter; ?>
|
||||
<?php else: ?>
|
||||
<?php if($this->item->numOfComments > 0): ?>
|
||||
<a href="<?php echo $this->item->link; ?>#itemCommentsAnchor">
|
||||
<?php echo $this->item->numOfComments; ?> <?php echo ($this->item->numOfComments>1) ? JText::_('K2_COMMENTS') : JText::_('K2_COMMENT'); ?>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<a href="<?php echo $this->item->link; ?>#itemCommentsAnchor">
|
||||
<?php echo JText::_('K2_BE_THE_FIRST_TO_COMMENT'); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->item->params->get('latestItemReadMore')): ?>
|
||||
<!-- Item "read more..." link -->
|
||||
<div class="latestItemReadMore">
|
||||
<a class="k2ReadMore" href="<?php echo $this->item->link; ?>">
|
||||
<?php echo JText::_('K2_READ_MORE'); ?>
|
||||
</a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
|
||||
<!-- Plugins: AfterDisplay -->
|
||||
<?php echo $this->item->event->AfterDisplay; ?>
|
||||
|
||||
<!-- K2 Plugins: K2AfterDisplay -->
|
||||
<?php echo $this->item->event->K2AfterDisplay; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<!-- End K2 Item Layout -->
|
||||
147
deployed/trada/templates/trada/html/com_k2/default/tag.php
Normal file
147
deployed/trada/templates/trada/html/com_k2/default/tag.php
Normal file
@ -0,0 +1,147 @@
|
||||
<?php
|
||||
/**
|
||||
* @version 2.6.x
|
||||
* @package K2
|
||||
* @author JoomlaWorks http://www.joomlaworks.net
|
||||
* @copyright Copyright (c) 2006 - 2014 JoomlaWorks Ltd. All rights reserved.
|
||||
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
|
||||
<!-- Start K2 Tag Layout -->
|
||||
<div id="k2Container" class="tagView<?php if($this->params->get('pageclass_sfx')) echo ' '.$this->params->get('pageclass_sfx'); ?>">
|
||||
|
||||
<?php if($this->params->get('show_page_title')): ?>
|
||||
<!-- Page title -->
|
||||
<div class="componentheading<?php echo $this->params->get('pageclass_sfx')?>">
|
||||
<?php echo $this->escape($this->params->get('page_title')); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($this->params->get('tagFeedIcon',1)): ?>
|
||||
<!-- RSS feed icon -->
|
||||
<div class="k2FeedIcon">
|
||||
<a href="<?php echo $this->feed; ?>" title="<?php echo JText::_('K2_SUBSCRIBE_TO_THIS_RSS_FEED'); ?>">
|
||||
<span><?php echo JText::_('K2_SUBSCRIBE_TO_THIS_RSS_FEED'); ?></span>
|
||||
</a>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if(count($this->items)): ?>
|
||||
<div class="tagItemList">
|
||||
<?php foreach($this->items as $item): ?>
|
||||
|
||||
<!-- Start K2 Item Layout -->
|
||||
<div class="tagItemView">
|
||||
|
||||
<div class="tagItemHeader">
|
||||
<?php if($item->params->get('tagItemDateCreated',1)): ?>
|
||||
<!-- Date created -->
|
||||
<span class="tagItemDateCreated">
|
||||
<?php echo JHTML::_('date', $item->created , JText::_('K2_DATE_FORMAT_LC2')); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($item->params->get('tagItemTitle',1)): ?>
|
||||
<!-- Item title -->
|
||||
<h2 class="tagItemTitle">
|
||||
<?php if ($item->params->get('tagItemTitleLinked',1)): ?>
|
||||
<a href="<?php echo $item->link; ?>">
|
||||
<?php echo $item->title; ?>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<?php echo $item->title; ?>
|
||||
<?php endif; ?>
|
||||
</h2>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<div class="tagItemBody">
|
||||
<?php if($item->params->get('tagItemImage',1) && !empty($item->imageGeneric)): ?>
|
||||
<!-- Item Image -->
|
||||
<div class="tagItemImageBlock">
|
||||
<span class="tagItemImage">
|
||||
<a href="<?php echo $item->link; ?>" title="<?php if(!empty($item->image_caption)) echo K2HelperUtilities::cleanHtml($item->image_caption); else echo K2HelperUtilities::cleanHtml($item->title); ?>">
|
||||
<img src="<?php echo $item->imageGeneric; ?>" alt="<?php if(!empty($item->image_caption)) echo K2HelperUtilities::cleanHtml($item->image_caption); else echo K2HelperUtilities::cleanHtml($item->title); ?>" style="width:<?php echo $item->params->get('itemImageGeneric'); ?>px; height:auto;" />
|
||||
</a>
|
||||
</span>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($item->params->get('tagItemIntroText',1)): ?>
|
||||
<!-- Item introtext -->
|
||||
<div class="tagItemIntroText text-left">
|
||||
<?php echo $item->introtext; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
|
||||
<div class="clr"></div>
|
||||
|
||||
<?php if($item->params->get('tagItemExtraFields',0) && count($item->extra_fields)): ?>
|
||||
<!-- Item extra fields -->
|
||||
<div class="tagItemExtraFields">
|
||||
<h4><?php echo JText::_('K2_ADDITIONAL_INFO'); ?></h4>
|
||||
<ul>
|
||||
<?php foreach ($item->extra_fields as $key=>$extraField): ?>
|
||||
<?php if($extraField->value != ''): ?>
|
||||
<li class="<?php echo ($key%2) ? "odd" : "even"; ?> type<?php echo ucfirst($extraField->type); ?> group<?php echo $extraField->group; ?>">
|
||||
<?php if($extraField->type == 'header'): ?>
|
||||
<h4 class="tagItemExtraFieldsHeader"><?php echo $extraField->name; ?></h4>
|
||||
<?php else: ?>
|
||||
<span class="tagItemExtraFieldsLabel"><?php echo $extraField->name; ?></span>
|
||||
<span class="tagItemExtraFieldsValue"><?php echo $extraField->value; ?></span>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($item->params->get('tagItemCategory')): ?>
|
||||
<!-- Item category name -->
|
||||
<div class="tagItemCategory">
|
||||
<span><?php echo JText::_('K2_PUBLISHED_IN'); ?></span>
|
||||
<a href="<?php echo $item->category->link; ?>"><?php echo $item->category->name; ?></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($item->params->get('tagItemReadMore')): ?>
|
||||
<!-- Item "read more..." link -->
|
||||
<div class="tagItemReadMore">
|
||||
<a class="k2ReadMore" href="<?php echo $item->link; ?>">
|
||||
<?php echo JText::_('K2_READ_MORE'); ?>
|
||||
</a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<!-- End K2 Item Layout -->
|
||||
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
|
||||
<!-- Pagination -->
|
||||
<?php if($this->pagination->getPagesLinks()): ?>
|
||||
<div class="k2Pagination">
|
||||
<?php echo $this->pagination->getPagesLinks(); ?>
|
||||
<div class="clr"></div>
|
||||
<?php echo $this->pagination->getPagesCounter(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
<!-- End K2 Tag Layout -->
|
||||
113
deployed/trada/templates/trada/html/com_k2/default/tag_item.php
Normal file
113
deployed/trada/templates/trada/html/com_k2/default/tag_item.php
Normal file
@ -0,0 +1,113 @@
|
||||
<?php
|
||||
/**
|
||||
* @version 2.6.x
|
||||
* @package K2
|
||||
* @author JoomlaWorks http://www.joomlaworks.net
|
||||
* @copyright Copyright (c) 2006 - 2014 JoomlaWorks Ltd. All rights reserved.
|
||||
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Define default image size (do not change)
|
||||
K2HelperUtilities::setDefaultImage($this->item, 'itemlist', $this->params);
|
||||
|
||||
?>
|
||||
|
||||
<div class="t-single_blog">
|
||||
<?php if($this->item->params->get('catItemImage') && !empty($this->item->image)): ?>
|
||||
<!-- Item Image -->
|
||||
<a href="<?php echo $this->item->link; ?>" title="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>">
|
||||
<img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" class="img-responsive" />
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<div class="t-home_single_blog t-single_blog_text clearfix">
|
||||
<div class="col-lg-1 col-md-2 col-sm-2 col-xs-12 t-home_bloger_img">
|
||||
<div class="row">
|
||||
<div class="t-glyp_icon ">
|
||||
<?php if($this->item->params->get('catItemImage') && !empty($this->item->image)): ?>
|
||||
<span data-js-prompt="&#xe07f;" data-icon="" aria-hidden="true" class="glyph-item mega"></span>
|
||||
<?php endif; ?>
|
||||
<?php if(property_exists( $this->item->author, 'avatar' )): ?>
|
||||
<img class="wow swing center animated" alt="" data-wow-iteration="1" src="<?php echo $this->item->author->avatar; ?>" width="60">
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-11 col-md-10 col-sm-10 col-xs-12 t_home_blog_content pull-right">
|
||||
<div class="row t-home_blog_content_inner">
|
||||
<?php if($this->item->params->get('catItemTitle')): ?>
|
||||
<h5><?php echo $this->item->title; ?></h5>
|
||||
<?php endif; ?>
|
||||
<ul class="t-home_blog_info">
|
||||
<?php if($this->item->params->get('catItemDateCreated')): ?>
|
||||
<!-- Date created -->
|
||||
<li><span><?php echo JHTML::_( 'date', $this->item->created , 'M d Y' ); ?></span></li>
|
||||
<?php endif; ?>
|
||||
<?php if($this->item->params->get('catItemAuthor')): ?>
|
||||
<!-- Item Author -->
|
||||
<li><span class="catItemAuthor">
|
||||
<?php echo K2HelperUtilities::writtenBy($this->item->author->profile->gender); ?>
|
||||
<?php if(isset($this->item->author->link) && $this->item->author->link): ?>
|
||||
<a rel="author" href="<?php echo $this->item->author->link; ?>"><?php echo $this->item->author->name; ?></a>
|
||||
<?php else: ?>
|
||||
<?php echo $this->item->author->name; ?>
|
||||
<?php endif; ?>
|
||||
</span></li>
|
||||
<?php endif; ?>
|
||||
<?php if($this->item->params->get('catItemCommentsAnchor') && ( ($this->item->params->get('comments') == '2' && !$this->user->guest) || ($this->item->params->get('comments') == '1')) ): ?>
|
||||
<!-- Anchor link to comments below -->
|
||||
<li class="catItemCommentsLink">
|
||||
<?php if(!empty($this->item->event->K2CommentsCounter)): ?>
|
||||
<!-- K2 Plugins: K2CommentsCounter -->
|
||||
<span>
|
||||
<i aria-hidden="true" class="icon-bubbles"></i> <?php echo $this->item->event->K2CommentsCounter; ?>
|
||||
</span>
|
||||
<?php else: ?>
|
||||
<?php if($this->item->numOfComments > 0): ?>
|
||||
<a href="<?php echo $this->item->link; ?>#itemCommentsAnchor">
|
||||
<span><i aria-hidden="true" class="icon-bubbles"></i> <?php echo $this->item->numOfComments; ?></span>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<a href="<?php echo $this->item->link; ?>#itemCommentsAnchor">
|
||||
<span><i aria-hidden="true" class="icon-bubbles"></i> 0</span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php if($this->item->params->get('catItemRating')): ?>
|
||||
<!-- Item Rating -->
|
||||
<div class="catItemRatingBlock">
|
||||
<div class="itemRatingForm">
|
||||
<ul class="itemRatingList">
|
||||
<li class="itemCurrentRating" id="itemCurrentRating<?php echo $this->item->id; ?>" style="width:<?php echo $this->item->votingPercentage; ?>%;"></li>
|
||||
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_1_STAR_OUT_OF_5'); ?>" class="one-star">1</a></li>
|
||||
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_2_STARS_OUT_OF_5'); ?>" class="two-stars">2</a></li>
|
||||
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_3_STARS_OUT_OF_5'); ?>" class="three-stars">3</a></li>
|
||||
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_4_STARS_OUT_OF_5'); ?>" class="four-stars">4</a></li>
|
||||
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_5_STARS_OUT_OF_5'); ?>" class="five-stars">5</a></li>
|
||||
</ul>
|
||||
<div id="itemRatingLog<?php echo $this->item->id; ?>" class="itemRatingLog"><?php echo $this->item->numOfvotes; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
<?php if($this->item->params->get('catItemIntroText')): ?>
|
||||
<!-- Item introtext -->
|
||||
<div class="catItemIntroText">
|
||||
<?php echo $this->item->introtext; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->item->params->get('catItemReadMore')): ?>
|
||||
<!-- Item "read more..." link -->
|
||||
<a class="t-btn t-btn_bg k2ReadMore" href="<?php echo $this->item->link; ?>">
|
||||
<?php echo JText::_('K2_READ_MORE'); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
272
deployed/trada/templates/trada/html/com_k2/default/user.php
Normal file
272
deployed/trada/templates/trada/html/com_k2/default/user.php
Normal file
@ -0,0 +1,272 @@
|
||||
<?php
|
||||
/**
|
||||
* @version 2.6.x
|
||||
* @package K2
|
||||
* @author JoomlaWorks http://www.joomlaworks.net
|
||||
* @copyright Copyright (c) 2006 - 2014 JoomlaWorks Ltd. All rights reserved.
|
||||
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Get user stuff (do not change)
|
||||
$user = JFactory::getUser();
|
||||
|
||||
?>
|
||||
|
||||
<!-- Start K2 User Layout -->
|
||||
|
||||
<div id="k2Container" class="userView<?php if($this->params->get('pageclass_sfx')) echo ' '.$this->params->get('pageclass_sfx'); ?>">
|
||||
|
||||
<?php if($this->params->get('show_page_title') && $this->params->get('page_title')!=$this->user->name): ?>
|
||||
<!-- Page title -->
|
||||
<div class="componentheading<?php echo $this->params->get('pageclass_sfx')?>">
|
||||
<?php echo $this->escape($this->params->get('page_title')); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($this->params->get('userFeedIcon',1)): ?>
|
||||
<!-- RSS feed icon -->
|
||||
<div class="k2FeedIcon">
|
||||
<a href="<?php echo $this->feed; ?>" title="<?php echo JText::_('K2_SUBSCRIBE_TO_THIS_RSS_FEED'); ?>">
|
||||
<span><?php echo JText::_('K2_SUBSCRIBE_TO_THIS_RSS_FEED'); ?></span>
|
||||
</a>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('userImage') || $this->params->get('userName') || $this->params->get('userDescription') || $this->params->get('userURL') || $this->params->get('userEmail')): ?>
|
||||
<div class="userBlock">
|
||||
|
||||
<?php if(isset($this->addLink) && JRequest::getInt('id')==$user->id): ?>
|
||||
<!-- Item add link -->
|
||||
<span class="userItemAddLink">
|
||||
<a class="modal" rel="{handler:'iframe',size:{x:990,y:550}}" href="<?php echo $this->addLink; ?>">
|
||||
<?php echo JText::_('K2_POST_A_NEW_ITEM'); ?>
|
||||
</a>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('userImage') && !empty($this->user->avatar)): ?>
|
||||
<img src="<?php echo $this->user->avatar; ?>" alt="<?php echo htmlspecialchars($this->user->name, ENT_QUOTES, 'UTF-8'); ?>" style="width:<?php echo $this->params->get('userImageWidth'); ?>px; height:auto;" />
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('userName')): ?>
|
||||
<h2><?php echo $this->user->name; ?></h2>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('userDescription') && trim($this->user->profile->description)): ?>
|
||||
<div class="userDescription"><?php echo $this->user->profile->description; ?></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (($this->params->get('userURL') && isset($this->user->profile->url) && $this->user->profile->url) || $this->params->get('userEmail')): ?>
|
||||
<div class="userAdditionalInfo">
|
||||
<?php if ($this->params->get('userURL') && isset($this->user->profile->url) && $this->user->profile->url): ?>
|
||||
<span class="userURL">
|
||||
<?php echo JText::_('K2_WEBSITE_URL'); ?>: <a href="<?php echo $this->user->profile->url; ?>" target="_blank" rel="me"><?php echo $this->user->profile->url; ?></a>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('userEmail')): ?>
|
||||
<span class="userEmail">
|
||||
<?php echo JText::_('K2_EMAIL'); ?>: <?php echo JHTML::_('Email.cloak', $this->user->email); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
|
||||
<?php echo $this->user->event->K2UserDisplay; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
|
||||
<?php if(count($this->items)): ?>
|
||||
<!-- Item list -->
|
||||
<div class="userItemList">
|
||||
<?php foreach ($this->items as $item): ?>
|
||||
|
||||
<!-- Start K2 Item Layout -->
|
||||
<div class="userItemView<?php if(!$item->published || ($item->publish_up != $this->nullDate && $item->publish_up > $this->now) || ($item->publish_down != $this->nullDate && $item->publish_down < $this->now)) echo ' userItemViewUnpublished'; ?><?php echo ($item->featured) ? ' userItemIsFeatured' : ''; ?>">
|
||||
|
||||
<!-- Plugins: BeforeDisplay -->
|
||||
<?php echo $item->event->BeforeDisplay; ?>
|
||||
|
||||
<!-- K2 Plugins: K2BeforeDisplay -->
|
||||
<?php echo $item->event->K2BeforeDisplay; ?>
|
||||
|
||||
<div class="userItemHeader">
|
||||
<?php if($this->params->get('userItemDateCreated')): ?>
|
||||
<!-- Date created -->
|
||||
<span class="userItemDateCreated">
|
||||
<?php echo JHTML::_('date', $item->created , JText::_('K2_DATE_FORMAT_LC2')); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($this->params->get('userItemTitle')): ?>
|
||||
<!-- Item title -->
|
||||
<h3 class="userItemTitle">
|
||||
<?php if(isset($item->editLink)): ?>
|
||||
<!-- Item edit link -->
|
||||
<span class="userItemEditLink">
|
||||
<a class="modal" rel="{handler:'iframe',size:{x:990,y:550}}" href="<?php echo $item->editLink; ?>">
|
||||
<?php echo JText::_('K2_EDIT_ITEM'); ?>
|
||||
</a>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('userItemTitleLinked') && $item->published): ?>
|
||||
<a href="<?php echo $item->link; ?>">
|
||||
<?php echo $item->title; ?>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<?php echo $item->title; ?>
|
||||
<?php endif; ?>
|
||||
<?php if(!$item->published || ($item->publish_up != $this->nullDate && $item->publish_up > $this->now) || ($item->publish_down != $this->nullDate && $item->publish_down < $this->now)): ?>
|
||||
<span>
|
||||
<sup>
|
||||
<?php echo JText::_('K2_UNPUBLISHED'); ?>
|
||||
</sup>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
</h3>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<!-- Plugins: AfterDisplayTitle -->
|
||||
<?php echo $item->event->AfterDisplayTitle; ?>
|
||||
|
||||
<!-- K2 Plugins: K2AfterDisplayTitle -->
|
||||
<?php echo $item->event->K2AfterDisplayTitle; ?>
|
||||
|
||||
<div class="userItemBody">
|
||||
|
||||
<!-- Plugins: BeforeDisplayContent -->
|
||||
<?php echo $item->event->BeforeDisplayContent; ?>
|
||||
|
||||
<!-- K2 Plugins: K2BeforeDisplayContent -->
|
||||
<?php echo $item->event->K2BeforeDisplayContent; ?>
|
||||
|
||||
<?php if($this->params->get('userItemImage') && !empty($item->imageGeneric)): ?>
|
||||
<!-- Item Image -->
|
||||
<div class="userItemImageBlock">
|
||||
<span class="userItemImage">
|
||||
<a href="<?php echo $item->link; ?>" title="<?php if(!empty($item->image_caption)) echo K2HelperUtilities::cleanHtml($item->image_caption); else echo K2HelperUtilities::cleanHtml($item->title); ?>">
|
||||
<img src="<?php echo $item->imageGeneric; ?>" alt="<?php if(!empty($item->image_caption)) echo K2HelperUtilities::cleanHtml($item->image_caption); else echo K2HelperUtilities::cleanHtml($item->title); ?>" style="width:<?php echo $this->params->get('itemImageGeneric'); ?>px; height:auto;" />
|
||||
</a>
|
||||
</span>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($this->params->get('userItemIntroText')): ?>
|
||||
<!-- Item introtext -->
|
||||
<div class="userItemIntroText">
|
||||
<?php echo $item->introtext; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
|
||||
<!-- Plugins: AfterDisplayContent -->
|
||||
<?php echo $item->event->AfterDisplayContent; ?>
|
||||
|
||||
<!-- K2 Plugins: K2AfterDisplayContent -->
|
||||
<?php echo $item->event->K2AfterDisplayContent; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
|
||||
<?php if($this->params->get('userItemCategory') || $this->params->get('userItemTags')): ?>
|
||||
<div class="userItemLinks">
|
||||
|
||||
<?php if($this->params->get('userItemCategory')): ?>
|
||||
<!-- Item category name -->
|
||||
<div class="userItemCategory">
|
||||
<span><?php echo JText::_('K2_PUBLISHED_IN'); ?></span>
|
||||
<a href="<?php echo $item->category->link; ?>"><?php echo $item->category->name; ?></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($this->params->get('userItemTags') && isset($item->tags)): ?>
|
||||
<!-- Item tags -->
|
||||
<div class="userItemTagsBlock">
|
||||
<span><?php echo JText::_('K2_TAGGED_UNDER'); ?></span>
|
||||
<ul class="userItemTags">
|
||||
<?php foreach ($item->tags as $tag): ?>
|
||||
<li><a href="<?php echo $tag->link; ?>"><?php echo $tag->name; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
|
||||
<?php if($this->params->get('userItemCommentsAnchor') && ( ($this->params->get('comments') == '2' && !$this->user->guest) || ($this->params->get('comments') == '1')) ): ?>
|
||||
<!-- Anchor link to comments below -->
|
||||
<div class="userItemCommentsLink">
|
||||
<?php if(!empty($item->event->K2CommentsCounter)): ?>
|
||||
<!-- K2 Plugins: K2CommentsCounter -->
|
||||
<?php echo $item->event->K2CommentsCounter; ?>
|
||||
<?php else: ?>
|
||||
<?php if($item->numOfComments > 0): ?>
|
||||
<a href="<?php echo $item->link; ?>#itemCommentsAnchor">
|
||||
<?php echo $item->numOfComments; ?> <?php echo ($item->numOfComments>1) ? JText::_('K2_COMMENTS') : JText::_('K2_COMMENT'); ?>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<a href="<?php echo $item->link; ?>#itemCommentsAnchor">
|
||||
<?php echo JText::_('K2_BE_THE_FIRST_TO_COMMENT'); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('userItemReadMore')): ?>
|
||||
<!-- Item "read more..." link -->
|
||||
<div class="userItemReadMore">
|
||||
<a class="k2ReadMore" href="<?php echo $item->link; ?>">
|
||||
<?php echo JText::_('K2_READ_MORE'); ?>
|
||||
</a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
|
||||
<!-- Plugins: AfterDisplay -->
|
||||
<?php echo $item->event->AfterDisplay; ?>
|
||||
|
||||
<!-- K2 Plugins: K2AfterDisplay -->
|
||||
<?php echo $item->event->K2AfterDisplay; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<!-- End K2 Item Layout -->
|
||||
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
|
||||
<!-- Pagination -->
|
||||
<?php if(count($this->pagination->getPagesLinks())): ?>
|
||||
<div class="k2Pagination">
|
||||
<?php echo $this->pagination->getPagesLinks(); ?>
|
||||
<div class="clr"></div>
|
||||
<?php echo $this->pagination->getPagesCounter(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- End K2 User Layout -->
|
||||
85
deployed/trada/templates/trada/html/com_k2/list/category.php
Normal file
85
deployed/trada/templates/trada/html/com_k2/list/category.php
Normal file
@ -0,0 +1,85 @@
|
||||
<?php
|
||||
/**
|
||||
* @version 2.6.x
|
||||
* @package K2
|
||||
* @author JoomlaWorks http://www.joomlaworks.net
|
||||
* @copyright Copyright (c) 2006 - 2014 JoomlaWorks Ltd. All rights reserved.
|
||||
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
|
||||
<!-- Start K2 Category Layout -->
|
||||
<div id="k2Container" class="itemListView">
|
||||
|
||||
<?php if((isset($this->leading) || isset($this->primary) || isset($this->secondary) || isset($this->links)) && (count($this->leading) || count($this->primary) || count($this->secondary) || count($this->links))): ?>
|
||||
<!-- Item list -->
|
||||
<div class="itemList">
|
||||
|
||||
<?php if(isset($this->leading) && count($this->leading)): ?>
|
||||
<?php foreach($this->leading as $key=>$item): ?>
|
||||
<?php
|
||||
// Load category_item.php by default
|
||||
$this->item = $item;
|
||||
echo $this->loadTemplate('item');
|
||||
?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if(isset($this->primary) && count($this->primary)): ?>
|
||||
<?php foreach($this->primary as $key=>$item): ?>
|
||||
<?php
|
||||
// Load category_item.php by default
|
||||
$this->item=$item;
|
||||
echo $this->loadTemplate('item');
|
||||
?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if(isset($this->secondary) && count($this->secondary)): ?>
|
||||
<?php foreach($this->secondary as $key=>$item): ?>
|
||||
<?php
|
||||
// Load category_item.php by default
|
||||
$this->item = $item;
|
||||
echo $this->loadTemplate('item');
|
||||
?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if(isset($this->links) && count($this->links)): ?>
|
||||
<?php foreach($this->links as $key=>$item): ?>
|
||||
<?php
|
||||
// Load category_item_links.php by default
|
||||
$this->item=$item;
|
||||
echo $this->loadTemplate('item');
|
||||
?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Pagination -->
|
||||
<?php if($this->pagination->getPagesLinks()): ?>
|
||||
<div class="t-pagination clearfix">
|
||||
<div class="t-pagination_number pull-left">
|
||||
<?php if($this->params->get('catPagination')) echo $this->pagination->getPagesLinks(); ?>
|
||||
</div>
|
||||
<div class="t-pagination_nav pull-right">
|
||||
<?php $data = $this->pagination->getData(); ?>
|
||||
<ul>
|
||||
<?php if( property_exists( $data, 'previous' ) && $data->previous->link ) : ?>
|
||||
<li><a class="fa fa-caret-left" href="<?php echo $data->previous->link; ?>"></a></li>
|
||||
<?php endif; ?>
|
||||
<?php if( property_exists( $data, 'next' ) && $data->next->link ) : ?>
|
||||
<li><a class="fa fa-caret-right" href="<?php echo $data->next->link; ?>"></a></li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<!-- End K2 Category Layout -->
|
||||
@ -0,0 +1,113 @@
|
||||
<?php
|
||||
/**
|
||||
* @version 2.6.x
|
||||
* @package K2
|
||||
* @author JoomlaWorks http://www.joomlaworks.net
|
||||
* @copyright Copyright (c) 2006 - 2014 JoomlaWorks Ltd. All rights reserved.
|
||||
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Define default image size (do not change)
|
||||
K2HelperUtilities::setDefaultImage($this->item, 'itemlist', $this->params);
|
||||
|
||||
?>
|
||||
|
||||
<div class="t-single_blog">
|
||||
<?php if($this->item->params->get('catItemImage') && !empty($this->item->image)): ?>
|
||||
<!-- Item Image -->
|
||||
<a href="<?php echo $this->item->link; ?>" title="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>">
|
||||
<img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" class="img-responsive" />
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<div class="t-home_single_blog t-single_blog_text clearfix">
|
||||
<div class="col-lg-1 col-md-2 col-sm-2 col-xs-12 t-home_bloger_img">
|
||||
<div class="row">
|
||||
<div class="t-glyp_icon ">
|
||||
<?php if($this->item->params->get('catItemImage') && !empty($this->item->image)): ?>
|
||||
<span data-js-prompt="&#xe07f;" data-icon="" aria-hidden="true" class="glyph-item mega"></span>
|
||||
<?php endif; ?>
|
||||
<?php if(property_exists( $this->item->author, 'avatar' )): ?>
|
||||
<img class="wow swing center animated" alt="" data-wow-iteration="1" src="<?php echo $this->item->author->avatar; ?>" width="60">
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-11 col-md-10 col-sm-10 col-xs-12 t_home_blog_content pull-right">
|
||||
<div class="row t-home_blog_content_inner">
|
||||
<?php if($this->item->params->get('catItemTitle')): ?>
|
||||
<h5><?php echo $this->item->title; ?></h5>
|
||||
<?php endif; ?>
|
||||
<ul class="t-home_blog_info">
|
||||
<?php if($this->item->params->get('catItemDateCreated')): ?>
|
||||
<!-- Date created -->
|
||||
<li><span><?php echo JHTML::_( 'date', $this->item->created , 'M d Y' ); ?></span></li>
|
||||
<?php endif; ?>
|
||||
<?php if($this->item->params->get('catItemAuthor')): ?>
|
||||
<!-- Item Author -->
|
||||
<li><span class="catItemAuthor">
|
||||
<?php echo K2HelperUtilities::writtenBy($this->item->author->profile->gender); ?>
|
||||
<?php if(isset($this->item->author->link) && $this->item->author->link): ?>
|
||||
<a rel="author" href="<?php echo $this->item->author->link; ?>"><?php echo $this->item->author->name; ?></a>
|
||||
<?php else: ?>
|
||||
<?php echo $this->item->author->name; ?>
|
||||
<?php endif; ?>
|
||||
</span></li>
|
||||
<?php endif; ?>
|
||||
<?php if($this->item->params->get('catItemCommentsAnchor') && ( ($this->item->params->get('comments') == '2' && !$this->user->guest) || ($this->item->params->get('comments') == '1')) ): ?>
|
||||
<!-- Anchor link to comments below -->
|
||||
<li class="catItemCommentsLink">
|
||||
<?php if(!empty($this->item->event->K2CommentsCounter)): ?>
|
||||
<!-- K2 Plugins: K2CommentsCounter -->
|
||||
<span>
|
||||
<i aria-hidden="true" class="icon-bubbles"></i> <?php echo $this->item->event->K2CommentsCounter; ?>
|
||||
</span>
|
||||
<?php else: ?>
|
||||
<?php if($this->item->numOfComments > 0): ?>
|
||||
<a href="<?php echo $this->item->link; ?>#itemCommentsAnchor">
|
||||
<span><i aria-hidden="true" class="icon-bubbles"></i> <?php echo $this->item->numOfComments; ?></span>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<a href="<?php echo $this->item->link; ?>#itemCommentsAnchor">
|
||||
<span><i aria-hidden="true" class="icon-bubbles"></i> 0</span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php if($this->item->params->get('catItemRating')): ?>
|
||||
<!-- Item Rating -->
|
||||
<div class="catItemRatingBlock">
|
||||
<div class="itemRatingForm">
|
||||
<ul class="itemRatingList">
|
||||
<li class="itemCurrentRating" id="itemCurrentRating<?php echo $this->item->id; ?>" style="width:<?php echo $this->item->votingPercentage; ?>%;"></li>
|
||||
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_1_STAR_OUT_OF_5'); ?>" class="one-star">1</a></li>
|
||||
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_2_STARS_OUT_OF_5'); ?>" class="two-stars">2</a></li>
|
||||
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_3_STARS_OUT_OF_5'); ?>" class="three-stars">3</a></li>
|
||||
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_4_STARS_OUT_OF_5'); ?>" class="four-stars">4</a></li>
|
||||
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_5_STARS_OUT_OF_5'); ?>" class="five-stars">5</a></li>
|
||||
</ul>
|
||||
<div id="itemRatingLog<?php echo $this->item->id; ?>" class="itemRatingLog"><?php echo $this->item->numOfvotes; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
<?php if($this->item->params->get('catItemIntroText')): ?>
|
||||
<!-- Item introtext -->
|
||||
<div class="catItemIntroText">
|
||||
<?php echo $this->item->introtext; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->item->params->get('catItemReadMore')): ?>
|
||||
<!-- Item "read more..." link -->
|
||||
<a class="t-btn t-btn_bg k2ReadMore" href="<?php echo $this->item->link; ?>">
|
||||
<?php echo JText::_('K2_READ_MORE'); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/**
|
||||
* @version 2.6.x
|
||||
* @package K2
|
||||
* @author JoomlaWorks http://www.joomlaworks.net
|
||||
* @copyright Copyright (c) 2006 - 2014 JoomlaWorks Ltd. All rights reserved.
|
||||
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Define default image size (do not change)
|
||||
K2HelperUtilities::setDefaultImage($this->item, 'itemlist', $this->params);
|
||||
|
||||
?>
|
||||
|
||||
<!-- Start K2 Item Layout (links) -->
|
||||
<div class="catItemView group<?php echo ucfirst($this->item->itemGroup); ?><?php if($this->item->params->get('pageclass_sfx')) echo ' '.$this->item->params->get('pageclass_sfx'); ?>">
|
||||
<?php if($this->item->params->get('catItemTitle')): ?>
|
||||
<!-- Item title -->
|
||||
<h3 class="catItemTitle">
|
||||
<?php if ($this->item->params->get('catItemTitleLinked')): ?>
|
||||
<a href="<?php echo $this->item->link; ?>">
|
||||
<?php echo $this->item->title; ?>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<?php echo $this->item->title; ?>
|
||||
<?php endif; ?>
|
||||
</h3>
|
||||
|
||||
<?php if($this->item->params->get('catItemImage') && !empty($this->item->image)): ?>
|
||||
<!-- Item Image -->
|
||||
<div class="catItemImageBlock">
|
||||
<span class="catItemImage">
|
||||
<a href="<?php echo $this->item->link; ?>" title="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>">
|
||||
<img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" />
|
||||
</a>
|
||||
</span>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<!-- End K2 Item Layout (links) -->
|
||||
214
deployed/trada/templates/trada/html/com_k2/list/item.php
Normal file
214
deployed/trada/templates/trada/html/com_k2/list/item.php
Normal file
@ -0,0 +1,214 @@
|
||||
<?php
|
||||
/**
|
||||
* @version 2.6.x
|
||||
* @package K2
|
||||
* @author JoomlaWorks http://www.joomlaworks.net
|
||||
* @copyright Copyright (c) 2006 - 2014 JoomlaWorks Ltd. All rights reserved.
|
||||
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
|
||||
<div class="t-blog_detail clearfix">
|
||||
<div class="col-lg-1 col-md-1 col-sm-2 col-xs-12 t-blog_detail_bloger_img">
|
||||
<div class="row">
|
||||
<div class="t-glyp_icon ">
|
||||
<span class="glyph-item mega" aria-hidden="true" data-icon="" data-js-prompt="&#xe07f;"></span>
|
||||
<?php if(property_exists( $this->item->author, 'avatar' )): ?>
|
||||
<img class="wow swing center animated" alt="" data-wow-iteration="1" style="visibility: visible; animation-iteration-count: 1; animation-name: swing;" src="<?php echo $this->item->author->avatar; ?>" width="60">
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-11 col-md-11 col-sm-10 col-xs-12 t-blog_detail_content">
|
||||
<?php if($this->item->params->get('itemImage') && !empty($this->item->image)): ?>
|
||||
<!-- Item Image -->
|
||||
<img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" class="img-responsive" />
|
||||
<?php endif; ?>
|
||||
<div class="t-blog_detail_info">
|
||||
<?php if($this->item->params->get('itemTitle')): ?>
|
||||
<h2><?php echo $this->item->title; ?></h2>
|
||||
<?php endif; ?>
|
||||
<ul class="t-blog_general_info">
|
||||
<?php if($this->item->params->get('catItemDateCreated')): ?>
|
||||
<!-- Date created -->
|
||||
<li><span><?php echo JHTML::_( 'date', $this->item->created , 'M d Y' ); ?></span></li>
|
||||
<?php endif; ?>
|
||||
<?php if($this->item->params->get('catItemAuthor')): ?>
|
||||
<!-- Item Author -->
|
||||
<li><span class="catItemAuthor">
|
||||
<?php echo K2HelperUtilities::writtenBy($this->item->author->profile->gender); ?>
|
||||
<?php echo $this->item->author->name; ?>
|
||||
</span></li>
|
||||
<?php endif; ?>
|
||||
<?php if($this->item->params->get('catItemCommentsAnchor') && ( ($this->item->params->get('comments') == '2' && !$this->user->guest) || ($this->item->params->get('comments') == '1')) ): ?>
|
||||
<!-- Anchor link to comments below -->
|
||||
<li class="catItemCommentsLink">
|
||||
<?php if(!empty($this->item->event->K2CommentsCounter)): ?>
|
||||
<!-- K2 Plugins: K2CommentsCounter -->
|
||||
<span>
|
||||
<i aria-hidden="true" class="icon-bubbles"></i> <?php echo $this->item->event->K2CommentsCounter; ?>
|
||||
</span>
|
||||
<?php else: ?>
|
||||
<?php if($this->item->numOfComments > 0): ?>
|
||||
<a href="<?php echo $this->item->link; ?>#itemCommentsAnchor">
|
||||
<span><i class="icon-bubbles" aria-hidden="true"></i> <?php echo $this->item->numOfComments; ?></span>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<a href="<?php echo $this->item->link; ?>#itemCommentsAnchor">
|
||||
<span><i aria-hidden="true" class="icon-bubbles"></i> 0</span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php if($this->item->params->get('itemRating')): ?>
|
||||
<!-- Item Rating -->
|
||||
<li>
|
||||
<div class="itemRatingBlock">
|
||||
<div class="itemRatingForm">
|
||||
<ul class="itemRatingList">
|
||||
<li class="itemCurrentRating" id="itemCurrentRating<?php echo $this->item->id; ?>" style="width:<?php echo $this->item->votingPercentage; ?>%;"></li>
|
||||
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_1_STAR_OUT_OF_5'); ?>" class="one-star">1</a></li>
|
||||
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_2_STARS_OUT_OF_5'); ?>" class="two-stars">2</a></li>
|
||||
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_3_STARS_OUT_OF_5'); ?>" class="three-stars">3</a></li>
|
||||
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_4_STARS_OUT_OF_5'); ?>" class="four-stars">4</a></li>
|
||||
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_5_STARS_OUT_OF_5'); ?>" class="five-stars">5</a></li>
|
||||
</ul>
|
||||
<div id="itemRatingLog<?php echo $this->item->id; ?>" class="itemRatingLog"><?php echo $this->item->numOfvotes; ?></div>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="t-blog_detail_text">
|
||||
<?php if(!empty($this->item->fulltext)): ?>
|
||||
<?php if($this->item->params->get('itemIntroText')): ?>
|
||||
<!-- Item introtext -->
|
||||
<div class="itemIntroText">
|
||||
<?php echo $this->item->introtext; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if($this->item->params->get('itemFullText')): ?>
|
||||
<!-- Item fulltext -->
|
||||
<div class="itemFullText">
|
||||
<?php echo $this->item->fulltext; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<!-- Item text -->
|
||||
<div class="itemFullText">
|
||||
<?php echo $this->item->introtext; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="t-pagination clearfix">
|
||||
<?php if($this->item->params->get('itemNavigation') && !JRequest::getCmd('print') && (isset($this->item->nextLink) || isset($this->item->previousLink))): ?>
|
||||
<div class="t-pagination_nav pull-left">
|
||||
<ul>
|
||||
<?php if(isset($this->item->previousLink)): ?>
|
||||
<li><a class="fa fa-caret-left" href="<?php echo $this->item->previousLink; ?>"></a></li>
|
||||
<?php endif; ?>
|
||||
<?php if(isset($this->item->nextLink)): ?>
|
||||
<li><a class="fa fa-caret-right" href="<?php echo $this->item->nextLink; ?>"></a></li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if($this->item->params->get('itemTwitterButton',1) || $this->item->params->get('itemFacebookButton',1) || $this->item->params->get('itemGooglePlusOneButton',1)): ?>
|
||||
<!-- Social sharing -->
|
||||
<div class="t-blog_social_links pull-right">
|
||||
<ul>
|
||||
|
||||
<?php if($this->item->params->get('itemTwitterButton',1)): ?>
|
||||
<!-- Twitter Button -->
|
||||
<li><a href="https://twitter.com/intent/tweet?text=<?php echo K2HelperUtilities::cleanHtml($this->item->title) . ' ' . $this->item->link; ?>" class="fa fa-twitter"></a></li>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($this->item->params->get('itemFacebookButton',1)): ?>
|
||||
<!-- Facebook Button -->
|
||||
<li><a href="https://www.facebook.com/sharer.php?u=<?php echo $this->item->link; ?>&t=<?php echo K2HelperUtilities::cleanHtml($this->item->title); ?>" class="fa fa-facebook"></a></li>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($this->item->params->get('itemGooglePlusOneButton',1)): ?>
|
||||
<!-- Google +1 Button -->
|
||||
<li><a href="https://plus.google.com/share?url=<?php echo $this->item->link; ?>" class="fa fa-google-plus"></a></li>
|
||||
<?php endif; ?>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- BLOG COMMENT START -->
|
||||
<?php if($this->item->params->get('itemComments') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2')) && empty($this->item->event->K2CommentsBlock)): ?>
|
||||
<!-- Item comments -->
|
||||
<a name="itemCommentsAnchor" id="itemCommentsAnchor"></a>
|
||||
|
||||
<div class="t-blog_comments xitemComments">
|
||||
|
||||
<?php if($this->item->params->get('commentsFormPosition')=='above' && $this->item->params->get('itemComments') && !JRequest::getInt('print') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2' && K2HelperPermissions::canAddComment($this->item->catid)))): ?>
|
||||
<!-- Item comments form -->
|
||||
<div class="itemCommentsForm">
|
||||
<?php echo $this->loadTemplate('comments_form'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($this->item->numOfComments>0 && $this->item->params->get('itemComments') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2'))): ?>
|
||||
<!-- Item user comments -->
|
||||
<header class="t-section_subheader">
|
||||
<h4 class="itemCommentsCounter">
|
||||
<span><?php echo $this->item->numOfComments; ?></span> <?php echo ($this->item->numOfComments>1) ? JText::_('K2_COMMENTS') : JText::_('K2_COMMENT'); ?>
|
||||
</h4>
|
||||
<span class="t-section_subheader_border"></span>
|
||||
</header>
|
||||
|
||||
<div class="t-comment_listing itemCommentsList">
|
||||
<?php foreach ($this->item->comments as $key=>$comment): ?>
|
||||
<div class="t-single_user_cemment">
|
||||
<header class="t-single_comment_header clearfix">
|
||||
<h5><?php echo JFilterOutput::cleanText($comment->userName); ?></h5>
|
||||
<span><?php echo JHTML::_('date', $comment->commentDate, JText::_('K2_DATE_FORMAT_LC2')); ?></span>
|
||||
</header>
|
||||
<div class="t-single_comment_text">
|
||||
<p><?php echo $comment->commentText; ?></p>
|
||||
</div>
|
||||
<?php if($comment->reportUserLink): ?>
|
||||
<a href="<?php echo $comment->reportUserLink; ?>" class="t-single_comment_reply"><?php echo JText::_('K2_FLAG_AS_SPAMMER'); ?></a>
|
||||
<?php endif; ?>
|
||||
<?php if($comment->userImage): ?>
|
||||
<div class="t-single_comment_user_img">
|
||||
<img src="<?php echo $comment->userImage; ?>" alt="<?php echo JFilterOutput::cleanText($comment->userName); ?>" width="<?php echo $this->item->params->get('commenterImgWidth'); ?>" class="wow swing center animated" data-wow-iteration="1" alt="" style="visibility: visible; animation-iteration-count: 1; animation-name: swing;" />
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
|
||||
<div class="itemCommentsPagination">
|
||||
<?php echo $this->pagination->getPagesLinks(); ?>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($this->item->params->get('commentsFormPosition')=='below' && $this->item->params->get('itemComments') && !JRequest::getInt('print') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2' && K2HelperPermissions::canAddComment($this->item->catid)))): ?>
|
||||
<!-- Item comments form -->
|
||||
<div class="itemCommentsForm">
|
||||
<?php echo $this->loadTemplate('comments_form'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php $user = JFactory::getUser(); if ($this->item->params->get('comments') == '2' && $user->guest): ?>
|
||||
<div><?php echo JText::_('K2_LOGIN_TO_POST_COMMENTS'); ?></div>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
@ -0,0 +1,65 @@
|
||||
<?php
|
||||
/**
|
||||
* @version 2.6.x
|
||||
* @package K2
|
||||
* @author JoomlaWorks http://www.joomlaworks.net
|
||||
* @copyright Copyright (c) 2006 - 2014 JoomlaWorks Ltd. All rights reserved.
|
||||
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
<div class="t-blog_leave_comment">
|
||||
<header class="t-section_subheader">
|
||||
<h4><?php echo JText::_('K2_LEAVE_A_COMMENT') ?></h4>
|
||||
<span class="t-section_subheader_border"></span>
|
||||
</header>
|
||||
<?php if($this->params->get('commentsFormNotes')): ?>
|
||||
<p class="xitemCommentsFormNotes text-left">
|
||||
<?php if($this->params->get('commentsFormNotesText')): ?>
|
||||
<?php echo nl2br($this->params->get('commentsFormNotesText')); ?>
|
||||
<?php else: ?>
|
||||
<?php echo JText::_('K2_COMMENT_FORM_NOTES') ?>
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
<form action="<?php echo JURI::root(true); ?>/index.php" method="post" id="comment-form" class="t-leave_comment_form form-validate">
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
|
||||
<label class="formName hidden" for="userName"><?php echo JText::_('K2_NAME'); ?> *</label>
|
||||
<input class="xinputbox" type="text" name="userName" id="userName" value="<?php echo JText::_('K2_ENTER_YOUR_NAME'); ?>" onblur="if(this.value=='') this.value='<?php echo JText::_('K2_ENTER_YOUR_NAME'); ?>';" onfocus="if(this.value=='<?php echo JText::_('K2_ENTER_YOUR_NAME'); ?>') this.value='';" />
|
||||
</div>
|
||||
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
|
||||
<label class="formEmail hidden" for="commentEmail"><?php echo JText::_('K2_EMAIL'); ?> *</label>
|
||||
<input class="xinputbox" type="text" name="commentEmail" id="commentEmail" value="<?php echo JText::_('K2_ENTER_YOUR_EMAIL_ADDRESS'); ?>" onblur="if(this.value=='') this.value='<?php echo JText::_('K2_ENTER_YOUR_EMAIL_ADDRESS'); ?>';" onfocus="if(this.value=='<?php echo JText::_('K2_ENTER_YOUR_EMAIL_ADDRESS'); ?>') this.value='';" />
|
||||
</div>
|
||||
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
|
||||
<label class="formUrl hidden" for="commentURL"><?php echo JText::_('K2_WEBSITE_URL'); ?></label>
|
||||
<input class="xinputbox" type="text" name="commentURL" id="commentURL" value="<?php echo JText::_('K2_ENTER_YOUR_SITE_URL'); ?>" onblur="if(this.value=='') this.value='<?php echo JText::_('K2_ENTER_YOUR_SITE_URL'); ?>';" onfocus="if(this.value=='<?php echo JText::_('K2_ENTER_YOUR_SITE_URL'); ?>') this.value='';" />
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
||||
<label class="formComment hidden" for="commentText"><?php echo JText::_('K2_MESSAGE'); ?> *</label>
|
||||
<textarea rows="20" cols="10" class="xinputbox" onblur="if(this.value=='') this.value='<?php echo JText::_('K2_ENTER_YOUR_MESSAGE_HERE'); ?>';" onfocus="if(this.value=='<?php echo JText::_('K2_ENTER_YOUR_MESSAGE_HERE'); ?>') this.value='';" name="commentText" id="commentText"><?php echo JText::_('K2_ENTER_YOUR_MESSAGE_HERE'); ?></textarea>
|
||||
</div>
|
||||
<?php if($this->params->get('recaptcha') && ($this->user->guest || $this->params->get('recaptchaForRegistered', 1))): ?>
|
||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
||||
<label class="formRecaptcha hidden"><?php echo JText::_('K2_ENTER_THE_TWO_WORDS_YOU_SEE_BELOW'); ?></label>
|
||||
<div id="recaptcha"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
||||
<input type="submit" class="button" id="xsubmitCommentButton" value="<?php echo JText::_('K2_SUBMIT_COMMENT'); ?>" />
|
||||
</div>
|
||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
||||
<span id="formLog"></span>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="option" value="com_k2" />
|
||||
<input type="hidden" name="view" value="item" />
|
||||
<input type="hidden" name="task" value="comment" />
|
||||
<input type="hidden" name="itemID" value="<?php echo JRequest::getInt('id'); ?>" />
|
||||
<?php echo JHTML::_('form.token'); ?>
|
||||
</form>
|
||||
</div>
|
||||
959
deployed/trada/templates/trada/html/com_k2/list/itemform.php
Normal file
959
deployed/trada/templates/trada/html/com_k2/list/itemform.php
Normal file
@ -0,0 +1,959 @@
|
||||
<?php
|
||||
/**
|
||||
* @version 2.6.x
|
||||
* @package K2
|
||||
* @author JoomlaWorks http://www.joomlaworks.net
|
||||
* @copyright Copyright (c) 2006 - 2014 JoomlaWorks Ltd. All rights reserved.
|
||||
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$document = JFactory::getDocument();
|
||||
$document->addScriptDeclaration("
|
||||
Joomla.submitbutton = function(pressbutton){
|
||||
if (pressbutton == 'cancel') {
|
||||
submitform( pressbutton );
|
||||
return;
|
||||
}
|
||||
if (\$K2.trim(\$K2('#title').val()) == '') {
|
||||
alert( '".JText::_('K2_ITEM_MUST_HAVE_A_TITLE', true)."' );
|
||||
}
|
||||
else if (\$K2.trim(\$K2('#catid').val()) == '0') {
|
||||
alert( '".JText::_('K2_PLEASE_SELECT_A_CATEGORY', true)."' );
|
||||
}
|
||||
else {
|
||||
syncExtraFieldsEditor();
|
||||
var validation = validateExtraFields();
|
||||
if(validation === true) {
|
||||
\$K2('#selectedTags option').attr('selected', 'selected');
|
||||
submitform( pressbutton );
|
||||
}
|
||||
}
|
||||
}
|
||||
");
|
||||
|
||||
?>
|
||||
|
||||
<form action="<?php echo JURI::root(true); ?>/index.php" enctype="multipart/form-data" method="post" name="adminForm" id="adminForm">
|
||||
<?php if($this->mainframe->isSite()): ?>
|
||||
<div id="k2FrontendContainer">
|
||||
<div id="k2Frontend">
|
||||
<table class="k2FrontendToolbar" cellpadding="2" cellspacing="4">
|
||||
<tr>
|
||||
<td id="toolbar-save" class="button">
|
||||
<a class="toolbar" href="#" onclick="Joomla.submitbutton('save'); return false;"> <span title="<?php echo JText::_('K2_SAVE'); ?>" class="icon-32-save icon-save"></span> <?php echo JText::_('K2_SAVE'); ?> </a>
|
||||
</td>
|
||||
<td id="toolbar-cancel" class="button">
|
||||
<a class="toolbar" href="#"> <span title="<?php echo JText::_('K2_CANCEL'); ?>" class="icon-32-cancel icon-cancel"></span> <?php echo JText::_('K2_CLOSE'); ?> </a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div id="k2FrontendEditToolbar">
|
||||
<h2 class="header icon-48-k2">
|
||||
<?php echo (JRequest::getInt('cid')) ? JText::_('K2_EDIT_ITEM') : JText::_('K2_ADD_ITEM'); ?>
|
||||
</h2>
|
||||
</div>
|
||||
<div class="clr"></div>
|
||||
<hr class="sep" />
|
||||
<div id="k2FrontendPermissionsNotice">
|
||||
<p><?php echo $this->permissionsMessage; ?></p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div id="k2ToggleSidebarContainer"> <a href="#" id="k2ToggleSidebar"><?php echo JText::_('K2_TOGGLE_SIDEBAR'); ?></a> </div>
|
||||
<table cellspacing="0" cellpadding="0" border="0" class="adminFormK2Container table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<table class="adminFormK2">
|
||||
<tr>
|
||||
<td class="adminK2LeftCol">
|
||||
<label for="title"><?php echo JText::_('K2_TITLE'); ?></label>
|
||||
</td>
|
||||
<td class="adminK2RightCol">
|
||||
<input class="text_area k2TitleBox" type="text" name="title" id="title" maxlength="250" value="<?php echo $this->row->title; ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="adminK2LeftCol">
|
||||
<label for="alias"><?php echo JText::_('K2_TITLE_ALIAS'); ?></label>
|
||||
</td>
|
||||
<td class="adminK2RightCol">
|
||||
<input class="text_area k2TitleAliasBox" type="text" name="alias" id="alias" maxlength="250" value="<?php echo $this->row->alias; ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="adminK2LeftCol">
|
||||
<label><?php echo JText::_('K2_CATEGORY'); ?></label>
|
||||
</td>
|
||||
<td class="adminK2RightCol">
|
||||
<?php echo $this->lists['categories']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="adminK2LeftCol">
|
||||
<label><?php echo JText::_('K2_TAGS'); ?></label>
|
||||
</td>
|
||||
<td class="adminK2RightCol">
|
||||
<?php if($this->params->get('taggingSystem')): ?>
|
||||
<!-- Free tagging -->
|
||||
<ul class="tags">
|
||||
<?php if(isset($this->row->tags) && count($this->row->tags)): ?>
|
||||
<?php foreach($this->row->tags as $tag): ?>
|
||||
<li class="tagAdded">
|
||||
<?php echo $tag->name; ?>
|
||||
<span title="<?php echo JText::_('K2_CLICK_TO_REMOVE_TAG'); ?>" class="tagRemove">x</span>
|
||||
<input type="hidden" name="tags[]" value="<?php echo $tag->name; ?>" />
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
<li class="tagAdd">
|
||||
<input type="text" id="search-field" />
|
||||
</li>
|
||||
<li class="clr"></li>
|
||||
</ul>
|
||||
<span class="k2Note"> <?php echo JText::_('K2_WRITE_A_TAG_AND_PRESS_RETURN_OR_COMMA_TO_ADD_IT'); ?> </span>
|
||||
<?php else: ?>
|
||||
<!-- Selection based tagging -->
|
||||
<?php if( !$this->params->get('lockTags') || $this->user->gid>23): ?>
|
||||
<div style="float:left;">
|
||||
<input type="text" name="tag" id="tag" />
|
||||
<input type="button" id="newTagButton" value="<?php echo JText::_('K2_ADD'); ?>" />
|
||||
</div>
|
||||
<div id="tagsLog"></div>
|
||||
<div class="clr"></div>
|
||||
<span class="k2Note"> <?php echo JText::_('K2_WRITE_A_TAG_AND_PRESS_ADD_TO_INSERT_IT_TO_THE_AVAILABLE_TAGS_LISTNEW_TAGS_ARE_APPENDED_AT_THE_BOTTOM_OF_THE_AVAILABLE_TAGS_LIST_LEFT'); ?> </span>
|
||||
<?php endif; ?>
|
||||
<table cellspacing="0" cellpadding="0" border="0" id="tagLists">
|
||||
<tr>
|
||||
<td id="tagListsLeft">
|
||||
<span><?php echo JText::_('K2_AVAILABLE_TAGS'); ?></span> <?php echo $this->lists['tags']; ?>
|
||||
</td>
|
||||
<td id="tagListsButtons">
|
||||
<input type="button" id="addTagButton" value="<?php echo JText::_('K2_ADD'); ?> »" />
|
||||
<br />
|
||||
<br />
|
||||
<input type="button" id="removeTagButton" value="« <?php echo JText::_('K2_REMOVE'); ?>" />
|
||||
</td>
|
||||
<td id="tagListsRight">
|
||||
<span><?php echo JText::_('K2_SELECTED_TAGS'); ?></span> <?php echo $this->lists['selectedTags']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if($this->mainframe->isAdmin() || ($this->mainframe->isSite() && $this->permissions->get('publish') || ($this->permissions->get('editPublished') && $this->row->id && $this->row->published) )): ?>
|
||||
<?php if($this->permissions->get('publish')): ?>
|
||||
<tr>
|
||||
<td class="adminK2LeftCol">
|
||||
<label for="featured"><?php echo JText::_('K2_IS_IT_FEATURED'); ?></label>
|
||||
</td>
|
||||
<td class="adminK2RightCol">
|
||||
<?php echo $this->lists['featured']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<tr>
|
||||
<td class="adminK2LeftCol">
|
||||
<label><?php echo JText::_('K2_PUBLISHED'); ?></label>
|
||||
</td>
|
||||
<td class="adminK2RightCol">
|
||||
<?php echo $this->lists['published']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
|
||||
<!-- Required extra field warning -->
|
||||
<div id="k2ExtraFieldsValidationResults">
|
||||
<h3><?php echo JText::_('K2_THE_FOLLOWING_FIELDS_ARE_REQUIRED'); ?></h3>
|
||||
<ul id="k2ExtraFieldsMissing">
|
||||
<li><?php echo JText::_('K2_LOADING'); ?></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- Tabs start here -->
|
||||
<div class="simpleTabs" id="k2Tabs">
|
||||
<ul class="simpleTabsNavigation">
|
||||
<li id="tabContent"><a href="#k2Tab1"><?php echo JText::_('K2_CONTENT'); ?></a></li>
|
||||
<?php if ($this->params->get('showImageTab')): ?>
|
||||
<li id="tabImage"><a href="#k2Tab2"><?php echo JText::_('K2_IMAGE'); ?></a></li>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('showImageGalleryTab')): ?>
|
||||
<li id="tabImageGallery"><a href="#k2Tab3"><?php echo JText::_('K2_IMAGE_GALLERY'); ?></a></li>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('showVideoTab')): ?>
|
||||
<li id="tabVideo"><a href="#k2Tab4"><?php echo JText::_('K2_MEDIA'); ?></a></li>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('showExtraFieldsTab')): ?>
|
||||
<li id="tabExtraFields"><a href="#k2Tab5"><?php echo JText::_('K2_EXTRA_FIELDS'); ?></a></li>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('showAttachmentsTab')): ?>
|
||||
<li id="tabAttachments"><a href="#k2Tab6"><?php echo JText::_('K2_ATTACHMENTS'); ?></a></li>
|
||||
<?php endif; ?>
|
||||
<?php if(count(array_filter($this->K2PluginsItemOther)) && $this->params->get('showK2Plugins')): ?>
|
||||
<li id="tabPlugins"><a href="#k2Tab7"><?php echo JText::_('K2_PLUGINS'); ?></a></li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
|
||||
<!-- Tab content -->
|
||||
<div class="simpleTabsContent" id="k2Tab1">
|
||||
<?php if($this->params->get('mergeEditors')): ?>
|
||||
<div class="k2ItemFormEditor"> <?php echo $this->text; ?>
|
||||
<div class="dummyHeight"></div>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div class="k2ItemFormEditor"> <span class="k2ItemFormEditorTitle"> <?php echo JText::_('K2_INTROTEXT_TEASER_CONTENTEXCERPT'); ?> </span> <?php echo $this->introtext; ?>
|
||||
<div class="dummyHeight"></div>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<div class="k2ItemFormEditor"> <span class="k2ItemFormEditorTitle"> <?php echo JText::_('K2_FULLTEXT_MAIN_CONTENT'); ?> </span> <?php echo $this->fulltext; ?>
|
||||
<div class="dummyHeight"></div>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if (count($this->K2PluginsItemContent)): ?>
|
||||
<div class="itemPlugins">
|
||||
<?php foreach($this->K2PluginsItemContent as $K2Plugin): ?>
|
||||
<?php if(!is_null($K2Plugin)): ?>
|
||||
<fieldset>
|
||||
<legend><?php echo $K2Plugin->name; ?></legend>
|
||||
<?php echo $K2Plugin->fields; ?>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php if ($this->params->get('showImageTab')): ?>
|
||||
<!-- Tab image -->
|
||||
<div class="simpleTabsContent" id="k2Tab2">
|
||||
<table class="admintable">
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_ITEM_IMAGE'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<input type="file" name="image" class="fileUpload" />
|
||||
<i>(<?php echo JText::_('K2_MAX_UPLOAD_SIZE'); ?>: <?php echo ini_get('upload_max_filesize'); ?>)</i>
|
||||
<br />
|
||||
<br />
|
||||
<input type="text" name="existingImage" id="existingImageValue" class="text_area" readonly />
|
||||
<input type="button" value="<?php echo JText::_('K2_BROWSE_SERVER'); ?>" id="k2ImageBrowseServer" />
|
||||
<br />
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_ITEM_IMAGE_CAPTION'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="image_caption" size="30" class="text_area" value="<?php echo $this->row->image_caption; ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_ITEM_IMAGE_CREDITS'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="image_credits" size="30" class="text_area" value="<?php echo $this->row->image_credits; ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<?php if (!empty($this->row->image)): ?>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_ITEM_IMAGE_PREVIEW'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<a class="modal" rel="{handler: 'image'}" href="<?php echo $this->row->image; ?>" title="<?php echo JText::_('K2_CLICK_ON_IMAGE_TO_PREVIEW_IN_ORIGINAL_SIZE'); ?>">
|
||||
<img alt="<?php echo $this->row->title; ?>" src="<?php echo $this->row->thumb; ?>" class="k2AdminImage" />
|
||||
</a>
|
||||
<input type="checkbox" name="del_image" id="del_image" />
|
||||
<label for="del_image"><?php echo JText::_('K2_CHECK_THIS_BOX_TO_DELETE_CURRENT_IMAGE_OR_JUST_UPLOAD_A_NEW_IMAGE_TO_REPLACE_THE_EXISTING_ONE'); ?></label>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
<?php if (count($this->K2PluginsItemImage)): ?>
|
||||
<div class="itemPlugins">
|
||||
<?php foreach($this->K2PluginsItemImage as $K2Plugin): ?>
|
||||
<?php if(!is_null($K2Plugin)): ?>
|
||||
<fieldset>
|
||||
<legend><?php echo $K2Plugin->name; ?></legend>
|
||||
<?php echo $K2Plugin->fields; ?>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('showImageGalleryTab')): ?>
|
||||
<!-- Tab image gallery -->
|
||||
<div class="simpleTabsContent" id="k2Tab3">
|
||||
<?php if ($this->lists['checkSIG']): ?>
|
||||
<table class="admintable table" id="item_gallery_content">
|
||||
<tr>
|
||||
<td align="right" valign="top" class="key">
|
||||
<?php echo JText::_('K2_COM_BE_ITEM_ITEM_IMAGE_GALLERY'); ?>
|
||||
</td>
|
||||
<td valign="top">
|
||||
<?php if($this->sigPro): ?>
|
||||
<a class="modal" rel="{handler: 'iframe', size: {x: 940, y: 560}}" href="index.php?option=com_sigpro&view=galleries&task=create&newFolder=<?php echo $this->sigProFolder; ?>&type=k2&tmpl=component&template=system"><?php echo JText::_('K2_COM_BE_ITEM_SIGPRO_UPLOAD'); ?></a> <i>(<?php echo JText::_('K2_COM_BE_ITEM_SIGPRO_UPLOAD_NOTE'); ?>)</i>
|
||||
<input name="sigProFolder" type="hidden" value="<?php echo $this->sigProFolder; ?>" />
|
||||
<br />
|
||||
<br />
|
||||
<?php echo JText::_('K2_OR'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo JText::_('K2_UPLOAD_A_ZIP_FILE_WITH_IMAGES'); ?> <input type="file" name="gallery" class="fileUpload" /> <span class="hasTip k2GalleryNotice" title="<?php echo JText::_('K2_UPLOAD_A_ZIP_FILE_HELP_HEADER'); ?>::<?php echo JText::_('K2_UPLOAD_A_ZIP_FILE_HELP_TEXT'); ?>"><?php echo JText::_('K2_UPLOAD_A_ZIP_FILE_HELP'); ?></span> <i>(<?php echo JText::_('K2_MAX_UPLOAD_SIZE'); ?>: <?php echo ini_get('upload_max_filesize'); ?>)</i>
|
||||
<br />
|
||||
<br />
|
||||
<?php echo JText::_('K2_OR_ENTER_A_FLICKR_SET_URL'); ?><?php echo JText::_('K2_OR_ENTER_A_FLICKR_SET_URL'); ?>
|
||||
<input type="text" name="flickrGallery" size="50" value="<?php echo ($this->row->galleryType == 'flickr') ? $this->row->galleryValue : ''; ?>" /> <span class="hasTip k2GalleryNotice" title="<?php echo JText::_('K2_VALID_FLICK_API_KEY_HELP_HEADER'); ?>::<?php echo JText::_('K2_VALID_FLICK_API_KEY_HELP_TEXT'); ?>"><?php echo JText::_('K2_UPLOAD_A_ZIP_FILE_HELP'); ?></span>
|
||||
|
||||
<?php if (!empty($this->row->gallery)): ?>
|
||||
<!-- Preview -->
|
||||
<div id="itemGallery">
|
||||
<?php echo $this->row->gallery; ?>
|
||||
<br />
|
||||
<input type="checkbox" name="del_gallery" id="del_gallery" />
|
||||
<label for="del_gallery"><?php echo JText::_('K2_CHECK_THIS_BOX_TO_DELETE_CURRENT_IMAGE_GALLERY_OR_JUST_UPLOAD_A_NEW_IMAGE_GALLERY_TO_REPLACE_THE_EXISTING_ONE'); ?></label>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php else: ?>
|
||||
<?php if (K2_JVERSION == '15'): ?>
|
||||
<dl id="system-message">
|
||||
<dt class="notice"><?php echo JText::_('K2_NOTICE'); ?></dt>
|
||||
<dd class="notice message fade">
|
||||
<ul>
|
||||
<li><?php echo JText::_('K2_NOTICE_PLEASE_INSTALL_JOOMLAWORKS_SIMPLE_IMAGE_GALLERY_PRO_PLUGIN_IF_YOU_WANT_TO_USE_THE_IMAGE_GALLERY_FEATURES_OF_K2'); ?></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
<?php elseif(K2_JVERSION == '25'): ?>
|
||||
<div id="system-message-container">
|
||||
<dl id="system-message">
|
||||
<dt class="notice"><?php echo JText::_('K2_NOTICE'); ?></dt>
|
||||
<dd class="notice message">
|
||||
<ul>
|
||||
<li><?php echo JText::_('K2_NOTICE_PLEASE_INSTALL_JOOMLAWORKS_SIMPLE_IMAGE_GALLERY_PRO_PLUGIN_IF_YOU_WANT_TO_USE_THE_IMAGE_GALLERY_FEATURES_OF_K2'); ?></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div class="alert">
|
||||
<h4 class="alert-heading"><?php echo JText::_('K2_NOTICE'); ?></h4>
|
||||
<div><p><?php echo JText::_('K2_NOTICE_PLEASE_INSTALL_JOOMLAWORKS_SIMPLE_IMAGE_GALLERY_PRO_PLUGIN_IF_YOU_WANT_TO_USE_THE_IMAGE_GALLERY_FEATURES_OF_K2'); ?></p></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php if (count($this->K2PluginsItemGallery)): ?>
|
||||
<div class="itemPlugins">
|
||||
<?php foreach($this->K2PluginsItemGallery as $K2Plugin): ?>
|
||||
<?php if(!is_null($K2Plugin)): ?>
|
||||
<fieldset>
|
||||
<legend><?php echo $K2Plugin->name; ?></legend>
|
||||
<?php echo $K2Plugin->fields; ?>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('showVideoTab')): ?>
|
||||
<!-- Tab video -->
|
||||
<div class="simpleTabsContent" id="k2Tab4">
|
||||
<?php if ($this->lists['checkAllVideos']): ?>
|
||||
<table class="admintable" id="item_video_content">
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_MEDIA_SOURCE'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<div id="k2VideoTabs" class="simpleTabs">
|
||||
<ul class="simpleTabsNavigation">
|
||||
<li><a href="#k2VideoTab1"><?php echo JText::_('K2_UPLOAD'); ?></a></li>
|
||||
<li><a href="#k2VideoTab2"><?php echo JText::_('K2_BROWSE_SERVERUSE_REMOTE_MEDIA'); ?></a></li>
|
||||
<li><a href="#k2VideoTab3"><?php echo JText::_('K2_MEDIA_USE_ONLINE_VIDEO_SERVICE'); ?></a></li>
|
||||
<li><a href="#k2VideoTab4"><?php echo JText::_('K2_EMBED'); ?></a></li>
|
||||
</ul>
|
||||
<div id="k2VideoTab1" class="simpleTabsContent">
|
||||
<div class="panel" id="Upload_video">
|
||||
<input type="file" name="video" class="fileUpload" />
|
||||
<i>(<?php echo JText::_('K2_MAX_UPLOAD_SIZE'); ?>: <?php echo ini_get('upload_max_filesize'); ?>)</i> </div>
|
||||
</div>
|
||||
<div id="k2VideoTab2" class="simpleTabsContent">
|
||||
<div class="panel" id="Remote_video"> <a id="k2MediaBrowseServer" href="index.php?option=com_k2&view=media&type=video&tmpl=component&fieldID=remoteVideo"><?php echo JText::_('K2_BROWSE_VIDEOS_ON_SERVER')?></a> <?php echo JText::_('K2_OR'); ?> <?php echo JText::_('K2_PASTE_REMOTE_VIDEO_URL'); ?>
|
||||
<br />
|
||||
<br />
|
||||
<input type="text" size="50" name="remoteVideo" id="remoteVideo" value="<?php echo $this->lists['remoteVideo'] ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div id="k2VideoTab3" class="simpleTabsContent">
|
||||
<div class="panel" id="Video_from_provider"> <?php echo JText::_('K2_SELECT_VIDEO_PROVIDER'); ?> <?php echo $this->lists['providers']; ?> <br/><br/> <?php echo JText::_('K2_AND_ENTER_VIDEO_ID'); ?>
|
||||
<input type="text" size="50" name="videoID" value="<?php echo $this->lists['providerVideo'] ?>" />
|
||||
<br />
|
||||
<br />
|
||||
<a class="modal" rel="{handler: 'iframe', size: {x: 990, y: 600}}" href="http://www.joomlaworks.net/allvideos-documentation"><?php echo JText::_('K2_READ_THE_ALLVIDEOS_DOCUMENTATION_FOR_MORE'); ?></a> </div>
|
||||
</div>
|
||||
<div id="k2VideoTab4" class="simpleTabsContent">
|
||||
<div class="panel" id="embedVideo">
|
||||
<?php echo JText::_('K2_PASTE_HTML_EMBED_CODE_BELOW'); ?>
|
||||
<br />
|
||||
<textarea name="embedVideo" rows="5" cols="50" class="textarea"><?php echo $this->lists['embedVideo']; ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_MEDIA_CAPTION'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="video_caption" size="50" class="text_area" value="<?php echo $this->row->video_caption; ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_MEDIA_CREDITS'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="video_credits" size="50" class="text_area" value="<?php echo $this->row->video_credits; ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<?php if($this->row->video): ?>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_MEDIA_PREVIEW'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $this->row->video; ?>
|
||||
<br />
|
||||
<input type="checkbox" name="del_video" id="del_video" />
|
||||
<label for="del_video"><?php echo JText::_('K2_CHECK_THIS_BOX_TO_DELETE_CURRENT_VIDEO_OR_USE_THE_FORM_ABOVE_TO_REPLACE_THE_EXISTING_ONE'); ?></label>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
<?php else: ?>
|
||||
<?php if (K2_JVERSION == '15'): ?>
|
||||
<dl id="system-message">
|
||||
<dt class="notice"><?php echo JText::_('K2_NOTICE'); ?></dt>
|
||||
<dd class="notice message fade">
|
||||
<ul>
|
||||
<li><?php echo JText::_('K2_NOTICE_PLEASE_INSTALL_JOOMLAWORKS_ALLVIDEOS_PLUGIN_IF_YOU_WANT_TO_USE_THE_FULL_VIDEO_FEATURES_OF_K2'); ?></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
<?php elseif(K2_JVERSION == '25'): ?>
|
||||
<div id="system-message-container">
|
||||
<dl id="system-message">
|
||||
<dt class="notice"><?php echo JText::_('K2_NOTICE'); ?></dt>
|
||||
<dd class="notice message">
|
||||
<ul>
|
||||
<li><?php echo JText::_('K2_NOTICE_PLEASE_INSTALL_JOOMLAWORKS_ALLVIDEOS_PLUGIN_IF_YOU_WANT_TO_USE_THE_FULL_VIDEO_FEATURES_OF_K2'); ?></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div class="alert">
|
||||
<h4 class="alert-heading"><?php echo JText::_('K2_NOTICE'); ?></h4>
|
||||
<div><p><?php echo JText::_('K2_NOTICE_PLEASE_INSTALL_JOOMLAWORKS_ALLVIDEOS_PLUGIN_IF_YOU_WANT_TO_USE_THE_FULL_VIDEO_FEATURES_OF_K2'); ?></p></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<table class="admintable" id="item_video_content">
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_MEDIA_SOURCE'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<div id="k2VideoTabs" class="simpleTabs">
|
||||
<ul class="simpleTabsNavigation">
|
||||
<li><a href="#k2VideoTab4"><?php echo JText::_('K2_EMBED'); ?></a></li>
|
||||
</ul>
|
||||
<div class="simpleTabsContent" id="k2VideoTab4">
|
||||
<div class="panel" id="embedVideo">
|
||||
<?php echo JText::_('K2_PASTE_HTML_EMBED_CODE_BELOW'); ?>
|
||||
<br />
|
||||
<textarea name="embedVideo" rows="5" cols="50" class="textarea"><?php echo $this->lists['embedVideo']; ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_MEDIA_CAPTION'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="video_caption" size="50" class="text_area" value="<?php echo $this->row->video_caption; ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_MEDIA_CREDITS'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="video_credits" size="50" class="text_area" value="<?php echo $this->row->video_credits; ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<?php if($this->row->video): ?>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_MEDIA_PREVIEW'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $this->row->video; ?>
|
||||
<br />
|
||||
<input type="checkbox" name="del_video" id="del_video" />
|
||||
<label for="del_video"><?php echo JText::_('K2_USE_THE_FORM_ABOVE_TO_REPLACE_THE_EXISTING_VIDEO_OR_CHECK_THIS_BOX_TO_DELETE_CURRENT_VIDEO'); ?></label>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
<?php if (count($this->K2PluginsItemVideo)): ?>
|
||||
<div class="itemPlugins">
|
||||
<?php foreach($this->K2PluginsItemVideo as $K2Plugin): ?>
|
||||
<?php if(!is_null($K2Plugin)): ?>
|
||||
<fieldset>
|
||||
<legend><?php echo $K2Plugin->name; ?></legend>
|
||||
<?php echo $K2Plugin->fields; ?>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('showExtraFieldsTab')): ?>
|
||||
<!-- Tab extra fields -->
|
||||
<div class="simpleTabsContent" id="k2Tab5">
|
||||
<div id="extraFieldsContainer">
|
||||
<?php if (count($this->extraFields)): ?>
|
||||
<table class="admintable" id="extraFields">
|
||||
<?php foreach($this->extraFields as $extraField): ?>
|
||||
<?php if($extraField->type == 'header'): ?>
|
||||
<tr>
|
||||
<td colspan="2" ><h4 class="k2ExtraFieldHeader"><?php echo $extraField->name; ?></h4></td>
|
||||
</tr>
|
||||
<?php else: ?>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<label for="K2ExtraField_<?php echo $extraField->id; ?>"><?php echo $extraField->name; ?></label>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $extraField->element; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
<?php else: ?>
|
||||
<?php if (K2_JVERSION == '15'): ?>
|
||||
<dl id="system-message">
|
||||
<dt class="notice"><?php echo JText::_('K2_NOTICE'); ?></dt>
|
||||
<dd class="notice message fade">
|
||||
<ul>
|
||||
<li><?php echo JText::_('K2_PLEASE_SELECT_A_CATEGORY_FIRST_TO_RETRIEVE_ITS_RELATED_EXTRA_FIELDS'); ?></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
<?php elseif (K2_JVERSION == '25'): ?>
|
||||
<div id="system-message-container">
|
||||
<dl id="system-message">
|
||||
<dt class="notice"><?php echo JText::_('K2_NOTICE'); ?></dt>
|
||||
<dd class="notice message">
|
||||
<ul>
|
||||
<li><?php echo JText::_('K2_PLEASE_SELECT_A_CATEGORY_FIRST_TO_RETRIEVE_ITS_RELATED_EXTRA_FIELDS'); ?></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div class="alert">
|
||||
<h4 class="alert-heading"><?php echo JText::_('K2_NOTICE'); ?></h4>
|
||||
<div>
|
||||
<p><?php echo JText::_('K2_PLEASE_SELECT_A_CATEGORY_FIRST_TO_RETRIEVE_ITS_RELATED_EXTRA_FIELDS'); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php if (count($this->K2PluginsItemExtraFields)): ?>
|
||||
<div class="itemPlugins">
|
||||
<?php foreach($this->K2PluginsItemExtraFields as $K2Plugin): ?>
|
||||
<?php if(!is_null($K2Plugin)): ?>
|
||||
<fieldset>
|
||||
<legend><?php echo $K2Plugin->name; ?></legend>
|
||||
<?php echo $K2Plugin->fields; ?>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('showAttachmentsTab')): ?>
|
||||
<!-- Tab attachements -->
|
||||
<div class="simpleTabsContent" id="k2Tab6">
|
||||
<div class="itemAttachments">
|
||||
<?php if (count($this->row->attachments)): ?>
|
||||
<table class="adminlist">
|
||||
<tr>
|
||||
<th>
|
||||
<?php echo JText::_('K2_FILENAME'); ?>
|
||||
</th>
|
||||
<th>
|
||||
<?php echo JText::_('K2_TITLE'); ?>
|
||||
</th>
|
||||
<th>
|
||||
<?php echo JText::_('K2_TITLE_ATTRIBUTE'); ?>
|
||||
</th>
|
||||
<th>
|
||||
<?php echo JText::_('K2_DOWNLOADS'); ?>
|
||||
</th>
|
||||
<th>
|
||||
<?php echo JText::_('K2_OPERATIONS'); ?>
|
||||
</th>
|
||||
</tr>
|
||||
<?php foreach($this->row->attachments as $attachment): ?>
|
||||
<tr>
|
||||
<td class="attachment_entry">
|
||||
<?php echo $attachment->filename; ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $attachment->title; ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $attachment->titleAttribute; ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $attachment->hits; ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?php echo $attachment->link; ?>"><?php echo JText::_('K2_DOWNLOAD'); ?></a> <a class="deleteAttachmentButton" href="<?php echo JURI::base(true); ?>/index.php?option=com_k2&view=item&task=deleteAttachment&id=<?php echo $attachment->id?>&cid=<?php echo $this->row->id; ?>"><?php echo JText::_('K2_DELETE'); ?></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div id="addAttachment">
|
||||
<input type="button" id="addAttachmentButton" value="<?php echo JText::_('K2_ADD_ATTACHMENT_FIELD'); ?>" />
|
||||
<i>(<?php echo JText::_('K2_MAX_UPLOAD_SIZE'); ?>: <?php echo ini_get('upload_max_filesize'); ?>)</i> </div>
|
||||
<div id="itemAttachments"></div>
|
||||
<?php if (count($this->K2PluginsItemAttachments)): ?>
|
||||
<div class="itemPlugins">
|
||||
<?php foreach($this->K2PluginsItemAttachments as $K2Plugin): ?>
|
||||
<?php if(!is_null($K2Plugin)): ?>
|
||||
<fieldset>
|
||||
<legend><?php echo $K2Plugin->name; ?></legend>
|
||||
<?php echo $K2Plugin->fields; ?>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if(count(array_filter($this->K2PluginsItemOther)) && $this->params->get('showK2Plugins')): ?>
|
||||
<!-- Tab other plugins -->
|
||||
<div class="simpleTabsContent" id="k2Tab7">
|
||||
<div class="itemPlugins">
|
||||
<?php foreach($this->K2PluginsItemOther as $K2Plugin): ?>
|
||||
<?php if(!is_null($K2Plugin)): ?>
|
||||
<fieldset>
|
||||
<legend><?php echo $K2Plugin->name; ?></legend>
|
||||
<?php echo $K2Plugin->fields; ?>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<!-- Tabs end here -->
|
||||
|
||||
<input type="hidden" name="isSite" value="<?php echo (int)$this->mainframe->isSite(); ?>" />
|
||||
<?php if($this->mainframe->isSite()): ?>
|
||||
<input type="hidden" name="lang" value="<?php echo JRequest::getCmd('lang'); ?>" />
|
||||
<?php endif; ?>
|
||||
<input type="hidden" name="id" value="<?php echo $this->row->id; ?>" />
|
||||
<input type="hidden" name="option" value="com_k2" />
|
||||
<input type="hidden" name="view" value="item" />
|
||||
<input type="hidden" name="task" value="<?php echo JRequest::getVar('task'); ?>" />
|
||||
<input type="hidden" name="Itemid" value="<?php echo JRequest::getInt('Itemid'); ?>" />
|
||||
<?php echo JHTML::_('form.token'); ?>
|
||||
</td>
|
||||
<td id="adminFormK2Sidebar"<?php if($this->mainframe->isSite() && !$this->params->get('sideBarDisplayFrontend')): ?> style="display:none;"<?php endif; ?> class="xmlParamsFields">
|
||||
<?php if($this->row->id): ?>
|
||||
<table class="sidebarDetails">
|
||||
<tr>
|
||||
<td>
|
||||
<strong><?php echo JText::_('K2_ITEM_ID'); ?></strong>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $this->row->id; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong><?php echo JText::_('K2_PUBLISHED'); ?></strong>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo ($this->row->published > 0) ? JText::_('K2_YES') : JText::_('K2_NO'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong><?php echo JText::_('K2_FEATURED'); ?></strong>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo ($this->row->featured > 0) ? JText::_('K2_YES'): JText::_('K2_NO'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong><?php echo JText::_('K2_CREATED_DATE'); ?></strong>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $this->lists['created']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong><?php echo JText::_('K2_CREATED_BY'); ?></strong>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $this->row->author; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong><?php echo JText::_('K2_MODIFIED_DATE'); ?></strong>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $this->lists['modified']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong><?php echo JText::_('K2_MODIFIED_BY'); ?></strong>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $this->row->moderator; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong><?php echo JText::_('K2_HITS'); ?></strong>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $this->row->hits; ?>
|
||||
<?php if($this->row->hits): ?>
|
||||
<input id="resetHitsButton" type="button" value="<?php echo JText::_('K2_RESET'); ?>" class="button" name="resetHits" />
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if($this->row->id): ?>
|
||||
<tr>
|
||||
<td>
|
||||
<strong><?php echo JText::_('K2_RATING'); ?></strong>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $this->row->ratingCount; ?> <?php echo JText::_('K2_VOTES'); ?>
|
||||
<?php if($this->row->ratingCount): ?>
|
||||
<br />
|
||||
(<?php echo JText::_('K2_AVERAGE_RATING'); ?>: <?php echo number_format(($this->row->ratingSum/$this->row->ratingCount),2); ?>/5.00)
|
||||
<?php endif; ?>
|
||||
<input id="resetRatingButton" type="button" value="<?php echo JText::_('K2_RESET'); ?>" class="button" name="resetRating" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
<div id="k2Accordion">
|
||||
<h3><a href="#"><?php echo JText::_('K2_AUTHOR_PUBLISHING_STATUS'); ?></a></h3>
|
||||
<div>
|
||||
<table class="admintable">
|
||||
<?php if(isset($this->lists['language'])): ?>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_LANGUAGE'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $this->lists['language']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_AUTHOR'); ?>
|
||||
</td>
|
||||
<td id="k2AuthorOptions">
|
||||
<span id="k2Author"><?php echo $this->row->author; ?></span>
|
||||
<?php if($this->mainframe->isAdmin() || ($this->mainframe->isSite() && $this->permissions->get('editAll'))): ?>
|
||||
<a class="modal" rel="{handler:'iframe', size: {x: 800, y: 460}}" href="index.php?option=com_k2&view=users&task=element&tmpl=component"><?php echo JText::_('K2_CHANGE'); ?></a>
|
||||
<input type="hidden" name="created_by" value="<?php echo $this->row->created_by; ?>" />
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_AUTHOR_ALIAS'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<input class="text_area" type="text" name="created_by_alias" maxlength="250" value="<?php echo $this->row->created_by_alias; ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_ACCESS_LEVEL'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $this->lists['access']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_CREATION_DATE'); ?>
|
||||
</td>
|
||||
<td class="k2ItemFormDateField">
|
||||
<?php echo $this->lists['createdCalendar']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_START_PUBLISHING'); ?>
|
||||
</td>
|
||||
<td class="k2ItemFormDateField">
|
||||
<?php echo $this->lists['publish_up']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_FINISH_PUBLISHING'); ?>
|
||||
</td>
|
||||
<td class="k2ItemFormDateField">
|
||||
<?php echo $this->lists['publish_down']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<h3><a href="#"><?php echo JText::_('K2_METADATA_INFORMATION'); ?></a></h3>
|
||||
<div>
|
||||
<table class="admintable">
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_DESCRIPTION'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<textarea name="metadesc" rows="5" cols="20"><?php echo $this->row->metadesc; ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_KEYWORDS'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<textarea name="metakey" rows="5" cols="20"><?php echo $this->row->metakey; ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_ROBOTS'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="meta[robots]" value="<?php echo $this->lists['metadata']->get('robots'); ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" class="key">
|
||||
<?php echo JText::_('K2_AUTHOR'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="meta[author]" value="<?php echo $this->lists['metadata']->get('author'); ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php if($this->mainframe->isAdmin()): ?>
|
||||
<h3><a href="#"><?php echo JText::_('K2_ITEM_VIEW_OPTIONS_IN_CATEGORY_LISTINGS'); ?></a></h3>
|
||||
<div>
|
||||
<?php if(version_compare( JVERSION, '1.6.0', 'ge' )): ?>
|
||||
<fieldset class="panelform">
|
||||
<ul class="adminformlist">
|
||||
<?php foreach($this->form->getFieldset('item-view-options-listings') as $field): ?>
|
||||
<li>
|
||||
<?php if($field->type=='header'): ?>
|
||||
<div class="paramValueHeader"><?php echo $field->input; ?></div>
|
||||
<?php elseif($field->type=='Spacer'): ?>
|
||||
<div class="paramValueSpacer"> </div>
|
||||
<div class="clr"></div>
|
||||
<?php else: ?>
|
||||
<div class="paramLabel"><?php echo $field->label; ?></div>
|
||||
<div class="paramValue"><?php echo $field->input; ?></div>
|
||||
<div class="clr"></div>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</fieldset>
|
||||
<?php else: ?>
|
||||
<?php echo $this->form->render('params', 'item-view-options-listings'); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<h3><a href="#"><?php echo JText::_('K2_ITEM_VIEW_OPTIONS'); ?></a></h3>
|
||||
<div>
|
||||
<?php if(version_compare( JVERSION, '1.6.0', 'ge' )): ?>
|
||||
<fieldset class="panelform">
|
||||
<ul class="adminformlist">
|
||||
<?php foreach($this->form->getFieldset('item-view-options') as $field): ?>
|
||||
<li>
|
||||
<?php if($field->type=='header'): ?>
|
||||
<div class="paramValueHeader"><?php echo $field->input; ?></div>
|
||||
<?php elseif($field->type=='Spacer'): ?>
|
||||
<div class="paramValueSpacer"> </div>
|
||||
<div class="clr"></div>
|
||||
<?php else: ?>
|
||||
<div class="paramLabel"><?php echo $field->label; ?></div>
|
||||
<div class="paramValue"><?php echo $field->input; ?></div>
|
||||
<div class="clr"></div>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</fieldset>
|
||||
<?php else: ?>
|
||||
<?php echo $this->form->render('params', 'item-view-options'); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if($this->aceAclFlag): ?>
|
||||
<h3><a href="#"><?php echo JText::_('AceACL') . ' ' . JText::_('COM_ACEACL_COMMON_PERMISSIONS'); ?></a></h3>
|
||||
<div><?php AceaclApi::getWidget('com_k2.item.'.$this->row->id, true); ?></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="clr"></div>
|
||||
<?php if($this->mainframe->isSite()): ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</form>
|
||||
98
deployed/trada/templates/trada/html/com_k2/list/latest.php
Normal file
98
deployed/trada/templates/trada/html/com_k2/list/latest.php
Normal file
@ -0,0 +1,98 @@
|
||||
<?php
|
||||
/**
|
||||
* @version 2.6.x
|
||||
* @package K2
|
||||
* @author JoomlaWorks http://www.joomlaworks.net
|
||||
* @copyright Copyright (c) 2006 - 2014 JoomlaWorks Ltd. All rights reserved.
|
||||
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
|
||||
<!-- Start K2 Latest Layout -->
|
||||
<div id="k2Container" class="latestView<?php if($this->params->get('pageclass_sfx')) echo ' '.$this->params->get('pageclass_sfx'); ?>">
|
||||
|
||||
<?php if($this->params->get('show_page_title')): ?>
|
||||
<!-- Page title -->
|
||||
<div class="componentheading<?php echo $this->params->get('pageclass_sfx')?>">
|
||||
<?php echo $this->escape($this->params->get('page_title')); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php foreach($this->blocks as $key=>$block): ?>
|
||||
<div class="latestItemsContainer" style="width:<?php echo number_format(100/$this->params->get('latestItemsCols'), 1); ?>%;">
|
||||
|
||||
<?php if($this->source=='categories'): $category=$block; ?>
|
||||
|
||||
<?php else: $user=$block; ?>
|
||||
|
||||
<?php if ($this->params->get('userFeed') || $this->params->get('userImage') || $this->params->get('userName') || $this->params->get('userDescription') || $this->params->get('userURL') || $this->params->get('userEmail')): ?>
|
||||
<!-- Start K2 User block -->
|
||||
<div class="latestItemsUser">
|
||||
|
||||
<?php if($this->params->get('userFeed')): ?>
|
||||
<!-- RSS feed icon -->
|
||||
<div class="k2FeedIcon">
|
||||
<a href="<?php echo $user->feed; ?>" title="<?php echo JText::_('K2_SUBSCRIBE_TO_THIS_RSS_FEED'); ?>">
|
||||
<span><?php echo JText::_('K2_SUBSCRIBE_TO_THIS_RSS_FEED'); ?></span>
|
||||
</a>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('userImage') && !empty($user->avatar)): ?>
|
||||
<img src="<?php echo $user->avatar; ?>" alt="<?php echo $user->name; ?>" style="width:<?php echo $this->params->get('userImageWidth'); ?>px;height:auto;" />
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('userName')): ?>
|
||||
<h2><a rel="author" href="<?php echo $user->link; ?>"><?php echo $user->name; ?></a></h2>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('userDescription') && isset($user->profile->description)): ?>
|
||||
<p class="latestItemsUserDescription"><?php echo $user->profile->description; ?></p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('userURL') || $this->params->get('userEmail')): ?>
|
||||
<p class="latestItemsUserAdditionalInfo">
|
||||
<?php if ($this->params->get('userURL') && isset($user->profile->url)): ?>
|
||||
<span class="latestItemsUserURL">
|
||||
<?php echo JText::_('K2_WEBSITE_URL'); ?>: <a rel="me" href="<?php echo $user->profile->url; ?>" target="_blank"><?php echo $user->profile->url; ?></a>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('userEmail')): ?>
|
||||
<span class="latestItemsUserEmail">
|
||||
<?php echo JText::_('K2_EMAIL'); ?>: <?php echo JHTML::_('Email.cloak', $user->email); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
|
||||
<?php echo $user->event->K2UserDisplay; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<!-- End K2 User block -->
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Start Items list -->
|
||||
<div class="latestItemList">
|
||||
<?php foreach ($block->items as $item): K2HelperUtilities::setDefaultImage($item, 'latest', $this->params); ?>
|
||||
<?php $this->item=$item; echo $this->loadTemplate('item'); ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<!-- End Item list -->
|
||||
|
||||
</div>
|
||||
|
||||
<?php endforeach; ?>
|
||||
|
||||
</div>
|
||||
<!-- End K2 Latest Layout -->
|
||||
@ -0,0 +1,80 @@
|
||||
<?php
|
||||
/**
|
||||
* @version 2.6.x
|
||||
* @package K2
|
||||
* @author JoomlaWorks http://www.joomlaworks.net
|
||||
* @copyright Copyright (c) 2006 - 2014 JoomlaWorks Ltd. All rights reserved.
|
||||
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
<div class="t-home_single_blog t-list_single_blog clearfix">
|
||||
<div class="col-lg-1 col-md-1 col-sm-1 col-xs-12 t-home_bloger_img">
|
||||
<div class="row">
|
||||
<div class="t-glyp_icon ">
|
||||
<span class="glyph-item mega" aria-hidden="true" data-icon="" data-js-prompt="&#xe07f;"></span>
|
||||
<?php if( $avatar = K2HelperUtilities::getAvatar( $this->item->created_by ) ) : ?>
|
||||
<img src="<?php echo $avatar; ?>" class="wow swing center animated" alt="" data-wow-iteration="1" width="60" height="60" >
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php if($this->item->params->get('latestItemImage') && !empty($this->item->image)): ?>
|
||||
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 t-home_blog_img">
|
||||
<!-- Item Image -->
|
||||
<div class="xlatestItemImageBlock">
|
||||
<span class="xlatestItemImage">
|
||||
<a href="<?php echo $this->item->link; ?>" title="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>">
|
||||
<img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" class="img-responsive" height="252" />
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="<?php if($this->item->params->get('latestItemImage') && !empty($this->item->image)): ?>col-lg-7 col-md-7<?php else : ?>col-lg-11 col-md-11<?php endif; ?> col-sm-8 col-xs-12 t_home_blog_content">
|
||||
<div class="row t-home_blog_content_inner">
|
||||
<?php if($this->item->params->get('latestItemTitle')): ?>
|
||||
<h5><?php echo $this->item->title; ?></h5>
|
||||
<?php endif; ?>
|
||||
<ul class="t-home_blog_info">
|
||||
<?php if($this->item->params->get('latestItemDateCreated')): ?>
|
||||
<li><span><?php echo JHTML::_('date', $this->item->created , 'M d, Y'); ?></span></li>
|
||||
<?php endif; ?>
|
||||
<li><span>
|
||||
<?php echo K2HelperUtilities::writtenBy( null ); ?>
|
||||
<?php echo JFactory::getUser( $this->item->created_by )->name; ?>
|
||||
</span></li>
|
||||
<li>
|
||||
<?php if(!empty($this->item->event->K2CommentsCounter)): ?>
|
||||
<!-- K2 Plugins: K2CommentsCounter -->
|
||||
<span>
|
||||
<i aria-hidden="true" class="icon-bubbles"></i> <?php echo $this->item->event->K2CommentsCounter; ?>
|
||||
</span>
|
||||
<?php else: ?>
|
||||
<?php if($this->item->numOfComments > 0): ?>
|
||||
<a href="<?php echo $this->item->link; ?>#itemCommentsAnchor">
|
||||
<span><i aria-hidden="true" class="icon-bubbles"></i> <?php echo $this->item->numOfComments; ?></span>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<a href="<?php echo $this->item->link; ?>#itemCommentsAnchor">
|
||||
<span><i aria-hidden="true" class="icon-bubbles"></i> 0</span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
</ul>
|
||||
<?php if($this->item->params->get('latestItemIntroText')): ?>
|
||||
<?php echo $this->item->introtext; ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->item->params->get('latestItemReadMore')): ?>
|
||||
<!-- Item "read more..." link -->
|
||||
<a class="t-btn t-btn_bg k2ReadMore" href="<?php echo $this->item->link; ?>">
|
||||
<?php echo JText::_('K2_READ_MORE'); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
147
deployed/trada/templates/trada/html/com_k2/list/tag.php
Normal file
147
deployed/trada/templates/trada/html/com_k2/list/tag.php
Normal file
@ -0,0 +1,147 @@
|
||||
<?php
|
||||
/**
|
||||
* @version 2.6.x
|
||||
* @package K2
|
||||
* @author JoomlaWorks http://www.joomlaworks.net
|
||||
* @copyright Copyright (c) 2006 - 2014 JoomlaWorks Ltd. All rights reserved.
|
||||
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
|
||||
<!-- Start K2 Tag Layout -->
|
||||
<div id="k2Container" class="tagView<?php if($this->params->get('pageclass_sfx')) echo ' '.$this->params->get('pageclass_sfx'); ?>">
|
||||
|
||||
<?php if($this->params->get('show_page_title')): ?>
|
||||
<!-- Page title -->
|
||||
<div class="componentheading<?php echo $this->params->get('pageclass_sfx')?>">
|
||||
<?php echo $this->escape($this->params->get('page_title')); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($this->params->get('tagFeedIcon',1)): ?>
|
||||
<!-- RSS feed icon -->
|
||||
<div class="k2FeedIcon">
|
||||
<a href="<?php echo $this->feed; ?>" title="<?php echo JText::_('K2_SUBSCRIBE_TO_THIS_RSS_FEED'); ?>">
|
||||
<span><?php echo JText::_('K2_SUBSCRIBE_TO_THIS_RSS_FEED'); ?></span>
|
||||
</a>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if(count($this->items)): ?>
|
||||
<div class="tagItemList">
|
||||
<?php foreach($this->items as $item): ?>
|
||||
|
||||
<!-- Start K2 Item Layout -->
|
||||
<div class="tagItemView">
|
||||
|
||||
<div class="tagItemHeader">
|
||||
<?php if($item->params->get('tagItemDateCreated',1)): ?>
|
||||
<!-- Date created -->
|
||||
<span class="tagItemDateCreated">
|
||||
<?php echo JHTML::_('date', $item->created , JText::_('K2_DATE_FORMAT_LC2')); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($item->params->get('tagItemTitle',1)): ?>
|
||||
<!-- Item title -->
|
||||
<h2 class="tagItemTitle">
|
||||
<?php if ($item->params->get('tagItemTitleLinked',1)): ?>
|
||||
<a href="<?php echo $item->link; ?>">
|
||||
<?php echo $item->title; ?>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<?php echo $item->title; ?>
|
||||
<?php endif; ?>
|
||||
</h2>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<div class="tagItemBody">
|
||||
<?php if($item->params->get('tagItemImage',1) && !empty($item->imageGeneric)): ?>
|
||||
<!-- Item Image -->
|
||||
<div class="tagItemImageBlock">
|
||||
<span class="tagItemImage">
|
||||
<a href="<?php echo $item->link; ?>" title="<?php if(!empty($item->image_caption)) echo K2HelperUtilities::cleanHtml($item->image_caption); else echo K2HelperUtilities::cleanHtml($item->title); ?>">
|
||||
<img src="<?php echo $item->imageGeneric; ?>" alt="<?php if(!empty($item->image_caption)) echo K2HelperUtilities::cleanHtml($item->image_caption); else echo K2HelperUtilities::cleanHtml($item->title); ?>" style="width:<?php echo $item->params->get('itemImageGeneric'); ?>px; height:auto;" />
|
||||
</a>
|
||||
</span>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($item->params->get('tagItemIntroText',1)): ?>
|
||||
<!-- Item introtext -->
|
||||
<div class="tagItemIntroText text-left">
|
||||
<?php echo $item->introtext; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
|
||||
<div class="clr"></div>
|
||||
|
||||
<?php if($item->params->get('tagItemExtraFields',0) && count($item->extra_fields)): ?>
|
||||
<!-- Item extra fields -->
|
||||
<div class="tagItemExtraFields">
|
||||
<h4><?php echo JText::_('K2_ADDITIONAL_INFO'); ?></h4>
|
||||
<ul>
|
||||
<?php foreach ($item->extra_fields as $key=>$extraField): ?>
|
||||
<?php if($extraField->value != ''): ?>
|
||||
<li class="<?php echo ($key%2) ? "odd" : "even"; ?> type<?php echo ucfirst($extraField->type); ?> group<?php echo $extraField->group; ?>">
|
||||
<?php if($extraField->type == 'header'): ?>
|
||||
<h4 class="tagItemExtraFieldsHeader"><?php echo $extraField->name; ?></h4>
|
||||
<?php else: ?>
|
||||
<span class="tagItemExtraFieldsLabel"><?php echo $extraField->name; ?></span>
|
||||
<span class="tagItemExtraFieldsValue"><?php echo $extraField->value; ?></span>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($item->params->get('tagItemCategory')): ?>
|
||||
<!-- Item category name -->
|
||||
<div class="tagItemCategory">
|
||||
<span><?php echo JText::_('K2_PUBLISHED_IN'); ?></span>
|
||||
<a href="<?php echo $item->category->link; ?>"><?php echo $item->category->name; ?></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($item->params->get('tagItemReadMore')): ?>
|
||||
<!-- Item "read more..." link -->
|
||||
<div class="tagItemReadMore">
|
||||
<a class="k2ReadMore" href="<?php echo $item->link; ?>">
|
||||
<?php echo JText::_('K2_READ_MORE'); ?>
|
||||
</a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<!-- End K2 Item Layout -->
|
||||
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
|
||||
<!-- Pagination -->
|
||||
<?php if($this->pagination->getPagesLinks()): ?>
|
||||
<div class="k2Pagination">
|
||||
<?php echo $this->pagination->getPagesLinks(); ?>
|
||||
<div class="clr"></div>
|
||||
<?php echo $this->pagination->getPagesCounter(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
<!-- End K2 Tag Layout -->
|
||||
113
deployed/trada/templates/trada/html/com_k2/list/tag_item.php
Normal file
113
deployed/trada/templates/trada/html/com_k2/list/tag_item.php
Normal file
@ -0,0 +1,113 @@
|
||||
<?php
|
||||
/**
|
||||
* @version 2.6.x
|
||||
* @package K2
|
||||
* @author JoomlaWorks http://www.joomlaworks.net
|
||||
* @copyright Copyright (c) 2006 - 2014 JoomlaWorks Ltd. All rights reserved.
|
||||
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Define default image size (do not change)
|
||||
K2HelperUtilities::setDefaultImage($this->item, 'itemlist', $this->params);
|
||||
|
||||
?>
|
||||
|
||||
<div class="t-single_blog">
|
||||
<?php if($this->item->params->get('catItemImage') && !empty($this->item->image)): ?>
|
||||
<!-- Item Image -->
|
||||
<a href="<?php echo $this->item->link; ?>" title="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>">
|
||||
<img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" class="img-responsive" />
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<div class="t-home_single_blog t-single_blog_text clearfix">
|
||||
<div class="col-lg-1 col-md-2 col-sm-2 col-xs-12 t-home_bloger_img">
|
||||
<div class="row">
|
||||
<div class="t-glyp_icon ">
|
||||
<?php if($this->item->params->get('catItemImage') && !empty($this->item->image)): ?>
|
||||
<span data-js-prompt="&#xe07f;" data-icon="" aria-hidden="true" class="glyph-item mega"></span>
|
||||
<?php endif; ?>
|
||||
<?php if(property_exists( $this->item->author, 'avatar' )): ?>
|
||||
<img class="wow swing center animated" alt="" data-wow-iteration="1" src="<?php echo $this->item->author->avatar; ?>" width="60">
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-11 col-md-10 col-sm-10 col-xs-12 t_home_blog_content pull-right">
|
||||
<div class="row t-home_blog_content_inner">
|
||||
<?php if($this->item->params->get('catItemTitle')): ?>
|
||||
<h5><?php echo $this->item->title; ?></h5>
|
||||
<?php endif; ?>
|
||||
<ul class="t-home_blog_info">
|
||||
<?php if($this->item->params->get('catItemDateCreated')): ?>
|
||||
<!-- Date created -->
|
||||
<li><span><?php echo JHTML::_( 'date', $this->item->created , 'M d Y' ); ?></span></li>
|
||||
<?php endif; ?>
|
||||
<?php if($this->item->params->get('catItemAuthor')): ?>
|
||||
<!-- Item Author -->
|
||||
<li><span class="catItemAuthor">
|
||||
<?php echo K2HelperUtilities::writtenBy($this->item->author->profile->gender); ?>
|
||||
<?php if(isset($this->item->author->link) && $this->item->author->link): ?>
|
||||
<a rel="author" href="<?php echo $this->item->author->link; ?>"><?php echo $this->item->author->name; ?></a>
|
||||
<?php else: ?>
|
||||
<?php echo $this->item->author->name; ?>
|
||||
<?php endif; ?>
|
||||
</span></li>
|
||||
<?php endif; ?>
|
||||
<?php if($this->item->params->get('catItemCommentsAnchor') && ( ($this->item->params->get('comments') == '2' && !$this->user->guest) || ($this->item->params->get('comments') == '1')) ): ?>
|
||||
<!-- Anchor link to comments below -->
|
||||
<li class="catItemCommentsLink">
|
||||
<?php if(!empty($this->item->event->K2CommentsCounter)): ?>
|
||||
<!-- K2 Plugins: K2CommentsCounter -->
|
||||
<span>
|
||||
<i aria-hidden="true" class="icon-bubbles"></i> <?php echo $this->item->event->K2CommentsCounter; ?>
|
||||
</span>
|
||||
<?php else: ?>
|
||||
<?php if($this->item->numOfComments > 0): ?>
|
||||
<a href="<?php echo $this->item->link; ?>#itemCommentsAnchor">
|
||||
<span><i aria-hidden="true" class="icon-bubbles"></i> <?php echo $this->item->numOfComments; ?></span>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<a href="<?php echo $this->item->link; ?>#itemCommentsAnchor">
|
||||
<span><i aria-hidden="true" class="icon-bubbles"></i> 0</span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php if($this->item->params->get('catItemRating')): ?>
|
||||
<!-- Item Rating -->
|
||||
<div class="catItemRatingBlock">
|
||||
<div class="itemRatingForm">
|
||||
<ul class="itemRatingList">
|
||||
<li class="itemCurrentRating" id="itemCurrentRating<?php echo $this->item->id; ?>" style="width:<?php echo $this->item->votingPercentage; ?>%;"></li>
|
||||
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_1_STAR_OUT_OF_5'); ?>" class="one-star">1</a></li>
|
||||
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_2_STARS_OUT_OF_5'); ?>" class="two-stars">2</a></li>
|
||||
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_3_STARS_OUT_OF_5'); ?>" class="three-stars">3</a></li>
|
||||
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_4_STARS_OUT_OF_5'); ?>" class="four-stars">4</a></li>
|
||||
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_5_STARS_OUT_OF_5'); ?>" class="five-stars">5</a></li>
|
||||
</ul>
|
||||
<div id="itemRatingLog<?php echo $this->item->id; ?>" class="itemRatingLog"><?php echo $this->item->numOfvotes; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
<?php if($this->item->params->get('catItemIntroText')): ?>
|
||||
<!-- Item introtext -->
|
||||
<div class="catItemIntroText">
|
||||
<?php echo $this->item->introtext; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->item->params->get('catItemReadMore')): ?>
|
||||
<!-- Item "read more..." link -->
|
||||
<a class="t-btn t-btn_bg k2ReadMore" href="<?php echo $this->item->link; ?>">
|
||||
<?php echo JText::_('K2_READ_MORE'); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
272
deployed/trada/templates/trada/html/com_k2/list/user.php
Normal file
272
deployed/trada/templates/trada/html/com_k2/list/user.php
Normal file
@ -0,0 +1,272 @@
|
||||
<?php
|
||||
/**
|
||||
* @version 2.6.x
|
||||
* @package K2
|
||||
* @author JoomlaWorks http://www.joomlaworks.net
|
||||
* @copyright Copyright (c) 2006 - 2014 JoomlaWorks Ltd. All rights reserved.
|
||||
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Get user stuff (do not change)
|
||||
$user = JFactory::getUser();
|
||||
|
||||
?>
|
||||
|
||||
<!-- Start K2 User Layout -->
|
||||
|
||||
<div id="k2Container" class="userView<?php if($this->params->get('pageclass_sfx')) echo ' '.$this->params->get('pageclass_sfx'); ?>">
|
||||
|
||||
<?php if($this->params->get('show_page_title') && $this->params->get('page_title')!=$this->user->name): ?>
|
||||
<!-- Page title -->
|
||||
<div class="componentheading<?php echo $this->params->get('pageclass_sfx')?>">
|
||||
<?php echo $this->escape($this->params->get('page_title')); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($this->params->get('userFeedIcon',1)): ?>
|
||||
<!-- RSS feed icon -->
|
||||
<div class="k2FeedIcon">
|
||||
<a href="<?php echo $this->feed; ?>" title="<?php echo JText::_('K2_SUBSCRIBE_TO_THIS_RSS_FEED'); ?>">
|
||||
<span><?php echo JText::_('K2_SUBSCRIBE_TO_THIS_RSS_FEED'); ?></span>
|
||||
</a>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('userImage') || $this->params->get('userName') || $this->params->get('userDescription') || $this->params->get('userURL') || $this->params->get('userEmail')): ?>
|
||||
<div class="userBlock">
|
||||
|
||||
<?php if(isset($this->addLink) && JRequest::getInt('id')==$user->id): ?>
|
||||
<!-- Item add link -->
|
||||
<span class="userItemAddLink">
|
||||
<a class="modal" rel="{handler:'iframe',size:{x:990,y:550}}" href="<?php echo $this->addLink; ?>">
|
||||
<?php echo JText::_('K2_POST_A_NEW_ITEM'); ?>
|
||||
</a>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('userImage') && !empty($this->user->avatar)): ?>
|
||||
<img src="<?php echo $this->user->avatar; ?>" alt="<?php echo htmlspecialchars($this->user->name, ENT_QUOTES, 'UTF-8'); ?>" style="width:<?php echo $this->params->get('userImageWidth'); ?>px; height:auto;" />
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('userName')): ?>
|
||||
<h2><?php echo $this->user->name; ?></h2>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('userDescription') && trim($this->user->profile->description)): ?>
|
||||
<div class="userDescription"><?php echo $this->user->profile->description; ?></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (($this->params->get('userURL') && isset($this->user->profile->url) && $this->user->profile->url) || $this->params->get('userEmail')): ?>
|
||||
<div class="userAdditionalInfo">
|
||||
<?php if ($this->params->get('userURL') && isset($this->user->profile->url) && $this->user->profile->url): ?>
|
||||
<span class="userURL">
|
||||
<?php echo JText::_('K2_WEBSITE_URL'); ?>: <a href="<?php echo $this->user->profile->url; ?>" target="_blank" rel="me"><?php echo $this->user->profile->url; ?></a>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('userEmail')): ?>
|
||||
<span class="userEmail">
|
||||
<?php echo JText::_('K2_EMAIL'); ?>: <?php echo JHTML::_('Email.cloak', $this->user->email); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
|
||||
<?php echo $this->user->event->K2UserDisplay; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
|
||||
<?php if(count($this->items)): ?>
|
||||
<!-- Item list -->
|
||||
<div class="userItemList">
|
||||
<?php foreach ($this->items as $item): ?>
|
||||
|
||||
<!-- Start K2 Item Layout -->
|
||||
<div class="userItemView<?php if(!$item->published || ($item->publish_up != $this->nullDate && $item->publish_up > $this->now) || ($item->publish_down != $this->nullDate && $item->publish_down < $this->now)) echo ' userItemViewUnpublished'; ?><?php echo ($item->featured) ? ' userItemIsFeatured' : ''; ?>">
|
||||
|
||||
<!-- Plugins: BeforeDisplay -->
|
||||
<?php echo $item->event->BeforeDisplay; ?>
|
||||
|
||||
<!-- K2 Plugins: K2BeforeDisplay -->
|
||||
<?php echo $item->event->K2BeforeDisplay; ?>
|
||||
|
||||
<div class="userItemHeader">
|
||||
<?php if($this->params->get('userItemDateCreated')): ?>
|
||||
<!-- Date created -->
|
||||
<span class="userItemDateCreated">
|
||||
<?php echo JHTML::_('date', $item->created , JText::_('K2_DATE_FORMAT_LC2')); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($this->params->get('userItemTitle')): ?>
|
||||
<!-- Item title -->
|
||||
<h3 class="userItemTitle">
|
||||
<?php if(isset($item->editLink)): ?>
|
||||
<!-- Item edit link -->
|
||||
<span class="userItemEditLink">
|
||||
<a class="modal" rel="{handler:'iframe',size:{x:990,y:550}}" href="<?php echo $item->editLink; ?>">
|
||||
<?php echo JText::_('K2_EDIT_ITEM'); ?>
|
||||
</a>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('userItemTitleLinked') && $item->published): ?>
|
||||
<a href="<?php echo $item->link; ?>">
|
||||
<?php echo $item->title; ?>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<?php echo $item->title; ?>
|
||||
<?php endif; ?>
|
||||
<?php if(!$item->published || ($item->publish_up != $this->nullDate && $item->publish_up > $this->now) || ($item->publish_down != $this->nullDate && $item->publish_down < $this->now)): ?>
|
||||
<span>
|
||||
<sup>
|
||||
<?php echo JText::_('K2_UNPUBLISHED'); ?>
|
||||
</sup>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
</h3>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<!-- Plugins: AfterDisplayTitle -->
|
||||
<?php echo $item->event->AfterDisplayTitle; ?>
|
||||
|
||||
<!-- K2 Plugins: K2AfterDisplayTitle -->
|
||||
<?php echo $item->event->K2AfterDisplayTitle; ?>
|
||||
|
||||
<div class="userItemBody">
|
||||
|
||||
<!-- Plugins: BeforeDisplayContent -->
|
||||
<?php echo $item->event->BeforeDisplayContent; ?>
|
||||
|
||||
<!-- K2 Plugins: K2BeforeDisplayContent -->
|
||||
<?php echo $item->event->K2BeforeDisplayContent; ?>
|
||||
|
||||
<?php if($this->params->get('userItemImage') && !empty($item->imageGeneric)): ?>
|
||||
<!-- Item Image -->
|
||||
<div class="userItemImageBlock">
|
||||
<span class="userItemImage">
|
||||
<a href="<?php echo $item->link; ?>" title="<?php if(!empty($item->image_caption)) echo K2HelperUtilities::cleanHtml($item->image_caption); else echo K2HelperUtilities::cleanHtml($item->title); ?>">
|
||||
<img src="<?php echo $item->imageGeneric; ?>" alt="<?php if(!empty($item->image_caption)) echo K2HelperUtilities::cleanHtml($item->image_caption); else echo K2HelperUtilities::cleanHtml($item->title); ?>" style="width:<?php echo $this->params->get('itemImageGeneric'); ?>px; height:auto;" />
|
||||
</a>
|
||||
</span>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($this->params->get('userItemIntroText')): ?>
|
||||
<!-- Item introtext -->
|
||||
<div class="userItemIntroText">
|
||||
<?php echo $item->introtext; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
|
||||
<!-- Plugins: AfterDisplayContent -->
|
||||
<?php echo $item->event->AfterDisplayContent; ?>
|
||||
|
||||
<!-- K2 Plugins: K2AfterDisplayContent -->
|
||||
<?php echo $item->event->K2AfterDisplayContent; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
|
||||
<?php if($this->params->get('userItemCategory') || $this->params->get('userItemTags')): ?>
|
||||
<div class="userItemLinks">
|
||||
|
||||
<?php if($this->params->get('userItemCategory')): ?>
|
||||
<!-- Item category name -->
|
||||
<div class="userItemCategory">
|
||||
<span><?php echo JText::_('K2_PUBLISHED_IN'); ?></span>
|
||||
<a href="<?php echo $item->category->link; ?>"><?php echo $item->category->name; ?></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($this->params->get('userItemTags') && isset($item->tags)): ?>
|
||||
<!-- Item tags -->
|
||||
<div class="userItemTagsBlock">
|
||||
<span><?php echo JText::_('K2_TAGGED_UNDER'); ?></span>
|
||||
<ul class="userItemTags">
|
||||
<?php foreach ($item->tags as $tag): ?>
|
||||
<li><a href="<?php echo $tag->link; ?>"><?php echo $tag->name; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
|
||||
<?php if($this->params->get('userItemCommentsAnchor') && ( ($this->params->get('comments') == '2' && !$this->user->guest) || ($this->params->get('comments') == '1')) ): ?>
|
||||
<!-- Anchor link to comments below -->
|
||||
<div class="userItemCommentsLink">
|
||||
<?php if(!empty($item->event->K2CommentsCounter)): ?>
|
||||
<!-- K2 Plugins: K2CommentsCounter -->
|
||||
<?php echo $item->event->K2CommentsCounter; ?>
|
||||
<?php else: ?>
|
||||
<?php if($item->numOfComments > 0): ?>
|
||||
<a href="<?php echo $item->link; ?>#itemCommentsAnchor">
|
||||
<?php echo $item->numOfComments; ?> <?php echo ($item->numOfComments>1) ? JText::_('K2_COMMENTS') : JText::_('K2_COMMENT'); ?>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<a href="<?php echo $item->link; ?>#itemCommentsAnchor">
|
||||
<?php echo JText::_('K2_BE_THE_FIRST_TO_COMMENT'); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('userItemReadMore')): ?>
|
||||
<!-- Item "read more..." link -->
|
||||
<div class="userItemReadMore">
|
||||
<a class="k2ReadMore" href="<?php echo $item->link; ?>">
|
||||
<?php echo JText::_('K2_READ_MORE'); ?>
|
||||
</a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
|
||||
<!-- Plugins: AfterDisplay -->
|
||||
<?php echo $item->event->AfterDisplay; ?>
|
||||
|
||||
<!-- K2 Plugins: K2AfterDisplay -->
|
||||
<?php echo $item->event->K2AfterDisplay; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<!-- End K2 Item Layout -->
|
||||
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
|
||||
<!-- Pagination -->
|
||||
<?php if(count($this->pagination->getPagesLinks())): ?>
|
||||
<div class="k2Pagination">
|
||||
<?php echo $this->pagination->getPagesLinks(); ?>
|
||||
<div class="clr"></div>
|
||||
<?php echo $this->pagination->getPagesCounter(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- End K2 User Layout -->
|
||||
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_mailto
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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.core');
|
||||
JHtml::_('behavior.keepalive');
|
||||
|
||||
$data = $this->get('data');
|
||||
|
||||
JFactory::getDocument()->addScriptDeclaration("
|
||||
Joomla.submitbutton = function(pressbutton)
|
||||
{
|
||||
var form = document.getElementById('mailtoForm');
|
||||
|
||||
// do field validation
|
||||
if (form.mailto.value == '' || form.from.value == '')
|
||||
{
|
||||
alert('" . JText::_('COM_MAILTO_EMAIL_ERR_NOINFO') . "');
|
||||
return false;
|
||||
}
|
||||
form.submit();
|
||||
}
|
||||
");
|
||||
?>
|
||||
|
||||
<div id="mailto-window">
|
||||
<h2>
|
||||
<?php echo JText::_('COM_MAILTO_EMAIL_TO_A_FRIEND'); ?>
|
||||
</h2>
|
||||
<div class="mailto-close">
|
||||
<a href="javascript: void window.close()" title="<?php echo JText::_('COM_MAILTO_CLOSE_WINDOW'); ?>">
|
||||
<span><?php echo JText::_('COM_MAILTO_CLOSE_WINDOW'); ?> </span></a>
|
||||
</div>
|
||||
|
||||
<form action="<?php echo JUri::base() ?>index.php" id="mailtoForm" method="post">
|
||||
<div class="formelm">
|
||||
<label for="mailto_field"><?php echo JText::_('COM_MAILTO_EMAIL_TO'); ?></label>
|
||||
<input type="text" id="mailto_field" name="mailto" class="inputbox" size="25" value="<?php echo $this->escape($data->mailto); ?>"/>
|
||||
</div>
|
||||
<div class="formelm">
|
||||
<label for="sender_field">
|
||||
<?php echo JText::_('COM_MAILTO_SENDER'); ?></label>
|
||||
<input type="text" id="sender_field" name="sender" class="inputbox" value="<?php echo $this->escape($data->sender); ?>" size="25" />
|
||||
</div>
|
||||
<div class="formelm">
|
||||
<label for="from_field">
|
||||
<?php echo JText::_('COM_MAILTO_YOUR_EMAIL'); ?></label>
|
||||
<input type="text" id="from_field" name="from" class="inputbox" value="<?php echo $this->escape($data->from); ?>" size="25" />
|
||||
</div>
|
||||
<div class="formelm">
|
||||
<label for="subject_field">
|
||||
<?php echo JText::_('COM_MAILTO_SUBJECT'); ?></label>
|
||||
<input type="text" id="subject_field" name="subject" class="inputbox" value="<?php echo $this->escape($data->subject); ?>" size="25" />
|
||||
</div>
|
||||
<p>
|
||||
<button class="button" onclick="return Joomla.submitbutton('send');">
|
||||
<?php echo JText::_('COM_MAILTO_SEND'); ?>
|
||||
</button>
|
||||
<button class="button" onclick="window.close();return false;">
|
||||
<?php echo JText::_('COM_MAILTO_CANCEL'); ?>
|
||||
</button>
|
||||
</p>
|
||||
<input type="hidden" name="layout" value="<?php echo $this->getLayout();?>" />
|
||||
<input type="hidden" name="option" value="com_mailto" />
|
||||
<input type="hidden" name="task" value="send" />
|
||||
<input type="hidden" name="tmpl" value="component" />
|
||||
<input type="hidden" name="link" value="<?php echo $data->link; ?>" />
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_mailto
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
<div style="padding: 10px;">
|
||||
<div style="text-align:right">
|
||||
<a href="javascript: void window.close()">
|
||||
<?php echo JText::_('COM_MAILTO_CLOSE_WINDOW'); ?> <?php echo JHtml::_('image', 'mailto/close-x.png', null, null, true); ?></a>
|
||||
</div>
|
||||
|
||||
<h2>
|
||||
<?php echo JText::_('COM_MAILTO_EMAIL_SENT'); ?>
|
||||
</h2>
|
||||
</div>
|
||||
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_newsfeeds
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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');
|
||||
|
||||
JFactory::getDocument()->addScriptDeclaration("
|
||||
jQuery(function($) {
|
||||
$('.categories-list').find('[id^=category-btn-]').each(function(index, btn) {
|
||||
var btn = $(btn);
|
||||
btn.on('click', function() {
|
||||
btn.find('span').toggleClass('icon-plus');
|
||||
btn.find('span').toggleClass('icon-minus');
|
||||
});
|
||||
});
|
||||
});");
|
||||
?>
|
||||
<div class="categories-list<?php echo $this->pageclass_sfx;?>">
|
||||
<?php
|
||||
echo JLayoutHelper::render('joomla.content.categories_default', $this);
|
||||
echo $this->loadTemplate('items');
|
||||
?>
|
||||
</div>
|
||||
@ -0,0 +1,63 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_newsfeeds
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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');
|
||||
|
||||
$class = ' class="first"';
|
||||
if (count($this->items[$this->parent->id]) > 0 && $this->maxLevelcat != 0) :
|
||||
?>
|
||||
<?php foreach($this->items[$this->parent->id] as $id => $item) : ?>
|
||||
<?php
|
||||
if ($this->params->get('show_empty_categories_cat') || $item->numitems || count($item->getChildren())) :
|
||||
if (!isset($this->items[$this->parent->id][$id + 1]))
|
||||
{
|
||||
$class = ' class="last"';
|
||||
}
|
||||
?>
|
||||
<div <?php echo $class; ?> >
|
||||
<?php $class = ''; ?>
|
||||
<h3 class="page-header item-title">
|
||||
<a href="<?php echo JRoute::_(NewsfeedsHelperRoute::getCategoryRoute($item->id));?>">
|
||||
<?php echo $this->escape($item->title); ?></a>
|
||||
<?php if ($this->params->get('show_cat_items_cat') == 1) :?>
|
||||
<span class="badge badge-info tip hasTooltip" title="<?php echo JHtml::tooltipText('COM_NEWSFEEDS_NUM_ITEMS'); ?>">
|
||||
<?php echo $item->numitems; ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
<?php if (count($item->getChildren()) > 0 && $this->maxLevelcat > 1) : ?>
|
||||
<a id="category-btn-<?php echo $item->id;?>" href="#category-<?php echo $item->id;?>"
|
||||
data-toggle="collapse" data-toggle="button" class="btn btn-mini pull-right"><span class="icon-plus"></span></a>
|
||||
<?php endif;?>
|
||||
</h3>
|
||||
<?php if ($this->params->get('show_subcat_desc_cat') == 1) :?>
|
||||
<?php if ($item->description) : ?>
|
||||
<div class="category-desc">
|
||||
<?php echo JHtml::_('content.prepare', $item->description, '', 'com_newsfeeds.categories'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (count($item->getChildren()) > 0 && $this->maxLevelcat > 1) :?>
|
||||
<div class="collapse fade" id="category-<?php echo $item->id;?>">
|
||||
<?php
|
||||
$this->items[$item->id] = $item->getChildren();
|
||||
$this->parent = $item;
|
||||
$this->maxLevelcat--;
|
||||
echo $this->loadTemplate('items');
|
||||
$this->parent = $item->getParent();
|
||||
$this->maxLevelcat++;
|
||||
?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
@ -0,0 +1,55 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_newsfeeds
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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');
|
||||
JHtml::_('formbehavior.chosen', 'select');
|
||||
|
||||
$pageClass = $this->params->get('pageclass_sfx');
|
||||
?>
|
||||
<div class="newsfeed-category<?php echo $this->pageclass_sfx; ?>">
|
||||
<?php if ($this->params->get('show_page_heading')) : ?>
|
||||
<h1>
|
||||
<?php echo $this->escape($this->params->get('page_heading')); ?>
|
||||
</h1>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('show_category_title', 1)) : ?>
|
||||
<h2>
|
||||
<?php echo JHtml::_('content.prepare', $this->category->title, '', 'com_newsfeeds.category.title'); ?>
|
||||
</h2>
|
||||
<?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_newsfeeds.category'); ?>
|
||||
<?php endif; ?>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $this->loadTemplate('items'); ?>
|
||||
|
||||
<?php if (!empty($this->children[$this->category->id]) && $this->maxLevel != 0) : ?>
|
||||
<div class="cat-children">
|
||||
<h3><?php echo JText::_('JGLOBAL_SUBCATEGORIES'); ?></h3>
|
||||
<?php echo $this->loadTemplate('children'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
@ -0,0 +1,57 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_newsfeeds
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$class = ' class="first"';
|
||||
if (count($this->children[$this->category->id]) > 0 && $this->maxLevel != 0) :
|
||||
?>
|
||||
<ul>
|
||||
<?php foreach ($this->children[$this->category->id] as $id => $child) : ?>
|
||||
<?php
|
||||
if ($this->params->get('show_empty_categories') || $child->numitems || count($child->getChildren())) :
|
||||
if (!isset($this->children[$this->category->id][$id + 1]))
|
||||
{
|
||||
$class = ' class="last"';
|
||||
}
|
||||
?>
|
||||
<li<?php echo $class; ?>>
|
||||
<?php $class = ''; ?>
|
||||
<span class="item-title"><a href="<?php echo JRoute::_(NewsfeedsHelperRoute::getCategoryRoute($child->id));?>">
|
||||
<?php echo $this->escape($child->title); ?></a>
|
||||
</span>
|
||||
|
||||
<?php if ($this->params->get('show_subcat_desc') == 1) :?>
|
||||
<?php if ($child->description) : ?>
|
||||
<div class="category-desc">
|
||||
<?php echo JHtml::_('content.prepare', $child->description, '', 'com_newsfeeds.category'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_cat_items') == 1) :?>
|
||||
<dl class="newsfeed-count"><dt>
|
||||
<?php echo JText::_('COM_NEWSFEEDS_CAT_NUM'); ?></dt>
|
||||
<dd><?php echo $child->numitems; ?></dd>
|
||||
</dl>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (count($child->getChildren()) > 0) :
|
||||
$this->children[$child->id] = $child->getChildren();
|
||||
$this->category = $child;
|
||||
$this->maxLevel--;
|
||||
echo $this->loadTemplate('children');
|
||||
$this->category = $child->getParent();
|
||||
$this->maxLevel++;
|
||||
endif; ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif;
|
||||
@ -0,0 +1,89 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_newsfeeds
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$n = count($this->items);
|
||||
$listOrder = $this->escape($this->state->get('list.ordering'));
|
||||
$listDirn = $this->escape($this->state->get('list.direction'));
|
||||
|
||||
?>
|
||||
|
||||
<?php if (empty($this->items)) : ?>
|
||||
<p><?php echo JText::_('COM_NEWSFEEDS_NO_ARTICLES'); ?></p>
|
||||
<?php else : ?>
|
||||
|
||||
<form action="<?php echo htmlspecialchars(JUri::getInstance()->toString()); ?>" method="post" name="adminForm" id="adminForm">
|
||||
<?php if ($this->params->get('filter_field') != 'hide' || $this->params->get('show_pagination_limit')) :?>
|
||||
<fieldset class="filters btn-toolbar">
|
||||
<?php if ($this->params->get('filter_field') != 'hide') :?>
|
||||
<div class="btn-group">
|
||||
<label class="filter-search-lbl element-invisible" for="filter-search"><span class="label label-warning"><?php echo JText::_('JUNPUBLISHED'); ?></span><?php echo JText::_('COM_NEWSFEEDS_FILTER_LABEL') . ' '; ?></label>
|
||||
<input type="text" name="filter-search" id="filter-search" value="<?php echo $this->escape($this->state->get('list.filter')); ?>" class="inputbox" onchange="document.adminForm.submit();" title="<?php echo JText::_('COM_NEWSFEEDS_FILTER_SEARCH_DESC'); ?>" placeholder="<?php echo JText::_('COM_NEWSFEEDS_FILTER_SEARCH_DESC'); ?>" />
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('show_pagination_limit')) : ?>
|
||||
<div class="btn-group pull-right">
|
||||
<label for="limit" class="element-invisible">
|
||||
<?php echo JText::_('JGLOBAL_DISPLAY_NUM'); ?>
|
||||
</label>
|
||||
<?php echo $this->pagination->getLimitBox(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
<ul class="category list-striped list-condensed">
|
||||
<?php foreach ($this->items as $i => $item) : ?>
|
||||
<?php if ($this->items[$i]->published == 0) : ?>
|
||||
<li class="system-unpublished cat-list-row<?php echo $i % 2; ?>">
|
||||
<?php else: ?>
|
||||
<li class="cat-list-row<?php echo $i % 2; ?>" >
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('show_articles')) : ?>
|
||||
<span class="list-hits badge badge-info pull-right">
|
||||
<?php echo JText::sprintf('COM_NEWSFEEDS_NUM_ARTICLES_COUNT', $item->numarticles); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
<span class="list pull-left">
|
||||
<div class="list-title">
|
||||
<a href="<?php echo JRoute::_(NewsFeedsHelperRoute::getNewsfeedRoute($item->slug, $item->catid)); ?>">
|
||||
<?php echo $item->name; ?></a>
|
||||
</div>
|
||||
</span>
|
||||
<?php if ($this->items[$i]->published == 0) : ?>
|
||||
<span class="label label-warning"><?php echo JText::_('JUNPUBLISHED'); ?></span>
|
||||
<?php endif; ?>
|
||||
<br />
|
||||
<?php if ($this->params->get('show_link')) : ?>
|
||||
<?php $link = JStringPunycode::urlToUTF8($item->link); ?>
|
||||
<span class="list pull-left">
|
||||
<a href="<?php echo $item->link; ?>"><?php echo $link; ?></a>
|
||||
</span>
|
||||
<br />
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
||||
<?php // Add pagination links ?>
|
||||
<?php if (!empty($this->items)) : ?>
|
||||
<?php if (($this->params->def('show_pagination', 2) == 1 || ($this->params->get('show_pagination') == 2)) && ($this->pagination->pagesTotal > 1)) : ?>
|
||||
<div class="pagination">
|
||||
<?php if ($this->params->def('show_pagination_results', 1)) : ?>
|
||||
<p class="counter pull-right">
|
||||
<?php echo $this->pagination->getPagesCounter(); ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $this->pagination->getPagesLinks(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
@ -0,0 +1,135 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_newsfeeds
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
if (!empty($this->msg))
|
||||
{
|
||||
echo $this->msg;
|
||||
}
|
||||
else
|
||||
{
|
||||
$lang = JFactory::getLanguage();
|
||||
$myrtl = $this->newsfeed->rtl;
|
||||
$direction = " ";
|
||||
|
||||
if ($lang->isRtl() && $myrtl == 0)
|
||||
{
|
||||
$direction = " redirect-rtl";
|
||||
}
|
||||
elseif ($lang->isRtl() && $myrtl == 1)
|
||||
{
|
||||
$direction = " redirect-ltr";
|
||||
}
|
||||
elseif ($lang->isRtl() && $myrtl == 2)
|
||||
{
|
||||
$direction = " redirect-rtl";
|
||||
}
|
||||
elseif ($myrtl == 0)
|
||||
{
|
||||
$direction = " redirect-ltr";
|
||||
}
|
||||
elseif ($myrtl == 1)
|
||||
{
|
||||
$direction = " redirect-ltr";
|
||||
}
|
||||
elseif ($myrtl == 2)
|
||||
{
|
||||
$direction = " redirect-rtl";
|
||||
}
|
||||
$images = json_decode($this->item->images);
|
||||
?>
|
||||
<div class="newsfeed<?php echo $this->pageclass_sfx?><?php echo $direction; ?>">
|
||||
<?php if ($this->params->get('display_num')) : ?>
|
||||
<h1 class="<?php echo $direction; ?>">
|
||||
<?php echo $this->escape($this->params->get('page_heading')); ?>
|
||||
</h1>
|
||||
<?php endif; ?>
|
||||
<h2 class="<?php echo $direction; ?>">
|
||||
<?php if ($this->item->published == 0) : ?>
|
||||
<span class="label label-warning"><?php echo JText::_('JUNPUBLISHED'); ?></span>
|
||||
<?php endif; ?>
|
||||
<a href="<?php echo $this->item->link; ?>" target="_blank">
|
||||
<?php echo str_replace(''', "'", $this->item->name); ?></a>
|
||||
</h2>
|
||||
|
||||
<?php if ($this->params->get('show_tags', 1)) : ?>
|
||||
<?php $this->item->tagLayout = new JLayoutFile('joomla.content.tags'); ?>
|
||||
<?php echo $this->item->tagLayout->render($this->item->tags->itemTags); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Show Images from Component -->
|
||||
<?php if (isset($images->image_first) and !empty($images->image_first)) : ?>
|
||||
<?php $imgfloat = (empty($images->float_first)) ? $this->params->get('float_first') : $images->float_first; ?>
|
||||
<div class="img-intro-<?php echo htmlspecialchars($imgfloat); ?>"> <img
|
||||
<?php if ($images->image_first_caption):
|
||||
echo 'class="caption"' . ' title="' . htmlspecialchars($images->image_first_caption) . '"';
|
||||
endif; ?>
|
||||
src="<?php echo htmlspecialchars($images->image_first); ?>" alt="<?php echo htmlspecialchars($images->image_first_alt); ?>"/> </div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($images->image_second) and !empty($images->image_second)) : ?>
|
||||
<?php $imgfloat = (empty($images->float_second)) ? $this->params->get('float_second') : $images->float_second; ?>
|
||||
<div class="pull-<?php echo htmlspecialchars($imgfloat); ?> item-image"> <img
|
||||
<?php if ($images->image_second_caption):
|
||||
echo 'class="caption"' . ' title="' . htmlspecialchars($images->image_second_caption) . '"';
|
||||
endif; ?>
|
||||
src="<?php echo htmlspecialchars($images->image_second); ?>" alt="<?php echo htmlspecialchars($images->image_second_alt); ?>"/> </div>
|
||||
<?php endif; ?>
|
||||
<!-- Show Description from Component -->
|
||||
<?php echo $this->item->description; ?>
|
||||
<!-- Show Feed's Description -->
|
||||
|
||||
<?php if ($this->params->get('show_feed_description')) : ?>
|
||||
<div class="feed-description">
|
||||
<?php echo str_replace(''', "'", $this->rssDoc->description); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Show Image -->
|
||||
<?php if (isset($this->rssDoc->image) && isset($this->rssDoc->imagetitle) && $this->params->get('show_feed_image')) : ?>
|
||||
<div>
|
||||
<img src="<?php echo $this->rssDoc->image; ?>" alt="<?php echo $this->rssDoc->image->decription; ?>" />
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Show items -->
|
||||
<?php if (!empty($this->rssDoc[0])) { ?>
|
||||
<ol>
|
||||
<?php for ($i = 0; $i < $this->item->numarticles; $i++) { ?>
|
||||
<?php if (empty($this->rssDoc[$i])) { break; } ?>
|
||||
<?php
|
||||
$uri = !empty($this->rssDoc[$i]->guid) || !is_null($this->rssDoc[$i]->guid) ? $this->rssDoc[$i]->guid : $this->rssDoc[$i]->uri;
|
||||
$uri = substr($uri, 0, 4) != 'http' ? $this->item->link : $uri;
|
||||
$text = !empty($this->rssDoc[$i]->content) || !is_null($this->rssDoc[$i]->content) ? $this->rssDoc[$i]->content : $this->rssDoc[$i]->description;
|
||||
?>
|
||||
<li>
|
||||
<?php if (!empty($this->rssDoc[$i]->uri)) : ?>
|
||||
<a href="<?php echo $this->rssDoc[$i]->uri; ?>" target="_blank">
|
||||
<?php echo $this->rssDoc[$i]->title; ?></a>
|
||||
<?php else : ?>
|
||||
<h3><?php echo '<a target="_blank" href="' . $this->rssDoc[$i]->uri . '">' . $this->rssDoc[$i]->title . '</a>'; ?></h3>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('show_item_description') && !empty($text)) : ?>
|
||||
<div class="feed-item-description">
|
||||
<?php if ($this->params->get('show_feed_image', 0) == 0)
|
||||
{
|
||||
$text = JFilterOutput::stripImages($text);
|
||||
}
|
||||
$text = JHtml::_('string.truncate', $text, $this->params->get('feed_character_count'));
|
||||
echo str_replace(''', "'", $text);
|
||||
?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ol>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_search
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
JHtml::_('formbehavior.chosen', 'select');
|
||||
?>
|
||||
|
||||
<div class="search<?php echo $this->pageclass_sfx; ?>">
|
||||
<?php if ($this->params->get('show_page_heading')) : ?>
|
||||
<h1 class="page-title">
|
||||
<?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 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 - 2015 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,80 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_search
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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');
|
||||
|
||||
$lang = JFactory::getLanguage();
|
||||
$upper_limit = $lang->getUpperLimitSearchWord();
|
||||
?>
|
||||
<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" title="<?php echo JHtml::tooltipText('COM_SEARCH_SEARCH');?>"><span class="icon-search"></span></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>
|
||||
|
||||
<?php if ($this->params->get('search_phrases', 1)) : ?>
|
||||
<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 endif; ?>
|
||||
|
||||
<?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">
|
||||
<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 - 2015 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>
|
||||
60
deployed/trada/templates/trada/html/com_tags/tag/default.php
Normal file
60
deployed/trada/templates/trada/html/com_tags/tag/default.php
Normal file
@ -0,0 +1,60 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_tags
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Note that there are certain parts of this layout used only when there is exactly one tag.
|
||||
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
|
||||
$isSingleTag = (count($this->item) == 1);
|
||||
?>
|
||||
<div class="tag-category<?php echo $this->pageclass_sfx; ?>">
|
||||
<?php if ($this->params->get('show_page_heading')) : ?>
|
||||
<h1>
|
||||
<?php echo $this->escape($this->params->get('page_heading')); ?>
|
||||
</h1>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('show_tag_title', 1)) : ?>
|
||||
<h2>
|
||||
<?php echo JHtml::_('content.prepare', $this->tags_title, '', 'com_tag.tag'); ?>
|
||||
</h2>
|
||||
<?php endif; ?>
|
||||
<?php // We only show a tag description if there is a single tag. ?>
|
||||
<?php if (count($this->item) == 1 && (($this->params->get('tag_list_show_tag_image', 1)) || $this->params->get('tag_list_show_tag_description', 1))) : ?>
|
||||
<div class="category-desc">
|
||||
<?php $images = json_decode($this->item[0]->images); ?>
|
||||
<?php if ($this->params->get('tag_list_show_tag_image', 1) == 1 && !empty($images->image_fulltext)) : ?>
|
||||
<img src="<?php echo htmlspecialchars($images->image_fulltext); ?>">
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('tag_list_show_tag_description') == 1 && $this->item[0]->description) : ?>
|
||||
<?php echo JHtml::_('content.prepare', $this->item[0]->description, '', 'com_tags.tag'); ?>
|
||||
<?php endif; ?>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php // If there are multiple tags and a description or image has been supplied use that. ?>
|
||||
<?php if ($this->params->get('tag_list_show_tag_description', 1) || $this->params->get('show_description_image', 1)): ?>
|
||||
<?php if ($this->params->get('show_description_image', 1) == 1 && $this->params->get('tag_list_image')) : ?>
|
||||
<img src="<?php echo $this->params->get('tag_list_image'); ?>">
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('tag_list_description', '') > '') : ?>
|
||||
<?php echo JHtml::_('content.prepare', $this->params->get('tag_list_description'), '', 'com_tags.tag'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $this->loadTemplate('items'); ?>
|
||||
<?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,93 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_tags
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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.core');
|
||||
JHtml::_('formbehavior.chosen', 'select');
|
||||
|
||||
// Get the user object.
|
||||
$user = JFactory::getUser();
|
||||
|
||||
// Check if user is allowed to add/edit based on tags permissions.
|
||||
// Do we really have to make it so people can see unpublished tags???
|
||||
$canEdit = $user->authorise('core.edit', 'com_tags');
|
||||
$canCreate = $user->authorise('core.create', 'com_tags');
|
||||
$canEditState = $user->authorise('core.edit.state', 'com_tags');
|
||||
$items = $this->items;
|
||||
$n = count($this->items);
|
||||
|
||||
?>
|
||||
|
||||
<form action="<?php echo htmlspecialchars(JUri::getInstance()->toString()); ?>" method="post" name="adminForm" id="adminForm" class="form-inline">
|
||||
<?php if ($this->params->get('show_headings') || $this->params->get('filter_field') || $this->params->get('show_pagination_limit')) : ?>
|
||||
<fieldset class="filters btn-toolbar">
|
||||
<?php if ($this->params->get('filter_field')) :?>
|
||||
<div class="btn-group">
|
||||
<label class="filter-search-lbl element-invisible" for="filter-search">
|
||||
<?php echo JText::_('COM_TAGS_TITLE_FILTER_LABEL') . ' '; ?>
|
||||
</label>
|
||||
<input type="text" name="filter-search" id="filter-search" value="<?php echo $this->escape($this->state->get('list.filter')); ?>" class="inputbox" onchange="document.adminForm.submit();" title="<?php echo JText::_('COM_TAGS_FILTER_SEARCH_DESC'); ?>" placeholder="<?php echo JText::_('COM_TAGS_TITLE_FILTER_LABEL'); ?>" />
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('show_pagination_limit')) : ?>
|
||||
<div class="btn-group pull-right">
|
||||
<label for="limit" class="element-invisible">
|
||||
<?php echo JText::_('JGLOBAL_DISPLAY_NUM'); ?>
|
||||
</label>
|
||||
<?php echo $this->pagination->getLimitBox(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<input type="hidden" name="filter_order" value="" />
|
||||
<input type="hidden" name="filter_order_Dir" value="" />
|
||||
<input type="hidden" name="limitstart" value="" />
|
||||
<input type="hidden" name="task" value="" />
|
||||
<div class="clearfix"></div>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->items == false || $n == 0) : ?>
|
||||
<p> <?php echo JText::_('COM_TAGS_NO_ITEMS'); ?></p>
|
||||
<?php else : ?>
|
||||
|
||||
<ul class="category list-striped">
|
||||
<?php foreach ($items as $i => $item) : ?>
|
||||
<?php if ($item->core_state == 0) : ?>
|
||||
<li class="system-unpublished cat-list-row<?php echo $i % 2; ?>">
|
||||
<?php else: ?>
|
||||
<li class="cat-list-row<?php echo $i % 2; ?> clearfix" >
|
||||
<h3>
|
||||
<a href="<?php echo JRoute::_(TagsHelperRoute::getItemRoute($item->content_item_id, $item->core_alias, $item->core_catid, $item->core_language, $item->type_alias, $item->router)); ?>">
|
||||
<?php echo $this->escape($item->core_title); ?>
|
||||
</a>
|
||||
</h3>
|
||||
<?php endif; ?>
|
||||
<?php echo $item->event->afterDisplayTitle; ?>
|
||||
<?php $images = json_decode($item->core_images);?>
|
||||
<?php if ($this->params->get('tag_list_show_item_image', 1) == 1 && !empty($images->image_intro)) :?>
|
||||
<a href="<?php echo JRoute::_(TagsHelperRoute::getItemRoute($item->content_item_id, $item->core_alias, $item->core_catid, $item->core_language, $item->type_alias, $item->router)); ?>">
|
||||
<img src="<?php echo htmlspecialchars($images->image_intro);?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>">
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('tag_list_show_item_description', 1)) : ?>
|
||||
<?php echo $item->event->beforeDisplayContent; ?>
|
||||
<span class="tag-body">
|
||||
<?php echo JHtml::_('string.truncate', $item->core_body, $this->params->get('tag_list_item_maximum_characters')); ?>
|
||||
</span>
|
||||
<?php echo $item->event->afterDisplayContent; ?>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
||||
<?php endif; ?>
|
||||
</form>
|
||||
53
deployed/trada/templates/trada/html/com_tags/tag/list.php
Normal file
53
deployed/trada/templates/trada/html/com_tags/tag/list.php
Normal file
@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_tags
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Note that there are certain parts of this layout used only when there is exactly one tag.
|
||||
|
||||
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
|
||||
$n = count($this->items);
|
||||
?>
|
||||
<div class="tag-category<?php echo $this->pageclass_sfx; ?>">
|
||||
<?php if ($this->params->get('show_page_heading')) : ?>
|
||||
<h1>
|
||||
<?php echo $this->escape($this->params->get('page_heading')); ?>
|
||||
</h1>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('show_tag_title', 1)) : ?>
|
||||
<h2>
|
||||
<?php echo JHtml::_('content.prepare', $this->tags_title, '', 'com_tag.tag'); ?>
|
||||
</h2>
|
||||
<?php endif; ?>
|
||||
<?php // We only show a tag description if there is a single tag. ?>
|
||||
<?php if (count($this->item) == 1 && (($this->params->get('tag_list_show_tag_image', 1)) || $this->params->get('tag_list_show_tag_description', 1))) : ?>
|
||||
<div class="category-desc">
|
||||
<?php $images = json_decode($this->item[0]->images); ?>
|
||||
<?php if ($this->params->get('tag_list_show_tag_image', 1) == 1 && !empty($images->image_fulltext)) : ?>
|
||||
<img src="<?php echo htmlspecialchars($images->image_fulltext); ?>">
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('tag_list_show_tag_description') == 1 && $this->item[0]->description) : ?>
|
||||
<?php echo JHtml::_('content.prepare', $this->item[0]->description, '', 'com_tags.tag'); ?>
|
||||
<?php endif; ?>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php // If there are multiple tags and a description or image has been supplied use that. ?>
|
||||
<?php if ($this->params->get('tag_list_show_tag_description', 1) || $this->params->get('show_description_image', 1)): ?>
|
||||
<?php if ($this->params->get('show_description_image', 1) == 1 && $this->params->get('tag_list_image')) : ?>
|
||||
<img src="<?php echo $this->params->get('tag_list_image'); ?>">
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('tag_list_description', '') > '') : ?>
|
||||
<?php echo JHtml::_('content.prepare', $this->params->get('tag_list_description'), '', 'com_tags.tag'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $this->loadTemplate('items'); ?>
|
||||
</div>
|
||||
122
deployed/trada/templates/trada/html/com_tags/tag/list_items.php
Normal file
122
deployed/trada/templates/trada/html/com_tags/tag/list_items.php
Normal file
@ -0,0 +1,122 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_tags
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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.core');
|
||||
JHtml::_('formbehavior.chosen', 'select');
|
||||
|
||||
$n = count($this->items);
|
||||
$listOrder = $this->escape($this->state->get('list.ordering'));
|
||||
$listDirn = $this->escape($this->state->get('list.direction'));
|
||||
|
||||
?>
|
||||
|
||||
<form action="<?php echo htmlspecialchars(JUri::getInstance()->toString()); ?>" method="post" name="adminForm" id="adminForm">
|
||||
<?php if ($this->params->get('filter_field') || $this->params->get('show_pagination_limit')) : ?>
|
||||
<fieldset class="filters btn-toolbar">
|
||||
<?php if ($this->params->get('filter_field')) :?>
|
||||
<div class="btn-group">
|
||||
<label class="filter-search-lbl element-invisible" for="filter-search">
|
||||
<?php echo JText::_('COM_TAGS_TITLE_FILTER_LABEL') . ' '; ?>
|
||||
</label>
|
||||
<input type="text" name="filter-search" id="filter-search" value="<?php echo $this->escape($this->state->get('list.filter')); ?>" class="inputbox" onchange="document.adminForm.submit();" title="<?php echo JText::_('COM_TAGS_FILTER_SEARCH_DESC'); ?>" placeholder="<?php echo JText::_('COM_TAGS_TITLE_FILTER_LABEL'); ?>" />
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('show_pagination_limit')) : ?>
|
||||
<div class="btn-group pull-right">
|
||||
<label for="limit" class="element-invisible">
|
||||
<?php echo JText::_('JGLOBAL_DISPLAY_NUM'); ?>
|
||||
</label>
|
||||
<?php echo $this->pagination->getLimitBox(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<input type="hidden" name="filter_order" value="" />
|
||||
<input type="hidden" name="filter_order_Dir" value="" />
|
||||
<input type="hidden" name="limitstart" value="" />
|
||||
<input type="hidden" name="task" value="" />
|
||||
<div class="clearfix"></div>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->items == false || $n == 0) : ?>
|
||||
<p> <?php echo JText::_('COM_TAGS_NO_ITEMS'); ?></p>
|
||||
<?php else : ?>
|
||||
<table class="category table table-striped table-bordered table-hover">
|
||||
<?php if ($this->params->get('show_headings')) : ?>
|
||||
<thead>
|
||||
<tr>
|
||||
<th id="categorylist_header_title">
|
||||
<?php echo JHtml::_('grid.sort', 'JGLOBAL_TITLE', 'c.core_title', $listDirn, $listOrder); ?>
|
||||
</th>
|
||||
<?php if ($date = $this->params->get('tag_list_show_date')) : ?>
|
||||
<th id="categorylist_header_date">
|
||||
<?php if ($date == "created") : ?>
|
||||
<?php echo JHtml::_('grid.sort', 'COM_TAGS_' . $date . '_DATE', 'c.core_created_time', $listDirn, $listOrder); ?>
|
||||
<?php elseif ($date == "modified") : ?>
|
||||
<?php echo JHtml::_('grid.sort', 'COM_TAGS_' . $date . '_DATE', 'c.core_modified_time', $listDirn, $listOrder); ?>
|
||||
<?php elseif ($date == "published") : ?>
|
||||
<?php echo JHtml::_('grid.sort', 'COM_TAGS_' . $date . '_DATE', 'c.core_publish_up', $listDirn, $listOrder); ?>
|
||||
<?php endif; ?>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<?php endif; ?>
|
||||
<tbody>
|
||||
<?php foreach ($this->items as $i => $item) : ?>
|
||||
<?php if ($this->items[$i]->core_state == 0) : ?>
|
||||
<tr class="system-unpublished cat-list-row<?php echo $i % 2; ?>">
|
||||
<?php else: ?>
|
||||
<tr class="cat-list-row<?php echo $i % 2; ?>" >
|
||||
<?php endif; ?>
|
||||
<td headers="categorylist_header_title" class="list-title">
|
||||
<a href="<?php echo JRoute::_(TagsHelperRoute::getItemRoute($item->content_item_id, $item->core_alias, $item->core_catid, $item->core_language, $item->type_alias, $item->router)); ?>">
|
||||
<?php echo $this->escape($item->core_title); ?>
|
||||
</a>
|
||||
<?php if ($item->core_state == 0) : ?>
|
||||
<span class="list-published label label-warning">
|
||||
<?php echo JText::_('JUNPUBLISHED'); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<?php if ($this->params->get('tag_list_show_date')) : ?>
|
||||
<td headers="categorylist_header_date" class="list-date small">
|
||||
<?php
|
||||
echo JHtml::_(
|
||||
'date', $item->displayDate,
|
||||
$this->escape($this->params->get('date_format', JText::_('DATE_FORMAT_LC3')))
|
||||
); ?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php // Add pagination links ?>
|
||||
<?php if (!empty($this->items)) : ?>
|
||||
<?php if (($this->params->def('show_pagination', 2) == 1 || ($this->params->get('show_pagination') == 2)) && ($this->pagination->pagesTotal > 1)) : ?>
|
||||
<div class="pagination">
|
||||
|
||||
<?php if ($this->params->def('show_pagination_results', 1)) : ?>
|
||||
<p class="counter pull-right">
|
||||
<?php echo $this->pagination->getPagesCounter(); ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $this->pagination->getPagesLinks(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</form>
|
||||
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_tags
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Note that there are certain parts of this layout used only when there is exactly one tag.
|
||||
|
||||
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
|
||||
$description = $this->params->get('all_tags_description');
|
||||
$descriptionImage = $this->params->get('all_tags_description_image');
|
||||
?>
|
||||
<div class="tag-category<?php echo $this->pageclass_sfx; ?>">
|
||||
<?php if ($this->params->get('show_page_heading')) : ?>
|
||||
<h1>
|
||||
<?php echo $this->escape($this->params->get('page_heading')); ?>
|
||||
</h1>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('all_tags_show_description_image') && !empty($descriptionImage)): ?>
|
||||
<div><?php echo '<img src="' . $descriptionImage . '">'; ?></div>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($description)): ?>
|
||||
<div><?php echo $description; ?></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $this->loadTemplate('items'); ?>
|
||||
|
||||
</div>
|
||||
@ -0,0 +1,138 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_tags
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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.core');
|
||||
JHtml::_('formbehavior.chosen', 'select');
|
||||
|
||||
// Get the user object.
|
||||
$user = JFactory::getUser();
|
||||
|
||||
// Check if user is allowed to add/edit based on tags permissions.
|
||||
$canEdit = $user->authorise('core.edit', 'com_tags');
|
||||
$canCreate = $user->authorise('core.create', 'com_tags');
|
||||
$canEditState = $user->authorise('core.edit.state', 'com_tags');
|
||||
|
||||
$columns = $this->params->get('tag_columns', 1);
|
||||
|
||||
// Avoid division by 0 and negative columns.
|
||||
if ($columns < 1)
|
||||
{
|
||||
$columns = 1;
|
||||
}
|
||||
|
||||
$bsspans = floor(12 / $columns);
|
||||
|
||||
if ($bsspans < 1)
|
||||
{
|
||||
$bsspans = 1;
|
||||
}
|
||||
|
||||
$bscolumns = min($columns, floor(12 / $bsspans));
|
||||
$n = count($this->items);
|
||||
?>
|
||||
|
||||
<form action="<?php echo htmlspecialchars(JUri::getInstance()->toString()); ?>" method="post" name="adminForm" id="adminForm">
|
||||
<?php if ($this->params->get('filter_field') || $this->params->get('show_pagination_limit')) : ?>
|
||||
<fieldset class="filters btn-toolbar">
|
||||
<?php if ($this->params->get('filter_field')) : ?>
|
||||
<div class="btn-group">
|
||||
<label class="filter-search-lbl element-invisible" for="filter-search">
|
||||
<?php echo JText::_('COM_TAGS_TITLE_FILTER_LABEL') . ' '; ?>
|
||||
</label>
|
||||
<input type="text" name="filter-search" id="filter-search" value="<?php echo $this->escape($this->state->get('list.filter')); ?>" class="inputbox" onchange="document.adminForm.submit();" title="<?php echo JText::_('COM_TAGS_FILTER_SEARCH_DESC'); ?>" placeholder="<?php echo JText::_('COM_TAGS_TITLE_FILTER_LABEL'); ?>" />
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('show_pagination_limit')) : ?>
|
||||
<div class="btn-group pull-right">
|
||||
<label for="limit" class="element-invisible">
|
||||
<?php echo JText::_('JGLOBAL_DISPLAY_NUM'); ?>
|
||||
</label>
|
||||
<?php echo $this->pagination->getLimitBox(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<input type="hidden" name="filter_order" value="" />
|
||||
<input type="hidden" name="filter_order_Dir" value="" />
|
||||
<input type="hidden" name="limitstart" value="" />
|
||||
<input type="hidden" name="task" value="" />
|
||||
<div class="clearfix"></div>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->items == false || $n == 0) : ?>
|
||||
<p><?php echo JText::_('COM_TAGS_NO_TAGS'); ?></p>
|
||||
<?php else : ?>
|
||||
<?php foreach ($this->items as $i => $item) : ?>
|
||||
<?php if ($n == 1 || $i == 0 || $bscolumns == 1 || $i % $bscolumns == 0) : ?>
|
||||
<ul class="thumbnails">
|
||||
<?php endif; ?>
|
||||
<?php if ((!empty($item->access)) && in_array($item->access, $this->user->getAuthorisedViewLevels())) : ?>
|
||||
<li class="cat-list-row<?php echo $i % 2; ?>" >
|
||||
<h3>
|
||||
<a href="<?php echo JRoute::_(TagsHelperRoute::getTagRoute($item->id . '-' . $item->alias)); ?>">
|
||||
<?php echo $this->escape($item->title); ?>
|
||||
</a>
|
||||
</h3>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('all_tags_show_tag_image') && !empty($item->images)) : ?>
|
||||
<?php $images = json_decode($item->images); ?>
|
||||
<span class="tag-body">
|
||||
<?php if (!empty($images->image_intro)): ?>
|
||||
<?php $imgfloat = (empty($images->float_intro)) ? $this->params->get('float_intro') : $images->float_intro; ?>
|
||||
<div class="pull-<?php echo htmlspecialchars($imgfloat); ?> item-image">
|
||||
<img
|
||||
<?php if ($images->image_intro_caption) : ?>
|
||||
<?php echo 'class="caption"' . ' title="' . htmlspecialchars($images->image_intro_caption) . '"'; ?>
|
||||
<?php endif; ?>
|
||||
src="<?php echo $images->image_intro; ?>" alt="<?php echo htmlspecialchars($images->image_fulltext_alt); ?>"/>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
<div class="caption">
|
||||
<?php if ($this->params->get('all_tags_show_tag_description', 1)) : ?>
|
||||
<span class="tag-body">
|
||||
<?php echo JHtml::_('string.truncate', $item->description, $this->params->get('tag_list_item_maximum_characters')); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('all_tags_show_tag_hits')) : ?>
|
||||
<span class="list-hits badge badge-info">
|
||||
<?php echo JText::sprintf('JGLOBAL_HITS_COUNT', $item->hits); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<?php if (($i == 0 && $n == 1) || $i == $n - 1 || $bscolumns == 1 || (($i + 1) % $bscolumns == 0)) : ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endforeach; ?>
|
||||
<?php endif;?>
|
||||
|
||||
<?php // Add pagination links ?>
|
||||
<?php if (!empty($this->items)) : ?>
|
||||
<?php if (($this->params->def('show_pagination', 2) == 1 || ($this->params->get('show_pagination') == 2)) && ($this->pagination->pagesTotal > 1)) : ?>
|
||||
<div class="pagination">
|
||||
|
||||
<?php if ($this->params->def('show_pagination_results', 1)) : ?>
|
||||
<p class="counter pull-right">
|
||||
<?php echo $this->pagination->getPagesCounter(); ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $this->pagination->getPagesLinks(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_users
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$cookieLogin = $this->user->get('cookieLogin');
|
||||
|
||||
if ($this->user->get('guest') || !empty($cookieLogin))
|
||||
{
|
||||
// The user is not logged in or needs to provide a password.
|
||||
echo $this->loadTemplate('login');
|
||||
}
|
||||
else
|
||||
{
|
||||
// The user is already logged in.
|
||||
echo $this->loadTemplate('logout');
|
||||
}
|
||||
@ -0,0 +1,105 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_users
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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="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_USERS_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="form-validate xform-horizontal well">
|
||||
|
||||
<fieldset>
|
||||
<?php foreach ($this->form->getFieldset('credentials') as $field) : ?>
|
||||
<?php if (!$field->hidden) : ?>
|
||||
<div class="form-group">
|
||||
<div class="control-label">
|
||||
<?php echo $field->label; ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $field->input; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php if ($this->tfa): ?>
|
||||
<div class="form-group">
|
||||
<div class="control-label">
|
||||
<?php echo $this->form->getField('secretkey')->label; ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $this->form->getField('secretkey')->input; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (JPluginHelper::isEnabled('system', 'remember')) : ?>
|
||||
<div class="form-group hide">
|
||||
<div class="control-label"><label><?php echo JText::_('COM_USERS_LOGIN_REMEMBER_ME') ?></label></div>
|
||||
<div class="controls"><input id="remember" type="checkbox" name="remember" class="inputbox" value="yes"/></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="controls">
|
||||
<button type="submit" class="btn btn-primary btn-block">
|
||||
<?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>
|
||||
<ul class="nav nav-tabs nav-stacked">
|
||||
<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>
|
||||
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_users
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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="logout<?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('logoutdescription_show') == 1 && str_replace(' ', '', $this->params->get('logout_description')) != '')|| $this->params->get('logout_image') != '') : ?>
|
||||
<div class="logout-description">
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('logoutdescription_show') == 1) : ?>
|
||||
<?php echo $this->params->get('logout_description'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (($this->params->get('logout_image') != '')) :?>
|
||||
<img src="<?php echo $this->escape($this->params->get('logout_image')); ?>" class="thumbnail pull-right logout-image" alt="<?php echo JText::_('COM_USER_LOGOUT_IMAGE_ALT')?>"/>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (($this->params->get('logoutdescription_show') == 1 && str_replace(' ', '', $this->params->get('logout_description')) != '')|| $this->params->get('logout_image') != '') : ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<form action="<?php echo JRoute::_('index.php?option=com_users&task=user.logout'); ?>" method="post" class="form-horizontal well">
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<button type="submit" class="btn btn-primary"><span class="icon-arrow-left icon-white"></span> <?php echo JText::_('JLOGOUT'); ?></button>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="return" value="<?php echo base64_encode($this->params->get('logout_redirect_url', $this->form->getValue('return'))); ?>" />
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</form>
|
||||
</div>
|
||||
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_users
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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="profile<?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 (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);?>">
|
||||
<span class="icon-user"></span> <?php echo JText::_('COM_USERS_EDIT_PROFILE'); ?></a>
|
||||
</li>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
<?php echo $this->loadTemplate('core'); ?>
|
||||
|
||||
<?php echo $this->loadTemplate('params'); ?>
|
||||
|
||||
<?php echo $this->loadTemplate('custom'); ?>
|
||||
|
||||
</div>
|
||||
@ -0,0 +1,54 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_users
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
|
||||
<fieldset id="users-profile-core">
|
||||
<legend>
|
||||
<?php echo JText::_('COM_USERS_PROFILE_CORE_LEGEND'); ?>
|
||||
</legend>
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
<?php echo JText::_('COM_USERS_PROFILE_NAME_LABEL'); ?>
|
||||
</dt>
|
||||
<dd>
|
||||
<?php echo $this->data->name; ?>
|
||||
</dd>
|
||||
<dt>
|
||||
<?php echo JText::_('COM_USERS_PROFILE_USERNAME_LABEL'); ?>
|
||||
</dt>
|
||||
<dd>
|
||||
<?php echo htmlspecialchars($this->data->username); ?>
|
||||
</dd>
|
||||
<dt>
|
||||
<?php echo JText::_('COM_USERS_PROFILE_REGISTERED_DATE_LABEL'); ?>
|
||||
</dt>
|
||||
<dd>
|
||||
<?php echo JHtml::_('date', $this->data->registerDate); ?>
|
||||
</dd>
|
||||
<dt>
|
||||
<?php echo JText::_('COM_USERS_PROFILE_LAST_VISITED_DATE_LABEL'); ?>
|
||||
</dt>
|
||||
|
||||
<?php if ($this->data->lastvisitDate != '0000-00-00 00:00:00'){?>
|
||||
<dd>
|
||||
<?php echo JHtml::_('date', $this->data->lastvisitDate); ?>
|
||||
</dd>
|
||||
<?php }
|
||||
else
|
||||
{?>
|
||||
<dd>
|
||||
<?php echo JText::_('COM_USERS_PROFILE_NEVER_VISITED'); ?>
|
||||
</dd>
|
||||
<?php } ?>
|
||||
|
||||
</dl>
|
||||
</fieldset>
|
||||
@ -0,0 +1,50 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_users
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
JLoader::register('JHtmlUsers', JPATH_COMPONENT . '/helpers/html/users.php');
|
||||
JHtml::register('users.spacer', array('JHtmlUsers', 'spacer'));
|
||||
|
||||
|
||||
$fieldsets = $this->form->getFieldsets();
|
||||
if (isset($fieldsets['core'])) unset($fieldsets['core']);
|
||||
if (isset($fieldsets['params'])) unset($fieldsets['params']);
|
||||
|
||||
foreach ($fieldsets as $group => $fieldset): // Iterate through the form fieldsets
|
||||
$fields = $this->form->getFieldset($group);
|
||||
if (count($fields)):
|
||||
?>
|
||||
|
||||
<fieldset id="users-profile-custom" class="users-profile-custom-<?php echo $group; ?>">
|
||||
<?php // If the fieldset has a label set, display it as the legend. ?>
|
||||
<?php if (isset($fieldset->label)): ?>
|
||||
<legend><?php echo JText::_($fieldset->label); ?></legend>
|
||||
<?php endif; ?>
|
||||
<dl class="dl-horizontal">
|
||||
<?php foreach ($fields as $field) :
|
||||
if (!$field->hidden && $field->type != 'Spacer') : ?>
|
||||
<dt><?php echo $field->title; ?></dt>
|
||||
<dd>
|
||||
<?php if (JHtml::isRegistered('users.' . $field->id)) : ?>
|
||||
<?php echo JHtml::_('users.' . $field->id, $field->value); ?>
|
||||
<?php elseif (JHtml::isRegistered('users.' . $field->fieldname)) : ?>
|
||||
<?php echo JHtml::_('users.' . $field->fieldname, $field->value); ?>
|
||||
<?php elseif (JHtml::isRegistered('users.' . $field->type)) : ?>
|
||||
<?php echo JHtml::_('users.' . $field->type, $field->value); ?>
|
||||
<?php else : ?>
|
||||
<?php echo JHtml::_('users.value', $field->value); ?>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</dl>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_users
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
JLoader::register('JHtmlUsers', JPATH_COMPONENT . '/helpers/html/users.php');
|
||||
JHtml::register('users.spacer', array('JHtmlUsers', 'spacer'));
|
||||
JHtml::register('users.helpsite', array('JHtmlUsers', 'helpsite'));
|
||||
JHtml::register('users.templatestyle', array('JHtmlUsers', 'templatestyle'));
|
||||
JHtml::register('users.admin_language', array('JHtmlUsers', 'admin_language'));
|
||||
JHtml::register('users.language', array('JHtmlUsers', 'language'));
|
||||
JHtml::register('users.editor', array('JHtmlUsers', 'editor'));
|
||||
|
||||
?>
|
||||
<?php $fields = $this->form->getFieldset('params'); ?>
|
||||
<?php if (count($fields)) : ?>
|
||||
<fieldset id="users-profile-custom">
|
||||
<legend><?php echo JText::_('COM_USERS_SETTINGS_FIELDSET_LABEL'); ?></legend>
|
||||
<dl class="dl-horizontal">
|
||||
<?php foreach ($fields as $field):
|
||||
if (!$field->hidden) :?>
|
||||
<dt><?php echo $field->title; ?></dt>
|
||||
<dd>
|
||||
<?php if (JHtml::isRegistered('users.' . $field->id)):?>
|
||||
<?php echo JHtml::_('users.' . $field->id, $field->value);?>
|
||||
<?php elseif (JHtml::isRegistered('users.' . $field->fieldname)):?>
|
||||
<?php echo JHtml::_('users.' . $field->fieldname, $field->value);?>
|
||||
<?php elseif (JHtml::isRegistered('users.' . $field->type)):?>
|
||||
<?php echo JHtml::_('users.' . $field->type, $field->value);?>
|
||||
<?php else:?>
|
||||
<?php echo JHtml::_('users.value', $field->value);?>
|
||||
<?php endif;?>
|
||||
</dd>
|
||||
<?php endif;?>
|
||||
<?php endforeach;?>
|
||||
</dl>
|
||||
</fieldset>
|
||||
<?php endif;?>
|
||||
141
deployed/trada/templates/trada/html/com_users/profile/edit.php
Normal file
141
deployed/trada/templates/trada/html/com_users/profile/edit.php
Normal file
@ -0,0 +1,141 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_users
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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.formvalidator');
|
||||
JHtml::_('formbehavior.chosen', 'select');
|
||||
|
||||
// Load user_profile plugin language
|
||||
$lang = JFactory::getLanguage();
|
||||
$lang->load('plg_user_profile', JPATH_ADMINISTRATOR);
|
||||
|
||||
?>
|
||||
<div class="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; ?>
|
||||
|
||||
<script type="text/javascript">
|
||||
Joomla.twoFactorMethodChange = function(e)
|
||||
{
|
||||
var selectedPane = 'com_users_twofactor_' + jQuery('#jform_twofactor_method').val();
|
||||
|
||||
jQuery.each(jQuery('#com_users_twofactor_forms_container>div'), function(i, el) {
|
||||
if (el.id != selectedPane)
|
||||
{
|
||||
jQuery('#' + el.id).hide(0);
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#' + el.id).show(0);
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<form id="member-profile" action="<?php echo JRoute::_('index.php?option=com_users&task=profile.save'); ?>" method="post" class="form-validate form-horizontal well" enctype="multipart/form-data">
|
||||
<?php // Iterate through the form fieldsets and display each one. ?>
|
||||
<?php foreach ($this->form->getFieldsets() as $group => $fieldset) : ?>
|
||||
<?php $fields = $this->form->getFieldset($group); ?>
|
||||
<?php if (count($fields)) : ?>
|
||||
<fieldset>
|
||||
<?php // If the fieldset has a label set, display it as the legend. ?>
|
||||
<?php if (isset($fieldset->label)) : ?>
|
||||
<legend>
|
||||
<?php echo JText::_($fieldset->label); ?>
|
||||
</legend>
|
||||
<?php endif;?>
|
||||
<?php // Iterate through the fields in the set and display them. ?>
|
||||
<?php foreach ($fields as $field) : ?>
|
||||
<?php // If the field is hidden, just display the input. ?>
|
||||
<?php if ($field->hidden) : ?>
|
||||
<?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 if ($field->fieldname == 'password1') : ?>
|
||||
<?php // Disables autocomplete ?> <input type="text" style="display:none">
|
||||
<?php endif; ?>
|
||||
<?php echo $field->input; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<?php endforeach;?>
|
||||
</fieldset>
|
||||
<?php endif;?>
|
||||
<?php endforeach;?>
|
||||
|
||||
<?php if (count($this->twofactormethods) > 1) : ?>
|
||||
<fieldset>
|
||||
<legend><?php echo JText::_('COM_USERS_PROFILE_TWO_FACTOR_AUTH'); ?></legend>
|
||||
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<label id="jform_twofactor_method-lbl" for="jform_twofactor_method" class="hasTooltip"
|
||||
title="<?php echo '<strong>' . JText::_('COM_USERS_PROFILE_TWOFACTOR_LABEL') . '</strong><br />' . JText::_('COM_USERS_PROFILE_TWOFACTOR_DESC'); ?>">
|
||||
<?php echo JText::_('COM_USERS_PROFILE_TWOFACTOR_LABEL'); ?>
|
||||
</label>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo JHtml::_('select.genericlist', $this->twofactormethods, 'jform[twofactor][method]', array('onchange' => 'Joomla.twoFactorMethodChange()'), 'value', 'text', $this->otpConfig->method, 'jform_twofactor_method', false); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div id="com_users_twofactor_forms_container">
|
||||
<?php foreach($this->twofactorform as $form) : ?>
|
||||
<?php $style = $form['method'] == $this->otpConfig->method ? 'display: block' : 'display: none'; ?>
|
||||
<div id="com_users_twofactor_<?php echo $form['method']; ?>" style="<?php echo $style; ?>">
|
||||
<?php echo $form['form']; ?>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend>
|
||||
<?php echo JText::_('COM_USERS_PROFILE_OTEPS'); ?>
|
||||
</legend>
|
||||
<div class="alert alert-info">
|
||||
<?php echo JText::_('COM_USERS_PROFILE_OTEPS_DESC'); ?>
|
||||
</div>
|
||||
<?php if (empty($this->otpConfig->otep)) : ?>
|
||||
<div class="alert alert-warning">
|
||||
<?php echo JText::_('COM_USERS_PROFILE_OTEPS_WAIT_DESC'); ?>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<?php foreach ($this->otpConfig->otep as $otep) : ?>
|
||||
<span class="span3">
|
||||
<?php echo substr($otep, 0, 4); ?>-<?php echo substr($otep, 4, 4); ?>-<?php echo substr($otep, 8, 4); ?>-<?php echo substr($otep, 12, 4); ?>
|
||||
</span>
|
||||
<?php endforeach; ?>
|
||||
<div class="clearfix"></div>
|
||||
<?php endif; ?>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="control-group">
|
||||
<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" />
|
||||
</div>
|
||||
</div>
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</form>
|
||||
</div>
|
||||
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_users
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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="registration-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; ?>
|
||||
</div>
|
||||
@ -0,0 +1,64 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_users
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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.formvalidator');
|
||||
?>
|
||||
<div class="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 form-horizontal well" enctype="multipart/form-data">
|
||||
<?php // Iterate through the form fieldsets and display each one. ?>
|
||||
<?php foreach ($this->form->getFieldsets() as $fieldset): ?>
|
||||
<?php $fields = $this->form->getFieldset($fieldset->name);?>
|
||||
<?php if (count($fields)):?>
|
||||
<fieldset>
|
||||
<?php // If the fieldset has a label set, display it as the legend. ?>
|
||||
<?php if (isset($fieldset->label)): ?>
|
||||
<legend><?php echo JText::_($fieldset->label);?></legend>
|
||||
<?php endif;?>
|
||||
<?php // Iterate through the fields in the set and display them. ?>
|
||||
<?php foreach ($fields as $field) : ?>
|
||||
<?php // If the field is hidden, just display the input. ?>
|
||||
<?php if ($field->hidden): ?>
|
||||
<?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="control-group">
|
||||
<div class="controls">
|
||||
<button type="submit" class="btn btn-primary validate"><?php echo JText::_('JREGISTER');?></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="registration.register" />
|
||||
</div>
|
||||
</div>
|
||||
<?php echo JHtml::_('form.token');?>
|
||||
</form>
|
||||
</div>
|
||||
@ -0,0 +1,47 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_users
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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.formvalidator');
|
||||
?>
|
||||
<div class="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 xform-horizontal well">
|
||||
<?php foreach ($this->form->getFieldsets() as $fieldset) : ?>
|
||||
<fieldset>
|
||||
<p><?php echo JText::_($fieldset->label); ?></p>
|
||||
<?php foreach ($this->form->getFieldset($fieldset->name) as $name => $field) : ?>
|
||||
<div class="form-group">
|
||||
<div class="control-label">
|
||||
<?php echo $field->label; ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $field->input; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</fieldset>
|
||||
<?php endforeach; ?>
|
||||
<div class="form-group">
|
||||
<div class="controls">
|
||||
<button type="submit" class="btn btn-primary btn-block validate"><?php echo JText::_('JSUBMIT'); ?></button>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</form>
|
||||
</div>
|
||||
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_users
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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.formvalidator');
|
||||
?>
|
||||
<div class="reset-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; ?>
|
||||
|
||||
<form action="<?php echo JRoute::_('index.php?option=com_users&task=reset.complete'); ?>" method="post" class="form-validate form-horizontal well">
|
||||
<?php foreach ($this->form->getFieldsets() as $fieldset) : ?>
|
||||
<fieldset>
|
||||
<p><?php echo JText::_($fieldset->label); ?></p>
|
||||
<?php foreach ($this->form->getFieldset($fieldset->name) as $name => $field) : ?>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $field->label; ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $field->input; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</fieldset>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<button type="submit" class="btn btn-primary validate"><?php echo JText::_('JSUBMIT'); ?></button>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</form>
|
||||
</div>
|
||||
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_users
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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.formvalidator');
|
||||
?>
|
||||
<div class="reset-confirm<?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 action="<?php echo JRoute::_('index.php?option=com_users&task=reset.confirm'); ?>" method="post" class="form-validate xform-horizontal well">
|
||||
<?php foreach ($this->form->getFieldsets() as $fieldset) : ?>
|
||||
<fieldset>
|
||||
<p><?php echo JText::_($fieldset->label); ?></p>
|
||||
<?php foreach ($this->form->getFieldset($fieldset->name) as $name => $field) : ?>
|
||||
<div class="form-group">
|
||||
<div class="control-label">
|
||||
<?php echo $field->label; ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $field->input; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</fieldset>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="controls">
|
||||
<button type="submit" class="btn btn-primary btn-block validate"><?php echo JText::_('JSUBMIT'); ?></button>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</form>
|
||||
</div>
|
||||
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_users
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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.formvalidator');
|
||||
?>
|
||||
<div class="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 xform-horizontal well">
|
||||
<?php foreach ($this->form->getFieldsets() as $fieldset) : ?>
|
||||
<fieldset>
|
||||
<p><?php echo JText::_($fieldset->label); ?></p>
|
||||
<?php foreach ($this->form->getFieldset($fieldset->name) as $name => $field) : ?>
|
||||
<div class="form-group">
|
||||
<div class="control-label">
|
||||
<?php echo $field->label; ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $field->input; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</fieldset>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<button type="submit" class="btn btn-primary btn-block validate"><?php echo JText::_('JSUBMIT'); ?></button>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</form>
|
||||
</div>
|
||||
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Layout
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('JPATH_BASE') or die;
|
||||
|
||||
$items = $displayData;
|
||||
|
||||
if (!empty($items)) : ?>
|
||||
<ul class="item-associations">
|
||||
<?php foreach ($items as $id => $item) : ?>
|
||||
<li>
|
||||
<?php echo $item->link; ?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif;
|
||||
@ -0,0 +1,42 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Layout
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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 = $displayData->params;
|
||||
$canEdit = $displayData->params->get('access-edit');
|
||||
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
|
||||
?>
|
||||
|
||||
<?php if ($params->get('show_title') || $displayData->state == 0 || ($params->get('show_author') && !empty($displayData->author ))) : ?>
|
||||
<div class="page-header">
|
||||
|
||||
<?php if ($params->get('show_title')) : ?>
|
||||
<h2 itemprop="name">
|
||||
<?php if ($params->get('link_titles') && $params->get('access-view')) : ?>
|
||||
<a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($displayData->slug, $displayData->catid, $displayData->language)); ?>" itemprop="url">
|
||||
<?php echo $this->escape($displayData->title); ?></a>
|
||||
<?php else : ?>
|
||||
<?php echo $this->escape($displayData->title); ?>
|
||||
<?php endif; ?>
|
||||
</h2>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($displayData->state == 0) : ?>
|
||||
<span class="label label-warning"><?php echo JText::_('JUNPUBLISHED'); ?></span>
|
||||
<?php endif; ?>
|
||||
<?php if (strtotime($displayData->publish_up) > strtotime(JFactory::getDate())) : ?>
|
||||
<span class="label label-warning"><?php echo JText::_('JNOTPUBLISHEDYET'); ?></span>
|
||||
<?php endif; ?>
|
||||
<?php if ((strtotime($displayData->publish_down) < strtotime(JFactory::getDate())) && $displayData->publish_down != JFactory::getDbo()->getNullDate()) : ?>
|
||||
<span class="label label-warning"><?php echo JText::_('JEXPIRED'); ?></span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Layout
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
<ol class="nav nav-tabs nav-stacked">
|
||||
<?php foreach ($displayData->get('link_items') as $item) : ?>
|
||||
<li>
|
||||
<a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($item->slug, $item->catid, $item->language)); ?>">
|
||||
<?php echo $item->title; ?></a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Layout
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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 ($displayData->params->get('show_page_heading')) : ?>
|
||||
<h1>
|
||||
<?php echo $displayData->escape($displayData->params->get('page_heading')); ?>
|
||||
</h1>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($displayData->params->get('show_base_description')) : ?>
|
||||
<?php //If there is a description in the menu parameters use that; ?>
|
||||
<?php if($displayData->params->get('categories_description')) : ?>
|
||||
<div class="category-desc base-desc">
|
||||
<?php echo JHtml::_('content.prepare', $displayData->params->get('categories_description'), '', $displayData->get('extension') . '.categories'); ?>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<?php //Otherwise get one from the database if it exists. ?>
|
||||
<?php if ($displayData->parent->description) : ?>
|
||||
<div class="category-desc base-desc">
|
||||
<?php echo JHtml::_('content.prepare', $displayData->parent->description, '', $displayData->parent->extension . '.categories'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Layout
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 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');
|
||||
|
||||
$item = $displayData->item;
|
||||
$items = $displayData->get('items');
|
||||
$params = $displayData->params;
|
||||
$extension = $displayData->get('extension');
|
||||
$className = substr($extension, 4);
|
||||
// This will work for the core components but not necessarily for other components
|
||||
// that may have different pluralisation rules.
|
||||
if (substr($className, -1) == 's')
|
||||
{
|
||||
$className = rtrim($className, 's');
|
||||
}
|
||||
@ -0,0 +1,67 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Layout
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('JPATH_BASE') or die;
|
||||
|
||||
// Note that this layout opens a div with the page class suffix. If you do not use the category children
|
||||
// layout you need to close this div either by overriding this file or in your main layout.
|
||||
$params = $displayData->params;
|
||||
$extension = $displayData->get('category')->extension;
|
||||
$canEdit = $params->get('access-edit');
|
||||
$className = substr($extension, 4);
|
||||
|
||||
// This will work for the core components but not necessarily for other components
|
||||
// that may have different pluralisation rules.
|
||||
if (substr($className, -1) == 's')
|
||||
{
|
||||
$className = rtrim($className, 's');
|
||||
}
|
||||
$tagsData = $displayData->get('category')->tags->itemTags;
|
||||
?>
|
||||
<div>
|
||||
<div class="<?php echo $className .'-category' . $displayData->pageclass_sfx;?>">
|
||||
<?php if ($params->get('show_page_heading')) : ?>
|
||||
<h1>
|
||||
<?php echo $displayData->escape($params->get('page_heading')); ?>
|
||||
</h1>
|
||||
<?php endif; ?>
|
||||
<?php if($params->get('show_category_title', 1)) : ?>
|
||||
<h2>
|
||||
<?php echo JHtml::_('content.prepare', $displayData->get('category')->title, '', $extension . '.category.title'); ?>
|
||||
</h2>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_cat_tags', 1)) : ?>
|
||||
<?php echo JLayoutHelper::render('joomla.content.tags', $tagsData); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_description', 1) || $params->def('show_description_image', 1)) : ?>
|
||||
<div class="category-desc">
|
||||
<?php if ($params->get('show_description_image') && $displayData->get('category')->getParams()->get('image')) : ?>
|
||||
<img src="<?php echo $displayData->get('category')->getParams()->get('image'); ?>" alt="<?php echo htmlspecialchars($displayData->get('category')->getParams()->get('image_alt')); ?>"/>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_description') && $displayData->get('category')->description) : ?>
|
||||
<?php echo JHtml::_('content.prepare', $displayData->get('category')->description, '', $extension . '.category'); ?>
|
||||
<?php endif; ?>
|
||||
<div class="clr"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php echo $displayData->loadTemplate($displayData->subtemplatename); ?>
|
||||
|
||||
<?php if ($displayData->get('children') && $displayData->maxLevel != 0) : ?>
|
||||
<div class="cat-children">
|
||||
<?php if ($params->get('show_category_heading_title_text', 1) == 1) : ?>
|
||||
<h3>
|
||||
<?php echo JText::_('JGLOBAL_SUBCATEGORIES'); ?>
|
||||
</h3>
|
||||
<?php endif; ?>
|
||||
<?php echo $displayData->loadTemplate('children'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Layout
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('JPATH_BASE') or die;
|
||||
|
||||
JHtml::_('bootstrap.framework');
|
||||
|
||||
$canEdit = $displayData['params']->get('access-edit');
|
||||
|
||||
?>
|
||||
|
||||
<div class="icons">
|
||||
<?php if (empty($displayData['print'])) : ?>
|
||||
|
||||
<?php if ($canEdit || $displayData['params']->get('show_print_icon') || $displayData['params']->get('show_email_icon')) : ?>
|
||||
<div class="btn-group pull-right">
|
||||
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> <span class="icon-cog"></span><span class="caret"></span> </a>
|
||||
<?php // Note the actions class is deprecated. Use dropdown-menu instead. ?>
|
||||
<ul class="dropdown-menu">
|
||||
<?php if ($displayData['params']->get('show_print_icon')) : ?>
|
||||
<li class="print-icon"> <?php echo JHtml::_('icon.print_popup', $displayData['item'], $displayData['params']); ?> </li>
|
||||
<?php endif; ?>
|
||||
<?php if ($displayData['params']->get('show_email_icon')) : ?>
|
||||
<li class="email-icon"> <?php echo JHtml::_('icon.email', $displayData['item'], $displayData['params']); ?> </li>
|
||||
<?php endif; ?>
|
||||
<?php if ($canEdit) : ?>
|
||||
<li class="edit-icon"> <?php echo JHtml::_('icon.edit', $displayData['item'], $displayData['params']); ?> </li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<div class="pull-right">
|
||||
<?php echo JHtml::_('icon.print_screen', $displayData['item'], $displayData['params']); ?>
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user