Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/01/2011, 20:03
elcuisito
 
Fecha de Ingreso: noviembre-2008
Ubicación: Chabás, Santa Fe, Argentina
Mensajes: 105
Antigüedad: 15 años, 5 meses
Puntos: 2
Problema con salto de linea en template ja anion

Hola que tal buenas noches amigos, instale la plantilla ja anion en joomla y resulta que vengo renegando con algo que no puedo solucionar problema de codigo php. Lo chequie abriendolo con dreamweaver y me dice que hay problemas con salto de linea en la linea 36 y eso me va a causar problemas en navegadores y si me ocurre un problema que realmente no se si viene por ahí pero sospecho de que si. Cuando pongo una foto en un articulo la foto se me pone por delante del articulo y no me lo dejá leer. Eso en firefox y en explorer se ve la foto cortada y nada de texto. Bueno como les decia chequeando encontré en este error, el asunto que no tengo mucha idea como solucionarlo porque no se tanto de código, si me podrian ayudar, yo les dejo el codigo y además como se estaba viendo.

En firefox
http://www.subirimagenes.com/imagen-...a-5809331.html
En internet explorer
http://www.subirimagenes.com/imagen-...x-5809337.html
En dreamweaver el código
http://www.subirimagenes.com/imagen-...2-5809342.html

