Back to top
Showing source of file: blog.php 1. <?php // @version $Id: blog.php 10381 2008-06-01 03:35:53Z pasamio $ 2. defined('_JEXEC') or die('Restricted access'); 3. $cparams = JComponentHelper::getParams ('com_media'); 4. ?> 5. 6. <?php if ($this->params->get('show_page_title')) : ?> 7. <h1 class="componentheading<?php echo $this->params->get('pageclass_sfx'); ?>"> 8. <?php echo $this->escape($this->params->get('page_title')); ?> 9. </h1> 10. <?php endif; ?> 11. 12. 13. 14. <?php if ($this->params->def('show_description', 1) || $this->params->def('show_description_image', 1)) : ?> 15. <div class="contentdescription<?php echo $this->params->get('pageclass_sfx'); ?>"> 16. 17. <?php if ($this->params->get('show_description_image') && $this->category->image) : ?> 18. <img src="<?php echo $this->baseurl . $cparams->get('image_path') . '/' . $this->category->image; ?>" class="image_<?php echo $this->category->image_position; ?>" /> 19. <?php endif; ?> 20. 21. <?php if ($this->params->get('show_description') && $this->category->description) : 22. echo $this->category->description; 23. endif; ?> 24. 25. <?php if ($this->params->get('show_description_image') && $this->category->image) : ?> 26. <div class="wrap_image"> </div> 27. <?php endif; ?> 28. 29. </div> 30. <?php endif; ?> 31. 32. 33. 34. 35. 36. <?php $i = $this->pagination->limitstart; 37. $rowcount = $this->params->def('num_leading_articles', 1); 38. for ($y = 0; $y < $rowcount && $i < $this->total; $y++, $i++) : ?> 39. <div class="leading<?php echo $this->params->get('pageclass_sfx'); ?>"> 40. <?php $this->item =& $this->getItem($i, $this->params); 41. echo $this->loadTemplate('item'); ?> 42. </div> 43. <span class="leading_separator<?php echo $this->params->get('pageclass_sfx'); ?>"> </span> 44. <?php endfor; ?> 45. 46. <?php $introcount = $this->params->def('num_intro_articles', 4); 47. if ($introcount) : 48. 49. for ($y = 0; $y < $introcount && $i < $this->total; $y++, $i++) : ?> 50. 51. <?php $this->item =& $this->getItem($i, $this->params); 52. echo $this->loadTemplate('item'); ?> 53. 54. 55. 56. <?php endfor; 57. endif; ?> 58. 59. <?php $numlinks = $this->params->def('num_links', 4); 60. if ($numlinks && $i < $this->total) : ?> 61. <div class="blog_more<?php echo $this->params->get('pageclass_sfx'); ?>"> 62. <?php $this->links = array_slice($this->items, $i - $this->pagination->limitstart, $i - $this->pagination->limitstart + $numlinks); 63. echo $this->loadTemplate('links'); ?> 64. </div> 65. <?php endif; ?> 66. 67. <?php if ($this->params->def('show_pagination', 2) == 1 || ($this->params->get('show_pagination') == 2 && $this->pagination->get('pages.total') > 1)) : ?> 68. <?php if( $this->pagination->get('pages.total') > 1 ) : ?> 69. <p class="counter"> 70. <?php echo $this->pagination->getPagesCounter(); ?> 71. </p> 72. <?php endif; ?> 73. <?php if ($this->params->def('show_pagination_results', 1)) : ?> 74. <?php echo $this->pagination->getPagesLinks(); ?> 75. <?php endif; ?> 76. <?php endif; ?>
Copyleft: Tutto il materiale pubblicato o comunque presente all'interno del sito www.joomla.it può essere utilizzato, diffuso e modificato liberamente. Hosting fornito gratuitamente da Joomlahost.it Disegno web da kreatif multimedia srl