AAAAPKît>\¤aÐ--featured/index.htmlnuW+A„¶ PKît>\®)ÕÐfeatured/.htaccessnuW+A„¶ Order allow,deny Deny from all PKît>\1¬¢\ \ featured/default_item.phpnuW+A„¶params); $article = $component->article('featured', $this->item, $this->item->params); $params = $article->getArticleViewParameters(); if (strlen($article->title)) { $params['header-text'] = $this->escape($article->title); if (strlen($article->titleLink)) $params['header-link'] = $article->titleLink; } // Change the order of "if" statements to change the order of article metadata header items. if (strlen($article->created)) $params['metadata-header-icons'][] = "" . $article->createdDateInfo($article->created) . ""; if (strlen($article->modified)) $params['metadata-header-icons'][] = "" . $article->modifiedDateInfo($article->modified) . ""; if (strlen($article->published)) $params['metadata-header-icons'][] = "" . $article->publishedDateInfo($article->published) . ""; if (strlen($article->author)) $params['metadata-header-icons'][] = "" . $article->authorInfo($article->author, $article->authorLink) . ""; if ($article->printIconVisible) $params['metadata-header-icons'][] = $article->printIcon(); if ($article->emailIconVisible) $params['metadata-header-icons'][] = $article->emailIcon(); if ($article->editIconVisible) $params['metadata-header-icons'][] = $article->editIcon(); if (strlen($article->hits)) $params['metadata-header-icons'][] = $article->hitsInfo($article->hits); // Build article content $content = ''; if (!$article->introVisible) $content .= $article->event('afterDisplayTitle'); $content .= $article->event('beforeDisplayContent'); $content .= $article->intro($article->intro); if (strlen($article->readmore)) $content .= $article->readmore($article->readmore, $article->readmoreLink); $content .= $article->event('afterDisplayContent'); $params['content'] = $content; // Change the order of "if" statements to change the order of article metadata footer items. if (strlen($article->category)) $params['metadata-footer-icons'][] = "" . $article->categories($article->parentCategory, $article->parentCategoryLink, $article->category, $article->categoryLink) . ""; // Render article echo $article->article($params); PKît>\ëY^}}featured/default.phpnuW+A„¶params); echo $view->beginPageContainer('blog-featured'); if (strlen($view->pageHeading)) echo $view->pageHeading(); $leadingcount = 0; if (!empty($this->lead_items)) { echo '
'; foreach ($this->lead_items as $item) { echo '
'; $this->item = $item; echo $this->loadTemplate('item'); echo '
'; $leadingcount++; } echo '
'; } $introcount = count($this->intro_items); $counter = 0; if (!empty($this->intro_items)) { foreach ($this->intro_items as $key => $item) { $key = ($key - $leadingcount) + 1; $rowcount = (((int)$key - 1) % (int)$this->columns) + 1; $row = $counter / $this->columns; if ($rowcount == 1) echo '
'; echo '
'; $this->item = $item; echo $this->loadTemplate('item'); echo '
'; $counter++; if ($rowcount == $this->columns || $counter == $introcount) echo '
'; } } if (!empty($this->link_items)) { ob_start(); echo '
' . $this->loadTemplate('links') . '
'; echo artxPost(ob_get_clean()); } if ($this->params->def('show_pagination', 2) == 1 || ($this->params->get('show_pagination') == 2 && $this->pagination->get('pages.total') > 1)) { ob_start(); echo ''; echo artxPost(ob_get_clean()); } echo $view->endPageContainer(); PKît>\&£} } article/default.phpnuW+A„¶params); $article = $component->article('article', $this->item, $this->item->params, array('print' => $this->print)); echo $component->beginPageContainer('item-page'); if (strlen($article->pageHeading)) echo $component->pageHeading($article->pageHeading); $params = $article->getArticleViewParameters(); if (strlen($article->title)) { $params['header-text'] = $this->escape($article->title); if (strlen($article->titleLink)) $params['header-link'] = $article->titleLink; } // Change the order of "if" statements to change the order of article metadata header items. if (strlen($article->created)) $params['metadata-header-icons'][] = "" . $article->createdDateInfo($article->created) . ""; if (strlen($article->modified)) $params['metadata-header-icons'][] = "" . $article->modifiedDateInfo($article->modified) . ""; if (strlen($article->published)) $params['metadata-header-icons'][] = "" . $article->publishedDateInfo($article->published) . ""; if (strlen($article->author)) $params['metadata-header-icons'][] = "" . $article->authorInfo($article->author, $article->authorLink) . ""; if ($article->printIconVisible) $params['metadata-header-icons'][] = $article->printIcon(); if ($article->emailIconVisible) $params['metadata-header-icons'][] = $article->emailIcon(); if ($article->editIconVisible) $params['metadata-header-icons'][] = $article->editIcon(); if (strlen($article->hits)) $params['metadata-header-icons'][] = $article->hitsInfo($article->hits); // Build article content $content = ''; if (!$article->introVisible) $content .= $article->event('afterDisplayTitle'); $content .= $article->event('beforeDisplayContent'); if (strlen($article->toc)) $content .= $article->toc($article->toc); if (strlen($article->text)) $content .= $article->text($article->text); if ($article->introVisible) $content .= $article->intro($article->intro); if (strlen($article->readmore)) $content .= $article->readmore($article->readmore, $article->readmoreLink); $content .= $article->event('afterDisplayContent'); $params['content'] = $content; // Change the order of "if" statements to change the order of article metadata footer items. if (strlen($article->category)) $params['metadata-footer-icons'][] = "" . $article->categories($article->parentCategory, $article->parentCategoryLink, $article->category, $article->categoryLink) . ""; // Render article echo $article->article($params); echo $component->endPageContainer(); PKît>\®)ÕÐarticle/.htaccessnuW+A„¶ Order allow,deny Deny from all PKît>\É#o,,article/index.htmlnuW+A„¶PKît>\®)ÕÐ .htaccessnuW+A„¶ Order allow,deny Deny from all PKît>\*!.  archive/default_items.phpnuW+A„¶params); ?> PKît>\®)ÕÐarchive/.htaccessnuW+A„¶ Order allow,deny Deny from all PKît>\AÞSparams); echo $content->beginPageContainer('archive'); ?>
$content->pageHeading, 'content' => ob_get_clean())); echo $this->loadTemplate('items'); ?>
endPageContainer(); PKît>\É#o,,archive/index.htmlnuW+A„¶PKît>\µ6Î index.htmlnuW+A„¶PKît>\ÏÚö ¿ ¿ category/blog_item.phpnuW+A„¶params); $article = $component->article('category', $this->item, $this->item->params); $params = $article->getArticleViewParameters(); if (strlen($article->title)) { $params['header-text'] = $this->escape($article->title); if (strlen($article->titleLink)) $params['header-link'] = $article->titleLink; } // Change the order of "if" statements to change the order of article metadata header items. if (strlen($article->created)) $params['metadata-header-icons'][] = "" . $article->createdDateInfo($article->created) . ""; if (strlen($article->modified)) $params['metadata-header-icons'][] = "" . $article->modifiedDateInfo($article->modified) . ""; if (strlen($article->published)) $params['metadata-header-icons'][] = "" . $article->publishedDateInfo($article->published) . ""; if (strlen($article->author)) $params['metadata-header-icons'][] = "" . $article->authorInfo($article->author, $article->authorLink) . ""; if ($article->printIconVisible) $params['metadata-header-icons'][] = $article->printIcon(); if ($article->emailIconVisible) $params['metadata-header-icons'][] = $article->emailIcon(); if ($article->editIconVisible) $params['metadata-header-icons'][] = $article->editIcon(); if (strlen($article->hits)) $params['metadata-header-icons'][] = $article->hitsInfo($article->hits); // Build article content $content = ''; if (!$article->introVisible) $content .= $article->event('afterDisplayTitle'); $content .= $article->event('beforeDisplayContent'); $content .= $article->intro($article->intro); if (strlen($article->readmore)) $content .= $article->readmore($article->readmore, $article->readmoreLink); $content .= $article->event('afterDisplayContent'); $params['content'] = $content; // Change the order of "if" statements to change the order of article metadata footer items. if (strlen($article->category)) $params['metadata-footer-icons'][] = "" . $article->categories($article->parentCategory, $article->parentCategoryLink, $article->category, $article->categoryLink) . ""; // Render article echo $article->article($params); PKît>\îhvcategory/blog.phpnuW+A„¶params); echo $view->beginPageContainer('blog'); ob_start(); if ($this->params->get('show_category_title', 1) || strlen($this->params->get('page_subheading'))) { echo '

