Plugin Directory

Changeset 2744374


Ignore:
Timestamp:
06/17/2022 10:03:56 PM (4 years ago)
Author:
winrid
Message:

3.12.0 - Support for keeping your data in the EU if desired.

Location:
fastcomments
Files:
40 added
13 edited

Legend:

Unmodified
Added
Removed
  • fastcomments/trunk/README.txt

    r2733525 r2744374  
    44Requires at least: 4.6
    55Tested up to: 6.0
    6 Stable tag: 3.11.1
     6Stable tag: 3.12.0
    77Requires PHP: 5.2.5
    88License: GPLv2 or later
     
    3737- **JavaScript Not Required** to view or leave comments.
    3838
     39Speed up your WordPress installation with FastComments, by letting us render your comment threads instead of your WordPress servers!
     40
    3941== Installation ==
    4042
     
    8688== Changelog ==
    8789
     90= 3.12.0 =
     91* Support for keeping your data in the EU.
     92
    8893= 3.11.1 =
    8994* WordPress 6
  • fastcomments/trunk/admin/fastcomments-admin-advanced-settings-view.php

    r2613148 r2744374  
    11<div id="fastcomments-admin">
    2     <a class="logo" href="https://fastcomments.com" target="_blank">
     2    <a class="logo" href="<?php echo FastCommentsPublic::getSite() ?>" target="_blank">
    33        <img src="<?php echo plugin_dir_url(dirname(__FILE__)); ?>/admin/images/logo-50.png" alt="FastComments Logo"
    44             title="FastComments Logo">
  • fastcomments/trunk/admin/fastcomments-admin-manual-sync-view.php

    r2678152 r2744374  
    66?>
    77<div id="fastcomments-admin">
    8     <a class="logo" href="https://fastcomments.com" target="_blank">
     8    <a class="logo" href="<?php echo FastCommentsPublic::getSite() ?>" target="_blank">
    99        <img src="<?php echo plugin_dir_url(dirname(__FILE__)); ?>/admin/images/logo-50.png" alt="FastComments Logo"
    1010             title="FastComments Logo">
  • fastcomments/trunk/admin/fastcomments-admin-setup-view.php

    r2678152 r2744374  
    33    <h3>Let's get you setup.</h3>
    44    <p>We'll go through a couple steps before FastComments is activated.</p>
     5
     6    <?php if (!get_option('fastcomments_site') || get_option('fastcomments_site') === 'https://fastcomments.com') { ?>
     7        <h2>Where should we put your data?</h2>
     8        <p>Continue without changing anything and we will store your data replicated in all data centers.</p>
     9
     10        Do you want to only keep your users' data in the EU?
     11        <a class="button-primary button-in-eu"
     12           href="?isEU=true"
     13           target="_blank">I'm in the EU.</a>
     14    <?php } else { ?>
     15        <h2>Where should we put your data?</h2>
     16        <p>✔ We will keep your data in the EU.</p>
     17
     18        <a class="button-primary button-not-in-eu"
     19           href="?isEU=false"
     20           target="_blank">I'm not in the EU.</a>
     21    <?php } ?>
    522
    623    <?php if (!get_option('fastcomments_tenant_id')) { ?>
     
    1128        <h2>Do you have a FastComments Account?</h2>
    1229        <a class="button-primary button-has-account"
    13            href="https://fastcomments.com/auth/my-account/integrations/v1/confirm?token=<?php echo get_option("fastcomments_token") ?>&hasAccount=true"
     30           href="<?php echo FastCommentsPublic::getSite() ?>/auth/my-account/integrations/v1/confirm?token=<?php echo get_option("fastcomments_token") ?>&hasAccount=true"
    1431           target="_blank">Yes</a>
    1532        <a class="button-primary button-no-account"
    16            href="https://fastcomments.com/auth/my-account/integrations/v1/confirm?token=<?php echo get_option("fastcomments_token") ?>&hasAccount=false"
     33           href="<?php echo FastCommentsPublic::getSite() ?>/auth/my-account/integrations/v1/confirm?token=<?php echo get_option("fastcomments_token") ?>&hasAccount=false"
    1734           target="_blank">No</a>
    1835    <?php } else if (!get_option('fastcomments_setup')) { ?>
     
    2340
    2441        <a class="button-primary"
    25            href="https://fastcomments.com/auth/my-account/integrations/v1/confirm?token=<?php echo get_option("fastcomments_token") ?>&hasAccount=true"
     42           href="<?php echo FastCommentsPublic::getSite() ?>/auth/my-account/integrations/v1/confirm?token=<?php echo get_option("fastcomments_token") ?>&hasAccount=true"
    2643           target="_blank">Re-Run Setup</a>
    2744    <?php } else { ?>
     
    3350
    3451        <a class="button-primary"
    35            href="https://fastcomments.com/auth/my-account/integrations/v1/confirm?token=<?php echo get_option("fastcomments_token") ?>&hasAccount=true"
     52           href="<?php echo FastCommentsPublic::getSite() ?>/auth/my-account/integrations/v1/confirm?token=<?php echo get_option("fastcomments_token") ?>&hasAccount=true"
    3653           target="_blank">Re-Run Setup</a>
    3754    <?php } ?>
  • fastcomments/trunk/admin/fastcomments-admin-sso-view.php

    r2678152 r2744374  
    88
    99<div id="fastcomments-admin">
    10     <a class="logo" href="https://fastcomments.com" target="_blank">
     10    <a class="logo" href="<?php echo FastCommentsPublic::getSite() ?>" target="_blank">
    1111        <img src="<?php echo plugin_dir_url(dirname(__FILE__)); ?>/admin/images/logo-50.png" alt="FastComments Logo"
    1212             title="FastComments Logo">
  • fastcomments/trunk/admin/fastcomments-admin-support-view.php

    r2678152 r2744374  
    11<div id="fastcomments-admin">
    2     <a class="logo" href="https://fastcomments.com" target="_blank">
     2    <a class="logo" href="<?php echo FastCommentsPublic::getSite() ?>" target="_blank">
    33        <img src="<?php echo plugin_dir_url( dirname( __FILE__ ) ); ?>/admin/images/logo-50.png" alt="FastComments Logo" title="FastComments Logo">
    44        <span class="text">FastComments.com</span>
     
    66    <h3>FastComments Direct Support</h3>
    77    <p>Getting support for your FastComments account is simple. Simply go to <a
    8                 href="https://fastcomments.com/auth/my-account/help" target="_blank">this page</a> and ask your
     8                href="<?php echo FastCommentsPublic::getSite() ?>/auth/my-account/help" target="_blank">this page</a> and ask your
    99        question. You'll need to create an account, which is free, to access the support form.</p>
    1010
  • fastcomments/trunk/admin/fastcomments-admin-view.php

    r2678152 r2744374  
    11<div id="fastcomments-admin">
    2     <a class="logo" href="https://fastcomments.com" target="_blank">
     2    <a class="logo" href="<?php echo FastCommentsPublic::getSite() ?>" target="_blank">
    33        <img src="<?php echo plugin_dir_url( dirname( __FILE__ ) ); ?>/admin/images/logo-50.png" alt="FastComments Logo" title="FastComments Logo">
    44        <span class="text">FastComments.com</span>
    55    </a>
    66    <div class="tiles">
    7         <a href="https://fastcomments.com/auth/my-account/" target="_blank">
     7        <a href="<?php echo FastCommentsPublic::getSite() ?>/auth/my-account/" target="_blank">
    88            <img src="<?php echo plugin_dir_url( dirname( __FILE__ ) ); ?>/admin/images/home.png" alt="My FastComments Account" title="My FastComments Account"/>
    99            <div>My Account</div>
    1010        </a>
    11         <a href="https://fastcomments.com/auth/my-account/moderate-comments" target="_blank">
     11        <a href="<?php echo FastCommentsPublic::getSite() ?>/auth/my-account/moderate-comments" target="_blank">
    1212            <img src="<?php echo plugin_dir_url( dirname( __FILE__ ) ); ?>/admin/images/crown.png" alt="Moderate Comments" title="Moderate Comments"/>
    1313            <div>Moderate Comments</div>
    1414        </a>
    15         <a href="https://fastcomments.com/auth/my-account/customize-widget" target="_blank">
     15        <a href="<?php echo FastCommentsPublic::getSite() ?>/auth/my-account/customize-widget" target="_blank">
    1616            <img src="<?php echo plugin_dir_url( dirname( __FILE__ ) ); ?>/admin/images/css.png" alt="Customize Comments" title="Customize Comments"/>
    1717            <div>Customize Comments</div>
    1818        </a>
    19         <a href="https://fastcomments.com/auth/my-account/manage-data/export" target="_blank">
     19        <a href="<?php echo FastCommentsPublic::getSite() ?>/auth/my-account/manage-data/export" target="_blank">
    2020            <img src="<?php echo plugin_dir_url( dirname( __FILE__ ) ); ?>/admin/images/download.png" alt="Export Comments" title="Export Comments"/>
    2121            <div>Export Comments</div>
    2222        </a>
    23         <a href="https://fastcomments.com/auth/my-account/integrations/v1/setup?token=<?php echo get_option("fastcomments_token") ?>&hasAccount=true" target="_blank">
     23        <a href="<?php echo FastCommentsPublic::getSite() ?>/auth/my-account/integrations/v1/setup?token=<?php echo get_option("fastcomments_token") ?>&hasAccount=true" target="_blank">
    2424            <img src="<?php echo plugin_dir_url( dirname( __FILE__ ) ); ?>/admin/images/sync-status.png" alt="Check Integration Status" title="Check Integration Status"/>
    2525            <div>Check Integration Status</div>
  • fastcomments/trunk/admin/fastcomments-admin.php

    r2678152 r2744374  
    11<?php
    22
     3require_once plugin_dir_path(__FILE__) . '../public/fastcomments-public.php';
    34require_once plugin_dir_path(__FILE__) . '../core/FastCommentsWordPressIntegration.php';
    45$fastcomments = new FastCommentsWordPressIntegration();
     
    4546    );
    4647
     48    $site = FastCommentsPublic::getSite();
     49
    4750    $fastcomments_moderate_node_args = array(
    4851        'parent' => 'fastcomments',
    4952        'id' => 'fastcomments_moderate',
    5053        'title' => 'Moderate',
    51         'href' => 'https://fastcomments.com/auth/my-account/moderate-comments',
     54        'href' => "$site/auth/my-account/moderate-comments",
    5255    );
    5356
     
    5659        'id' => 'fastcomments_analytics',
    5760        'title' => 'Analytics',
    58         'href' => 'https://fastcomments.com/auth/my-account/analytics',
     61        'href' => "$site/auth/my-account/analytics",
    5962    );
    6063
     
    6366        'id' => 'fastcomments_customize',
    6467        'title' => 'Customize',
    65         'href' => 'https://fastcomments.com/auth/my-account/customize-widget',
     68        'href' => "$site/auth/my-account/customize-widget",
    6669    );
    6770
     
    7073        'id' => 'fastcomments_my_account',
    7174        'title' => 'My Account',
    72         'href' => 'https://fastcomments.com/auth/my-account',
     75        'href' => "$site/auth/my-account",
    7376    );
    7477
     
    134137                        'setup' => get_option('fastcomments_setup'),
    135138                        'sync_token' => get_option('fastcomments_token'),
    136                         'sso_secret' => get_option('fastcomments_sso_key')
     139                        'sso_secret' => get_option('fastcomments_sso_key'),
     140                        'site' => FastCommentsPublic::getSite(),
     141                        'cdn' => FastCommentsPublic::getCDN()
    137142                    ),
    138143                    'wordpress' => array(
  • fastcomments/trunk/core/FastCommentsWordPressIntegration.php

    r2678152 r2744374  
    11<?php
    22
    3 require(__DIR__ . '/FastCommentsIntegrationCore.php');
     3require_once __DIR__ . '/../public/fastcomments-public.php';
     4require __DIR__ . '/FastCommentsIntegrationCore.php';
    45
    56class FastCommentsWordPressIntegration extends FastCommentsIntegrationCore {
    67
    78    public function __construct() {
    8         parent::__construct('wordpress');
     9        $host = FastCommentsPublic::getSite();
     10        parent::__construct('wordpress', $host);
    911    }
    1012
  • fastcomments/trunk/fastcomments-wordpress-plugin.php

    r2733525 r2744374  
    44Plugin URI: https://fastcomments.com
    55Description: Live Comments, Fast. A comment system that will delight your users and developers.
    6 Version: 3.11.1
     6Version: 3.12.0
    77Author: winrid @ FastComments
    88License: GPL-2.0+
     
    1414}
    1515
    16 $FASTCOMMENTS_VERSION = 3.111;
     16$FASTCOMMENTS_VERSION = 3.120;
    1717
    1818require_once plugin_dir_path(__FILE__) . 'admin/fastcomments-admin.php';
     
    5151
    5252    global $FASTCOMMENTS_VERSION;
    53     wp_enqueue_script('fastcomments_widget_count', 'https://cdn.fastcomments.com/js/embed-widget-comment-count-bulk.min.js', array(), $FASTCOMMENTS_VERSION, true);
     53    $cdn = FastCommentsPublic::getCDN();
     54    wp_enqueue_script('fastcomments_widget_count', "$cdn/js/embed-widget-comment-count-bulk.min.js", array(), $FASTCOMMENTS_VERSION, true);
    5455}
    5556
  • fastcomments/trunk/public/fastcomments-public.php

    r2678152 r2744374  
    8383        $fastcomments = new FastCommentsWordPressIntegration();
    8484        $token = $fastcomments->getSettingValue('fastcomments_token');
    85         $request_url = "https://fastcomments.com/integrations/v1/comments?token=$token";
     85        $site = FastCommentsPublic::getSite();
     86        $request_url = "$site/integrations/v1/comments?token=$token";
    8687        if ($includeCount) {
    8788            $request_url .= '&includeCount=true';
     
    108109            return new WP_REST_Response(array('status' => 'failed'), 500);
    109110        }
     111    }
     112
     113    public static function getSite() {
     114        return get_option('fastcomments_site', 'https://fastcomments.com');
     115    }
     116
     117    public static function getCDN() {
     118        return get_option('fastcomments_cdn', 'https://cdn.fastcomments.com');
    110119    }
    111120
  • fastcomments/trunk/public/fastcomments-widget-view.php

    r2656916 r2744374  
    1010    } else {
    1111        global $FASTCOMMENTS_VERSION;
    12         wp_enqueue_script( 'fastcomments_widget_embed', 'https://cdn.fastcomments.com/js/embed-v2.min.js', array(), $FASTCOMMENTS_VERSION, false );
     12        $cdn = FastCommentsPublic::getCDN();
     13        $site = FastCommentsPublic::getSite();
     14        wp_enqueue_script( 'fastcomments_widget_embed', "$cdn/js/embed-v2.min.js", array(), $FASTCOMMENTS_VERSION, false );
    1315        global $post;
    1416        $config = FastCommentsPublic::get_config_for_post($post);
     
    4244        $tenantIdEncoded = rawurlencode($config['tenantId']);
    4345        $urlEncoded = rawurlencode($config['url']);
    44         $fastcomments_url = "https://fastcomments.com/ssr/comments?tenantId=$tenantIdEncoded&urlId=$urlId&url=$urlEncoded";
     46        $fastcomments_url = "$site/ssr/comments?tenantId=$tenantIdEncoded&urlId=$urlId&url=$urlEncoded";
    4547        if ($config['sso']) {
    4648            $sso_query_string = rawurlencode(json_encode($config['sso']));
  • fastcomments/trunk/uninstall.php

    r2613148 r2744374  
    1616delete_option( 'fastcomments_setup' );
    1717delete_option( 'fastcomments_log_level' );
     18delete_option( 'fastcomments_site' );
     19delete_option( 'fastcomments_cdn' );
    1820
    1921$fastcomments = new FastCommentsWordPressIntegration();
Note: See TracChangeset for help on using the changeset viewer.