Spade
Mini Shell
| Directory:~$ /home/lmsyaran/public_html/joomla4/ |
| [Home] [System Details] [Kill Me] |
PK�
�[@t�55categories/default.phpnu�[���<?php
/**
* @package Joomla.Site
* @subpackage com_weblinks
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers');
JHtml::_('behavior.caption');
?>
<div class="categories-list<?php echo
$this->pageclass_sfx;?>">
<?php if ($this->params->get('show_page_heading')) :
?>
<h1>
<?php echo
$this->escape($this->params->get('page_heading')); ?>
</h1>
<?php endif; ?>
<?php if ($this->params->get('show_base_description')) :
?>
<?php //If there is a description in the menu parameters use that;
?>
<?php if
($this->params->get('categories_description')) : ?>
<div class="category-desc base-desc">
<?php echo JHtml::_('content.prepare',
$this->params->get('categories_description'), '',
'com_weblinks.categories'); ?>
</div>
<?php else: ?>
<?php //Otherwise get one from the database if it exists. ?>
<?php if ($this->parent->description) : ?>
<div class="category-desc base-desc">
<?php echo JHtml::_('content.prepare',
$this->parent->description, '',
'com_weblinks.categories'); ?>
</div>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<?php
echo $this->loadTemplate('items');
?>
</div>
PK�
�[mi���categories/default_items.phpnu�[���<?php
/**
* @package Joomla.Site
* @subpackage com_weblinks
*
* @copyright Copyright (C) 2005 - 2020 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 ($this->maxLevelcat != 0 &&
count($this->items[$this->parent->id]) > 0) :
?>
<ul>
<?php foreach ($this->items[$this->parent->id] as $id =>
$item) : ?>
<?php
if ($item->numitems ||
$this->params->get('show_empty_categories_cat') ||
count($item->getChildren())) :
if (!isset($this->items[$this->parent->id][$id + 1]))
{
$class = ' class="last"';
}
?>
<li<?php echo $class; ?>>
<?php $class = ''; ?>
<span class="item-title"><a href="<?php echo
JRoute::_(WeblinksHelperRoute::getCategoryRoute($item->id));
?>">
<?php echo $this->escape($item->title); ?></a>
</span>
<?php if ($this->params->get('show_subcat_desc_cat')
== 1) : ?>
<?php if ($item->description) : ?>
<div class="category-desc">
<?php echo JHtml::_('content.prepare',
$item->description, '', 'com_weblinks.categories');
?>
</div>
<?php endif; ?>
<?php endif; ?>
<?php if ($this->params->get('show_cat_num_links_cat')
== 1) : ?>
<dl class="weblink-count"><dt>
<?php echo JText::_('COM_WEBLINKS_NUM'); ?></dt>
<dd><?php echo $item->numitems; ?></dd>
</dl>
<?php endif; ?>
<?php if (count($item->getChildren()) > 0) :
$this->items[$item->id] = $item->getChildren();
$this->parent = $item;
$this->maxLevelcat--;
echo $this->loadTemplate('items');
$this->parent = $item->getParent();
$this->maxLevelcat++;
endif; ?>
</li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
<?php endif; ?>
PK�
�[Jޚppcategory/default.phpnu�[���<?php
/**
* @package Joomla.Site
* @subpackage com_weblinks
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers');
JHtml::_('behavior.caption');
?>
<div class="weblink-category<?php echo
$this->pageclass_sfx;?>">
<?php if ($this->params->get('show_page_heading')) :
?>
<h1>
<?php echo
$this->escape($this->params->get('page_heading')); ?>
</h1>
<?php endif; ?>
<?php if ($this->params->get('show_category_title', 1))
: ?>
<h2>
<?php echo JHtml::_('content.prepare',
$this->category->title, '',
'com_weblinks.category.title'); ?>
</h2>
<?php endif; ?>
<?php if ($this->params->get('show_description', 1) ||
$this->params->def('show_description_image', 1)) : ?>
<div class="category-desc">
<?php if ($this->params->get('show_description_image')
&& $this->category->getParams()->get('image')) :
?>
<img src="<?php echo
$this->category->getParams()->get('image');
?>"/>
<?php endif; ?>
<?php if ($this->category->description &&
$this->params->get('show_description')) : ?>
<?php echo JHtml::_('content.prepare',
$this->category->description, '',
'com_weblinks.category'); ?>
<?php endif; ?>
<div class="clr"></div>
</div>
<?php endif; ?>
<?php echo $this->loadTemplate('items'); ?>
<?php if ($this->maxLevel != 0 &&
!empty($this->children[$this->category->id])) : ?>
<div class="cat-children">
<h3><?php echo JText::_('JGLOBAL_SUBCATEGORIES');
?></h3>
<?php echo $this->loadTemplate('children'); ?>
</div>
<?php endif; ?>
</div>
PK�
�[KY#���category/default_children.phpnu�[���<?php
/**
* @package Joomla.Site
* @subpackage com_weblinks
*
* @copyright Copyright (C) 2005 - 2020 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 ($this->maxLevel != 0 &&
count($this->children[$this->category->id]) > 0) :
?>
<ul>
<?php foreach ($this->children[$this->category->id] as $id
=> $child) : ?>
<?php
if ($child->numitems ||
$this->params->get('show_empty_categories') ||
count($child->getChildren())) :
if (!isset($this->children[$this->category->id][$id + 1]))
{
$class = ' class="last"';
}
?>
<li<?php echo $class; ?>>
<?php $class = ''; ?>
<span class="item-title"><a href="<?php echo
JRoute::_(WeblinksHelperRoute::getCategoryRoute($child->id));
?>">
<?php echo $this->escape($child->title); ?></a>
</span>
<?php if ($this->params->get('show_subcat_desc') ==
1) : ?>
<?php if ($child->description) : ?>
<div class="category-desc">
<?php echo JHtml::_('content.prepare',
$child->description, '', 'com_weblinks.category');
?>
</div>
<?php endif; ?>
<?php endif; ?>
<?php if ($this->params->get('show_cat_num_links') ==
1) : ?>
<dl class="weblink-count"><dt>
<?php echo JText::_('COM_WEBLINKS_NUM'); ?></dt>
<dd><?php echo $child->numitems; ?></dd>
</dl>
<?php endif; ?>
<?php if (count($child->getChildren()) > 0 ) :
$this->children[$child->id] = $child->getChildren();
$this->category = $child;
$this->maxLevel--;
echo $this->loadTemplate('children');
$this->category = $child->getParent();
$this->maxLevel++;
endif; ?>
</li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
<?php endif;
PK�
�[�,���category/default_items.phpnu�[���<?php
/**
* @package Joomla.Site
* @subpackage com_weblinks
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
// Code to support edit links for weblinks
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
JHtml::_('behavior.framework');
// Get the user object.
$user = JFactory::getUser();
// Check if user is allowed to add/edit based on weblinks permissinos.
$canEdit = $user->authorise('core.edit',
'com_weblinks');
$canCreate = $user->authorise('core.create',
'com_weblinks');
$canEditState = $user->authorise('core.edit.state',
'com_weblinks');
$n = count($this->items);
$listOrder =
$this->escape($this->state->get('list.ordering'));
$listDirn =
$this->escape($this->state->get('list.direction'));
?>
<?php if (empty($this->items)) : ?>
<p> <?php echo JText::_('COM_WEBLINKS_NO_WEBLINKS');
?></p>
<?php else : ?>
<form action="<?php echo
htmlspecialchars(JUri::getInstance()->toString(), ENT_COMPAT,
'UTF-8'); ?>" method="post"
name="adminForm" id="adminForm">
<?php if ($this->params->get('show_pagination_limit'))
: ?>
<fieldset class="filters">
<legend class="hidelabeltxt"><?php echo
JText::_('JGLOBAL_FILTER_LABEL'); ?></legend>
<div class="display-limit">
<?php echo JText::_('JGLOBAL_DISPLAY_NUM'); ?> 
<?php echo $this->pagination->getLimitBox(); ?>
</div>
<input type="hidden" name="filter_order"
value="<?php echo $listOrder; ?>" />
<input type="hidden" name="filter_order_Dir"
value="<?php echo $listDirn; ?>" />
</fieldset>
<?php endif; ?>
<table class="category">
<?php if ($this->params->get('show_headings') == 1) :
?>
<thead><tr>
<th class="title">
<?php echo JHtml::_('grid.sort',
'COM_WEBLINKS_GRID_TITLE', 'title', $listDirn,
$listOrder); ?>
</th>
<?php if ($this->params->get('show_link_hits')) :
?>
<th class="hits">
<?php echo JHtml::_('grid.sort',
'JGLOBAL_HITS', 'hits', $listDirn, $listOrder); ?>
</th>
<?php endif; ?>
</tr>
</thead>
<?php endif; ?>
<tbody>
<?php foreach ($this->items as $i => $item) : ?>
<?php if ($this->items[$i]->state == 0) : ?>
<tr class="system-unpublished cat-list-row<?php echo $i % 2;
?>">
<?php else: ?>
<tr class="cat-list-row<?php echo $i % 2; ?>" >
<?php endif; ?>
<td class="title">
<p>
<?php if ($this->params->get('icons') == 0) : ?>
<?php echo JText::_('COM_WEBLINKS_LINK'); ?>
<?php elseif ($this->params->get('icons') == 1) :
?>
<?php if (!$this->params->get('link_icons')) :
?>
<?php echo JHtml::_('image',
'system/'.$this->params->get('link_icons',
'weblink.png'), JText::_('COM_WEBLINKS_LINK'), null,
true); ?>
<?php else: ?>
<?php echo '<img
src="'.$this->params->get('link_icons').'"
alt="'.JText::_('COM_WEBLINKS_LINK').'"
/>'; ?>
<?php endif; ?>
<?php endif; ?>
<?php
// Compute the correct link
$menuclass = 'category' . $this->pageclass_sfx;
$link = $item->link;
$width = $item->params->get('width');
$height = $item->params->get('height');
if ($width == null || $height == null)
{
$width = 600;
$height = 500;
}
switch ($item->params->get('target',
$this->params->get('target')))
{
case 1:
// open in a new window
echo '<a href="'. $link .'"
target="_blank" class="'. $menuclass .'"
rel="nofollow">'.
$this->escape($item->title) .'</a>';
break;
case 2:
// open in a popup window
$attribs =
'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width='.$this->escape($width).',height='.$this->escape($height).'';
echo "<a href=\"$link\"
onclick=\"window.open(this.href, 'targetWindow',
'".$attribs."'); return false;\">".
$this->escape($item->title).'</a>';
break;
case 3:
// open in a modal window
JHtml::_('behavior.modal', 'a.modal');
echo '<a class="modal"
href="'.$link.'" rel="{handler:
\'iframe\', size: {x:'.$this->escape($width).',
y:'.$this->escape($height).'}}">'.
$this->escape($item->title). ' </a>';
break;
default:
// open in parent window
echo '<a href="'. $link . '"
class="'. $menuclass .'"
rel="nofollow">'.
$this->escape($item->title) . ' </a>';
break;
}
?>
<?php // Code to add the edit link for the weblink. ?>
<?php if ($canEdit) : ?>
<ul class="actions">
<li class="edit-icon">
<?php echo JHtml::_('icon.edit', $item,
$item->params); ?>
</li>
</ul>
<?php endif; ?>
</p>
<?php $tagsData =
$item->tags->getItemTags('com_weblinks.weblink',
$item->id); ?>
<?php if ($this->params->get('show_tags', 1)) : ?>
<?php $this->item->tagLayout = new
JLayoutFile('joomla.content.tags'); ?>
<?php echo $this->item->tagLayout->render($tagsData); ?>
<?php endif; ?>
<?php if ($this->params->get('show_link_description')
and ($item->description != '')) : ?>
<?php $images = json_decode($item->images); ?>
<?php if (isset($images->image_first) and
!empty($images->image_first)) : ?>
<?php $imgfloat = empty($images->float_first) ?
$this->params->get('float_first') :
$images->float_first; ?>
<div class="img-intro-<?php echo htmlspecialchars($imgfloat,
ENT_COMPAT, 'UTF-8'); ?>"> <img
<?php if ($images->image_first_caption):
echo 'class="caption"'.' title="'
.htmlspecialchars($images->image_first_caption, ENT_COMPAT,
'UTF-8') .'"';
endif; ?>
src="<?php echo htmlspecialchars($images->image_first,
ENT_COMPAT, 'UTF-8'); ?>" alt="<?php echo
htmlspecialchars($images->image_first_alt, ENT_COMPAT,
'UTF-8'); ?>"/> </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,
ENT_COMPAT, 'UTF-8'); ?> item-image"> <img
<?php if ($images->image_second_caption):
echo 'class="caption"'.' title="'
.htmlspecialchars($images->image_second_caption, ENT_COMPAT,
'UTF-8') .'"';
endif; ?>
src="<?php echo htmlspecialchars($images->image_second,
ENT_COMPAT, 'UTF-8'); ?>" alt="<?php echo
htmlspecialchars($images->image_second_alt, ENT_COMPAT,
'UTF-8'); ?>"/> </div>
<?php endif; ?>
<?php echo $item->description; ?>
<?php endif; ?>
</td>
<?php if ($this->params->get('show_link_hits')) :
?>
<td class="hits">
<?php echo $item->hits; ?>
</td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php // Code to add a link to submit a weblink. ?>
<?php /* if ($canCreate) : // TODO This is not working due to some
problem in the router, I think. Ref issue #23685 ?>
<?php echo JHtml::_('icon.create', $item, $item->params);
?>
<?php endif; */ ?>
<?php if ($this->params->get('show_pagination')) :
?>
<div class="pagination">
<?php if
($this->params->def('show_pagination_results', 1)) : ?>
<p class="counter">
<?php echo $this->pagination->getPagesCounter(); ?>
</p>
<?php endif; ?>
<?php echo $this->pagination->getPagesLinks(); ?>
</div>
<?php endif; ?>
</form>
<?php endif; ?>
PK�
�[3:�]]
form/edit.phpnu�[���<?php
/**
* @package Joomla.Site
* @subpackage com_weblinks
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
JHtml::_('behavior.keepalive');
JHtml::_('behavior.formvalidation');
// Create shortcut to parameters.
$params = $this->state->get('params');
?>
<script type="text/javascript">
Joomla.submitbutton = function(task)
{
if (task === 'weblink.cancel' ||
document.formvalidator.isValid(document.getElementById('adminForm')))
{
<?php echo
$this->form->getField('description')->save(); ?>
Joomla.submitform(task);
}
}
</script>
<div class="edit<?php echo $this->pageclass_sfx;
?>">
<?php if ($this->params->get('show_page_heading')) :
?>
<h1>
<?php echo
$this->escape($this->params->get('page_heading')); ?>
</h1>
<?php endif; ?>
<form action="<?php echo
JRoute::_('index.php?option=com_weblinks&view=form&w_id='.(int)
$this->item->id); ?>" method="post"
name="adminForm" id="adminForm"
class="form-validate form-vertical">
<div class="btn-toolbar">
<div class="btn-group">
<button type="button" class="btn btn-primary"
onclick="Joomla.submitbutton('weblink.save')">
<span class="icon-ok"
aria-hidden="true"></span> <?php echo
JText::_('JSAVE') ?>
</button>
</div>
<div class="btn-group">
<button type="button" class="btn"
onclick="Joomla.submitbutton('weblink.cancel')">
<span class="icon-cancel"
aria-hidden="true"></span> <?php echo
JText::_('JCANCEL') ?>
</button>
</div>
</div>
<hr class="hr-condensed" />
<div class="control-group">
<div class="control-label">
<?php echo $this->form->getLabel('title'); ?>
</div>
<div class="controls">
<?php echo $this->form->getInput('title'); ?>
</div>
</div>
<div class="control-group">
<div class="control-label">
<?php echo $this->form->getLabel('alias'); ?>
</div>
<div class="controls">
<?php echo $this->form->getInput('alias'); ?>
</div>
</div>
<div class="control-group">
<div class="control-label">
<?php echo $this->form->getLabel('catid'); ?>
</div>
<div class="controls">
<?php echo $this->form->getInput('catid'); ?>
</div>
</div>
<div class="control-group">
<div class="control-label">
<?php echo $this->form->getLabel('tags'); ?>
</div>
<div class="controls">
<?php echo $this->form->getInput('tags'); ?>
</div>
</div>
<div class="control-group">
<div class="control-label">
<?php echo $this->form->getLabel('url'); ?>
</div>
<div class="controls">
<?php echo $this->form->getInput('url'); ?>
</div>
</div>
<?php if ($this->user->authorise('core.edit.state',
'com_weblinks.weblink')) : ?>
<div class="control-group">
<div class="control-label">
<?php echo $this->form->getLabel('state'); ?>
</div>
<div class="controls">
<?php echo $this->form->getInput('state'); ?>
</div>
</div>
<?php endif; ?>
<div class="control-group">
<div class="control-label">
<?php echo $this->form->getLabel('language'); ?>
</div>
<div class="controls">
<?php echo $this->form->getInput('language'); ?>
</div>
</div>
<div class="control-group">
<div class="control-label">
<?php echo $this->form->getLabel('description');
?>
</div>
<div class="controls">
<?php echo $this->form->getInput('description');
?>
</div>
</div>
<input type="hidden" name="return"
value="<?php echo $this->return_page;?>" />
<input type="hidden" name="task"
value="" />
<?php echo JHtml::_('form.token'); ?>
</form>
</div>
PK�
�[@t�55categories/default.phpnu�[���PK�
�[mi���{categories/default_items.phpnu�[���PK�
�[Jޚpp{category/default.phpnu�[���PK�
�[KY#���/category/default_children.phpnu�[���PK�
�[�,���Zcategory/default_items.phpnu�[���PK�
�[3:�]]
7form/edit.phpnu�[���PK
F