PDA

Zobacz pełną wersję : drugie menu z parametrami głównego



zabulinek
24-11-2012, 17:11
witam
mam taki mały problem, glowne poziome menu znajduje się pod header w pozycji user 3 na calej szerokości arkusza, chciałbym utworzyc takie samo tzn. ze wszystkimi parametrami jak menu w user 3 tylko w innej pozycji oraz zmienić szerokość na powiedzmy 1/4 strony - nad header. dodałem nowa pozycje w pliku templatedetalis, ale nietety mam problem z kodem w index.php. probowalem juz go zmieniac na wszystkie sposoby ale cos mi nie wychodzi, czy moglby ktos zerknac :) czy moze lepiej stworzyc dodatkowy css dla tej pozycji, a nie opierac sie na istniejacym, chociaz to wiecej pracy.
niestety strona jest wylaczona i jeszcze w rozsypce wiec nie podam adresu.


<?php
defined('_JEXEC') or die;

/**
* Template for Joomla! CMS, created with Artisteer.
* See readme.txt for more details on how to use the template.
*/

// Check if the template is compatible with the currently used Joomla version:
$version = new JVersion();
if ('1.5' != $version->RELEASE)
exit('This template is not compatible with Joomla ' . $version->RELEASE . ' and should be replaced.');

require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'functions.php';

// Create alias for $this object reference:
$document = & $this;

// Shortcut for the template base url:
$templateUrl = $document->baseurl . '/templates/' . $document->template;

ArtxLoadClass("Artx_Page");

// Initialize $view:
$view = $this->artx = new ArtxPage($this);

// Decorate component with Artisteer style:
$view->componentWrapper();

?>
<!DOCTYPE html>
<html dir="ltr" lang="<?php echo $document->language; ?>">
<head>
<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" />

<!-- Created by Artisteer v4.0.0.58475 -->


<meta name="viewport" content="initial-scale = 1.0, maximum-scale = 1.0, user-scalable = no, width = device-width">

<!--[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" href="<?php echo $templateUrl; ?>/css/template.responsive.css" media="all">


<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>
<script src="<?php echo $templateUrl; ?>/script.responsive.js"></script>
</head>
<body>

<div id="art-main">
<div class="art-sheet clearfix">



<header class="art-header clearfix"><?php echo $view->position('header', 'art-nostyle'); ?>


<div class="art-shapes">


</div>



</header>
<?php if ($view->containsModules('user3', 'extra1', 'extra2')) : ?>
<nav class="art-nav clearfix">

<?php if ($view->containsModules('extra1')) : ?>
<div class="art-hmenu-extra1"><?php echo $view->position('extra1'); ?></div>
<?php endif; ?>
<?php if ($view->containsModules('extra2')) : ?>
<div class="art-hmenu-extra2"><?php echo $view->position('extra2'); ?></div>
<?php endif; ?>
<?php echo $view->position('user3'); ?>

</nav>
<?php endif; ?>
<?php echo $view->position('banner1', 'art-nostyle'); ?>
<?php echo $view->positions(array('top1' => 33, 'top2' => 33, 'top3' => 34), 'art-block'); ?>
<div class="art-layout-wrapper clearfix">
<div class="art-content-layout">
<div class="art-content-layout-row">
<?php if ($view->containsModules('left')) : ?>
<div class="art-layout-cell art-sidebar1 clearfix">
<?php echo $view->position('left', 'art-block'); ?>




</div>
<?php endif; ?>
<div class="art-layout-cell art-content clearfix">
<?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-article');
echo $view->position('banner3', 'art-nostyle');
echo artxPost(array('content' => '<jdoc:include type="message" />', 'classes' => ' art-messages'));
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>
</div>
</div>
</div>
<?php echo $view->positions(array('bottom1' => 33, 'bottom2' => 33, 'bottom3' => 34), 'art-block'); ?>
<?php echo $view->position('banner6', 'art-nostyle'); ?>

<footer class="art-footer clearfix"><?php echo $view->position('copyright', 'art-nostyle'); ?></footer>

</div>
<p class="art-page-footer">
<span id="art-footnote-links">Designed by Artisteer.</span>
</p>
</div>



<?php echo $view->position('debug'); ?>
</body>
</html>