コード例 #1
0
ファイル: Cart66.php プロジェクト: rbredow/allyzabbacart
 public function cart66_page_check($return = false)
 {
     if (Cart66Common::verifyCartPages('error')) {
         $alert_output = "<div class='alert-message alert-danger' id='cart66_page_errors'>\n        <div class='left'>\n          <h2>" . __('A problem with Cart66 has been detected.', 'cart66') . "</h2>\n          <p>" . __('The following page(s) are missing from the proper page structure. This could be because the slug was renamed or the page was moved, set to draft, private, or deleted.', 'cart66') . "</p>\n          <ul>" . Cart66Common::verifyCartPages('error') . "</ul>\n          <p>" . __('Please refer to', 'cart66') . " <a href='http://cart66.com/2011/dont-rename-the-store-pages/' target='_blank'>" . __('this article</a> for the proper configuration of pages for Cart66.', 'cart66') . " <em> " . __('Cart66 will not work properly until this issue is resolved.', 'cart66') . "</em></p>\n        </div>\n      </div>";
         if ($return) {
             return $alert_output;
         } else {
             echo $alert_output;
         }
     }
 }