'; echo $this->escape($this->params->get('page_subheading')); if ($this->params->get('show_category_title') && strlen($this->category->title)) echo '' . $this->category->title . ''; echo '

'; } if ($this->params->def('show_description', 1) || $this->params->def('show_description_image', 1)) { echo '
'; if ($this->params->get('show_description_image') && $this->category->getParams()->get('image')) echo ''; if ($this->params->get('show_description') && $this->category->description) echo JHtml::_('content.prepare', $this->category->description); echo '
'; } echo artxPost(array('header-text' => $view->pageHeading, 'content' => ob_get_clean())); ?> lead_items)) : ?>
lead_items as &$item) : ?>
item = &$item; echo $this->loadTemplate('item'); ?>
intro_items)); $counter = 0; ?> intro_items)) : ?> intro_items as $key => &$item) : ?> columns) +1; $row = $counter / $this->columns ; if ($rowcount==1) : ?>
item = &$item; echo $this->loadTemplate('item'); ?>
columns) or ($counter ==$introcount)): ?>
link_items)) { ob_start(); echo '
' . $this->loadTemplate('links') . '
'; echo artxPost(ob_get_clean()); } ?> children[$this->category->id])&& $this->maxLevel != 0) : ?>

loadTemplate('children'); ?>
params->def('show_pagination', 1) == 1 || $this->params->get('show_pagination') == 2) && $this->pagination->get('pages.total') > 1) { ob_start(); echo ''; echo artxPost(ob_get_clean()); } echo $view->endPageContainer(); PKît>\®)ÕÐcategory/.htaccessnuW+A„¶ Order allow,deny Deny from all PKît>\¤aÐ--category/index.htmlnuW+A„¶ PK>\tGÕÀà(à(article/edit.phpnuW+A„¶state->get('params'); $params = $params->toArray(); // This checks if the 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_publishing_options'] = '1'; $params['show_article_options'] = '1'; $params['show_urls_images_backend'] = '0'; $params['show_urls_images_frontend'] = '0'; endif; // Check if the article uses configuration settings besides global. If so, use them. if (!empty($this->item->attribs['show_publishing_options'])): $params['show_publishing_options'] = $this->item->attribs['show_publishing_options']; endif; if (!empty($this->item->attribs['show_article_options'])): $params['show_article_options'] = $this->item->attribs['show_article_options']; endif; if (!empty($this->item->attribs['show_urls_images_backend'])): $params['show_urls_images_backend'] = $this->item->attribs['show_urls_images_backend']; endif; ?>
item->id) ? JText::_('COM_CONTENT_NEW_ARTICLE') : JText::sprintf('COM_CONTENT_EDIT_ARTICLE', $this->item->id); ?>
  • form->getLabel('title'); ?> form->getInput('title'); ?>
  • form->getLabel('alias'); ?> form->getInput('alias'); ?>
  • form->getLabel('catid'); ?> form->getInput('catid'); ?>
  • form->getLabel('state'); ?> form->getInput('state'); ?>
  • form->getLabel('access'); ?> form->getInput('access'); ?>
  • canDo->get('core.admin')): ?>
  • form->getLabel('featured'); ?> form->getInput('featured'); ?>
  • form->getLabel('language'); ?> form->getInput('language'); ?>
  • form->getLabel('id'); ?> form->getInput('id'); ?>
