So, I'm using latest Joomla 3.2 and template I created. This is the code from index.php:
<div id="wrapper">
<div id="wrap_to_r">
<div id="w_main">
<div id="w_content_wrapper" class="<?php echo $active->alias; ?> ">
<div id="main_column">
<div id="logo"><jdoc:include type="modules" name="logo" style="xhtml" /></div>
<div id="content">
<jdoc:include type="message" />
<jdoc:include type="component" />
<jdoc:include type="modules" name="content" style="xhtml" />
</div>
</div>
<div id="sidebar"><jdoc:include type="modules" name="sidebar" style="xhtml" /></div>
</div>
</div>
<div id="quote"><jdoc:include type="modules" name="quote" style="xhtml" /></div>
<div id="w_footer">
<div id="user1"><jdoc:include type="modules" name="user1" style="xhtml" /></div>
<div id="user2"><jdoc:include type="modules" name="user2" style="xhtml" /></div>
<div id="user3"><jdoc:include type="modules" name="user3" style="xhtml" /></div>
<div id="user4"><jdoc:include type="modules" name="user4" style="xhtml" /></div>
<div id="copyright"><jdoc:include type="modules" name="copyright" style="xhtml" /></div>
</div>
</div>
</div>
<div id="cookie"><jdoc:include type="modules" name="cookie" style="xhtml" /></div>
<div id="additional"><jdoc:include type="modules" name="additional" style="xhtml" /></div>
The problem is, I created many category blogs and until yesterday they were all displaying correctly. But then I noticed than only one category blog is displaying totally incorrectly. What happenes is that
<div id="sidebar"><jdoc:include type="modules" name="sidebar" style="xhtml" /></div>
displays INSIDE
<div id="content">
<jdoc:include type="message" />
<jdoc:include type="component" />
<jdoc:include type="modules" name="content" style="xhtml" />
</div>
so I get something like this:
<div id="content">
<jdoc:include type="message" />
<jdoc:include type="component" />
<div id="sidebar"><jdoc:include type="modules" name="sidebar" style="xhtml" /></div>
<jdoc:include type="modules" name="content" style="xhtml" />
</div>
This is part of the code from Chrome browser:
https://drive.google.com/file/d/0BwXNqctc_x5dVUVwNXJ1NUlyNkU/edit?usp=sharing
I'm completely out of ideas here. I tried reuploading template, I created new menu items linked to this specific category blog. Problem doesn't go away. There is no problem with other blogs or if I just change the category of the blog inside same menu item. What am I doing wrong here?
Joomla blogs take the first part of the article up until the "readmore" separator.
Sometimes the readmore separator is placed in the editor inside a div, thus the intro Joomla extracts contains an unbalanced open <div which destroys your layout. The browser does the rest of the issue trying to balance the open <div with the first corrensponding </div and ignoring the extra open div in the text.
Find the first item in the blog that displays wrong, open in the editor and place the readmore in the right place. You might have to clean the cache before you see the results.
Related
I'm customizing an HTML template for Joomla! 3.7.2, everything seems work fine except for multilanguage redirect when click on logo.
1) I inser the logo in my index.php file as:
<a id="t-logo" href="<?php echo $this->baseurl; ?>/">
<?php echo $doc->getBuffer('modules', 'logo', array('style' => 'none')); ?>
</a>
Then I use a module to assign the image of the logo in that position (so that my Client can change it easily in future).
Anyway I see that if I switch from main language (IT) to EN and then I click the logo, instead of being redirected to the EN homepage, it always redirects me to the IT homepage. This happens only with my template (tested with default Joomla! Protostar and I don't see this problem).
This is my index.php code:
<?php
defined('_JEXEC') or die;
$app = JFactory::getApplication();
$menu = $app->getMenu();
$doc = JFactory::getDocument();
$user = JFactory::getUser();
...
loading some CSS and JS
...
// Output as HTML5
$this->setHtml5(true);
// Getting params from template
$params = $app->getTemplate(true)->params;
// Detecting Active Variables
$option = $app->input->getCmd('option', '');
$view = $app->input->getCmd('view', '');
$layout = $app->input->getCmd('layout', '');
$task = $app->input->getCmd('task', '');
$itemid = $app->input->getCmd('Itemid', '');
$sitename = $app->get('sitename');
// Aggiunge la classe della pagina
$menu = $app->getMenu()->getActive();
$pageclass = '';
if (is_object($menu))
$pageclass = $menu->params->get('pageclass_sfx');
// fine aggiunge classe della pagina
if($task == "edit" || $layout == "form" )
{
$fullWidth = 1;
}
else
{
$fullWidth = 0;
}
?>
<!DOCTYPE html>
<html lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
<jdoc:include type="head" />
<!--[if lt IE 9]><script src="<?php echo JUri::root(true); ?>/media/jui/js/html5.js"></script><![endif]-->
</head>
<body class="<?php echo $pageclass; ?> site <?php echo $option
. ' view-' . $view
. ($layout ? ' layout-' . $layout : ' no-layout')
. ($task ? ' task-' . $task : ' no-task')
. ($itemid ? ' itemid-' . $itemid : '')
. ($params->get('fluidContainer') ? ' fluid' : '');
echo ($this->direction == 'rtl' ? ' rtl' : '');
?>">
<div class="main-wrapper">
<div class="topbar inner-container container">
<div class="l-sec col-xs-6 col-md-9">
<?php if ($this->countModules('shortinfo')) : ?>
<jdoc:include type="modules" name="shortinfo" style="none" />
<?php endif; ?>
</div>
<div class="r-sec col-xs-6 col-md-3">
<?php if ($this->countModules('language')) : ?>
<jdoc:include type="modules" name="language" style="none" />
<?php endif; ?>
</div>
</div>
<!-- Header Section -->
<header id="main-header">
<div class="inner-container container">
<div class="l-sec col-xs-6 col-sm-6 col-md-3">
<a id="t-logo" href="<?php echo $this->baseurl; ?>/">
<?php echo $doc->getBuffer('modules', 'logo', array('style' => 'none')); ?>
</a>
</div>
<?php if ($this->countModules('main-menu')) : ?>
<div class="r-sec col-xs-6 col-sm-6 col-md-9">
<nav id="main-menu" class="navigation" role="navigation">
<jdoc:include type="modules" name="main-menu" style="none" />
</nav>
<div id="main-menu-handle" class="ravis-btn btn-type-2"><i class="fa fa-bars"></i><i class="fa fa-close"></i></div><!-- Mobile Menu handle -->
<?php if ($this->countModules('bookingbutton')) : ?>
<jdoc:include type="modules" name="bookingbutton" style="none" />
<?php endif; ?>
</div>
<?php endif; ?>
</div>
<div id="mobile-menu-container"></div>
</header>
<!-- End of Header Section -->
<?php if ($this->countModules('header')) : ?>
<section id="breadcrumb-section" data-bg-img="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/images/header.jpg" style="background-image: url('<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/images/header.jpg');">
<div class="inner-container container">
<div class="ravis-title">
<div class="inner-box">
<div class="title">
<h1 itemprop="headline">
<?php echo $page_title = $doc->getTitle(); ?>
</h1>
</div>
<div class="sub-title"><h2 class="great-vibes"><?php echo htmlspecialchars($images->image_intro_alt); ?></h2></div>
</div>
</div>
<div class="breadcrumb">
<?php
$modules =& JModuleHelper::getModules('breadcrumb');
foreach ($modules as $module)
{
echo JModuleHelper::renderModule($module);
}
?>
</div>
</div>
</section>
<?php endif; ?>
<?php if ($this->countModules('main-slider')) : ?>
<div class="slider-available-sec">
<jdoc:include type="modules" name="main-slider" style="none" />
<?php if ($this->countModules('booking-form')) : ?>
<jdoc:include type="modules" name="booking-form" style="none" />
<?php endif; ?>
</div>
<?php endif; ?>
<jdoc:include type="message" />
<div class="componentarea">
<?php
$app = JFactory::getApplication();
$menu = $app->getMenu();
$lang = JFactory::getLanguage();
if ($menu->getActive() != $menu->getDefault($lang->getTag())) : ?>
<jdoc:include type="component" />
<?php endif; ?>
</div>
<?php if ($this->countModules('welcome')) : ?>
<jdoc:include type="modules" name="welcome" style="none" />
<?php endif; ?>
<?php if ($this->countModules('luxury-rooms')) : ?>
<jdoc:include type="modules" name="luxury-rooms" style="none" />
<?php endif; ?>
<?php if ($this->countModules('events')) : ?>
<jdoc:include type="modules" name="events" style="none" />
<?php endif; ?>
<?php if ($this->countModules('services')) : ?>
<jdoc:include type="modules" name="services" style="none" />
<?php endif; ?>
<?php if ($this->countModules('tour')) : ?>
<jdoc:include type="modules" name="tour" style="none" />
<?php endif; ?>
<?php if ($this->countModules('gallery')) : ?>
<jdoc:include type="modules" name="gallery" style="none" />
<?php endif; ?>
<?php if ($this->countModules('testimonials')) : ?>
<jdoc:include type="modules" name="testimonials" style="none" />
<?php endif; ?>
<?php if ($this->countModules('pacchetti')) : ?>
<jdoc:include type="modules" name="pacchetti" style="none" />
<?php endif; ?>
<?php if ($this->countModules('richiesta')) : ?>
<jdoc:include type="modules" name="richiesta" style="none" />
<?php endif; ?>
<!--Footer Section-->
<footer id="main-footer">
<div class="inner-container container">
<div class="t-sec clearfix">
<?php if ($this->countModules('footer-1')) : ?>
<jdoc:include type="modules" name="footer-1" style="xhtml" />
<?php endif; ?>
<?php if ($this->countModules('footer-2')) : ?>
<jdoc:include type="modules" name="footer-2" style="xhtml" />
<?php endif; ?>
<?php if ($this->countModules('footer-3')) : ?>
<jdoc:include type="modules" name="footer-3" style="xhtml" />
<?php endif; ?>
<?php if ($this->countModules('footer-4')) : ?>
<jdoc:include type="modules" name="footer-4" style="xhtml" />
<?php endif; ?>
</div>
<?php if ($this->countModules('copyright')) : ?>
<jdoc:include type="modules" name="copyright" style="none" />
<?php endif; ?>
</div>
</footer>
<!--End of Footer Section-->
</div>
</body>
</html>
Any suggestion and how to fix this?
Thanks in advance!
Here's some code I use for one of our templates, it would be easy to adapt this to your situation:
<?php
$app = JFactory::getApplication();
$lang = JFactory::getLanguage();
if ($this->language ==’en-gb’){
echo ‘<a href=”‘ .$this->baseurl .’/en” class=”” title=””>’;
}
else {
echo ‘<a href=”‘ .$this->baseurl .’/fr” class=”” title=””>’;
}
?>
<img class=”logo” src=”/path/images/header/logo.png” alt=””>
<?php
echo “</a>”;
?>
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
This is my code. It is actually an html file. I want to loop those statements using php so that I can have that paragraph in my html page repeated for any number of times. Please help
<?php
for($i=0;$i<=5;$i++){
<li>
<div class="imgholder"><img src="images/demo/imgl.gif" alt="" /></div>
<div class="latestnews">
<h2>Text !</h2>
<p>Text 2</p>
</div>
<br class="clear" />
</li>
}
?>
You need to echo the HTML inside php:
<?php
for($i=0;$i<=5;$i++)
{
echo '<li>
<div class="imgholder"><img src="images/demo/imgl.gif" alt="" /></div>
<div class="latestnews">
<h2>Text !</h2>
<p>Text 2</p>
</div>
<br class="clear" />
</li>';
}
?>
Or you could just separate the HTML and php like:
<?php
for($i=0;$i<=5;$i++)
{ ?>
<li>
<div class="imgholder"><img src="images/demo/imgl.gif" alt="" /></div>
<div class="latestnews">
<h2>Text !</h2>
<p>Text 2</p>
</div>
<br class="clear" />
</li>
<?php } ?>
Close Php tag after braces, you can also write HTML in single Quotes.
<?php
for($i=0;$i<=5;$i++)
{
?>
<li>
<div class="imgholder"><img src="images/demo/imgl.gif" alt="" /></div>
<div class="latestnews">
<h2>Text !</h2>
<p>Text 2</p>
</div>
<br class="clear" />
</li>
<?php
}
?>
Below is my if conditions for how to display the structure depending on if a module is in the 'left' position or 'right' position or if a module is in both the 'left' and 'right'.
The conditions for if a module is in the 'left' position or 'right' position works. But if I have a module in both the 'left' and 'right' positions, only the module in the 'left' position appears, while the module in the 'right' position is not displayed.
Can someone please help me with what the problem is?
<?php if($this->countModules('left')) : ?>
<!-- Content Region with Left Column: Start -->
<div class="contentholder onecol">
<div class="contentcol colleft">
<jdoc:include type="modules" name="left" style="xhtml" />
<div class="clear"></div>
</div>
<div class="contentbody">
<jdoc:include type="message" />
<jdoc:include type="component" />
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
<!-- Content Region with Left Column: End -->
<?php elseif($this->countModules('right')) : ?>
<!-- Content Region with Right Column: Start -->
<div class="contentholder onecol">
<div class="contentbody">
<jdoc:include type="message" />
<jdoc:include type="component" />
<div class="clear"></div>
</div>
<div class="contentcol colleft">
<jdoc:include type="modules" name="right" style="xhtml" />
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
<!-- Content Region with Right Column: End -->
<?php elseif(($this->countModules('left')) && ($this->countModules('right'))) : ?>
<!-- Content Region with Left & Right Column: Start -->
<div class="contentholder twocol">
<div class="contentcol colleft">
<jdoc:include type="modules" name="left" style="xhtml" />
<div class="clear"></div>
</div>
<div class="contentbody">
<jdoc:include type="message" />
<jdoc:include type="component" />
<div class="clear"></div>
</div>
<div class="contentcol colleft">
<jdoc:include type="modules" name="right" style="xhtml" />
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
<!-- Content Region with Left & Right Column: End -->
<?php else : ?>
<!-- Content Region with No Columns: Start -->
<div class="contentholder">
<div class="contentbody">
<jdoc:include type="message" />
<jdoc:include type="component" />
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
<!-- Content Region with No Columns: End -->
<?php endif; ?>
It appears as though the problem was the order of my conditions. The condition:
<?php elseif(($this->countModules('left')) && ($this->countModules('right'))) : ?>
should come first instead of third.
It seems as though the reason is because a 'left' module in the original first condition is met, so the if statement terminates there. So by adding the 'left' && 'right' condition to the top, if it isn't met, then the code moves on to see if there is only a 'left' module or 'right' module.
With some struggle i setup an test area and updated the joomla template of an customer.
I used JUpdate for this.
The template is custom and i rebuild it from 1.5 for the use in 2.5.
The original site http://imgdump.nl/hosted/7a5613219515d86549301252eca2837e.png
The site in the updated joomla http://imgdump.nl/hosted/ef214bab43ee5508798d84cee7d2d6fb.png
Does anyone know what couses this to happen ? is it in updating the template or is it anything else?
Also tried if the menu structure is still working and as far as i can see its still all linked.
If its a great possibility its becourse of the template code i will post it later.
I dont got an PARAM section in the 1.5 template could this mess it up if i try to convert it to 2.5 ? (i got an POSITION section with the sections of the site)
<files>
<filename>index.php</filename>
<filename>templateDetails.xml</filename>
<filename>template_thumbnail.png</filename>
<filename>templates.php</filename>
<filename>template_preview.png</filename>
<filename>error.php</filename>
<folder>css</folder>
<folder>images</folder>
</files>
<positions>
<position>user4</position>
<position>user3</position>
<position>breadcrumb</position>
<position>user2</position>
<position>left</position>
<position>right</position>
<position>debug</position>
</positions>
<body id="page_bg">
<div id="container">
<?php if($this->countModules('user4') and JRequest::getCmd('layout') != 'form') : ?>
<div id="search_bg">
<div id="search">
<jdoc:include type="modules" name="user4" />
</div>
</div>
<?php else: ?>
<div id="nosearch"></div>
<?php endif; ?>
<div id="pillmenu">
<jdoc:include type="modules" name="user3" />
<jdoc:include type="modules" name="breadcrumb" />
<div id="outside"></div>
</div>
<div id="header">
<div id="headerimg"></div>
<table cellpadding="0" cellspacing="0">
<tr>
<td>
<h1><!-- <?php echo $mainframe->getCfg('sitename') ;?><!--test--></h1>
</td>
</tr>
</table>
<div class="boxes">
<jdoc:include type="modules" style="rounded" name="user2" />
</div>
</div>
<div id="content">
<div id="content_top">
<div id="content_bottom">
<?php if($this->countModules('left') and JRequest::getCmd('layout') != 'form') : ?>
<div id="leftcolumn">
<jdoc:include type="modules" name="left" style="rounded" />
<br /><?php $sg = "banner"; include "templates.php"; ?><br />
</div>
<?php endif; ?>
<?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="maincolumn">
<?php else: ?>
<div id="maincolumn_full">
<?php endif; ?>
<div class="nopad">
<jdoc:include type="message" />
<?php if($this->params->get('showComponent')) : ?>
<jdoc:include type="component" />
<?php endif; ?>
</div>
</div>
<?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="rightcolumn" style="float:right;">
<jdoc:include type="modules" name="right" style="rounded" />
</div>
<?php endif; ?>
<div class="clr"></div>
<jdoc:include type="modules" name="debug" />
</div>
</div>
</div>
This question already has an answer here:
Parse error: syntax error, unexpected "<" [closed]
(1 answer)
Closed 9 years ago.
I have a code produced by Joomla that displays an error (see title). I debugged it line by line but don't see any problems. Here is the entire code:
<?php
/**
* #copyright Copyright (C) 2008 - 2009 JoomVision.com. All rights reserved.
* #license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
include_once (dirname(__FILE__).DS.'jv_tools.php');
// Javascript
unset($this->_scripts[$this->baseurl . '/media/system/js/mootools.js']);
unset($this->_scripts[$this->baseurl . '/media/system/js/caption.js']);
if($gzip == "true") :
$this->_scripts = array_merge(array($jvTools->templateurl() . 'js/jv.script.js.php' => 'text/javascript'), $this->_scripts);
else:
//$this->_scripts = array_merge(array($jvTools->templateurl() . 'js/jv.collapse.js' => 'text/javascript'), $this->_scripts);
$this->_scripts = array_merge(array($jvTools->templateurl() . 'js/jv.script.js' => 'text/javascript'), $this->_scripts);
$this->_scripts = array_merge(array($jvTools->templateurl() . 'js/mootools.js' => 'text/javascript'), $this->_scripts);
endif;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>">
<head>
<jdoc:include type="head" />
<?php JHTML::_('behavior.mootools'); ?>
<link rel="stylesheet" href="<?php echo $jvTools->baseurl() ; ?>templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $jvTools->baseurl() ; ?>templates/system/css/general.css" type="text/css" />
<?php if($gzip == "true") : ?>
<link rel="stylesheet" href="<?php echo $jvTools->templateurl(); ?>css/template.css.php" type="text/css" />
<?php else: ?>
<link rel="stylesheet" href="<?php echo $jvTools->templateurl(); ?>css/default.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $jvTools->templateurl(); ?>css/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $jvTools->templateurl(); ?>css/typo.css" type="text/css" />
<?php endif; ?>
<script type="text/javascript">
var baseurl = "<?php echo $jvTools->baseurl() ; ?>";
var jvpathcolor = '<?php echo $jvTools->templateurl(); ?>css/colors/';
var tmplurl = '<?php echo $jvTools->templateurl();?>';
var CurrentFontSize = parseInt('<?php echo $jvTools;?>') // ->getParam('jv_font');?>');
</script>
<!--[if lte IE 6]>
<link rel="stylesheet" href="<?php echo $jvTools->templateurl(); ?>css/ie6.css" type="text/css" />
<script type="text/javascript" src="<?php echo $jvTools->templateurl() ?>js/ie_png.js"></script>
<script type="text/javascript">
window.addEvent ('load', function() {
ie_png.fix('.png');
});
</script>
<![endif]-->
<!--[if lte IE 7]>
<link rel="stylesheet" href="<?php echo $jvTools->templateurl(); ?>/css/ie7.css" type="text/css" />
<![endif]-->
</head>
<body id="bd" class="fs<?php echo $jvTools->getParam('jv_font'); ?> <?php echo $jvTools->getParam('jv_display'); ?> <?php echo $jvTools->getParam('jv_display_style'); ?>">
<div id="jv-wrapper">
<div id="jv-wrapper-inner">
<div id="jv-header" class="clearfix">
<div class="jv-wrapper">
<div id="jv-header-inner">
<div id="jv-logo">
<h1 class="png"><a href="<?php echo $jvTools->baseurl() ; ?>" title="<?php echo $jvTools->sitename() ; ?>">
<span><?php echo $jvTools->sitename() ; ?></span></a>
</h1>
</div>
<div class="jv-wrapper">
<div id="jv-mainmenu" >
<div id="jv-mainmenu-inner">
<?php if($menustyle == 'split' || $menustyle == 'submoo') : ?>
<?php $menu->show(0,0); ?>
<?php else : ?>
<?php $menu->show(); ?>
<?php endif; ?>
</div>
</div>
<?php if($this->countModules('top')) : ?>
<div id="jv-top" >
<jdoc:include type="modules" name="top" />
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
<?php if($this->countModules('slideshow')) : ?>
<div id="jv-userwrap1" class="clearfix">
<div class="jv-wrapper">
<div id="jv-userwrap1-inner">
<jdoc:include type="modules" name="slideshow" />
</div>
</div>
</div>
<?php endif; ?>
<?php
$spotlight = array ('user1','user2','user3','user4');
$consl = $jvTools->calSpotlight($spotlight,$jvTools->isOP()?100:100,'%');
if( $consl) :
?>
<div id="jv-userwrap2" class="clearfix">
<div class="jv-wrapper">
<div id="jv-userwrap2-inner">
<?php if($this->countModules('user1')) : ?>
<div id="jv-user1" class="jv-user jv-box<?php echo $consl['user1']['class']; ?>" style="width: <?php echo $consl['user1']['width']; ?>;">
<div class="jv-box-inside">
<jdoc:include type="modules" name="user1" style="jvxhtml" />
</div>
</div>
<?php endif; ?>
<?php if($this->countModules('user2')) : ?>
<div id="jv-user2" class="jv-user jv-box<?php echo $consl['user2']['class']; ?>" style="width: <?php echo $consl['user2']['width']; ?>;">
<div class="jv-box-inside">
<jdoc:include type="modules" name="user2" style="jvxhtml" />
</div>
</div>
<?php endif; ?>
<?php if($this->countModules('user3')) : ?>
<div id="jv-user3" class="jv-user jv-box<?php echo $consl['user3']['class']; ?>" style="width: <?php echo $consl['user3']['width']; ?>;">
<div class="jv-box-inside">
<jdoc:include type="modules" name="user3" style="jvxhtml" />
</div>
</div>
<?php endif; ?>
<?php if($this->countModules('user4')) : ?>
<div id="jv-user4" class="jv-user jv-box<?php echo $consl['user4']['class']; ?>" style="width: <?php echo $consl['user4']['width']; ?>;">
<div class="jv-box-inside">
<jdoc:include type="modules" name="user4" style="jvxhtml" />
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
<?php endif; ?>
<!-- MAINBODY -->
<div id="jv-mainbody" class="clearfix">
<div class="jv-wrapper">
<!-- CONTAINER -->
<div id="jv-container<?php echo $jv_width;?>" class="clearfix">
<div class="jv-mainbody-inner">
<div class="jv-mainbody-top">
<div class="jv-mainbody-bottom">
<div class="jv-mainbody-inset">
<div id="jv-content">
<div id="jv-content-inner">
<?php if($this->countModules('breadcrumb')) : ?>
<div id="jv-pathway" class="clearfix">
<div id="jv-pathway-inner">
<strong><?php echo JText::_('You are here:')?></strong>
<jdoc:include type="modules" name="breadcrumb" />
</div>
</div>
<?php endif; ?>
<?php if($this->countModules('user5')) : ?>
<div id="jv-user5" class="clearfix">
<jdoc:include type="modules" name="user5" style="jvxhtml" />
</div>
<?php endif; ?>
<div id="jv-component" class="clearfix">
<jdoc:include type="message" />
<jdoc:include type="component" />
</div>
<?php if($this->countModules('user6')) : ?>
<div id="jv-user6" class="clearfix">
<jdoc:include type="modules" name="user6" style="jvxhtml" />
</div>
<?php endif; ?>
<?php
$spotlight = array ('col1','col2','col3');
$botsl1 = $jvTools->calSpotlight($spotlight,$jvTools->isOP()?100:99,'%');
if( $botsl1 ) :
?>
<div id="jv-userwrap3" class="clearfix">
<div id="jv-userwrap3-inner">
<div class="jv-spotlight">
<?php if($this->countModules('col1')) : ?>
<div id="jv-col1" class="jv-user jv-box<?php echo $botsl1['col1']['class']; ?>" style="width: <?php echo $botsl1['col1']['width']; ?>;">
<div class="jv-box-inside">
<jdoc:include type="modules" name="col1" style="jvxhtml" />
</div>
</div>
<?php endif; ?>
<?php if($this->countModules('col2')) : ?>
<div id="jv-col2" class="jv-user jv-box<?php echo $botsl1['col2']['class']; ?>" style="width: <?php echo $botsl1['col2']['width']; ?>;">
<div class="jv-box-inside">
<jdoc:include type="modules" name="col2" style="jvxhtml" />
</div>
</div>
<?php endif; ?>
<?php if($this->countModules('col3')) : ?>
<div id="jv-col3" class="jv-user jv-box<?php echo $botsl1['col3']['class']; ?>" style="width: <?php echo $botsl1['col3']['width']; ?>;">
<div class="jv-box-inside">
<jdoc:include type="modules" name="col3" style="jvxhtml" />
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
<?php endif; ?>
</div>
</div>
<?php if($this->countModules('right')) : ?>
<div id="jv-right">
<div id="jv-right-inner">
<jdoc:include type="modules" name="right" style="jvxhtml" />
</div>
</div>
<?php endif; ?>
<br class="clearfix"/>
</div>
<br class="clearfix"/>
</div>
</div>
</div>
<!-- END CONTAINER -->
</div>
</div>
</div>
<!-- END MAINBODY -->
<?php
$spotlight = array ('user7','user8','user9','user10');
$botsl2 = $jvTools->calSpotlight($spotlight,$jvTools->isOP()?100:99, '%');
if( $botsl2 ) :
?>
<div id="jv-userwrap5" class="clearfix">
<div class="jv-wrapper">
<div id="jv-userwrap5-inner">
<div class="jv-spotlight">
<?php if($this->countModules('user7')): ?>
<div id="jv-user7" class="jv-user jv-box<?php echo $botsl2['user7']['class']; ?>" style="width:<?php echo $botsl2['user7']['width']; ?>;">
<div class="jv-box-inside">
<jdoc:include type="modules" name="user7" style="jvxhtml" />
</div>
</div>
<?php endif; ?>
<?php if($this->countModules('user8')) : ?>
<div id="jv-user8" class="jv-user jv-box<?php echo $botsl2['user8']['class']; ?>" style="width:<?php echo $botsl2['user8']['width']; ?>;">
<div class="jv-box-inside">
<jdoc:include type="modules" name="user8" style="jvxhtml" />
</div>
</div>
<?php endif; ?>
<?php if($this->countModules('user9')) : ?>
<div id="jv-user9" class="jv-user jv-box<?php echo $botsl2['user9']['class']; ?>" style="width:<?php echo $botsl2['user9']['width']; ?>;">
<div class="jv-box-inside">
<jdoc:include type="modules" name="user9" style="jvxhtml" />
</div>
</div>
<?php endif; ?>
<?php if($this->countModules('user10')) : ?>
<div id="jv-user10" class="jv-user jv-box<?php echo $botsl2['user10']['class']; ?>" style="width:<?php echo $botsl2['user10']['width']; ?>;">
<div class="jv-box-inside">
<jdoc:include type="modules" name="user10" style="jvxhtml" />
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
<?php endif; ?>
<?php
$spotlight = array ('user11','user12','user13','user14');
$botsl3 = $jvTools->calSpotlight ($spotlight,$jvTools->isOP()?100:100,'%');
if( $botsl3 ) :
?>
<div id="jv-userwrap6" class="clearfix">
<div class="jv-wrapper">
<div id="jv-userwrap6-inner">
<?php if($this->countModules('user11')) : ?>
<div id="jv-user11" class="jv-user jv-box<?php echo $botsl3['user11']['class']; ?>" style="width: <?php echo $botsl3['user11']['width']; ?>;">
<div class="jv-box-inside">
<jdoc:include type="modules" name="user11" style="jvxhtml" />
</div>
</div>
<?php endif; ?>
<?php if($this->countModules('user12')) : ?>
<div id="jv-user12" class="jv-user jv-box<?php echo $botsl3['user12']['class']; ?>" style="width: <?php echo $botsl3['user12']['width']; ?>;">
<div class="jv-box-inside">
<jdoc:include type="modules" name="user12" style="jvxhtml" />
</div>
</div>
<?php endif; ?>
<?php if($this->countModules('user13')) : ?>
<div id="jv-user13" class="jv-user jv-box<?php echo $botsl3['user13']['class']; ?>" style="width: <?php echo $botsl3['user13']['width']; ?>;">
<div class="jv-box-inside">
<jdoc:include type="modules" name="user13" style="jvxhtml" />
</div>
</div>
<?php endif; ?>
<?php if($this->countModules('user14')) : ?>
<div id="jv-user14" class="jv-user " style="width: <?php echo $botsl3['user14']['width']; ?>;">
<div class="jv-box-inside">
<jdoc:include type="modules" name="user14" style="jvxhtml" />
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
<?php endif; ?>
<div id="jv-bottom" class="clearfix">
<div id="jv-bottom-inner">
<div id="jv-userwrap7" class="clearfix">
<div class="jv-wrapper">
<div id="jv-userwrap7-inner">
<div id="jv-footer">
<div id="jv-footer-inner"><jdoc:include type="modules" name="footer" /></div>
</div>
<div id="jv-copyright">
<div id="jv-copyright-inner">
Copyright © 2008 - <?php echo date(Y); ?> <a title="Gashon" href="http://www.omrestaurant.ca">Powered</a> by GASHON. All rights reserved.
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<jdoc:include type="modules" name="debug" />
</body>
</html>
Here are a few observations:
in Safari I get a malware warning saying the site may harm my computer, but in IE8 it's fine
the path to the code above is /home/content/93/7079893/html/om/templates/jv_cera/index.php, but the path the website displays when it gives me the error is /home/content/93/7079893/html/om/index.php, as in "Parse error: syntax error, unexpected '<' in /home/content/93/7079893/html/om/index.php on line 105". Could it be that the error is referring to another website?
Line 105 is the last div in this block of code:
<?php if($this->countModules('slideshow')) : ?>
<div id="jv-userwrap1" class="clearfix">
<div class="jv-wrapper">
<div id="jv-userwrap1-inner">
<jdoc:include type="modules" name="slideshow" />
</div>
</div>
</div> // <<-- THIS IS LINE 105
<?php endif; ?>
Can someone please help? Thank you kindly.
If you'd like to check whether the error is referring to another website, add a few pointless HTML lines (like ") ABOVE line 105, then run again. If the error is coming from this page, it the line number should be greater than 105.
Dumb point, but I'm going to mention it anyway: if the error is client side instead of server side, look at the source code that makes it to your browser, not this PHP code.