Rieccoli:
COMPONENT.PHP
<?php
/**
* @package Joomla.Site
* @subpackage Templates.beez_20
* @copyright Copyright (C) 2005 - 2012 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;
$color = $this->params->get('templatecolor');
?>
<!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; ?>" dir="<?php echo $this->direction; ?>">
<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/style.css" type="text/css" />
<?php
$files = JHtml::_('stylesheet', 'templates/'.$this->template.'/css/general.css', null, false, true);
if ($files):
if (!is_array($files)):
$files = array($files);
endif;
foreach($files as $file):
?>
<link rel="stylesheet" href="<?php echo $file;?>" type="text/css" />
<?php
endforeach;
endif;
?>
<?php if($this->direction == 'rtl') : ?>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/template_rtl.css" type="text/css" />
<?php endif; ?>
<!--[if lte IE 6]>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/ieonly.css" rel="stylesheet" type="text/css" />
<![endif]-->
</head>
<body class="contentpane">
<div id="all">
<div id="main">
<jdoc:include type="message" />
<jdoc:include type="component" />
<>
<>
</body>
</html>
INDEX.PHP
<?php
$app = JFactory::getApplication();
$doc = JFactory::getDocument();
$user = JFactory::getUser();
$templateparams = $app->getTemplate(true)->params;
$this->language = $doc->language;
$this->direction = $doc->direction;
// Social icons
$soc["twitter"] = $this->params->get("twitter");
$soc["facebook"] = $this->params->get("facebook");
$soc["flickr"] = $this->params->get("flickr");
$soc["friendfeed"] = $this->params->get("friendfeed");
$soc["delicious"] = $this->params->get("delicious");
$soc["digg"] = $this->params->get("digg");
$soc["lastfm"] = $this->params->get("lastfm");
$soc["linkedin"] = $this->params->get("linkedin");
$soc["youtube"] = $this->params->get("youtube");
$soc["feed"] = $this->params->get("feed");
$soc["pinterest"] = $this->params->get("pinterest");
$soc["google"] = $this->params->get("google");
$soc["dribbble"] = $this->params->get("dribbble");
$soc["vimeo"] = $this->params->get("vimeo");
$soc["blogger"] = $this->params->get("blogger");
$soc["myspace"] = $this->params->get("myspace");
$soc["yahoo"] = $this->params->get("yahoo");
// count Modules
$left = $this->countModules('SidebarLeft');
$right = $this->countModules('SidebarRight');
$search = $this->countModules('Search');
$topmenu = $this->countModules('topMenu');
$copyrights = $this->params->get("copyrights");
// Add Stylesheets
$doc->addStyleSheet($this->baseurl."/templates/".$this->template."/css/style.css");
$doc->addStyleSheet($this->baseurl."/templates/".$this->template."/css/font-awesome.css");
$doc->addStyleSheet($this->baseurl."/templates/".$this->template."/bootstrap/css/bootstrap.css");
$doc->addStyleSheet($this->baseurl."/templates/".$this->template."/bootstrap/css/bootstrap-responsive.css");
// Add Script
$doc->addScript($this->baseurl."/templates/".$this->template."/javascript/custom.js");
if(version_compare(JVERSION,"3.0.0","ge")){
JHtml::_('bootstrap.framework');
} else {
$doc->addScript($this->baseurl."/templates/".$this->template."/bootstrap/js/bootstrap.js");
}
?>
<!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 name="viewport" content="width=device-width, initial-scale=1.0">
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/javascript/jquery.min.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Oswald:300' rel='stylesheet' type='text/css'>
<!--[if lt IE 9]>
<link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Oswald:300' rel='stylesheet' type='text/css'>
<![endif]-->
<link href='http://fonts.googleapis.com/css?family=Comfortaa:400,300,700|Abel|Dosis:400,200,300,500,600,700,800|Droid+Sans:400,700|Francois+One|Lato:400,100,300,400italic,300italic,100italic,700,700italic,900,900italic|Lobster|Lora:400,400italic,700,700italic|Oxygen:400,300,700|PT+Sans+Narrow:400,700|PT+Sans:400,400italic,700,700italic|Prosto+One|Quicksand:400,300,700|Roboto+Condensed:400,300,300italic,400italic,700,700italic|Share:400,400italic,700,700italic|Source+Sans+Pro:400,200,200italic,300,300italic,400italic,600,600italic,700,700italic,900,900italic|Ubuntu+Condensed|Ubuntu:400,300,300italic,400italic,500,500italic,700,700italic|Roboto:400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900,900italic&subset=latin,cyrillic-ext,latin-ext,cyrillic' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<jdoc:include type="head" />
<script type="text/javascript"><?php echo $this->params->get('tracking_code')?></script>
<!--[if IE 7]> <link type="text/css" rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/style_ie7.css" /> <![endif]-->
<!--[if IE 8]> <link type="text/css" rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/style_ie8.css" /> <![endif]-->
<!--[if IE 9]> <link type="text/css" rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/style_ie9.css" /> <![endif]-->
</head>
<style type="text/css">
body {
font-family:<?php echo $this->params->get('body_font', 'Arial, sans-serif') ?>;
background-color:<?php echo $this->params->get('body_color')?>;
background-image: url('<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/images/<?php echo $this->params->get('body_background')?>');
}
a {
color:<?php echo $this->params->get('body_link_color')?>;
text-decoration:<?php echo $this->params->get('body_underline', 'underline')?>;
font-family:<?php echo $this->params->get('links_font', 'Arial, sans-serif')?>;
}
a:hover {
color:<?php echo $this->params->get('body_link_hover_color')?>;
text-decoration:<?php echo $this->params->get('body_hover_underline')?>;
}
.top_menu li a {
color:<?php echo $this->params->get('top_menu_color')?>;
text-decoration:<?php echo $this->params->get('top_menu_underline', 'underline')?>;
font-family:<?php echo $this->params->get('top_menu_font', 'Arial, sans-serif')?>;
}
.top_menu li a:hover {
color:<?php echo $this->params->get('top_menu_hover_color')?>;
text-decoration:<?php echo $this->params->get('top_menu_hover_underline')?>;
}
.main_menu li a {
color:<?php echo $this->params->get('main_menu_color')?>;
text-decoration:<?php echo $this->params->get('main_menu_underline', 'underline')?>;
font-family:<?php echo $this->params->get('main_menu_font', 'Arial, sans-serif')?>;
}
.main_menu li a:hover {
color:<?php echo $this->params->get('main_menu_hover_color')?>;
text-decoration:<?php echo $this->params->get('main_menu_hover_underline')?>;
}
.footer a {
color:<?php echo $this->params->get('menu_footer_color')?>;
text-decoration:<?php echo $this->params->get('menu_footer_underline', 'underline')?>;
font-family:<?php echo $this->params->get('footer_font', 'Arial, sans-serif')?>;
}
.footer a:hover {
color:<?php echo $this->params->get('menu_footer_hover_color')?>;
text-decoration:<?php echo $this->params->get('menu_footer_hover_underline')?>;
}
h1 {font-family:<?php echo $this->params->get('h1_font', 'Arial, sans-serif')?>;}
h2 {font-family:<?php echo $this->params->get('h2_font', 'Arial, sans-serif')?>;}
h3 {font-family:<?php echo $this->params->get('h3_font', 'Arial, sans-serif')?>;}
h4 {font-family:<?php echo $this->params->get('h4_font', 'Arial, sans-serif')?>;}
h5 {font-family:<?php echo $this->params->get('h5_font', 'Arial, sans-serif')?>;}
h6 {font-family:<?php echo $this->params->get('h6_font', 'Arial, sans-serif')?>;}
</style>
<body>
<div class="header">
<div class="container">
<div class="row-fluid">
<div class="span12">
<div class="row-fluid top-links">
<div class="span6"><div class="email_top"><jdoc:include type="modules" name="email_top" style="xhtml" /><><>
<div class="span6">
<div class="soc_icons_box">
<ul class="soc_icons" >
<?php foreach($soc as $key => $value) {
if ($value != null) { ?>
<li><a href="<?php echo $value ?>" class="<?php echo $key ?>" target="_blank" rel="nofollow">[/url]</li>
<?php } } ?>
</ul>
<>
<>
<>
<div class="row-fluid menu_top">
<div class="span2">
<div id="logo">
<a href="<?php echo $this->params->get('logo_link')?>"><img style=" border:none; width:<?php echo $this->params->get('logo_width')?>px; height:<?php echo $this->params->get('logo_height')?>px; " src="<?php echo $this->params->get('logo_file')?>" alt="Logo" />[/url]
<>
<>
<div class="span10">
<div class="globalMenu row-fluid">
<div class="navbar navbar-inverse">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
[/url]
<div class="nav-collapse collapse">
<jdoc:include type="modules" name="Mainmenu" style="xhtml" />
<>
<>
<>
<>
<>
<>
<>
<>
<>
<>
<> <!--header-->
<?php if ($this->countModules('Slideshow')): ?>
<div class="bgslide">
<div class="row-fluid">
<div class="span12">
<jdoc:include type="modules" name="Slideshow" style="xhtml" />
<>
<>
<>
<?php endif; ?>
<div class="wrap_content container">
<?php if ($this->countModules('Search')): ?>
<div class="row-fluid search">
<div class="span12"><jdoc:include type="modules" name="Search" style="xhtml" /><>
<>
<?php endif; ?>
<?php if ($this->countModules('Cars')): ?>
<div class="row-fluid new-cars">
<div class="span12"><jdoc:include type="modules" name="Cars" style="xhtml" /><>
<>
<?php endif; ?>
<?php if ($this->countModules('Top_cars')): ?>
<div class="row-fluid top-cars">
<div class="span12"><jdoc:include type="modules" name="Top_cars" style="xhtml" /><>
<>
<?php endif; ?>
<div id="globalContent">
<div id="contentBox">
<div><jdoc:include type="message" /><>
<div><jdoc:include type="component" /><>
<jdoc:include type="modules" name="stylechanger" style="xhtml" />
<jdoc:include type="modules" name="location_map" style="xhtml" />
<>
<> <!--globalContent-->
<> <!--wrap_content-->
<div class="footer">
<div class="container">
<div class="row-fluid">
<div class="span12">
<div class="row-fluid">
<div class="span4 bootom1"><jdoc:include type="modules" name="bottom1" style="xhtml" /><>
<div class="span4 bootom2"><jdoc:include type="modules" name="bootom2" style="xhtml" /><>
<div class="span4 bootom3"><jdoc:include type="modules" name="bootom3" style="xhtml" /><>
<>
<>
<>
<div class="content_footer row-fluid">
<center>
<div id="copyrights">
<?php echo $copyrights; ?>
<>
</center>
<> <!--content_footer-->
<?php if ($this->countModules('Debug')): ?>
<div class="row-fluid">
<div class="span12">
<jdoc:include type="modules" name="Debug" style="xhtml" />
<>
<>
<?php endif; ?>
<>
<> <!--footer-->
</body>
</html>
Non so se stavolta si vede tutto, ma ho fatto copia e incolla tra i tag.
Capisco, ma già il vostro aiuto è prezioso per chi come me sta ancora imparando. Proverò a scrivere allo sviluppatore anche se non so e il supporto sia valido perchè il quickstart era gratuito. Grazie di nuovo.