form->getLabel('articletext'); ?>
form->getInput('articletext'); ?>
item->id, array('useCookie'=>1)); ?>
  • form->getLabel('created_by'); ?> form->getInput('created_by'); ?>
  • form->getLabel('created_by_alias'); ?> form->getInput('created_by_alias'); ?>
  • form->getLabel('created'); ?> form->getInput('created'); ?>
  • form->getLabel('publish_up'); ?> form->getInput('publish_up'); ?>
  • form->getLabel('publish_down'); ?> form->getInput('publish_down'); ?>
  • item->modified_by) : ?>
  • form->getLabel('modified_by'); ?> form->getInput('modified_by'); ?>
  • form->getLabel('modified'); ?> form->getInput('modified'); ?>
  • item->version) : ?>
  • form->getLabel('version'); ?> form->getInput('version'); ?>
  • item->hits) : ?>
  • form->getLabel('hits'); ?> form->getInput('hits'); ?>
form->getFieldsets('attribs'); ?> $fieldSet) : ?> label), $name.'-options'); ?> description) && trim($fieldSet->description)) : ?>

escape(JText::_($fieldSet->description));?>

    form->getFieldset($name) as $field) : ?>
  • label; ?> input; ?>
form->getFieldset('basic-limited') as $field) : ?> input; ?>
  • form->getLabel('xreference'); ?> form->getInput('xreference'); ?>
