Advertisement
Guest User

header_masthead.php

a guest
Nov 9th, 2012
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. header_masthead.php
  2.  
  3. <div id="masthead-image-wrapper">
  4.  
  5. <?php
  6.  
  7. if ( ppImg::id( 'masthead_frame' )->exists && !ppUtil::renderingMobileSite() ) {
  8. $frameImgTag = new ppImgTag( ppImg::id( 'masthead_frame' )->url, array( 'id' => 'masthead-frame' ) );
  9. $blogWidth = ppOpt::id( 'blog_width', 'int' );
  10. $framemaxWidth = ppOpt::test( 'headerlayout', 'logomasthead_nav || mastheadlogo_nav' ) ? $blogWidth - ppImg::id( 'logo' )->width : $blogWidth;
  11. $frameMaxHeight = ppHelper::logoInMasthead() ? ppImg::id( 'logo' )->height : 1000000;
  12. $frameImgTag = ppGdModify::constrainImgSize( $frameImgTag, $framemaxWidth, $frameMaxHeight );
  13. echo $frameImgTag->markup();
  14. }
  15.  
  16. ?>
  17.  
  18. <div id="masthead_image" class="<?php echo $classes ?>">
  19.  
  20. <?php
  21.  
  22. if ( $href && !NrUtil::isIn( 'pp-slideshow', $classes ) ) {
  23. echo NrHtml::a( $href, $img->markup() );
  24. } else {
  25. echo $img->markup();
  26. }
  27.  
  28. ?>
  29.  
  30. </div><!-- #masthead_image -->
  31.  
  32. </div><!-- #masthead-image-wrapper -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement