Zarko wrote:

I did a couple hack to noprobs to make a 5.x version. Here are the changes
if you want to post them.

node.tpl.php:
change line 1 from

<div class="node <?php print ($sticky) ? " sticky" : ""; ?> ">

to

<div class="node<?php print ($sticky) ? " sticky" : ""; ?><?php print
($links) ? " clear-box" : ""; ?>">

delete line 16

* I would like to gett rid of line 12 as well, but I don't have pictures
enabled on my site so I cannot test it out. It may require another div to
do it properly. *

page.tpl.php
change line 12 from

<div id="header">

to

<div id="header clear-box">

delete line 29

change lines 32-45 from

   <?php if (is_array($secondary_links)) : ?>
   <ul id="secondary">
    <?php foreach ($secondary_links as $link): ?>
     <li> <?php print $link?> </li>
    <?php endforeach; ?>
   </ul>
  <?php endif; ?>
  <?php if (is_array($primary_links)) : ?>
   <ul id="primary">
    <?php foreach ($primary_links as $link): ?>
     <li> <?php print $link?> </li>
    <?php endforeach; ?>
   </ul>
  <?php endif; ?>

to

  <?php print theme('links', $secondary_links, array('id' =>
'secondary')); ?>
  <?php print theme('links', $primary_links, array('id' => 'primary'));
?>

Comments

naught101’s picture

Zarko: thanks for hacking this, I'm gonna need it.

could you please clarify: when you say "delete line xx", you often say it after the edit. If the line numbers change, then it's hard to know which line you mean.

could you clarify which line by copy-pasting it (and giving an approximate line number)?

cheers
naught

naught101’s picture

soooo... from looking at http://drupal.org/node/64292
I figure:

Line 12 & 16 in node.tpl.php are these lines:
<br class='clear' />

I don't understand why you'd delete line 29 from page.tpl.php, as it's the endit line from:

   <?php if ($site_slogan) : ?>
    <span id="site-slogan"> <?php print($site_slogan) ?> </span>
   <?php endif;?>

ALSO: I tried changing line 12 in page.tpl.php, but it didn't work, so I changed it back and now it does.

naught101’s picture

Status: Active » Needs review

you also need to add this:
<?php print $scripts ?>
somewhere between the ... tags, otherwise modules with javascript (like tinyMCE) won't appear.

cheers
ned

Eric3’s picture

Status: Needs review » Closed (fixed)