static function photo_top($theme)
 {
     if (!basket_plus::getBasketVar(USE_SIDE_BAR_ONLY)) {
         if (bp_product::isForSale($theme->item()->id)) {
             $view = new View("add_to_basket.html");
             $view->item = $theme->item();
             return $view->render();
         }
     }
     return "";
 }
			 href="<?php 
        echo url::site("basket_plus/view_Orders");
        ?>
" title="<?php 
        echo t("View Orders");
        ?>
">
			 <span class="ui-icon ui-icon-clipboard"></span><?php 
        echo t("View Orders");
        ?>
</a><?php 
    }
}
if ($theme->page_subtype == "photo" or $theme->page_subtype == "album") {
    if ($item = $theme->item()) {
        if ($item->is_photo() && bp_product::isForSale($theme->item()->id)) {
            ?>
<p>
				<a class="g-dialog-link g-button ui-icon-left ui-state-default ui-corner-all ui-state-hover" href="<?php 
            echo url::site("basket_plus/add_to_basket_ajax/{$item->id}");
            ?>
"
				title="<?php 
            echo t("Add To Basket");
            ?>
"><span class="ui-icon ui-icon-plusthick"></span><?php 
            echo t("Add To Basket");
            ?>
</a></p>
				<?php 
        }