I know this is a dumb question but, I need to ask it because I haven't found an example of how to do it...
I am creating a theme that has a horizontal navigation bar between the header and the content (like a million other sites). I have this code, that prints the navigation bar and attempts to print the search form:
<div id="nav" class="container_12">
<?php if ($page['navigation'] || $main_menu): ?>
<div id="navigation" class="grid_8 alpha">
<?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 print render($page['navigation']); ?>
</div><!-- /#navigation -->
<?php endif; ?>
<div id="search" class="grid_4 omega">
<?php print $search_form; ?> <!-- I also tried "<?php print render($search_form); ?>", with no luck -->
</div>
</div>