AAAAPK u>\F˩ ArtxContent.phpnu W+A _component = $component;
$this->_componentParams = $params;
$this->pageClassSfx = $component->pageclass_sfx;
$this->pageHeading = $this->_componentParams->get('show_page_heading', 1)
? $this->_componentParams->get('page_heading') : '';
}
public function pageHeading($title = null)
{
return artxPost(array('header-text' => $this->_component->escape(null == $title ? $this->pageHeading : $title)));
}
public function article($view, $article, $params, $properties = array())
{
switch ($view) {
case 'archive':
return new ArtxContentArchivedArticle($this->_component, $this->_componentParams,
$article, $params);
case 'article':
return new ArtxContentSingleArticle($this->_component, $this->_componentParams,
$article, $params, $properties);
case 'category':
return new ArtxContentCategoryArticle($this->_component, $this->_componentParams,
$article, $params);
case 'featured':
return new ArtxContentFeaturedArticle($this->_component, $this->_componentParams,
$article, $params);
}
}
public function beginPageContainer($class)
{
return '
';
}
public function endPageContainer()
{
return '
';
}
}
PK u>\QK`
`
ArtxContentListItem.phpnu W+A isPublished = 0 != $this->_article->state;
$this->titleLink = $this->_articleParams->get('link_titles') && $this->_articleParams->get('access-view')
? JRoute::_(ContentHelperRoute::getArticleRoute($this->_article->slug, $this->_article->catid))
: '';
$this->intro = $this->_article->introtext;
if ($this->_articleParams->get('show_readmore') && $this->_article->readmore) {
if (!$this->_articleParams->get('access-view'))
$this->readmore = JText::_('COM_CONTENT_REGISTER_TO_READ_MORE');
elseif ($this->readmore = $this->_article->alternative_readmore) {
if ($this->_articleParams->get('show_readmore_title', 0) != 0)
$this->readmore .= JHtml::_('string.truncate', ($this->_article->title), $this->_articleParams->get('readmore_limit'));
} elseif ($this->_articleParams->get('show_readmore_title', 0) == 0)
$this->readmore = JText::sprintf('COM_CONTENT_READ_MORE_TITLE');
else
$this->readmore = JText::_('COM_CONTENT_READ_MORE')
. JHtml::_('string.truncate', $this->_article->title,
$this->_articleParams->get('readmore_limit'));
if ($this->_articleParams->get('access-view')) {
$link = JRoute::_(ContentHelperRoute::getArticleRoute($this->_article->slug, $this->_article->catid));
$this->readmoreLink = $link; }
else {
$menu = JFactory::getApplication()->getMenu();
$active = $menu->getActive();
$itemId = $active->id;
$link1 = JRoute::_('index.php?option=com_users&view=login&Itemid=' . $itemId);
$returnURL = JRoute::_(ContentHelperRoute::getArticleRoute($this->_article->slug, $this->_article->catid));
$link = new JURI($link1);
$link->setVar('return', base64_encode($returnURL));
$this->readmoreLink = $link->__toString();
}
} else {
$this->readmore = '';
$this->readmoreLink = '';
}
}
public function intro($intro)
{
return "" . $intro . "
";
}
}
PK u>\=
l l ArtxContentArticleBase.phpnu W+A _component = $component;
$this->_componentParams = $componentParams;
$this->_article = $article;
$this->_articleParams = $articleParams;
// Calculate properties:
$this->title = $this->_article->title;
$this->created = $this->_articleParams->get('show_create_date')
? $this->_article->created : '';
$this->modified = $this->_articleParams->get('show_modify_date')
? $this->_article->modified : '';
$this->published = $this->_articleParams->get('show_publish_date')
? $this->_article->publish_up : '';
$this->hits = $this->_articleParams->get('show_hits')
? $this->_article->hits : '';
$this->author = $this->_articleParams->get('show_author') && !empty($this->_article->author)
? ($this->_article->created_by_alias ? $this->_article->created_by_alias : $this->_article->author)
: '';
$this->authorLink = strlen($this->author) && !empty($this->_article->contactid) && $this->_articleParams->get('link_author')
? 'index.php?option=com_contact&view=contact&id=' . $this->_article->contactid
: '';
}
/**
* @see $created
*/
public function createdDateInfo($created)
{
return JText::sprintf('COM_CONTENT_CREATED_DATE_ON',
JHtml::_('date', $created, JText::_('DATE_FORMAT_LC2')));
}
/**
* @see $modified
*/
public function modifiedDateInfo($modified)
{
return JText::sprintf('COM_CONTENT_LAST_UPDATED',
JHtml::_('date', $modified, JText::_('DATE_FORMAT_LC2')));
}
/**
* @see $published
*/
public function publishedDateInfo($published)
{
return JText::sprintf('COM_CONTENT_PUBLISHED_DATE',
JHtml::_('date', $published, JText::_('DATE_FORMAT_LC2')));
}
/**
* @see $author
*/
public function authorInfo($author, $authorLink)
{
if (strlen($authorLink))
return JText::sprintf('COM_CONTENT_WRITTEN_BY',
JHtml::_('link', JRoute::_($authorLink), $author));
return JText::sprintf('COM_CONTENT_WRITTEN_BY', $author);
}
public function articleSeparator() { return '
'; }
/**
* @see $section, $sectionLink, $category, $categoryLink
*/
public function categories($parentCategory, $parentCategoryLink, $category, $categoryLink)
{
if (0 == strlen($parentCategory) && 0 == strlen($category))
return '';
ob_start();
if (strlen($parentCategory)) {
echo '';
if (strlen($parentCategoryLink))
echo '' . $this->_component->escape($parentCategory) . '';
else
echo $this->_component->escape($parentCategory);
echo '';
if (strlen($category))
echo ' / ';
}
if (strlen($category)) {
echo '';
if (strlen($categoryLink))
echo '' . $this->_component->escape($category) . '';
else
echo $this->_component->escape($category);
echo '';
}
return JText::sprintf('COM_CONTENT_CATEGORY', ob_get_clean());
}
public function hitsInfo($hits)
{
return JText::sprintf('COM_CONTENT_ARTICLE_HITS', $hits);
}
public function event($name)
{
return $this->_article->event->{$name};
}
public function getArticleViewParameters()
{
return array('metadata-header-icons' => array(), 'metadata-footer-icons' => array());
}
public function article($article)
{
return artxPost($article);
}
}
PK u>\) .htaccessnu W+A
Order allow,deny
Deny from all
PK u>\Gʿo o ArtxContentItem.phpnu W+A title = $this->_articleParams->get('show_title') ? $this->_article->title : '';
$this->printIconVisible = $this->_articleParams->get('show_print_icon');
$this->emailIconVisible = $this->_articleParams->get('show_email_icon');
$this->editIconVisible = $this->_articleParams->get('access-edit');
$this->introVisible = $this->_articleParams->get('show_intro');
}
/**
* @see $emailIconVisible
*/
public function emailIcon()
{
return JHtml::_('icon.email', $this->_article, $this->_articleParams);
}
/**
* @see $editIconVisible
*/
public function editIcon()
{
return JHtml::_('icon.edit', $this->_article, $this->_articleParams);
}
/**
* @see $printIconVisible
*/
public function printIcon()
{
return JHtml::_('icon.print_popup', $this->_article, $this->_articleParams);
}
/**
* Returns decoration for unpublished article.
*
* Together with endUnpublishedArticle() this function decorates
* the unpublished article with ...
.
* By default, this decoration is applied only for articles in list.
*/
public function beginUnpublishedArticle() { return ''; }
public function endUnpublishedArticle() { return '
'; }
public function readmore($readmore, $readmoreLink)
{
return '' . artxLinkButton(array(
'classes' => array('a' => 'readon'),
'link' => $readmoreLink,
'content' => str_replace(' ', ' ', $readmore))) . '
';
}
}
PK u>\R$Q Q ArtxContentFeaturedArticle.phpnu W+A category = $this->_articleParams->get('show_category') ? $this->_article->category_title : '';
$this->categoryLink = $this->_articleParams->get('link_category') && $this->_article->catslug
? JRoute::_(ContentHelperRoute::getCategoryRoute($this->_article->catslug))
: '';
$this->parentCategory = $this->_articleParams->get('show_category') && $this->_article->parent_id != 1
? $this->_article->parent_title : '';
$this->parentCategoryLink = $this->_articleParams->get('link_parent_category') && $this->_article->parent_slug
? JRoute::_(ContentHelperRoute::getCategoryRoute($this->_article->parent_slug))
: '';
}
}
PK u>\g ArtxContentArchivedArticle.phpnu W+A titleLink = $this->_articleParams->get('link_titles')
? JRoute::_(ContentHelperRoute::getArticleRoute($this->_article->slug, $this->_article->catslug))
: '';
$this->category = $this->_articleParams->get('show_category') ? $this->_article->category_title : '';
$this->categoryLink = $this->_articleParams->get('link_category') && $this->_article->catslug
? JRoute::_(ContentHelperRoute::getCategoryRoute($this->_article->catslug))
: '';
$this->parentCategoryLink = $this->_articleParams->get('link_parent_category') && $this->_article->parent_slug
? JRoute::_(ContentHelperRoute::getCategoryRoute($this->_article->parent_slug))
: '';
$this->intro = $this->_articleParams->get('show_intro') ? $this->_article->introtext : '';
}
public function intro($intro)
{
return ''
. JHtml::_('string.truncate', $intro,
$this->_articleParams->get('introtext_limit'))
. '
';
}
}
PK u>\:ak ArtxContentSingleArticle.phpnu W+A print = isset($properties['print']) ? $properties['print'] : '';
$this->pageHeading = $this->_componentParams->get('show_page_heading', 1)
? $this->_componentParams->get('page_heading') : '';
$this->titleLink = $this->_articleParams->get('link_titles') && !empty($this->_article->readmore_link)
? $this->_article->readmore_link : '';
$this->emailIconVisible = $this->emailIconVisible && !$this->print;
$this->editIconVisible = $this->editIconVisible && !$this->print;
$this->categoryLink = $this->_articleParams->get('link_category') && $this->_article->catslug
? JRoute::_(ContentHelperRoute::getCategoryRoute($this->_article->catslug))
: '';
$this->category = $this->_articleParams->get('show_category') ? $this->_article->category_title : '';
$this->categoryLink = $this->_articleParams->get('link_category') && $this->_article->catslug
? JRoute::_(ContentHelperRoute::getCategoryRoute($this->_article->catslug))
: '';
$this->parentCategory = $this->_articleParams->get('show_parent_category') && $this->_article->parent_slug != '1:root'
? $this->_article->parent_title : '';
$this->parentCategoryLink = $this->_articleParams->get('link_parent_category') && $this->_article->parent_slug
? JRoute::_(ContentHelperRoute::getCategoryRoute($this->_article->parent_slug))
: '';
$this->author = $this->_articleParams->get('show_author') && !empty($this->_article->author)
? ($this->_article->created_by_alias ? $this->_article->created_by_alias : $this->_article->author)
: '';
if (strlen($this->author)) {
$needle = 'index.php?option=com_contact&view=contact&id=' . $this->_article->contactid;
$item = JSite::getMenu()->getItems('link', $needle, true);
$this->authorLink = !empty($item) ? $needle . '&Itemid=' . $this->_article->id : $needle;
} else
$this->authorLink = '';
$this->toc = isset($this->_article->toc) ? $this->_article->toc : '';
$this->text = $this->_articleParams->get('access-view') ? $this->_article->text : '';
$user = JFactory::getUser();
$this->introVisible = !$this->_articleParams->get('access-view') && $params->get('show_noauth') && $user->get('guest');
$this->intro = $this->_article->introtext;
if (!$this->_articleParams->get('access-view') && $this->_articleParams->get('show_noauth') && $user->get('guest')
&& $this->_articleParams->get('show_readmore') && $this->_article->fulltext != null)
{
$attribs = json_decode($this->_article->attribs);
if ($attribs->alternative_readmore == null)
$this->readmore = JText::_('COM_CONTENT_REGISTER_TO_READ_MORE');
elseif ($this->readmore = $this->_article->alternative_readmore) {
if ($this->_articleParams->get('show_readmore_title', 0) != 0)
$this->readmore .= JHtml::_('string.truncate', ($this->_article->title), $this->_articleParams->get('readmore_limit'));
} elseif ($this->_articleParams->get('show_readmore_title', 0) == 0)
$this->readmore = JText::sprintf('COM_CONTENT_READ_MORE_TITLE');
else
$this->readmore = JText::_('COM_CONTENT_READ_MORE')
. JHtml::_('string.truncate', $this->_article->title,
$this->_articleParams->get('readmore_limit'));
$link = new JURI(JRoute::_('index.php?option=com_users&view=login'));
$this->readmoreLink = $link->__toString();
} else {
$this->readmore = '';
$this->readmoreLink = '';
}
}
public function toc($toc)
{
return '' . $toc . '
';
}
public function intro($intro)
{
return '' . $intro . '
';
}
public function text($text)
{
return '' . $text . '
';
}
}
PK u>\f&|
ArtxContentCategoryArticle.phpnu W+A category = $this->_articleParams->get('show_category') ? $this->_article->category_title : '';
$this->categoryLink = $this->_articleParams->get('link_category')
? JRoute::_(ContentHelperRoute::getCategoryRoute($this->_article->catid))
: '';
$this->parentCategory = $this->_articleParams->get('show_category') && $this->_article->parent_id != 1
? $this->_article->parent_title : '';
$this->parentCategoryLink = $this->_articleParams->get('link_parent_category')
? JRoute::_(ContentHelperRoute::getCategoryRoute($this->_article->parent_id))
: '';
}
}
PK u>\5v&