You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-8Lines changed: 14 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,25 +1,30 @@
1
1
# Coral WP Plugin
2
2
3
-
This plugin replaces standard WordPress commenting with [Coral by Vox Media](https://coralproject.net). The open-source commenting platform that rethinks
4
-
how moderation, comment display, and conversation function, creating the
5
-
opportunity for safer, smarter discussions.
3
+
This plugin replaces standard WordPress commenting with [Coral by Vox Media](https://coralproject.net). Coral is an open-source commenting platform that rethinks how moderation, comment display, and conversation function, creating the opportunity for safer, smarter discussions.
6
4
7
5
## Setup
8
6
9
-
First, you'll need a server running your own instance of Coral. See the [Coral Docs](https://docs.coralproject.net/talk/) for more info about that.
7
+
First, you'll need a server running your own instance of Coral. See the [Coral Docs](https://docs.coralproject.net/) for more info about that.
10
8
11
-
Then...
9
+
Then you will need to:
12
10
13
11
1. Add the hostname of your WordPress site to the whitelist in the settings of your Coral instance.
14
12
1. Install and activate this plugin as you would any other WordPress plugin.
15
13
1. Go to `https://mysite.com/wp-admin/options-general.php?page=talk-settings`
16
-
1. Enter the URL of your Coral instance and click Save.
14
+
1. Add the URL of your Coral instance to `Server Base URL` in Settings and click Save.
15
+
1. Review and complete any further Settings and click Save.
16
+
17
+
## Story settings
18
+
19
+
The plugin supports enabling canonical URLs for a Wordpress post to be passed through to the Coral stream embed as the story URL.
20
+
21
+
The plugin also supports setting a story mode and sending it through to the Coral stream embed. To use, you can add a custom field in Wordpress called `coralStoryMode` and then set it to a valid story mode.
17
22
18
23
## HTTPS and Dev Mode
19
24
20
25
Your site must be served over `https` in order to integrate with Coral **unless** Coral is set to dev mode.
21
26
22
-
If you're installing Coral with Docker, you can do that by adding `NODE_ENV=dev` to the environment variables in your [`docker-compose.yml`](https://docs.coralproject.net/talk/installation-from-docker/). Otherwise, any method of setting `process.env.NODE_ENV = 'dev'` will do the trick.
27
+
If you're installing Coral with Docker, you can do that by adding `NODE_ENV=development` to the environment variables in your [`docker-compose.yml`](https://docs.coralproject.net/environment-variables#node_env). Otherwise, any method of setting `NODE_ENV=development` will do the trick.
23
28
24
29
## Theme usage
25
30
@@ -48,8 +53,9 @@ Coral v4.9.0+ comes with AMP support. This plugin automatically integrates with
48
53
If you are building a custom theme, you can use `coral_talk_comments_amp_template()` to add the Coral AMP Iframe.
49
54
50
55
## Version
56
+
51
57
Coral version <= `v3.9.1` use plugin version `v0.0.6`
52
58
53
59
Coral version >= `4.0.0` use plugin version `v0.1.0`
54
60
55
-
Coral version >= `5.0.0` use plugin version `v0.2.1`
61
+
Coral version >= `5.0.0` use plugin version `v1.0.0`
<p class="description">The root url of the installed Coral application. This is the same value as <a href="<?phpechoesc_url( 'https://docs.coralproject.net/talk/configuration/#talk-root-url' ); ?>">ROOT_URL</a> defined in the Coral application configuration.</p>
167
+
<p class="description"><span style="font-weight: bold;">* Required.</span> The root url of the installed Coral application.</p>
117
168
<?php
118
169
}
119
170
@@ -127,30 +178,160 @@ public function render_static_url_field() {
<p class="description">The root url where static Coral assets should be served from. This is the same value as <a href="<?phpechoesc_url( 'https://docs.coralproject.net/talk/advanced-configuration/#talk-static-uri' ); ?>">STATIC_URI</a> defined in the Coral application configuration.</p>
186
+
<p class="description">The root url where static Coral assets should be served from. This is the same value as defined by the <a href="<?phpechoesc_url( 'https://docs.coralproject.net/environment-variables#static_uri' ); ?>">STATIC_URI</a> environment variable.</p>
<p class="description">URL for a custom stylesheet to be included to style this Coral stream. To configure a custom stylesheet for all streams, see advanced configuration options in the admin.</p>
206
+
<?php
207
+
}
208
+
209
+
/**
210
+
* Prints input field for custom fonts CSS url setting.
<p class="description">URL for a custom stylesheet with font-face definitions to be included to style this Coral stream. To configure a custom stylesheet for all streams, see advanced configuration options in the admin.</p>
225
+
<?php
226
+
}
227
+
228
+
/**
229
+
* Prints input field for Coral container class name setting.
<p class="description">Supports a custom scroll container element if Coral is rendered outside of the render window. Add the element id you wish to use, and Coral will find it if it's in the document and send it through.</p>
263
+
<?php
264
+
}
265
+
266
+
/**
267
+
* Prints input field for disable default fonts setting.
0 commit comments