本文整理汇总了PHP中Cart66Common::verifyCartPages方法的典型用法代码示例。如果您正苦于以下问题:PHP Cart66Common::verifyCartPages方法的具体用法?PHP Cart66Common::verifyCartPages怎么用?PHP Cart66Common::verifyCartPages使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Cart66Common
的用法示例。
在下文中一共展示了Cart66Common::verifyCartPages方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: cart66_page_check
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;
}
}
}