Guest User

Untitled

a guest
Jul 16th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.69 KB | None | 0 0
  1. <?php // @version $Id: blog.php 11917 2009-05-29 19:37:05Z ian $
  2. defined('_JEXEC') or die('Restricted access');
  3. $cparams = JComponentHelper::getParams ('com_media');?>
  4.  
  5. <?php if ($this->params->get('show_page_title')) : ?>
  6. <h1 class="componentheading<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
  7. <?php echo $this->escape($this->params->get('page_title')); ?>
  8. </h1>
  9. <?php endif; ?>
  10.  
  11. <div class="blog<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
  12.  
  13. <?php if ($this->params->def('show_description', 1) || $this->params->def('show_description_image', 1)) : ?>
  14. <div class="contentdescription<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
  15.  
  16. <?php if ($this->params->get('show_description_image') && $this->category->image) : ?>
  17. <img src="<?php echo JURI::root() . $cparams->get('image_path') . '/' . $this->category->image; ?>" class="image_<?php echo $this->category->image_position; ?>" />
  18. <?php endif; ?>
  19.  
  20. <?php if ($this->params->get('show_description') && $this->category->description) :
  21. echo $this->category->description;
  22. endif; ?>
  23.  
  24. <?php if ($this->params->get('show_description_image') && $this->category->image) : ?>
  25. <div class="wrap_image">&nbsp;</div>
  26. <?php endif; ?>
  27.  
  28. </div>
  29. <?php endif; ?>
  30.  
  31. <?php $i = $this->pagination->limitstart;
  32. $rowcount = $this->params->def('num_leading_articles', 1);
  33. for ($y = 0; $y < $rowcount && $i < $this->total; $y++, $i++) : ?>
  34. <div class="leading<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
  35. <?php $this->item =& $this->getItem($i, $this->params);
  36. echo $this->loadTemplate('item'); ?>
  37. </div>
  38. <span class="leading_separator<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">&nbsp;</span>
  39. <?php endfor; ?>
  40.  
  41. <div class="accordion">
  42. <?php $introcount = $this->params->def('num_intro_articles', 4);
  43. if ($introcount) :
  44. $colcount = (int)$this->params->def('num_columns', 2);
  45. if ($colcount == 0) :
  46. $colcount = 1;
  47. endif;
  48. $rowcount = (int) $introcount / $colcount;
  49. $ii = 0;
  50. for ($y = 0; $y < $rowcount && $i < $this->total; $y++) : ?>
  51. <?php $this->item =& $this->getItem($i, $this->params);?>
  52. <a href="#"><?php echo $this->item->title;?></a>
  53. <div class="article_row<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
  54. <?php for ($z = 0; $z < $colcount && $ii < $introcount && $i < $this->total; $z++, $i++, $ii++) : ?>
  55. <div class="article_column column<?php echo $z + 1; ?> cols<?php echo $colcount; ?>" >
  56.  
  57. <?php echo $this->loadTemplate('item'); ?>
  58. </div>
  59. <span class="article_separator">&nbsp;</span>
  60. <?php endfor; ?>
  61. <span class="row_separator<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">&nbsp;</span>
  62. </div>
  63. <?php endfor;
  64. endif; ?>
  65. </div>
  66.  
  67. <?php $numlinks = $this->params->def('num_links', 4);
  68. if ($numlinks && $i < $this->total) : ?>
  69. <div class="blog_more<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
  70. <?php $this->links = array_slice($this->items, $i - $this->pagination->limitstart, $i - $this->pagination->limitstart + $numlinks);
  71. echo $this->loadTemplate('links'); ?>
  72. </div>
  73. <?php endif; ?>
  74.  
  75. <?php if ($this->params->def('show_pagination', 2) == 1 || ($this->params->get('show_pagination') == 2 && $this->pagination->get('pages.total') > 1)) : ?>
  76. <?php if( $this->pagination->get('pages.total') > 1 ) : ?>
  77. <p class="counter">
  78. <?php echo $this->pagination->getPagesCounter(); ?>
  79. </p>
  80. <?php endif; ?>
  81. <?php if ($this->params->def('show_pagination_results', 1)) : ?>
  82. <?php echo $this->pagination->getPagesLinks(); ?>
  83. <?php endif; ?>
  84. <?php endif; ?>
  85.  
  86. </div>
Add Comment
Please, Sign In to add comment