本文整理汇总了PHP中Shopp::force_ssl方法的典型用法代码示例。如果您正苦于以下问题:PHP Shopp::force_ssl方法的具体用法?PHP Shopp::force_ssl怎么用?PHP Shopp::force_ssl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Shopp
的用法示例。
在下文中一共展示了Shopp::force_ssl方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: buttonurl
/**
* Provides the locale-aware checkout button URL.
*
* A common customization request is to swap the standard button image for something else and this
* can be accomplished via the shopp_paypapstandard_buttonurl hook. It is the merchant's/implementing
* developer's responsibility to comply with PayPal guidelines if they choose to do this.
*
* @author Jonathan Davis
* @since 1.3
*
* @return string The URL of the "Checkout with PayPal"
**/
private function buttonurl()
{
$buttonurl = apply_filters('shopp_paypalstandard_buttonurl', sprintf(self::BUTTON, $this->locale()));
return Shopp::force_ssl($buttonurl);
}
示例2: force_ssl
/**
* @deprecated Use Shopp::force_ssl()
**/
function force_ssl($url, $rewrite = false)
{
return Shopp::force_ssl($url, $rewrite);
}