Plugin Directory

Changeset 2656916


Ignore:
Timestamp:
01/13/2022 12:52:20 AM (4 years ago)
Author:
winrid
Message:

3.10.1 - Adding support for SSR

Location:
fastcomments
Files:
37 added
3 edited

Legend:

Unmodified
Added
Removed
  • fastcomments/trunk/README.txt

    r2613148 r2656916  
    44Requires at least: 4.6
    55Tested up to: 5.8
    6 Stable tag: 3.9.10
     6Stable tag: 3.10.1
    77Requires PHP: 5.2.4
    88License: GPLv2 or later
     
    3535- Anonymous commenting (unverified comments auto removed after three days)
    3636- Ability to export your data at any time.
     37- **JavaScript Not Required** to view or leave comments.
    3738
    3839== Installation ==
     
    8485
    8586== Changelog ==
     87
     88= 3.10.1 =
     89* JavaScript is no longer required to leave or view comments.
    8690
    8791= 3.9.10 =
  • fastcomments/trunk/fastcomments-wordpress-plugin.php

    r2613148 r2656916  
    44Plugin URI: https://fastcomments.com
    55Description: Live Comments, Fast. A comment system that will delight your users and developers.
    6 Version: 3.9.10
     6Version: 3.10.1
    77Author: winrid @ FastComments
    88License: GPL-2.0+
     
    1414}
    1515
    16 $FASTCOMMENTS_VERSION = 3.910;
     16$FASTCOMMENTS_VERSION = 3.101;
    1717
    1818require_once plugin_dir_path(__FILE__) . 'admin/fastcomments-admin.php';
  • fastcomments/trunk/public/fastcomments-widget-view.php

    r2613148 r2656916  
    3939        ";
    4040        wp_add_inline_script('fastcomments_widget_embed', $script);
     41
     42        $tenantIdEncoded = rawurlencode($config['tenantId']);
     43        $urlEncoded = rawurlencode($config['url']);
     44        $fastcomments_url = "https://fastcomments.com/ssr/comments?tenantId=$tenantIdEncoded&urlId=$urlId&url=$urlEncoded";
     45        if ($config['sso']) {
     46            $sso_query_string = rawurlencode(json_encode($config['sso']));
     47            $fastcomments_url = $fastcomments_url . "&sso=$sso_query_string";
     48        }
     49        ?>
     50        <noscript>
     51            <iframe
     52                    src="<?php echo $fastcomments_url; ?>"
     53                    horizontalscrolling="no"
     54                    allowtransparency="true"
     55                    frameborder="0"
     56                    title="FastComments"
     57                    width="100%"
     58                    height="1500px"
     59                    style="width: 1px !important; min-width: 100% !important; border: none !important; overflow: hidden !important;"
     60            ></iframe>
     61        </noscript>
     62        <?php
    4163    }
    4264?>
Note: See TracChangeset for help on using the changeset viewer.