¿Por favor pueden ayudarme con este pequeño código? Me da un error y no sé dónde está el problema, seguro que alguien que esté familiarizado con esto lo ve enseguida.
Este es el código, pertenece a una web hecha en joomla 2.5:
Código:
Me devuelve el siguiente error: <?php /** * @version $Id: default_results.php 20244 2011-01-10 10:23:58Z eddieajau $ * @package Joomla.Site * @subpackage com_search * @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ // no direct access defined('_JEXEC') or die; ?> <div class="mainsearch;"> <?php foreach( $this->results as $result ) : ?> <div class="displaysearch"> <?php $database->setQuery(" SELECT owner FROM #__joomgallery WHERE id = '$result->picid' "); $id = $database->loadResult(); <?php if ( isset( $result->joomgallerypicture ) ) : ?> Esta es la línea 28 <div class="searchimage"> <a href="<?echo $result->href;?>"><img src="<?echo _JOOM_LIVE_SITE . "components/com_joomgallery/img_thumbnails/" . $result->catpath . "/" . $result->imgthumbname;?>"></a> </div> <?php if ( $result->section ) : ?> <?php endif; ?> <?php else : ?> <?php if ( $result->href ) : if ($result->browsernav == 1 ) : ?> <a href="<?php echo JRoute::_($result->href); ?>" target="_blank"> <?php else : ?> <a href="<?php echo JRoute::_($result->href); ?>"> <?php endif; echo $this->escape($result->title); if ( $result->href ) : ?> </a> <?php endif; if ( $result->section ) : ?> <br /> <span class="small<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>"> (<?php echo $this->escape($result->section); ?>) </span> <?php endif; ?> <?php endif; ?> <?php endif; ?> </div> </div> <?php endforeach; ?> </div> <div class="pagination"> <?php echo $this->pagination->getPagesLinks(); ?> </div>
Parse error: syntax error, unexpected '<' in joomlatemplatepath/html/com_search/search/default_results.php on line 28
Muchas gracias.