canDo->get('core.admin') ): ?>
    form->getFieldset('editorConfig') as $field) : ?>
  • label; ?> input; ?>
  • form->getLabel('images'); ?> form->getInput('images'); ?>
  • form->getGroup('images') as $field): ?>
  • hidden): ?> label; ?> input; ?>
  • form->getGroup('urls') as $field): ?>
  • hidden): ?> label; ?> input; ?>
loadTemplate('metadata'); ?>
canDo->get('core.admin')): ?>
item->id, array('useCookie'=>1)); ?>
form->getLabel('rules'); ?> form->getInput('rules'); ?>
PK>\\.uºÀ)À)articles/default.phpnuW+A„¶get('id'); $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); $saveOrder = $listOrder == 'a.ordering'; $n = count($this->items); ?>
items as $i => $item) : $item->max_ordering = 0; //?? $ordering = ($listOrder == 'a.ordering'); $canCreate = $user->authorise('core.create', 'com_content.category.'.$item->catid); $canEdit = $user->authorise('core.edit', 'com_content.article.'.$item->id); $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $userId || $item->checked_out == 0; $canEditOwn = $user->authorise('core.edit.own', 'com_content.article.'.$item->id) && $item->created_by == $userId; $canChange = $user->authorise('core.edit.state', 'com_content.article.'.$item->id) && $canCheckin; ?>
items, 'filesave.png', 'articles.saveorder'); ?>
id); ?> checked_out) : ?> editor, $item->checked_out_time, 'articles.', $canCheckin); ?> escape($item->title); ?> escape($item->title); ?>

escape($item->alias));?>

state, $i, 'articles.', $canChange, 'cb', $item->publish_up, $item->publish_down); ?> featured, $i, $canChange); ?> escape($item->category_title); ?> pagination->orderUpIcon($i, ($item->catid == @$this->items[$i-1]->catid), 'articles.orderup', 'JLIB_HTML_MOVE_UP', $ordering); ?> pagination->orderDownIcon($i, $this->pagination->total, ($item->catid == @$this->items[$i+1]->catid), 'articles.orderdown', 'JLIB_HTML_MOVE_DOWN', $ordering); ?> pagination->orderUpIcon($i, ($item->catid == @$this->items[$i-1]->catid), 'articles.orderdown', 'JLIB_HTML_MOVE_UP', $ordering); ?> pagination->orderDownIcon($i, $this->pagination->total, ($item->catid == @$this->items[$i+1]->catid), 'articles.orderup', 'JLIB_HTML_MOVE_DOWN', $ordering); ?> class="text-area-order" title="title; ?> order" /> ordering; ?> escape($item->access_level); ?> created_by_alias) : ?> escape($item->author_name); ?>

escape($item->created_by_alias)); ?>

escape($item->author_name); ?>
created, JText::_('DATE_FORMAT_LC4')); ?> hits; ?> language=='*'):?> language_title ? $this->escape($item->language_title) : JText::_('JUNDEFINED'); ?> id; ?>
loadTemplate('batch'); ?> pagination->getListFooter(); ?>
PK>\®)ÕÐarticles/.htaccessnuW+A„¶ Order allow,deny Deny from all PK>\q ÛÏvvarticles/modal.phpnuW+A„¶isSite()) { JSession::checkToken('get') or die(JText::_('JINVALID_TOKEN')); } require_once JPATH_ROOT . '/components/com_content/helpers/route.php'; JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html'); JHtml::_('behavior.tooltip'); $function = JRequest::getCmd('function', 'jSelectArticle'); $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); ?>
items as $i => $item) : ?> pagination->getListFooter(); ?>
PK>\¦V‰articles/index.htmlnuW+A„¶ PKçD?\6Â5Õ^^com_content.xmlnuW+A„¶ Xmap - Content Plugin Guillermo Vargas 01/26/2011 GNU GPL http://www.gnu.org/copyleft/gpl.html GNU/GPL guille@vargas.co.cr joomla.vargas.co.cr 2.0.4 XMAP_CONTENT_PLUGIN_DESCRIPTION com_content.php index.html en-GB.plg_xmap_com_content.ini es-ES.plg_xmap_com_content.ini fa-IR.plg_xmap_com_content.ini cs-CZ.plg_xmap_com_content.ini nl-NL.plg_xmap_com_content.ini ru-RU.plg_xmap_com_content.ini
PKçD?\ÐÑQXÎSÎScom_content.phpnuW+A„¶link); if (!isset($link_query['query'])) { return; } parse_str(html_entity_decode($link_query['query']), $link_vars); $view = JArrayHelper::getValue($link_vars, 'view', ''); $layout = JArrayHelper::getValue($link_vars, 'layout', ''); $id = JArrayHelper::getValue($link_vars, 'id', 0); //----- Set add_images param $params['add_images'] = JArrayHelper::getValue($params, 'add_images', 0); //----- Set add pagebreaks param $add_pagebreaks = JArrayHelper::getValue($params, 'add_pagebreaks', 1); $params['add_pagebreaks'] = JArrayHelper::getValue($params, 'add_pagebreaks', 1); switch ($view) { case 'category': if ($id) { $node->uid = 'com_contentc' . $id; } else { $node->uid = 'com_content' . $layout; } $node->expandible = true; break; case 'article': $node->uid = 'com_contenta' . $id; $node->expandible = false; $query = $db->getQuery(true); $query->select($db->quoteName('created')) ->select($db->quoteName('modified')) ->from($db->quoteName('#__content')) ->where($db->quoteName('id').'='.intval($id)); if ($params['add_pagebreaks'] || $params['add_images']){ $query->select($db->quoteName('introtext')) ->select($db->quoteName('fulltext')); } $db->setQuery($query); if (($row = $db->loadObject()) != NULL) { $node->modified = $row->modified; $text = @$item->introtext . @$item->fulltext; if ($params['add_images']) { $node->images = XmapHelper::getImages($text,JArrayHelper::getValue($params, 'max_images', 1000)); } if ($params['add_pagebreaks']) { $node->subnodes = XmapHelper::getPagebreaks($text,$node->link); $node->expandible = (count($node->subnodes) > 0); // This article has children } } break; case 'archive': $node->expandible = true; break; case 'featured': $node->uid = 'com_contentfeatured'; $node->expandible = false; } } /** * Expands a com_content menu item * * @return void * @since 1.0 */ static function getTree($xmap, $parent, &$params) { $db = JFactory::getDBO(); $app = JFactory::getApplication(); $user = JFactory::getUser(); $result = null; $link_query = parse_url($parent->link); if (!isset($link_query['query'])) { return; } parse_str(html_entity_decode($link_query['query']), $link_vars); $view = JArrayHelper::getValue($link_vars, 'view', ''); $id = intval(JArrayHelper::getValue($link_vars, 'id', '')); /* * * * Parameters Initialitation * */ //----- Set expand_categories param $expand_categories = JArrayHelper::getValue($params, 'expand_categories', 1); $expand_categories = ( $expand_categories == 1 || ( $expand_categories == 2 && $xmap->view == 'xml') || ( $expand_categories == 3 && $xmap->view == 'html') || $xmap->view == 'navigator'); $params['expand_categories'] = $expand_categories; //----- Set expand_featured param $expand_featured = JArrayHelper::getValue($params, 'expand_featured', 1); $expand_featured = ( $expand_featured == 1 || ( $expand_featured == 2 && $xmap->view == 'xml') || ( $expand_featured == 3 && $xmap->view == 'html') || $xmap->view == 'navigator'); $params['expand_featured'] = $expand_featured; //----- Set expand_featured param $include_archived = JArrayHelper::getValue($params, 'include_archived', 2); $include_archived = ( $include_archived == 1 || ( $include_archived == 2 && $xmap->view == 'xml') || ( $include_archived == 3 && $xmap->view == 'html') || $xmap->view == 'navigator'); $params['include_archived'] = $include_archived; //----- Set show_unauth param $show_unauth = JArrayHelper::getValue($params, 'show_unauth', 1); $show_unauth = ( $show_unauth == 1 || ( $show_unauth == 2 && $xmap->view == 'xml') || ( $show_unauth == 3 && $xmap->view == 'html')); $params['show_unauth'] = $show_unauth; //----- Set add_images param $add_images = JArrayHelper::getValue($params, 'add_images', 0) && $xmap->isImages; $add_images = ( $add_images && $xmap->view == 'xml'); $params['add_images'] = $add_images; $params['max_images'] = JArrayHelper::getValue($params, 'max_images', 1000); //----- Set add pagebreaks param $add_pagebreaks = JArrayHelper::getValue($params, 'add_pagebreaks', 1); $add_pagebreaks = ( $add_pagebreaks == 1 || ( $add_pagebreaks == 2 && $xmap->view == 'xml') || ( $add_pagebreaks == 3 && $xmap->view == 'html') || $xmap->view == 'navigator'); $params['add_pagebreaks'] = $add_pagebreaks; if ($params['add_pagebreaks'] && !defined('_XMAP_COM_CONTENT_LOADED')) { define('_XMAP_COM_CONTENT_LOADED',1); // Load it just once $lang = JFactory::getLanguage(); $lang->load('plg_content_pagebreak'); } //----- Set cat_priority and cat_changefreq params $priority = JArrayHelper::getValue($params, 'cat_priority', $parent->priority); $changefreq = JArrayHelper::getValue($params, 'cat_changefreq', $parent->changefreq); if ($priority == '-1') $priority = $parent->priority; if ($changefreq == '-1') $changefreq = $parent->changefreq; $params['cat_priority'] = $priority; $params['cat_changefreq'] = $changefreq; //----- Set art_priority and art_changefreq params $priority = JArrayHelper::getValue($params, 'art_priority', $parent->priority); $changefreq = JArrayHelper::getValue($params, 'art_changefreq', $parent->changefreq); if ($priority == '-1') $priority = $parent->priority; if ($changefreq == '-1') $changefreq = $parent->changefreq; $params['art_priority'] = $priority; $params['art_changefreq'] = $changefreq; $params['max_art'] = intval(JArrayHelper::getValue($params, 'max_art', 0)); $params['max_art_age'] = intval(JArrayHelper::getValue($params, 'max_art_age', 0)); $params['nullDate'] = $db->Quote($db->getNullDate()); $params['nowDate'] = $db->Quote(JFactory::getDate()->toSql()); $params['groups'] = implode(',', $user->getAuthorisedViewLevels()); // Define the language filter condition for the query $params['language_filter'] = $app->getLanguageFilter(); switch ($view) { case 'category': if (!$id) { $id = intval(JArrayHelper::getValue($params, 'id', 0)); } if ($params['expand_categories'] && $id) { $result = self::expandCategory($xmap, $parent, $id, $params, $parent->id); } break; case 'featured': if ($params['expand_featured']) { $result = self::includeCategoryContent($xmap, $parent, 'featured', $params,$parent->id); } break; case 'categories': if ($params['expand_categories']) { $result = self::expandCategory($xmap, $parent, ($id ? $id : 1), $params, $parent->id); } break; case 'archive': if ($params['expand_featured']) { $result = self::includeCategoryContent($xmap, $parent, 'archived', $params,$parent->id); } break; case 'article': // if it's an article menu item, we have to check if we have to expand the // article's page breaks if ($params['add_pagebreaks']){ $query = $db->getQuery(true); $query->select($db->quoteName('introtext')) ->select($db->quoteName('fulltext')) ->select($db->quoteName('alias')) ->select($db->quoteName('catid')) ->from($db->quoteName('#__content')) ->where($db->quoteName('id').'='.intval($id)); $db->setQuery($query); $row = $db->loadObject(); $parent->slug = $row->alias ? ($id . ':' . $row->alias) : $id; $parent->link = ContentHelperRoute::getArticleRoute($parent->slug, $row->catid); $subnodes = XmapHelper::getPagebreaks($row->introtext.$row->fulltext,$parent->link); self::printNodes($xmap, $parent, $params, $subnodes); } } return $result; } /** * Get all content items within a content category. * Returns an array of all contained content items. * * @param object $xmap * @param object $parent the menu item * @param int $catid the id of the category to be expanded * @param array $params an assoc array with the params for this plugin on Xmap * @param int $itemid the itemid to use for this category's children */ static function expandCategory($xmap, $parent, $catid, &$params, $itemid) { $db = JFactory::getDBO(); $where = array('a.parent_id = ' . $catid . ' AND a.published = 1 AND a.extension=\'com_content\''); if ($params['language_filter'] ) { $where[] = 'a.language in ('.$db->quote(JFactory::getLanguage()->getTag()).','.$db->quote('*').')'; } if (!$params['show_unauth']) { $where[] = 'a.access IN (' . $params['groups'] . ') '; } $orderby = 'a.lft'; $query = 'SELECT a.id, a.title, a.alias, a.access, a.path AS route, ' . 'a.created_time created, a.modified_time modified ' . 'FROM #__categories AS a ' . 'WHERE '. implode(' AND ',$where) . ( $xmap->view != 'xml' ? "\n ORDER BY " . $orderby . "" : '' ); $db->setQuery($query); #echo nl2br(str_replace('#__','jos_',$db->getQuery()));exit; $items = $db->loadObjectList(); if (count($items) > 0) { $xmap->changeLevel(1); foreach ($items as $item) { $node = new stdclass(); $node->id = $parent->id; $node->uid = $parent->uid . 'c' . $item->id; $node->browserNav = $parent->browserNav; $node->priority = $params['cat_priority']; $node->changefreq = $params['cat_changefreq']; $node->name = $item->title; $node->expandible = true; $node->secure = $parent->secure; // TODO: Should we include category name or metakey here? // $node->keywords = $item->metakey; $node->newsItem = 0; // For the google news we should use te publication date instead // the last modification date. See if ($xmap->isNews || !$item->modified) $item->modified = $item->created; $node->slug = $item->route ? ($item->id . ':' . $item->route) : $item->id; $node->link = ContentHelperRoute::getCategoryRoute($node->slug); if (strpos($node->link,'Itemid=')===false) { $node->itemid = $itemid; $node->link .= '&Itemid='.$itemid; } else { $node->itemid = preg_replace('/.*Itemid=([0-9]+).*/','$1',$node->link); } if ($xmap->printNode($node)) { self::expandCategory($xmap, $parent, $item->id, $params, $node->itemid); } } $xmap->changeLevel(-1); } // Include Category's content self::includeCategoryContent($xmap, $parent, $catid, $params, $itemid); return true; } /** * Get all content items within a content category. * Returns an array of all contained content items. * * @since 2.0 */ static function includeCategoryContent($xmap, $parent, $catid, &$params,$Itemid) { $db = JFactory::getDBO(); // We do not do ordering for XML sitemap. if ($xmap->view != 'xml') { $orderby = self::buildContentOrderBy($parent->params,$parent->id,$Itemid); //$orderby = !empty($menuparams['orderby']) ? $menuparams['orderby'] : (!empty($menuparams['orderby_sec']) ? $menuparams['orderby_sec'] : 'rdate' ); //$orderby = self::orderby_sec($orderby); } if ($params['include_archived']) { $where = array('(a.state = 1 or a.state = 2)'); } else { $where = array('a.state = 1'); } if ($catid=='featured') { $where[] = 'a.featured=1'; } elseif ($catid=='archived') { $where = array('a.state=2'); } elseif(is_numeric($catid)) { $where[] = 'a.catid='.(int) $catid; } if ($params['max_art_age'] || $xmap->isNews) { $days = (($xmap->isNews && ($params['max_art_age'] > 3 || !$params['max_art_age'])) ? 3 : $params['max_art_age']); $where[] = "( a.created >= '" . date('Y-m-d H:i:s', time() - $days * 86400) . "' ) "; } if ($params['language_filter'] ) { $where[] = 'a.language in ('.$db->quote(JFactory::getLanguage()->getTag()).','.$db->quote('*').')'; } if (!$params['show_unauth'] ){ $where[] = 'a.access IN (' . $params['groups'] . ') '; } $query = 'SELECT a.id, a.title, a.alias, a.catid, ' . 'a.created created, a.modified modified' . ',a.language' . (($params['add_images'] || $params['add_pagebreaks']) ? ',a.introtext, a.fulltext ' : ' ') . 'FROM #__content AS a ' . ($catid =='featured'? 'LEFT JOIN #__content_frontpage AS fp ON a.id = fp.content_id ' : ' ') . 'WHERE ' . implode(' AND ',$where) . ' AND ' . ' (a.publish_up = ' . $params['nullDate'] . ' OR a.publish_up <= ' . $params['nowDate'] . ') AND ' . ' (a.publish_down = ' . $params['nullDate'] . ' OR a.publish_down >= ' . $params['nowDate'] . ') ' . ( $xmap->view != 'xml' ? "\n ORDER BY $orderby " : '' ) . ( $params['max_art'] ? "\n LIMIT {$params['max_art']}" : ''); $db->setQuery($query); //echo nl2br(str_replace('#__','mgbj2_',$db->getQuery())); $items = $db->loadObjectList(); if (count($items) > 0) { $xmap->changeLevel(1); foreach ($items as $item) { $node = new stdclass(); $node->id = $parent->id; $node->uid = $parent->uid . 'a' . $item->id; $node->browserNav = $parent->browserNav; $node->priority = $params['art_priority']; $node->changefreq = $params['art_changefreq']; $node->name = $item->title; $node->modified = $item->modified; $node->expandible = false; $node->secure = $parent->secure; // TODO: Should we include category name or metakey here? // $node->keywords = $item->metakey; $node->newsItem = 1; $node->language = $item->language; // For the google news we should use te publication date instead // the last modification date. See if ($xmap->isNews || !$node->modified) $node->modified = $item->created; $node->slug = $item->alias ? ($item->id . ':' . $item->alias) : $item->id; //$node->catslug = $item->category_route ? ($catid . ':' . $item->category_route) : $catid; $node->catslug = $item->catid; $node->link = ContentHelperRoute::getArticleRoute($node->slug, $node->catslug); // Add images to the article $text = @$item->introtext . @$item->fulltext; if ($params['add_images']) { $node->images = XmapHelper::getImages($text,$params['max_images']); } if ($params['add_pagebreaks']) { $subnodes = XmapHelper::getPagebreaks($text,$node->link); $node->expandible = (count($subnodes) > 0); // This article has children } if ($xmap->printNode($node) && $node->expandible) { self::printNodes($xmap, $parent, $params, $subnodes); } } $xmap->changeLevel(-1); } return true; } static private function printNodes($xmap, $parent, &$params, &$subnodes) { $xmap->changeLevel(1); $i=0; foreach ($subnodes as $subnode) { $i++; $subnode->id = $parent->id; $subnode->uid = $parent->uid.'p'.$i; $subnode->browserNav = $parent->browserNav; $subnode->priority = $params['art_priority']; $subnode->changefreq = $params['art_changefreq']; $subnode->secure = $parent->secure; $xmap->printNode($subnode); } $xmap->changeLevel(-1); } /** * Generates the order by part of the query according to the * menu/component/user settings. It checks if the current user * has already changed the article's ordering column in the frontend * * @param JRegistry $params * @param int $parentId * @param int $itemid * @return string */ static function buildContentOrderBy(&$params,$parentId,$itemid) { $app = JFactory::getApplication('site'); // Case when the child gets a different menu itemid than it's parent if ($parentId != $itemid) { $menu = $app->getMenu(); $item = $menu->getItem($itemid); $menuParams = clone($params); $itemParams = new JRegistry($item->params); $menuParams->merge($itemParams); } else { $menuParams =& $params; } $filter_order = $app->getUserStateFromRequest('com_content.category.list.' . $itemid . '.filter_order', 'filter_order', '', 'string'); $filter_order_Dir = $app->getUserStateFromRequest('com_content.category.list.' . $itemid . '.filter_order_Dir', 'filter_order_Dir', '', 'cmd'); $orderby = ' '; if ($filter_order && $filter_order_Dir) { $orderby .= $filter_order . ' ' . $filter_order_Dir . ', '; } $articleOrderby = $menuParams->get('orderby_sec', 'rdate'); $articleOrderDate = $menuParams->get('order_date'); //$categoryOrderby = $menuParams->def('orderby_pri', ''); $secondary = ContentHelperQuery::orderbySecondary($articleOrderby, $articleOrderDate) . ', '; //$primary = ContentHelperQuery::orderbyPrimary($categoryOrderby); //$orderby .= $primary . ' ' . $secondary . ' a.created '; $orderby .= $secondary . ' a.created '; return $orderby; } }PKît>\¤aÐ--featured/index.htmlnuW+A„¶PKît>\®)ÕÐpfeatured/.htaccessnuW+A„¶PKît>\1¬¢\ \ 1featured/default_item.phpnuW+A„¶PKît>\ëY^}}Ö featured/default.phpnuW+A„¶PKît>\&£} } —article/default.phpnuW+A„¶PKît>\®)ÕÐWarticle/.htaccessnuW+A„¶PKît>\É#o,, article/index.htmlnuW+A„¶PKît>\®)ÕÐ … .htaccessnuW+A„¶PKît>\*!.  =!archive/default_items.phpnuW+A„¶PKît>\®)ÕЙ*archive/.htaccessnuW+A„¶PKît>\AÞS\É#o,,þ1archive/index.htmlnuW+A„¶PKît>\µ6Î l2index.htmlnuW+A„¶PKît>\ÏÚö ¿ ¿ Ä2category/blog_item.phpnuW+A„¶PKît>\îhvÉ<category/blog.phpnuW+A„¶PKît>\®)ÕÐ&Kcategory/.htaccessnuW+A„¶PKît>\¤aÐ--çKcategory/index.htmlnuW+A„¶PK>\tGÕÀà(à(WLarticle/edit.phpnuW+A„¶PK>\\.uºÀ)À)wuarticles/default.phpnuW+A„¶PK>\®)ÕÐ{Ÿarticles/.htaccessnuW+A„¶PK>\q ÛÏvv< articles/modal.phpnuW+A„¶PK>\¦V‰ô·articles/index.htmlnuW+A„¶PKçD?\6Â5Õ^^V¸com_content.xmlnuW+A„¶PKçD?\ÐÑQXÎSÎSó×com_content.phpnuW+A„¶PK¯,