Bueno gente acá les dejo el cógigo completo. espero de su ayuda!.. Gracias
Código PHP:
Ver original
  1. <?php
  2. /*
  3. # ------------------------------------------------------------------------
  4. # JA Anion template for Joomla 1.5.x
  5. # ------------------------------------------------------------------------
  6. # Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
  7. # @license - PHP files are GNU/GPL V2. CSS / JS are Copyrighted Commercial,
  8. # bound by Proprietary License of JoomlArt. For details on licensing,
  9. # Please Read Terms of Use at http://www.joomlart.com/terms_of_use.html.
  10. # Author: JoomlArt.com
  11. # Websites:  http://www.joomlart.com -  http://www.joomlancers.com
  12. # Redistribution, Modification or Re-licensing of this file in part of full,
  13. # is bound by the License applied.
  14. # ------------------------------------------------------------------------
  15. */
  16.  
  17.  
  18. // no direct access
  19. defined('_JEXEC') or die('Restricted access'); ?>
  20.  
  21. <?php
  22. //Get out all images
  23. $regex = "/\<img[^\>]*>/";
  24. $images = '';
  25. if (preg_match_all ($regex, $this->item->text, $matches)) {
  26.     $this->item->text = preg_replace ($regex, '', $this->item->text);
  27.     $images = implode ("\n", $matches[0]);
  28. }
  29. ?>
  30.  
  31. <?php if ($this->user->authorize('com_content', 'edit', 'content', 'all') || $this->user->authorize('com_content', 'edit', 'content', 'own')) : ?>
  32.     <div class="contentpaneopen_edit<?php echo $this->escape($this->item->params->get( 'pageclass_sfx' )); ?>" style="float: left;">
  33.         <?php echo JHTML::_('icon.edit', $this->item, $this->item->params, $this->access); ?>
  34.     </div>
  35. <?php endif; ?>
  36. <div class="contentpaneopen<?php echo $this->escape($this->item->params->get( 'pageclass_sfx' )); ?><?php if ($images): ?>haveimage<?php endif; ?> clearfix">
  37.  
  38.  
  39. <?php if ($images): ?>
  40. <div class="article-image">
  41.     <?php echo $images ?>
  42. </div>
  43. <?php endif; ?>
  44.  
  45. <div class="article-main">
  46. <?php if ($this->item->params->get('show_title')) : ?>
  47. <h2 class="contentheading<?php echo $this->escape($this->item->params->get( 'pageclass_sfx' )); ?>">
  48.     <?php if ($this->item->params->get('link_titles') && $this->item->readmore_link != '') : ?>
  49.     <a href="<?php echo $this->item->readmore_link; ?>" class="contentpagetitle<?php echo $this->escape($this->item->params->get( 'pageclass_sfx' )); ?>">
  50.         <?php echo $this->escape($this->item->title); ?>
  51.     </a>
  52.     <?php else : ?>
  53.         <?php echo $this->escape($this->item->title); ?>
  54.     <?php endif; ?>
  55. </h2>
  56. <?php endif; ?>
  57.  
  58. <?php  if (!$this->item->params->get('show_intro')) :
  59.     echo $this->item->event->afterDisplayTitle;
  60. endif; ?>
  61.  
  62. <?php
  63. if (
  64. ($this->item->params->get('show_create_date'))
  65. || (($this->item->params->get('show_author')) && ($this->item->author != ""))
  66. || (($this->item->params->get('show_section') && $this->item->sectionid) || ($this->item->params->get('show_category') && $this->item->catid))
  67. || ($this->item->params->get('show_pdf_icon') || $this->item->params->get('show_print_icon') || $this->item->params->get('show_email_icon'))
  68. || ($this->item->params->get('show_url') && $this->item->urls)
  69. ) :
  70. ?>
  71. <div class="article-tools clearfix">
  72.  
  73.     <div class="article-meta">
  74.  
  75.     <?php if (($this->item->params->get('show_author')) && ($this->item->author != "")) : ?>
  76.     <span class="createby">
  77.         <?php JText::printf(($this->item->created_by_alias ? $this->escape($this->item->created_by_alias) : $this->escape($this->item->author)) ); ?>,
  78.     </span>
  79.     <?php endif; ?>
  80.  
  81.     <?php if ($this->item->params->get('show_create_date')) : ?>
  82.     <span class="createdate">
  83.         on <?php echo JHTML::_('date', $this->item->created, JText::_('DATE_FORMAT_LC3')); ?>
  84.     </span>
  85.     <?php endif; ?>
  86.  
  87.     <?php if (($this->item->params->get('show_section') && $this->item->sectionid) || ($this->item->params->get('show_category') && $this->item->catid)) : ?>
  88.         <?php if ($this->item->params->get('show_section') && $this->item->sectionid && isset($this->item->section)) : ?>
  89.         <span class="article-section">
  90.             <?php if ($this->item->params->get('link_section')) : ?>
  91.                 <?php echo '<a href="'.JRoute::_(ContentHelperRoute::getSectionRoute($this->item->sectionid)).'">'; ?>
  92.             <?php endif; ?>
  93.             <?php echo $this->escape($this->item->section); ?>
  94.             <?php if ($this->item->params->get('link_section')) : ?>
  95.                 <?php echo '</a>'; ?>
  96.             <?php endif; ?>
  97.                 <?php if ($this->item->params->get('show_category')) : ?>
  98.                 <?php echo ' - '; ?>
  99.             <?php endif; ?>
  100.         </span>
  101.         <?php endif; ?>
  102.         <?php if ($this->item->params->get('show_category') && $this->item->catid) : ?>
  103.         <span class="article-section">
  104.             <?php if ($this->item->params->get('link_category')) : ?>
  105.                 <?php echo '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug, $this->item->sectionid)).'">'; ?>
  106.             <?php endif; ?>
  107.             <?php echo $this->escape($this->item->category); ?>
  108.             <?php if ($this->item->params->get('link_category')) : ?>
  109.                 <?php echo '</a>'; ?>
  110.             <?php endif; ?>
  111.         </span>
  112.         <?php endif; ?>
  113.     <?php endif; ?>
  114.     </div>
  115.  
  116.     <?php if ($this->item->params->get('show_pdf_icon') || $this->item->params->get('show_print_icon') || $this->item->params->get('show_email_icon')) : ?>
  117.     <div class="buttonheading">
  118.         <?php if ($this->item->params->get('show_email_icon')) : ?>
  119.         <span class="ja-button-email">
  120.         <?php echo JHTML::_('icon.email', $this->item, $this->item->params, $this->access); ?>
  121.         </span>
  122.         <?php endif; ?>
  123.  
  124.         <?php if ( $this->item->params->get( 'show_print_icon' )) : ?>
  125.         <span class="ja-button-print">
  126.         <?php echo JHTML::_('icon.print_popup', $this->item, $this->item->params, $this->access); ?>
  127.         </span>
  128.         <?php endif; ?>
  129.  
  130.         <?php if ($this->item->params->get('show_pdf_icon')) : ?>
  131.         <span class="ja-button-pdf">
  132.         <?php echo JHTML::_('icon.pdf', $this->item, $this->item->params, $this->access); ?>
  133.         </span>
  134.         <?php endif; ?>
  135.     </div>
  136.     <?php endif; ?>
  137.  
  138.     <?php if ($this->item->params->get('show_url') && $this->item->urls) : ?>
  139.     <span class="article-url">
  140.         <a href="http://<?php echo $this->escape($this->item->urls) ; ?>" target="_blank"><?php echo $this->escape($this->item->urls); ?></a>
  141.     </span>
  142.     <?php endif; ?>
  143.  
  144. </div>
  145. <?php endif; ?>
  146.  
  147. <?php echo $this->item->event->beforeDisplayContent; ?>
  148.  
  149. <div class="article-content">
  150. <?php if (isset ($this->item->toc)) : ?>
  151.     <?php echo $this->item->toc; ?>
  152. <?php endif; ?>
  153. <?php echo $this->item->text; ?>
  154. </div>
  155.  
  156. <?php if ( intval($this->item->modified) != 0 && $this->item->params->get('show_modify_date')) : ?>
  157.     <span class="modifydate">
  158.         <?php echo JText::sprintf('LAST_UPDATED2', JHTML::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC2'))); ?>
  159.     </span>
  160. <?php endif; ?>
  161.  
  162. <?php if ($this->item->params->get('show_readmore') && $this->item->readmore) : ?>
  163.     <a href="<?php echo $this->item->readmore_link; ?>" title="<?php echo $this->escape($this->item->title); ?>" class="readon<?php echo $this->escape($this->item->params->get('pageclass_sfx')); ?>">
  164.     <?php if ($this->item->readmore_register) : ?>
  165.         <span><?php echo JText::_('Register to read more...'); ?></span>
  166.     <?php else : ?>
  167.         <span><?php echo JText::_('READ MORE...'); ?></span>
  168.     <?php endif; ?>
  169.     </a>
  170. <?php endif; ?>
  171. </div>
  172.  
  173. </div>
  174.  
  175. <?php echo $this->item->event->afterDisplayContent; ?>