コード例 #1
0
 public static function ssl_config()
 {
     $ssl_config = new Kigo_Ssl_Config();
     if (isset($_POST['submit']) && isset($_POST['ssl_select'])) {
         if ($ssl_config->save_custom($_POST['ssl_select'], $_POST['ssl_custom_script'])) {
             echo '<div id="message" class="updated"><p><strong>Settings saved.</strong></p></div>';
         } else {
             echo '<div id="message" class="error"><p><strong>Settings not saved.</strong></p></div>';
         }
     }
     self::ssl_config_html($ssl_config->get_ssl_options_to_json());
 }
コード例 #2
0
function getSSL()
{
    global $wp_query;
    $postid = $wp_query->post->ID;
    $thePostMeta = get_post_meta($postid, 'bapi_page_id', true);
    if ('bapi_makepayment' === $thePostMeta || 'bapi_makebooking' === $thePostMeta) {
        $ssl_config = new Kigo_Ssl_Config();
        echo $ssl_config->get_ssl_seal();
    }
}