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>
Related
I'm trying to add button with link to a seller store in my joomla component and I have no idea how can I do it.
I'm adding code from php file that has what I need but I don't know how to add it on another page. If someone can guide me with some how to step it would be awesome.
Here is the page that has the link to the store:
<?php
// no direct access
defined('_JEXEC') or die;
use Joomla\Registry\Registry;
/** #var SellaciousViewProduct $this */
$sellers = $this->item->get('sellers');
if (!isset($sellers[0]) || (count($sellers) == 1 && $sellers[0]->seller_uid == $this->item->get('seller_uid')))
{
return;
}
$c_currency = $this->helper->currency->current('code_3');
?>
<div class="clearfix"></div>
<a name="also-selling"> </a>
<hr class="isolate"/>
<h4 class="center"><?php echo JText::_('COM_SELLACIOUS_PRODUCT_HEADING_BLOCK_SELLERS'); ?></h4>
<table class="product-sellers table table-striped table-hover table-bordered">
<thead>
<tr>
<th>SELLER </th>
<th>DELIVERY INFO</th>
<th>PRICE </th>
<th>ACTION </th>
</tr>
</thead>
<tbody>
<?php
foreach ($sellers as $i => $seller)
{
/** #var Registry $item */
$item = new Registry($seller);
$s_currency = $this->helper->currency->forSeller($item->get('seller_uid'), 'code_3');
// todo: Add this to config (show current one or not in more sellers) and move to model
if ($item->get('seller_uid') == $this->item->get('seller_uid'))
{
continue;
}
?>
<tr>
<td style="width: 220px;" class="nowrap">
<div class="seller-info">
<a href="<?php echo JRoute::_('index.php?option=com_sellacious&view=store&id=' . $item->get('seller_uid')); ?>">
<?php echo $item->get('seller_company', $item->get('seller_name')); ?></a>
<?php $rating = $item->get('seller_rating.rating'); ?>
<span class="label <?php echo ($rating < 3) ? 'label-warning' : 'label-success' ?>"><?php echo number_format($rating, 1) ?> / 5.0</span>
</div>
<?php if ($item->get('exchange_days')): ?>
<?php if ($item->get('exchange_tnc')):
$options = array(
'title' => '<strong>' . (int) $item->get('exchange_days') . ' Days</strong> Replacement Guarantee',
'backdrop' => 'static',
);
echo JHtml::_('bootstrap.renderModal', 'exchange_tnc-' . $item->get('code'), $options, $item->get('exchange_tnc'));
endif; ?>
<div class="replacement-info">
<i class="fa fa-refresh"></i>
<strong> <?php echo (int) $item->get('exchange_days') ?> Days</strong> Replacement
<?php if ($item->get('exchange_tnc')): ?>
[<i class="fa fa-question"></i>]
<?php endif; ?>
</div>
<?php endif; ?>
<?php if ($item->get('return_days')): ?>
<?php if ($item->get('return_tnc')):
$options = array(
'title' => '<strong>' . (int) $item->get('return_days') . ' Days</strong> Easy Return',
'backdrop' => 'static',
);
echo JHtml::_('bootstrap.renderModal', 'return_tnc-' . $item->get('code'), $options, $item->get('return_tnc'));
endif; ?>
<div class="replacement-info">
<i class="fa fa-refresh"></i>
<strong> <?php echo (int) $item->get('return_days') ?> Days</strong> Easy Return
<?php if ($item->get('return_tnc')): ?>
[<i class="fa fa-question"></i>]
<?php endif; ?>
</div>
<?php endif; ?>
<div>
<?php $allowed_listing_type = (array) $this->helper->config->get('allowed_listing_type'); ?>
<?php if (count($allowed_listing_type) != 1): ?>
<span class="label label-info margin-top-10">Condition:
<?php
$list_type = $item->get('listing_type');
// What if this is a not allowed listing type value
if ($list_type == 1):
echo JText::plural('COM_SELLACIOUS_PRODUCT_FIELD_LISTING_TYPE_VALUE', $list_type);
else:
$list_cond = $item->get('item_condition');
echo JText::plural('COM_SELLACIOUS_PRODUCT_FIELD_ITEM_CONDITION_VALUE', $list_type * 10 + (int) $list_cond);
endif;
?>
</span>
<?php endif; ?>
</div>
</td>
<td>
<div class="delivery-info">
<?php echo JHtml::_('date', '+ ' . rand(1, 30) . ' days', 'D, dS F'); ?>
<br>
<small><?php
$flat_ship = $item->get('flat_shipping');
$ship_fee = $item->get('shipping_flat_fee');
if ($flat_ship == 0)
{
echo JText::_('COM_SELLACIOUS_PRODUCT_SHIPPING_FEE_IN_CART');
}
elseif (round($ship_fee, 2) > 0)
{
$fee = $this->helper->currency->display($ship_fee, $s_currency, $c_currency, true);
echo JText::sprintf('COM_SELLACIOUS_PRODUCT_SHIPPING_FEE_FLAT', $fee);
}
else
{
echo JText::_('COM_SELLACIOUS_PRODUCT_SHIPPING_FEE_FREE');
}
?></small>
</div>
</td>
<td style="width:90px;" class="center">
<span class="product-price-sm"><?php
echo $this->helper->currency->display($item->get('price.sales_price'), $s_currency, $c_currency, true) ?></span>
</td>
<td style="width:100px;" class="nowrap">
<?php $link = JRoute::_('index.php?option=com_sellacious&view=product&p=' . $item->get('code')); ?>
<button class="btn btn-primary btn-cart-sm">DETAILS</button><br/>
<button type="button" class="btn btn-warning btn-cart-sm btn-add-cart" data-item="<?php echo $item->get('code') ?>">ДОБАВИ В КОЛИЧКАТА</button>
<!--<button type="button" class="btn btn-success btn-cart-sm btn-add-cart"
data-item="<?php /*echo $item->get('code') */?>" data-checkout="true">КУПИ СЕГА</button>-->
</td>
</tr>
<?php
}
?>
</tbody>
</table>
And this is the file I'm trying to import the part with the link to the sellers store
<?php
// no direct access.
defined('_JEXEC') or die;
jimport('sellacious.loader');
if (class_exists('SellaciousHelper'))
{
$helper = SellaciousHelper::getInstance();
}
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<!-- favicon -->
<link rel="shortcut icon" href="templates/sellacious/images/favicon/favicon.ico" type="image/x-icon" />
<link rel="icon" href="templates/sellacious/images/favicon/favicon.ico" type="image/x-icon" />
<?php
$user = JFactory::getUser();
$doc = JFactory::getDocument();
$app = JFactory::getApplication();
$sitename = $app->get('sitename');
JHtml::_('script', 'media/com_sellacious/js/plugin/messagebox/jquery.messagebox.min.js', false, false);
JHtml::_('stylesheet', 'media/com_sellacious/js/plugin/messagebox/jquery.messagebox.css', null, false);
$doc->addStyleSheet('//fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,300,400,700');
$doc->addStyleSheet('templates/sellacious/css/bootstrap.min.css', 'text/css', 'screen');
$doc->addStyleSheet('templates/sellacious/css/font-awesome.min.css', 'text/css', 'screen');
$doc->addStyleSheet('templates/sellacious/css/joomla-icons.css', 'text/css', 'screen');
$doc->addStyleSheet('templates/sellacious/css/smartadmin-production.css', 'text/css', 'screen');
$doc->addStyleSheet('templates/sellacious/css/smartadmin-skins.css', 'text/css', 'screen');
$doc->addStyleSheet('templates/sellacious/css/custom-style.css', 'text/css', 'screen');
if ($this->direction == 'rtl')
{
$doc->addStyleSheet('templates/sellacious/css/smartadmin-rtl.css', 'text/css', 'screen');
}
JHtml::_('jquery.framework');
JHtml::_('bootstrap.tooltip');
$doc->addScript('templates/sellacious/js/libs/jquery-ui-1.10.3.min.js'); // jQuery UI full, not from joomla core's minimised one
$doc->addScript('templates/sellacious/js/plugin/fastclick/fastclick.js'); // FastClick: For mobile devices
$doc->addScript('templates/sellacious/js/plugin/jquery-touch/jquery.ui.touch-punch.min.js'); // JS TOUCH plugin for mobile drag-drop touch events
$doc->addScript('templates/sellacious/js/plugin/msie-fix/jquery.mb.browser.min.js'); // browser msie issue fix
$doc->addScript('templates/sellacious/js/bootstrap/bootstrap.min.js'); // Bootstrap JS
$doc->addScript('templates/sellacious/js/notification/SmartNotification.min.js'); // Custom notification
$doc->addScript('templates/sellacious/js/plugin/cookie/jquery.cookie.min.js'); // cookie
$doc->addScript('templates/sellacious/js/sellacious-core.js'); // Sellacious core functions to work template wide
$doc->addScript('templates/sellacious/js/sellacious-notifier.js'); // Sellacious notification per view page
?>
<script data-pace-options='{ "restartOnRequestAfter": true }' src="templates/sellacious/js/plugin/pace/pace.min.js"></script>
<jdoc:include type="head"/>
<!--[if IE 7]>
<h1>Your browser is out of date, please update your browser by going to www.microsoft.com/download</h1>
<![endif]-->
</head>
<?php $collapse = $app->input->cookie->get('collapsedmenu'); ?>
<body class="fixed-page-footer <?php echo $app->input->get('hidemainmenu') || $collapse ? 'minified' : '' ?>"><!--
The possible classes: smart-style-3, minified, fixed-ribbon, fixed-header, fixed-width -->
<!-- HEADER -->
<header id="header" class="btn-group-justified">
<div id="logo-group">
<?php
$logo = 'templates/sellacious/images/logo.png';
if (isset($helper) && $helper->access->isSubscribed()):
$altLogo = $helper->media->getImage('config.backoffice_logo', 1, false);
$logo = $altLogo ?: $logo;
endif;
?>
<span id="logo"><a class="pull-left" href="<?php echo JRoute::_('index.php') ?>">
<img src="<?php echo $logo ?>" alt="<?php echo htmlspecialchars($sitename) ?>"></a></span>
<?php if ($this->countModules('logo-group')) { ?>
<!-- OPTIMAL PLACE FOR NOTIFICATION MODULE -->
<jdoc:include type="modules" name="logo-group" style="none"/>
<?php } ?>
</div>
<?php if ($this->countModules('header-left')) { ?>
<!-- Project Context -->
<jdoc:include type="modules" name="header-left" style="none"/>
<?php } ?>
<!-- pulled right: nav area -->
<div class="pull-right" style="margin-right: 1px;">
<!-- logout button -->
<div id="logout" class="btn-header transparent pull-right cursor-pointer">
<?php $logout_url = 'index.php?option=com_login&task=logout&' . JSession::getFormToken() . '=1'; ?>
<span> <a href="<?php echo $logout_url ?>" title="Sign Out" data-action="userLogout" class="hasTooltip" data-placement="bottom"
data-logout-msg="You can improve your security further after logging out by closing this opened browser"><i
class="fa fa-sign-out"></i></a> </span>
</div>
<!-- end logout button -->
<!-- fullscreen button -->
<div id="fullscreen" class="btn-header transparent pull-right">
<span> <a href="javascript:void(0);" data-action="launchFullscreen" class="hasTooltip" data-placement="bottom"
title="Full Screen"><i class="fa fa-arrows-alt"></i></a> </span>
</div>
<!-- end fullscreen button -->
<!-- back to Joomla administrator button -->
<div id="my-tore" class="btn-header transparent pull-right cursor-pointer">
<span> <a href="../<?php echo basename(JPATH_ADMINISTRATOR); ?>/index.php" class="hasTooltip" data-placement="bottom"
title="Back to Joomla Administrator"><i class="fa fa-joomla"></i></a> </span>
</div>
<!-- end back to Joomla administrator button -->
<!-- Go to Joomla frontend button -->
<div id="joomla" class="btn-header transparent pull-right cursor-pointer">
<span> <a href="../index.php" target="_blank" class="hasTooltip" data-placement="bottom"
title="View Site"><i class="fa fa-external-link"></i></a> </span>
</div>
<!-- end Go to Joomla frontend button -->
<!-- Go to Joomla frontend button -->
<div id="hide-menu" class="btn-header transparent pull-right cursor-pointer">
<span> <a href="#" class="hasTooltip" data-placement="bottom" data-menu="hidemenu"
title="Menu"><i class="fa fa-reorder"></i></a> </span>
</div>
<!-- end Go to Joomla frontend button -->
<!-- Sync media button -->
<div id="sync-media" class="btn-header transparent pull-right cursor-pointer">
<span> <a href="javascript:void(0)" class="hasTooltip" data-placement="bottom" data-action="sync-media" style="width: 135px;"
title="Refresh Media Uploads"><i class="fa fa-refresh"></i> <span class="text-normal"> <?php
echo JText::_('COM_SELLACIOUS_MEDIA_SYNC_BUTTON_LABEL') ?> </span></a> </span>
</div>
<!-- end Sync media button -->
<?php if ($this->countModules('header-right')): ?>
<jdoc:include type="modules" name="header-right" style="none"/>
<?php endif; ?>
</div>
<!-- end pulled right: nav area -->
<?php if (isset($helper) && ($helper->access->check('config.edit') || !$helper->access->isSubscribed())): ?>
<div id="context-news" class="pull-right padding-5"><!-- dynamic news --></div>
<?php endif; ?>
</header>
<!-- END HEADER -->
<!-- Left panel : Navigation area -->
<?php if ($this->countModules('left-panel') || $this->countModules('menu')) { ?>
<!-- Note: This width of the aside area can be adjusted through LESS variables -->
<aside id="left-panel">
<div class="login-info">
<span> <!-- User image size is adjusted inside CSS, it should stay as it -->
<a style="cursor:auto;" id="show-shortcut" data-action="toggleShortcut" href="index.php?option=com_sellacious&view=profile">
<!--<img src="templates/sellacious/images/avatars/male.png" alt="me" class="online"/>-->
<i class="fa fa-user"></i>
<span><?php echo $user->get('name'); ?></span>
</a>
</span>
</div>
<!-- User info -->
<?php if ($this->countModules('left-panel')) { ?>
<jdoc:include type="modules" name="left-panel" style="none"/>
<?php } ?>
<!-- end user info -->
<!-- NAVIGATION : This navigation is also responsive
To make this navigation dynamic please make sure to link the node
(the reference to the nav > ul) after page load. Or the navigation will not initialize.
-->
<!-- User info -->
<?php if ($this->countModules('menu')) { ?>
<jdoc:include type="modules" name="menu" style="none"/>
<?php } ?>
<!-- end user info -->
<span class="minifyme"> <i class="fa fa-arrow-circle-left hit"></i> </span>
</aside>
<!-- END NAVIGATION -->
<?php } ?>
<!-- End Left panel : Navigation area -->
<!-- MAIN PANEL -->
<div id="main" role="main">
<!-- RIBBON -->
<div id="ribbon">
<!-- breadcrumb -->
<?php if ($this->countModules('ribbon-left')) { ?>
<jdoc:include type="modules" name="ribbon-left" style="none"/>
<?php } ?>
<!-- end breadcrumb -->
<?php if ($this->countModules('ribbon-right')) { ?>
<span class="ribbon-button-alignment pull-right">
<jdoc:include type="modules" name="ribbon-right" style="none"/>
</span>
<?php } ?>
<div class="btn-headactions pull-right">
<i class="fa fa-book"></i> Documentation
<i class="fa fa-phone"></i> Support
<i class="fa fa-star"></i> Rate us on JED
</div>
</div>
<!-- END RIBBON -->
<?php if ($this->countModules('toolbar') || $this->countModules('title')) : ?>
<div class="box-toolbar">
<div class="">
<!-- col -->
<div class="pull-left">
<!-- PAGE HEADER -->
<jdoc:include type="modules" name="title"/>
</div>
<!-- end col -->
<!-- right side of the page with the sparkline graphs -->
<!-- col -->
<div class="pull-right">
<?php if ($this->countModules('toolbar')) : ?>
<span class="pull-right">
<jdoc:include type="modules" name="toolbar" style="none"/>
</span>
<?php endif; ?>
</div>
<!-- end col -->
</div>
</div>
<?php endif; ?>
<?php if ($this->countModules('top')) : ?>
<div class="row">
<div class="col-sm-12">
<jdoc:include type="modules" name="content-top" style="xhtml"/>
</div>
</div>
<?php endif; ?>
<?php if ($this->countModules('submenu')) : ?>
<div class="row">
<div class="col-sm-12">
<jdoc:include type="modules" name="submenu" style="none"/>
</div>
</div>
<?php endif; ?>
<div class="clearfix"></div>
<!-- MAIN CONTENT -->
<div id="content">
<?php if ($this->countModules('content-top')) { ?>
<div class="row">
<jdoc:include type="modules" name="content-top" style="none"/>
</div>
<?php } ?>
<div class="clearfix"></div>
<div class="component content-wrap">
<div id="system-message-container"><jdoc:include type="message" style="xhtml"/></div>
<div class="clearfix"></div>
<jdoc:include type="component" style="xhtml"/>
<div class="clearfix"></div>
</div>
<?php if ($this->countModules('content-bottom')) { ?>
<div class="row">
<jdoc:include type="modules" name="content-bottom" style="none"/>
</div>
<?php } ?>
</div>
<div class="clearfix"></div>
<!-- END MAIN CONTENT -->
</div>
<!-- END MAIN PANEL -->
<?php if ($this->countModules('footer')) { ?>
<jdoc:include type="modules" name="footer" style="none"/>
<?php } ?>
<jdoc:include type="modules" name="dynamic" style="xhtml"/>
<!-- Google Analytics code below -->
<?php if ($ga_code = $this->params->get('ga_code')) { ?>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '<?php echo htmlspecialchars($ga_code) ?>']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script');
ga.type = 'text/javascript';
ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();
</script>
<?php } ?>
</body>
</html>
I understand that I need this link,
<a href="<?php echo JRoute::_('index.php?option=com_sellacious&view=store&id=' . $item->get('seller_uid')); ?>">
<?php echo $item->get('seller_company', $item->get('seller_name')); ?></a>
but don't know how to implement it in the second file.
You need access to the view object from the sellacious product view in your file (i.e. the this in $sellers = **$this**->item->get('sellers')). Your file is a template file, and templates don't have access to the component view object - it's already been marked for garbage collection by the time the template renders. If you are only rendering the sellacious store links on pages that include the sellacious component, you could copy and store the data in JRegistry to use in the template. You could do this in a layout override from your template (layouts have access to their component's view object). If it's for use in your custom component or other components, you'd need to write model logic to pull the information from the database. In that case, I'd look at how the sellacious model is doing it and copy just the parts you need.
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>”;
?>
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.
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.
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.