Hey there guys,
although I've been coding PHP for quite a while now, I'm relatively clueless when it comes to Drupal and Drupal themes.
I've decided to use Drupal for a little project and create a custom theme for the website. I'm using latest version of Zen and Drupal 7.4.
Here's the problem:
I've modified page.tpl.php to move the main menu to #header instead of #navigation. What I'm trying to achieve is a main menu positioned to the right of my logo. Here are the modifications:
<div id="header">
// Unrelated stuff
<?php if ($main_menu): ?>
<?php print theme('links__system_main_menu', array(
'links' => $main_menu,
'attributes' => array(
'id' => 'main-menu',
'class' => array('links', 'inline', 'clearfix'),
),
'heading' => array(
'text' => t('Main menu'),
'level' => 'h2',
'class' => array('element-invisible'),
),
)); ?>
<?php endif; ?>
</div>
// More unrelated code
<div id="content">
// Render content
<?php if ($page['navigation']): ?>
<div id="navigation"><div class="section clearfix">
<?php print render($page['navigation']); ?>
</div></div><!-- /.section, /#navigation -->
<?php endif; ?>
</div>