Exemple #1
0
<?php

defined('_JEXEC') or die;
/** @var  \Akeeba\ReleaseSystem\Site\View\Releases\Html $this */
use Akeeba\ReleaseSystem\Site\Helper\Filter;
use Akeeba\ReleaseSystem\Site\Helper\Router;
use Akeeba\ReleaseSystem\Admin\Helper\Format;
$released = JFactory::getDate($item->created);
$release_url = Router::_('index.php?option=com_ars&view=Items&release_id=' . $item->id . '&Itemid=' . $Itemid);
$authorisedViewLevels = $this->getContainer()->platform->getUser()->getAuthorisedViewLevels();
if (!Filter::filterItem($item, false, $authorisedViewLevels) && !empty($item->redirect_unauth)) {
    $release_url = $item->redirect_unauth;
}
switch ($item->maturity) {
    case 'stable':
        $maturityClass = 'label-success';
        break;
    case 'rc':
        $maturityClass = 'label-info';
        break;
    case 'beta':
        $maturityClass = 'label-warning';
        break;
    case 'alpha':
        $maturityClass = 'label-important';
        break;
    default:
        $maturityClass = 'label-inverse';
        break;
}
?>
Exemple #2
0
<?php

defined('_JEXEC') or die;
/** @var  \Akeeba\ReleaseSystem\Site\View\Latest\Html $this */
use Akeeba\ReleaseSystem\Site\Helper\Filter;
use Akeeba\ReleaseSystem\Site\Helper\Router;
use Akeeba\ReleaseSystem\Admin\Helper\Format;
use Akeeba\ReleaseSystem\Admin\Helper\Select;
$download_url = Router::_('index.php?option=com_ars&view=Item&task=download&format=raw&id=' . $item->id . '&Itemid=' . $this->Itemid);
if (!Filter::filterItem($item, false, $this->getContainer()->platform->getUser()->getAuthorisedViewLevels()) && !empty($item->redirect_unauth)) {
    $download_url = $item->redirect_unauth;
}
?>


<tr>
	<td>
		<a href="{{ htmlentities($download_url) }}" rel="nofollow">
			{{{ $item->title }}}
		</a>
	</td>
	<td width="25%">
		<a href="{{ htmlentities($download_url) }}" rel="nofollow" class="btn btn-small">
			<span class="icon icon-download"></span>
			@lang('LBL_ITEM_DOWNLOAD')
		</a>
	</td>
	<td width="20%" class="small">
		@unless(!$this->cparams->get('show_downloads', 1))
			@lang('LBL_ITEMS_HITS')
			@sprintf(($item->hits == 1 ? 'LBL_RELEASES_TIME' : 'LBL_RELEASES_TIMES'), $item->hits)
Exemple #3
0
?>
 -->
