Si in effetti ho inserito delle nuove posizioni in cui ho allocato i vari loghi e lo scroller news
Questo è il codice su cui ho fatto delle modifiche:
<?php
defined('_JEXEC') or die;
/**
*-------------------------------------------
* Szablon został wypalony w Diablodesign.
* Kontakt Tel.kom 666 977 944
* www.diablodesign.eu
* biuro@diablodesign.eu
*-------------------------------------------
*/
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'functions.php';
$document = $this;
$templateUrl = $document->baseurl . '/templates/' . $document->template;
Artx::load("Artx_Page");
$view = $this->artx = new ArtxPage($this);
$view->componentWrapper();
/** panel konfoguracyjny */
JHTML::_('behavior.framework', true);
/* The following line gets the application object for things like displaying the site name */
$app = JFactory::getApplication();
$tplparams = $app->getTemplate(true)->params;
//Template details
$facebook = htmlspecialchars($tplparams->get('facebook'));
$twitter = htmlspecialchars($tplparams->get('twitter'));
$digg = htmlspecialchars($tplparams->get('digg'));
$flickr = htmlspecialchars($tplparams->get('flickr'));
$youtube = htmlspecialchars($tplparams->get('youtube'));
$skype = htmlspecialchars($tplparams->get('skype'));
/**logo strony */
$logo = htmlspecialchars($tplparams->get('logo'));
$logotext = htmlspecialchars($tplparams->get('logotext'));
/**koniec logo strony */
/**footer*/
$footer = htmlspecialchars($tplparams->get('footer'));
$footer_link = htmlspecialchars($tplparams->get('footer_link'));
/**koniec footer */
/**animacja*/
$foto1 = htmlspecialchars($tplparams->get('foto1'));
$foto2 = htmlspecialchars($tplparams->get('foto2'));
$foto3 = htmlspecialchars($tplparams->get('foto3'));
$foto4 = htmlspecialchars($tplparams->get('foto4'));
$foto5 = htmlspecialchars($tplparams->get('foto5'));
/**koniec animacja*/
?>
<!DOCTYPE html>
<html dir="ltr" lang="<?php echo $document->language; ?>">
<head><!--animacja head start-->
<link rel="stylesheet" href="templates/dd_education_09/themes/default/default.css" type="text/css" media="screen" />
<link rel="stylesheet" href="templates/dd_education_09/themes/pascal/pascal.css" type="text/css" media="screen" />
<link rel="stylesheet" href="templates/dd_education_09/themes/orman/orman.css" type="text/css" media="screen" />
<link rel="stylesheet" href="templates/dd_education_09/css/nivo-slider.css" type="text/css" media="screen" />
<link rel="stylesheet" href="templates/dd_education_09/css/style.css" type="text/css" media="screen" />
<!--animacja head koniec-->
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $document->baseurl; ?>/templates/system/css/system.css" />
<link rel="stylesheet" href="<?php echo $document->baseurl; ?>/templates/system/css/general.css" />
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<link rel="stylesheet" href="<?php echo $templateUrl; ?>/css/template.css" media="screen">
<!--[if lte IE 7]><link rel="stylesheet" href="<?php echo $templateUrl; ?>/css/template.ie7.css" media="screen" /><![endif]-->
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Abel">
<script>if ('undefined' != typeof jQuery) document._artxJQueryBackup = jQuery;</script>
<script src="<?php echo $templateUrl; ?>/jquery.js"></script>
<script>jQuery.noConflict();</script>
<script src="<?php echo $templateUrl; ?>/script.js"></script>
<script>if (document._artxJQueryBackup) jQuery = document._artxJQueryBackup;</script>
<!--animacja script-->
<script type="text/javascript" src="templates/dd_education_09/js/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="templates/dd_education_09/js/jquery.nivo.slider.pack.js"></script>
<script type="text/javascript">
$(window).load(function() {
$('#slider').nivoSlider();
});
</script>
<!--koniec animacji script-->
<link href="css/template.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="dd-main">
<header class="dd-header clearfix"><?php echo $view->position('position-30', 'dd-nostyle'); ?>
<div class="dd-shapes">
<!-----------------------koniec animacja pliki graficzne----------------------->
</div>
<div class="dd-header-inner">
<div id="nuova1">
<jdoc:include type="modules" name="nuova1" style="xhtml" />
</div>
<div id="nuova2">
<jdoc:include type="modules" name="nuova2" style="xhtml" />
</div>
<div id="nuova3">
<jdoc:include type="modules" name="nuova3" style="xhtml" />
</div>
<?php if ($view->containsModules('position-1', 'position-28', 'position-29')) : ?>
<nav class="dd-nav clearfix">
<!--share icon-->
<div class="ikony"><div class="iko">
<!--wstawia link z panelu konfiguracyjnego-->
<?php if ( isset( $facebook ) && strlen( $facebook) > 0 ) : ?>
<a href="<?php echo $facebook; ?>">
<?php endif; ?>
<!-- koniec wstawia link z panelu konfiguracyjnego--><img src="templates/dd_education_09/images/share_icon/facebook_icon.png" width="31" height="31" /></a></div><div class="iko">
<!--wstawia link z panelu konfiguracyjnego-->
<?php if ( isset( $twitter ) && strlen( $twitter) > 0 ) : ?>
<a href="<?php echo $twitter; ?>">
<?php endif; ?>
<!-- koniec wstawia link z panelu konfiguracyjnego--><img src="templates/dd_education_09/images/share_icon/twitter_icon.png" width="31" height="31" /></a></div><div class="iko"> <!--wstawia link z panelu konfiguracyjnego-->
<?php if ( isset( $youtube) && strlen( $youtube) > 0 ) : ?>
<a href="<?php echo $youtube; ?>">
<?php endif; ?>
<!-- koniec wstawia link z panelu konfiguracyjnego--><img src="templates/dd_education_09/images/share_icon/youtube_icon.png" width="31" height="31" /></a></div><div class="iko"><!--wstawia link z panelu konfiguracyjnego-->
<?php if ( isset( $skype ) && strlen( $skype) > 0 ) : ?>
<a href="<?php echo $skype; ?>">
<?php endif; ?>
<!-- koniec wstawia link z panelu konfiguracyjnego--><img src="templates/dd_education_09/images/share_icon/skype_icon.png" width="31" height="31" /></a></div></div>
<!--koniec ikony-->
<?php if ($view->containsModules('position-28')) : ?>
<div class="dd-hmenu-extra1"><?php echo $view->position('position-28'); ?></div>
<?php endif; ?>
<?php if ($view->containsModules('position-29')) : ?>
<div class="dd-hmenu-extra2"><?php echo $view->position('position-29'); ?></div>
<?php endif; ?>
<?php echo $view->position('position-1'); ?>
</nav>
<?php endif; ?>
</div>
</header>
<div class="dd-sheet clearfix">
<?php echo $view->position('position-14b', 'dd-nostyle'); ?>
<?php echo $view->position('position-15', 'dd-nostyle'); ?>
<?php echo $view->positions(array('position-16' => 33, 'position-17' => 33, 'position-18' => 34), 'dd-block'); ?>
<div class="dd-layout-wrapper clearfix">
<div class="dd-content-layout">
<div class="dd-content-layout-row">
<div class="dd-layout-cell dd-content clearfix">
<?php
echo $view->position('position-19', 'dd-nostyle');
if ($view->containsModules('position-2'))
echo artxPost($view->position('position-2'));
echo $view->positions(array('position-20' => 50, 'position-21' => 50), 'dd-article');
echo $view->position('position-12', 'dd-nostyle');
echo artxPost(array('content' => '<jdoc:include type="message" />', 'classes' => ' dd-messages'));
echo '<jdoc:include type="component" />';
echo $view->position('position-22', 'dd-nostyle');
echo $view->positions(array('position-23' => 50, 'position-24' => 50), 'dd-article');
echo $view->position('position-25', 'dd-nostyle');
?>
</div>
<?php if ($view->containsModules('position-7', 'position-4', 'position-5')) : ?>
<div class="dd-layout-cell dd-sidebar1 clearfix">
<?php echo $view->position('position-7', 'dd-block'); ?>
<?php echo $view->position('position-4', 'dd-block'); ?>
<?php echo $view->position('position-5', 'dd-block'); ?>
</div>
<?php endif; ?>
</div>
</div>
</div><?php echo $view->positions(array('position-9' => 33, 'position-10' => 33, 'position-11' => 34), 'dd-block'); ?>
<?php echo $view->position('position-26', 'dd-nostyle'); ?>
<footer class="dd-footer clearfix">
<?php echo $view->position('position-27', 'dd-nostyle'); ?>
</footer>
</div>
<p class="dd-page-footer">
</a>Copyright © 2013.<!--wstawia link z panelu konfiguracyjnego-->
<?php if ( isset( $footer_link ) && strlen( $footer_link) > 0 ) : ?>
<a href="<?php echo $footer_link ?>">
<?php endif; ?>
<!-- koniec wstawia link z panelu konfiguracyjnego-->
<?php if ($footer!= null ): ?>
<?php echo htmlspecialchars($footer); ?>
<?php endif; ?>
</a></p>
<p class="dd-page-footer">Developed by TDG --- Designed by <a href="http://www.diablodesign.eu" target="_blank">www.diablodesign.eu</a>.</p>
</p>
</div>
<?php echo $view->position('debug'); ?>
</body>
</html>
Ho provato a togliere le posizioni "nuova1,2,3" e a collocarle in altre parti ma comunque lo spazio vuoto rimane, quindi non penso dipenda dalle nuove posizioni aggiunte ma da <div class="dd-header-inner">
. Devo dire che nel template aveva di default uno scroller immagini che ho tolto e che si collocava proprio dove rimane lo spazio vuoto pensavo che eliminandolo conseguentemente gli elementi sottostanti si alzassero automaticamente, ma non è cosi questo è il codice originale:
<?php
defined('_JEXEC') or die;
/**
*-------------------------------------------
* Szablon został wypalony w Diablodesign.
* Kontakt Tel.kom 666 977 944
* www.diablodesign.eu
* biuro@diablodesign.eu
*-------------------------------------------
*/
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'functions.php';
$document = $this;
$templateUrl = $document->baseurl . '/templates/' . $document->template;
Artx::load("Artx_Page");
$view = $this->artx = new ArtxPage($this);
$view->componentWrapper();
/** panel konfoguracyjny */
JHTML::_('behavior.framework', true);
/* The following line gets the application object for things like displaying the site name */
$app = JFactory::getApplication();
$tplparams = $app->getTemplate(true)->params;
//Template details
$facebook = htmlspecialchars($tplparams->get('facebook'));
$twitter = htmlspecialchars($tplparams->get('twitter'));
$digg = htmlspecialchars($tplparams->get('digg'));
$flickr = htmlspecialchars($tplparams->get('flickr'));
$youtube = htmlspecialchars($tplparams->get('youtube'));
$skype = htmlspecialchars($tplparams->get('skype'));
/**logo strony */
$logo = htmlspecialchars($tplparams->get('logo'));
$logotext = htmlspecialchars($tplparams->get('logotext'));
/**koniec logo strony */
/**footer*/
$footer = htmlspecialchars($tplparams->get('footer'));
$footer_link = htmlspecialchars($tplparams->get('footer_link'));
/**koniec footer */
/**animacja*/
$foto1 = htmlspecialchars($tplparams->get('foto1'));
$foto2 = htmlspecialchars($tplparams->get('foto2'));
$foto3 = htmlspecialchars($tplparams->get('foto3'));
$foto4 = htmlspecialchars($tplparams->get('foto4'));
$foto5 = htmlspecialchars($tplparams->get('foto5'));
/**koniec animacja*/
?>
<!DOCTYPE html>
<html dir="ltr" lang="<?php echo $document->language; ?>">
<head><!--animacja head start-->
<link rel="stylesheet" href="templates/dd_education_09/themes/default/default.css" type="text/css" media="screen" />
<link rel="stylesheet" href="templates/dd_education_09/themes/pascal/pascal.css" type="text/css" media="screen" />
<link rel="stylesheet" href="templates/dd_education_09/themes/orman/orman.css" type="text/css" media="screen" />
<link rel="stylesheet" href="templates/dd_education_09/css/nivo-slider.css" type="text/css" media="screen" />
<link rel="stylesheet" href="templates/dd_education_09/css/style.css" type="text/css" media="screen" />
<!--animacja head koniec-->
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $document->baseurl; ?>/templates/system/css/system.css" />
<link rel="stylesheet" href="<?php echo $document->baseurl; ?>/templates/system/css/general.css" />
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<link rel="stylesheet" href="<?php echo $templateUrl; ?>/css/template.css" media="screen">
<!--[if lte IE 7]><link rel="stylesheet" href="<?php echo $templateUrl; ?>/css/template.ie7.css" media="screen" /><![endif]-->
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Abel">
<script>if ('undefined' != typeof jQuery) document._artxJQueryBackup = jQuery;</script>
<script src="<?php echo $templateUrl; ?>/jquery.js"></script>
<script>jQuery.noConflict();</script>
<script src="<?php echo $templateUrl; ?>/script.js"></script>
<script>if (document._artxJQueryBackup) jQuery = document._artxJQueryBackup;</script>
<!--animacja script-->
<script type="text/javascript" src="templates/dd_education_09/js/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="templates/dd_education_09/js/jquery.nivo.slider.pack.js"></script>
<script type="text/javascript">
$(window).load(function() {
$('#slider').nivoSlider();
});
</script>
<!--koniec animacji script-->
<link href="css/template.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="dd-main">
<header class="dd-header clearfix"><?php echo $view->position('position-30', 'dd-nostyle'); ?>
<div class="dd-shapes">
<div class="dd-object1098063759" data-left="100%"></div>
<!-------------animacja pliki graficzne--------------------------------------->
<div class="animacja">
<div id="wrapper">
<div class="slider-wrapper theme-default">
<div class="ribbon"></div>
<div id="slider" class="nivoSlider">
<!--pliki graficzne animacji-->
<img src="<?php echo $this->baseurl ?>/<?php echo htmlspecialchars($foto1); ?>" style="margin:0 auto; max-width:673px; max-height:332px;"/>
<img src="<?php echo $this->baseurl ?>/<?php echo htmlspecialchars($foto2); ?>" style="margin:0 auto; max-width:673px; max-height:332px;"/>
<img src="<?php echo $this->baseurl ?>/<?php echo htmlspecialchars($foto3); ?>" style="margin:0 auto; max-width:673px; max-height:332px;"/>
<img src="<?php echo $this->baseurl ?>/<?php echo htmlspecialchars($foto4); ?>" style="margin:0 auto; max-width:673px; max-height:332px;"/>
<img src="<?php echo $this->baseurl ?>/<?php echo htmlspecialchars($foto5); ?>" style="margin:0 auto; max-width:673px; max-height:332px;"/>
<!--koniec pliki graficzne-->
</div>
</div>
</div>
</div>
<!-----------------------koniec animacja pliki graficzne----------------------->
</div>
<div class="dd-header-inner">
<div id="nuova1">
<jdoc:include type="modules" name="nuova1" style="xhtml" />
</div>
<div id="nuova2">
<jdoc:include type="modules" name="nuova2" style="xhtml" />
</div>
<div id="nuova3">
<jdoc:include type="modules" name="nuova3" style="xhtml" />
</div>
<?php if ($view->containsModules('position-1', 'position-28', 'position-29')) : ?>
<nav class="dd-nav clearfix">
<!--share icon-->
<div class="ikony"><div class="iko">
<!--wstawia link z panelu konfiguracyjnego-->
<?php if ( isset( $facebook ) && strlen( $facebook) > 0 ) : ?>
<a href="<?php echo $facebook; ?>">
<?php endif; ?>
<!-- koniec wstawia link z panelu konfiguracyjnego--><img src="templates/dd_education_09/images/share_icon/facebook_icon.png" width="31" height="31" /></a></div><div class="iko">
<!--wstawia link z panelu konfiguracyjnego-->
<?php if ( isset( $twitter ) && strlen( $twitter) > 0 ) : ?>
<a href="<?php echo $twitter; ?>">
<?php endif; ?>
<!-- koniec wstawia link z panelu konfiguracyjnego--><img src="templates/dd_education_09/images/share_icon/twitter_icon.png" width="31" height="31" /></a></div><div class="iko"> <!--wstawia link z panelu konfiguracyjnego-->
<?php if ( isset( $digg ) && strlen( $digg) > 0 ) : ?>
<a href="<?php echo $digg; ?>">
<?php endif; ?>
<!-- koniec wstawia link z panelu konfiguracyjnego--><img src="templates/dd_education_09/images/share_icon/digg_icon.png" width="31" height="31" /></a></div><div class="iko"> <!--wstawia link z panelu konfiguracyjnego-->
<?php if ( isset( $flickr ) && strlen( $flickr) > 0 ) : ?>
<a href="<?php echo $flickr; ?>">
<?php endif; ?>
<!-- koniec wstawia link z panelu konfiguracyjnego--><img src="templates/dd_education_09/images/share_icon/flickr_icon.png" width="31" height="31" /></a></div><div class="iko"><!--wstawia link z panelu konfiguracyjnego-->
<?php if ( isset( $youtube) && strlen( $youtube) > 0 ) : ?>
<a href="<?php echo $youtube; ?>">
<?php endif; ?>
<!-- koniec wstawia link z panelu konfiguracyjnego--><img src="templates/dd_education_09/images/share_icon/youtube_icon.png" width="31" height="31" /></a></div><div class="iko"><!--wstawia link z panelu konfiguracyjnego-->
<?php if ( isset( $skype ) && strlen( $skype) > 0 ) : ?>
<a href="<?php echo $skype; ?>">
<?php endif; ?>
<!-- koniec wstawia link z panelu konfiguracyjnego--><img src="templates/dd_education_09/images/share_icon/skype_icon.png" width="31" height="31" /></a></div></div>
<!--koniec ikony-->
<?php if ($view->containsModules('position-28')) : ?>
<div class="dd-hmenu-extra1"><?php echo $view->position('position-28'); ?></div>
<?php endif; ?>
<?php if ($view->containsModules('position-29')) : ?>
<div class="dd-hmenu-extra2"><?php echo $view->position('position-29'); ?></div>
<?php endif; ?>
<?php echo $view->position('position-1'); ?>
</nav>
<?php endif; ?>
</div>
</header>
<div class="dd-sheet clearfix">
<?php echo $view->position('position-14b', 'dd-nostyle'); ?>
<?php echo $view->position('position-15', 'dd-nostyle'); ?>
<?php echo $view->positions(array('position-16' => 33, 'position-17' => 33, 'position-18' => 34), 'dd-block'); ?>
<div class="dd-layout-wrapper clearfix">
<div class="dd-content-layout">
<div class="dd-content-layout-row">
<div class="dd-layout-cell dd-content clearfix">
<?php
echo $view->position('position-19', 'dd-nostyle');
if ($view->containsModules('position-2'))
echo artxPost($view->position('position-2'));
echo $view->positions(array('position-20' => 50, 'position-21' => 50), 'dd-article');
echo $view->position('position-12', 'dd-nostyle');
echo artxPost(array('content' => '<jdoc:include type="message" />', 'classes' => ' dd-messages'));
echo '<jdoc:include type="component" />';
echo $view->position('position-22', 'dd-nostyle');
echo $view->positions(array('position-23' => 50, 'position-24' => 50), 'dd-article');
echo $view->position('position-25', 'dd-nostyle');
?>
</div>
<?php if ($view->containsModules('position-7', 'position-4', 'position-5')) : ?>
<div class="dd-layout-cell dd-sidebar1 clearfix">
<?php echo $view->position('position-7', 'dd-block'); ?>
<?php echo $view->position('position-4', 'dd-block'); ?>
<?php echo $view->position('position-5', 'dd-block'); ?>
</div>
<?php endif; ?>
</div>
</div>
</div><?php echo $view->positions(array('position-9' => 33, 'position-10' => 33, 'position-11' => 34), 'dd-block'); ?>
<?php echo $view->position('position-26', 'dd-nostyle'); ?>
<footer class="dd-footer clearfix">
<?php echo $view->position('position-27', 'dd-nostyle'); ?>
</footer>
</div>
<p class="dd-page-footer">
</a>Copyright © 2012.<!--wstawia link z panelu konfiguracyjnego-->
<?php if ( isset( $footer_link ) && strlen( $footer_link) > 0 ) : ?>
<a href="<?php echo $footer_link ?>">
<?php endif; ?>
<!-- koniec wstawia link z panelu konfiguracyjnego-->
<?php if ($footer!= null ): ?>
<?php echo htmlspecialchars($footer); ?>
<?php endif; ?>
</a></p>
<p class="dd-page-footer">Designed by <a href="http://www.diablodesign.eu" target="_blank">www.diablodesign.eu</a>.</p>
</p>
</div>
<?php echo $view->position('debug'); ?>
</body>
</html>