Quantcast
Viewing latest article 3
Browse Latest Browse All 23

Page header breaks on article and blog nodes

So I'm having some trouble with some code that I added to the page-header.tpl.php. I have taken out the menu(s) that appeared there and replaced it with some social networking tools; facebook, twitter, newsletter, rss.

<body <?php print openpublish_body_classes($left, $right, $body_classes); ?>>
  <?php if (!empty($admin)) print $admin; ?>
  <div id="outer-wrapper">
  <div id="wrapper">   
  <div id="header">
    <?php print $header; ?>  
    <div class="clear"></div>
  </div> <!-- /#header -->
    <div id="top-menu" class="clearfix">
      <div class="social-networking-top">
    <ul>
      <li>
      <?php
              $img
= '<img src="sites/default/files/icons/newsletter.png" />';
              print
l($img, 'subscribe-newsletter', array('html'=> TRUE));
             
?>

      </li>
      <li><a href="http://twitter.com/publicsourcepa" target="_blank"><img src="sites/default/files/icons/twitter.png" /></a></li>
      <li><a href="http://facebook.com" target="_blank"><img src="sites/default/files/icons/facebook.png" /></a></li>
      <li>
      <?php
              $img
= '<img src="sites/default/files/icons/rss.png" />';
              print
l($img, 'rss/articles/all', array('html'=> TRUE));
             
?>

      </li>
      </ul>
      </div>
      <div class="todays-date">
      <p>

    <?php
                    $today
= date('F j, Y');
                    print
$today;
               
?>


    </p>
    </div>
    </div>
  <?php //endif; ?>

These images show up perfectly on every page except the article nodes and the blog nodes. They work fine with views pages and with any other node that I created, however with the nodes that Openpublish has predefined, the images break. When i look at the code with firebug I can see that all the code is still there, but that the image paths are not leading to the image.... I have no idea why this would be.

I also tried to change the code and put empty a tags with background images (as you can see that do in the op-addthis-widget.tpl.php). This did not work either.

Any suggestions? Thanks!

allie


Viewing latest article 3
Browse Latest Browse All 23

Trending Articles