Ecco l'index.php....
Ho creato la posizione modulo facefan, ma dovrei inserire nell'index il relativo php... ma in che punto?
dovrei mettere qualcosa del genere:
<?php if ($this->countModules('facefan')) : ?>
<div id="facefan_div">
<jdoc:include type="modules" name="facefan" style="xhtml" />
</div>
<?php endif; ?>
<?php
/**
* Template for Joomla! CMS, created with Artisteer.
* See readme.txt for more details on how to use the template.
*/
defined('_JEXEC') or die;
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'functions.php';
// Create alias for $this object reference.
$document = & $this;
// Shortcut for template base url.
$templateUrl = $document->baseurl . '/templates/' . $document->template;
// Initialize version-specific view.
$view = $this->artx = ('1.6' == $GLOBALS['version']->RELEASE) ? new ArtxPage16($this) : new ArtxPage15($this);
// Decorate component with Artisteer style.
$view->componentWrapper();
?>
<!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 $document->language; ?>" lang="<?php echo $document->language; ?>">
<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $document->baseurl; ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $document->baseurl; ?>/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="<?php echo $templateUrl; ?>/css/template.css" media="screen" />
<!--[if IE 6]><link rel="stylesheet" href="<?php echo $templateUrl; ?>/css/template.ie6.css" type="text/css" media="screen" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" href="<?php echo $templateUrl; ?>/css/template.ie7.css" type="text/css" media="screen" /><![endif]-->
<script type="text/javascript" src="<?php echo $templateUrl; ?>/script.js"></script>
<script type="text/javascript">stLight.options({publisher:'e7d89728-efa7-4bce-bfa1-810110ed82bd'});</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-21415849-1']);
_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>
</head>
<body class="<?php echo $view->bodyClass(); ?>">
<div id="art-main">
<?php /*Modifica posizione modulo login */?>
<?php if ($this->countModules('login')) : ?>
<div id="nuovo_div">
<jdoc:include type="modules" name="login" style="xhtml" />
</div>
<?php endif; ?>
<?php /*Fine aggiunta nuova posizione modulo*/?>
<?php /*Modifica - posizione modulo traduttore */?>
<?php if ($this->countModules('traduttore')) : ?>
<div id="Traduttore_div">
<jdoc:include type="modules" name="traduttore" style="xhtml" />
</div>
<?php endif; ?>
<?php /*Fine aggiunta nuova posizione modulo*/?>
<?php /*Modifica - posizione modulo topadsense */?>
<?php if ($this->countModules('topadsense')) : ?>
<div id="topadsense_div">
<jdoc:include type="modules" name="topadsense" style="xhtml" />
</div>
<?php endif; ?>
<?php /*Fine aggiunta nuova posizione modulo*/?>
<div class="art-sheet">
<div class="art-sheet-tl"></div>
<div class="art-sheet-tr"></div>
<div class="art-sheet-bl"></div>
<div class="art-sheet-br"></div>
<div class="art-sheet-tc"></div>
<div class="art-sheet-bc"></div>
<div class="art-sheet-cl"></div>
<div class="art-sheet-cr"></div>
<div class="art-sheet-cc"></div>
<div class="art-sheet-body">
<div class="art-header">
<div class="art-header-png"></div>
<div class="art-header-jpeg"></div>
<div class="art-logo">
<h1 id="name-text" class="art-logo-name"><a href="<?php echo $document->baseurl; ?>/">Salina Live</a></h1>
<div id="slogan-text" class="art-logo-text">Eolie, le isole del vento e del fuoco.</div>
</div>
</div>
<?php if ($view->containsModules('user3', 'extra1', 'extra2')) : ?>
<div class="art-nav">
<div class="l"></div>
<div class="r"></div>
<?php if ($view->containsModules('extra1')) : ?>
<div class="art-menu-extra1"><?php echo $view->position('extra1'); ?></div>
<?php endif; ?>
<?php if ($view->containsModules('extra2')) : ?>
<div class="art-menu-extra2"><?php echo $view->position('extra2'); ?></div>
<?php endif; ?>
<?php echo $view->position('user3'); ?>
</div>
<?php endif; ?>
<?php echo $view->position('banner1', 'art-nostyle'); ?>
<?php echo $view->positions(array('top1' => 80, 'top3' => 20), 'art-nostyle'); /* modifica - art-block - 'top2' => 0,*/ ?>
<div class="art-content-layout">
<div class="art-content-layout-row">
<div class="art-layout-cell art-<?php echo $view->contentCellClass(array('content' => 'content', 'left' => 'sidebar1')); ?>">
<?php
echo $view->position('banner2', 'art-nostyle');
if ($view->containsModules('breadcrumb'))
echo artxPost($view->position('breadcrumb'));
echo $view->positions(array('user1' => 50, 'user2' => 50), 'art-nostyle'); /*modifica- art-article*/
echo $view->position('banner3', 'art-nostyle');
if ($view->hasMessages())
echo artxPost('<jdoc:include type="message" />');
echo '<jdoc:include type="component" />';
echo $view->position('banner4', 'art-nostyle');
echo $view->positions(array('user4' => 50, 'user5' => 50), 'art-article');
echo $view->position('banner5', 'art-nostyle');
?>
</div>
<?php if ($view->containsModules('right')) : ?>
<div class="art-layout-cell art-sidebar1">
<?php echo $view->position('right', 'art-block'); ?>
</div>
<?php endif; ?>
</div>
</div>
<div class="cleared"></div>
<?php echo $view->positions(array('bottom1' => 33, 'bottom2' => 33, 'bottom3' => 34), 'art-block'); ?>
<?php echo $view->position('banner6', 'art-nostyle'); ?>
<div class="art-footer">
<div class="art-footer-t"></div>
<div class="art-footer-l"></div>
<div class="art-footer-b"></div>
<div class="art-footer-r"></div>
<div class="art-footer-body">
<div class="art-footer-text">
<?php if ($view->containsModules('copyright')): ?>
<?php echo $view->position('copyright', 'art-nostyle'); ?>
<?php else: ?>
<?php ob_start(); ?>
<p>Copyright © 2011 ---.<br />
All Rights Reserved.</p>
<?php echo str_replace('%YEAR%', date('Y'), ob_get_clean()); ?>
<?php endif; ?>
</div>
<div class="cleared"></div>
</div>
</div>
<div class="cleared"></div>
</div>
</div>
<div class="cleared"></div>
<p class="art-page-footer">
<a><img src="http://www.salinalive.it/components/com_virtuemart/themes/default/images/icona90x90.gif" alt="Salinalive-isole eolie" height="45" width="88" /></a><a href="http://www.salinalive.it/">SALINALIVE </a> di Fiordalisi - P.IVA: 02079370512
<a href="http://validator.w3.org/check?uri=http%3A%2F%2Fwww.salinalive.it%2F"><img
src="http://www.w3.org/Icons/valid-xhtml10-blue" alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a><a href="http://www.joomla.it/">JOOMLA TEMPLATE</a> created by DANIELE FIORDALISI</p>
</div>
<?php echo $view->position('debug'); ?>
</body>
</html>