<extensionset category="<?php 
echo ucfirst($this->category);
?>
" name="<?php 
echo ucfirst($this->category);
?>
" description="<?php 
echo JText::_('LBL_UPDATETYPES_' . strtoupper($this->category));
?>
">
<?php 
if (!empty($this->items)) {
    foreach ($this->items as $item) {
        $url = $rootURL . Router::_('index.php?option=com_ars&view=update&format=xml&task=stream&id=' . $item->id . $dlid);
        $url = str_replace('&', '&amp;', $url);
        if (substr($url, -4) != '.xml') {
            $url .= (strpos($url, '?') ? '&amp;' : '?') . 'dummy=extension.xml';
        }
        ?>
	<extension name="<?php 
        echo $item->name;
        ?>
" element="<?php 
        echo $item->element;
        ?>
" type="<?php 
        echo $streamTypeMap[$item->type];
        ?>
" version="<?php 
Exemple #4
0
<?php

defined('_JEXEC') or die;
/** @var  \Akeeba\ReleaseSystem\Site\View\Categories\Html $this */
use Akeeba\ReleaseSystem\Site\Helper\Filter;
use Akeeba\ReleaseSystem\Site\Helper\Router;
use Akeeba\ReleaseSystem\Admin\Helper\Format;
$category_url = Router::_('index.php?option=com_ars&view=Releases&category_id=' . $item->id . '&Itemid=' . $Itemid);
if (!Filter::filterItem($item, false, $this->getContainer()->platform->getUser()->getAuthorisedViewLevels()) && !empty($item->redirect_unauth)) {
    $category_url = $item->redirect_unauth;
}
?>
<div class="ars-category-{{{ $id }}} well">
	<h4 class="{{ $item->type == 'bleedingedge' ? 'warning' : '' }}">
		<a href="{{ htmlentities($category_url) }}">
			{{{ $item->title }}}
		</a>
	</h4>

	<div class="ars-browse-category">
		<div class="ars-category-description">
			{{ Format::preProcessMessage($item->description, 'com_ars.category_description') }}
		</div>
		@if(!isset($no_link))
		<p class="readmore">
			<a href="{{ htmlentities($category_url) }}" class="btn btn-primary">
				@lang('LBL_CATEGORY_VIEW')
			</a>
		</p>
		@endif
	</div>
Exemple #5
0
echo $tag;
?>
<!-- Update stream generated automatically by Akeeba Release System on <?php 
echo gmdate('Y-m-d H:i:s');
?>
 -->
<extensionset name="<?php 
echo $this->updates_name;
?>
" description="<?php 
echo $this->updates_desc;
?>
">
<?php 
foreach ($categories as $category) {
    $url = $rootURL . Router::_('index.php?option=com_ars&view=update&format=xml&task=category&id=' . $category . $dlid);
    $url = str_replace('&', '&amp;', $url);
    if (substr($url, -4) != '.xml') {
        $url .= (strpos($url, '?') ? '&amp;' : '?') . 'dummy=extension.xml';
    }
    ?>
	<category name="<?php 
    echo ucfirst($category);
    ?>
"
			  description="<?php 
    echo JText::_('LBL_UPDATETYPES_' . strtoupper($category));
    ?>
"
			  category="<?php 
    echo $category;
Exemple #6
0
        ?>
</element>
		<type><?php 
        echo $streamTypeMap[$item->type];
        ?>
</type>
		<version><?php 
        echo $item->version;
        ?>
</version>
		<infourl
			title="<?php 
        echo $item->cat_title . ' ' . $item->version;
        ?>
"><?php 
        echo $rootURL . Router::_('index.php?option=com_ars&view=release&id=' . $item->release_id);
        ?>
</infourl>
		<downloads>
			<downloadurl type="full"
						 format="<?php 
        echo $format;
        ?>
"><?php 
        echo htmlentities($downloadURL);
        ?>
</downloadurl>
		</downloads>
		<tags>
			<tag><?php 
        echo $item->maturity;
Exemple #7
0
/** @var \Akeeba\ReleaseSystem\Site\View\Update\Ini $this */
use Akeeba\ReleaseSystem\Site\Helper\Router;
if (!$this->published) {
    die;
}
$rootURL = rtrim(JURI::base(), '/');
$subpathURL = JURI::base(true);
if (!empty($subpathURL) && $subpathURL != '/') {
    $rootURL = substr($rootURL, 0, -1 * strlen($subpathURL));
}
if (!empty($this->items)) {
    $item = array_shift($this->items);
    $moreURL = $rootURL . str_replace('&amp;', '&', JRoute::_('index.php?option=com_ars&view=release&id=' . $item->release_id));
    switch ($item->itemtype) {
        case 'file':
            $downloadURL = $rootURL . str_replace('&amp;', '&', Router::_('index.php?option=com_ars&view=download&id=' . $item->item_id));
            break;
        case 'link':
        default:
            $downloadURL = $item->url;
            break;
    }
    JLoader::import('joomla.utilities.date');
    $date = new JDate($item->created);
    // Process supported environments
    $envs = [];
    if (!empty($item->environments) && is_array($item->environments)) {
        foreach ($item->environments as $eid) {
            if (!isset($this->envs[$eid])) {
                $envs[$eid] = $this->envs[$eid];
            }
Exemple #8
0
JFactory::getApplication()->setHeader('X-Akeeba-Expire-After', 300);
require_once JPATH_SITE . '/components/com_ars/router.php';
ComArsRouter::$routeRaw = false;
ComArsRouter::$routeHtml = false;
echo $tag;
?>
<!-- Update stream generated automatically by Akeeba Release System on <?php 
echo gmdate('Y-m-d H:i:s');
?>
 GMT -->
<jedupdate version="1">
<?php 
foreach ($this->items as $item) {
    switch ($item->itemtype) {
        case 'file':
            $downloadURL = $rootURL . Router::_('index.php?option=com_ars&view=download&id=' . $item->item_id . $dlid);
            $basename = basename($item->filename);
            if (substr(strtolower($basename), -4) == '.zip') {
                $format = 'zip';
            } elseif (substr(strtolower($basename), -4) == '.tgz') {
                $format = 'tgz';
            } elseif (substr(strtolower($basename), -7) == '.tar.gz') {
                $format = 'tgz';
            } elseif (substr(strtolower($basename), -4) == '.tar') {
                $format = 'tar';
            } elseif (substr(strtolower($basename), -8) == '.tar.bz2') {
                $format = 'tbz2';
            } elseif (substr(strtolower($basename), -4) == '.tbz') {
                $format = 'tbz2';
            } elseif (substr(strtolower($basename), -5) == '.tbz2') {
                $format = 'tbz2';