예제 #1
0
 public function check_view_orders()
 {
     if (!basket_plus::can_view_orders()) {
         die("Invalid access.");
     }
 }
예제 #2
0
<?php

defined("SYSPATH") or die("No direct script access.");
?>

<?php 
if ($theme->page_type != 'basket') {
    ?>
  <?php 
    if (basket_plus::can_view_orders()) {
        ?>
			<a href="<?php 
        echo url::site("basket_plus/view_Orders");
        ?>
"
				 title="<?php 
        echo t("View Orders");
        ?>
">View Orders</a>
  <?php 
    }
    ?>
  <?php 
    if (isset($basket) && isset($basket->contents) && $basket->size() > 0) {
        ?>
		<div id="basket">
				<a href="<?php 
        echo url::site("basket_plus/view_basket");
        ?>
"
					 title="<?php