Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- header_masthead.php
- <div id="masthead-image-wrapper">
- <?php
- if ( ppImg::id( 'masthead_frame' )->exists && !ppUtil::renderingMobileSite() ) {
- $frameImgTag = new ppImgTag( ppImg::id( 'masthead_frame' )->url, array( 'id' => 'masthead-frame' ) );
- $blogWidth = ppOpt::id( 'blog_width', 'int' );
- $framemaxWidth = ppOpt::test( 'headerlayout', 'logomasthead_nav || mastheadlogo_nav' ) ? $blogWidth - ppImg::id( 'logo' )->width : $blogWidth;
- $frameMaxHeight = ppHelper::logoInMasthead() ? ppImg::id( 'logo' )->height : 1000000;
- $frameImgTag = ppGdModify::constrainImgSize( $frameImgTag, $framemaxWidth, $frameMaxHeight );
- echo $frameImgTag->markup();
- }
- ?>
- <div id="masthead_image" class="<?php echo $classes ?>">
- <?php
- if ( $href && !NrUtil::isIn( 'pp-slideshow', $classes ) ) {
- echo NrHtml::a( $href, $img->markup() );
- } else {
- echo $img->markup();
- }
- ?>
- </div><!-- #masthead_image -->
- </div><!-- #masthead-image-wrapper -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement