Advertisement
Guest User

Untitled

a guest
Oct 31st, 2018
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.43 KB | None | 0 0
  1. <?php
  2. defined('_JEXEC') or die('Restricted access'); // no direct access
  3. require_once dirname(__FILE__) . str_replace('/', DIRECTORY_SEPARATOR, '/../../../functions.php');
  4.  
  5. $canEdit = ($this->user->authorize('com_content', 'edit', 'content', 'all') || $this->user->authorize('com_content', 'edit', 'content', 'own'));
  6.  
  7. echo artxPost(artxPageTitle($this, $this->params->get('show_page_title', 1) && $this->params->get('page_title') != $this->article->title), null);
  8.  
  9. ?>
  10. <div class="art-post">
  11.     <div class="art-post-body">
  12. <div class="art-post-inner">
  13. <?php
  14. if ($this->params->get('show_title')) {
  15.  ob_start();
  16. ?>
  17.  <h2 class="art-postheader">
  18. <?php
  19.  artxFragmentBegin(ob_get_clean());
  20.  if ($this->params->get('link_titles') && $this->article->readmore_link != '')
  21.   artxFragmentContent('<a href="' . $this->article->readmore_link . '" class="PostHeader">' . $this->escape($this->article->title) . '</a>');
  22.  else
  23.   artxFragmentContent($this->escape($this->article->title));
  24.  ob_start();
  25. ?>
  26.  
  27. </h2>
  28.  
  29. <?php
  30.  artxFragmentEnd(ob_get_clean());
  31. }
  32. artxFragmentBegin("<div class=\"art-postheadericons art-metadata-icons\">\r\n");
  33.   if ($this->params->get('show_url') && $this->article->urls)
  34.    artxFragment('', '<a href="http://' . $this->item->urls . '" target="_blank">' . $this->item->urls . '</a>', '', ' | ');
  35. if ($this->params->get('show_create_date')) {
  36.   artxFragment('', JHTML::_('date', $this->article->created, JText::_('DATE_FORMAT_LC2')), '', ' | ');
  37. }
  38. if (($this->params->get('show_author')) && ($this->article->author != "")) {
  39.   artxFragment('', JText::sprintf('Written by', ($this->article->created_by_alias ? $this->article->created_by_alias : $this->article->author)), '', ' | ');
  40. }
  41. if (!$this->print && $this->params->get('show_pdf_icon'))
  42.  artxFragment('', JHTML::_('icon.pdf',  $this->article, $this->params, $this->access), '', ' | ');
  43. if (!$this->print && $this->params->get('show_print_icon' ))
  44.  artxFragment('', JHTML::_('icon.print_popup', $this->article, $this->params, $this->access), '', ' | ');
  45. if (!$this->print && $this->params->get('show_email_icon'))
  46.  artxFragment('', JHTML::_('icon.email', $this->article, $this->params, $this->access), '', ' | ');
  47. if (!$this->print && $canEdit)
  48.  artxFragment('', JHTML::_('icon.edit', $this->article, $this->params, $this->access), '', ' | ');
  49.  
  50. if ($this->print)
  51.  artxFragment('', JHTML::_('icon.print_screen',  $this->article, $this->params, $this->access, array('class' => 'art-metadata-icon')), '', ' | ');
  52. artxFragmentEnd("\r\n</div>\r\n");
  53. echo "<div class=\"art-postcontent\">\r\n    <!-- article-content -->\r\n";
  54. if (!$this->params->get('show_intro'))
  55.  echo $this->article->event->afterDisplayTitle;
  56. echo $this->article->event->beforeDisplayContent;
  57. if (($this->params->get('show_section') && $this->article->sectionid) || ($this->params->get('show_category') && $this->article->catid)) {
  58. ?>
  59. <table class="contentpaneopen<?php echo $this->params->get('pageclass_sfx' ); ?>">
  60. <tr>
  61.     <td>
  62. <?php
  63. if ($this->params->get('show_section') && $this->article->sectionid && isset($this->article->section)) {
  64.  echo "<span>";
  65.  if ($this->params->get('link_section'))
  66.   echo '<a href="'.JRoute::_(ContentHelperRoute::getSectionRoute($this->article->sectionid)).'">';
  67.  echo $this->article->section;
  68.  if ($this->params->get('link_section'))
  69.   echo '</a>';
  70.  if ($this->params->get('show_category'))
  71.   echo ' - ';
  72.  echo "</span>";
  73. }
  74. if ($this->params->get('show_category') && $this->article->catid) {
  75.  echo "<span>";
  76.  if ($this->params->get('link_category'))
  77.   echo '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->article->catslug, $this->article->sectionid)).'">';
  78.  echo $this->article->category;
  79.  if ($this->params->get('link_category'))
  80.   echo '</a>';
  81.  echo "</span>";
  82. }
  83. ?>
  84.     </td>
  85. </tr>
  86. </table>
  87. <?php
  88. }
  89. if (isset ($this->article->toc))
  90.  echo $this->article->toc;
  91. echo "<div class=\"art-article\">";
  92. echo $this->article->text;
  93. echo "</div>";
  94. if (intval($this->article->modified) !=0 && $this->params->get('show_modify_date')) {
  95.  echo "<p class=\"modifydate\">";
  96.  echo JText::_('Last Updated' ) . ' (' . JHTML::_('date', $this->article->modified, JText::_('DATE_FORMAT_LC2')) . ')';
  97.  echo "</p>";
  98. }
  99. echo "<span class=\"article_separator\">&nbsp;</span>";
  100. echo $this->article->event->afterDisplayContent;
  101. echo "\r\n    <!-- /article-content -->\r\n</div>\r\n<div class=\"cleared\"></div>\r\n";
  102. ?>
  103.  
  104. </div>
  105.  
  106.         <div class="cleared"></div>
  107.     </div>
  108. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement