My_Site_Name for subpages?

Permalink
I'm using a theme that references My_Site_Name to insert in the header. But we use domain mapper to make several different sites out of one. So, instead I created a block that just pulls a scrapbook item I created pointing to the subsite so instead of:

<?php 
                  $block = Block::getByName('My_Site_Name');  
                  if( $block && $block->bID ) $block->display();  
                     else echo SITE;
               ?>


I have

<?php 
         $block = Block::getByName('Provo Main');  
         if( $block && $block->bID ) $block->display();
         ?>


But now I want to implement the theme on another site, and I don't want to have to create a whole new page type. Is there a better way to go about this?

AltaPlanning
 
PineCreativeLabs replied on at Permalink Reply
PineCreativeLabs
Try this, and let me know if it worked:
<a href="<?php  echo DIR_REL?>/" title="<?php  echo SITE?>"><?php  
            $block = Block::getByName('My_Site_Name');  
            if( $block && $block->bID ) $block->display();   
            else echo SITE;
          ?></a>