diff --git a/assets/src/css/admin/main.scss b/assets/src/css/admin/main.scss index 07ceded..fa9f1cb 100644 --- a/assets/src/css/admin/main.scss +++ b/assets/src/css/admin/main.scss @@ -9,6 +9,7 @@ align-items: center; background-color: #fff; padding: 0; + padding: 0; margin: 0 0 0 -20px; .plausible-analytics-logo { @@ -68,6 +69,10 @@ border-top: 1px dashed #e5e5e5; padding: 10px 0 0 0; margin: 15px 0 0 0; + + ol { + margin: 5px 15px; + } } } } diff --git a/config/constants.php b/config/constants.php index 3e9957c..0ef37c9 100644 --- a/config/constants.php +++ b/config/constants.php @@ -6,7 +6,7 @@ // Define plugin version in SemVer format. if ( ! defined( 'PLAUSIBLE_ANALYTICS_VERSION' ) ) { - define( 'PLAUSIBLE_ANALYTICS_VERSION', '1.0.0' ); + define( 'PLAUSIBLE_ANALYTICS_VERSION', '1.0.1' ); } // Define plugin root File. @@ -27,4 +27,4 @@ // Define plugin directory URL. if ( ! defined( 'PLAUSIBLE_ANALYTICS_PLUGIN_URL' ) ) { define( 'PLAUSIBLE_ANALYTICS_PLUGIN_URL', plugin_dir_url( PLAUSIBLE_ANALYTICS_PLUGIN_FILE ) ); -} \ No newline at end of file +} diff --git a/languages/plausible-analytics.pot b/languages/plausible-analytics.pot index 64db2ef..d993176 100644 --- a/languages/plausible-analytics.pot +++ b/languages/plausible-analytics.pot @@ -56,38 +56,54 @@ msgstr "" msgid "Open Analytics" msgstr "" -#: src/Admin/Settings.php:98 +#: src/Admin/Settings.php:101 msgid "We have fetched the domain name for which Plausible Analytics will be used. We assume that you have already setup the domain on our website." msgstr "" +#: src/Admin/Settings.php:103 +msgid "Follow these instructions" +msgstr "" + #: src/Admin/Settings.php:104 +msgid "to add your site to Plausible." +msgstr "" + +#: src/Admin/Settings.php:112 msgid "Custom Domain" msgstr "" -#: src/Admin/Settings.php:116 +#: src/Admin/Settings.php:124 +msgid "Enable the custom domain functionality in your Plausible account." +msgstr "" + +#: src/Admin/Settings.php:126 +msgid "See how »" +msgstr "" + +#: src/Admin/Settings.php:127 msgid "Enable this setting and configure it to link with Plausible Analytics on your custom domain." msgstr "" -#: src/Admin/Settings.php:117 +#: src/Admin/Settings.php:128 msgid "For example," msgstr "" -#: src/Admin/Settings.php:119 +#: src/Admin/Settings.php:130 msgid "or" msgstr "" -#: src/Admin/Settings.php:129 +#: src/Admin/Settings.php:140 msgid "Track analytics for administrator" msgstr "" -#: src/Admin/Settings.php:134 +#: src/Admin/Settings.php:145 msgid "By default, we won't be tracking analytics for administrator. If you want to track analytics for administrator then please enable this setting." msgstr "" -#: src/Admin/Settings.php:142, src/Admin/Settings.php:145 +#: src/Admin/Settings.php:153, src/Admin/Settings.php:156 msgid "Save Changes" msgstr "" -#: src/Admin/Settings.php:143 +#: src/Admin/Settings.php:154 msgid "Saved!" msgstr "" diff --git a/package-lock.json b/package-lock.json index 193eef2..86dfd6b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13172,6 +13172,14 @@ "moment": "^2.24.0", "php-parser": "^3.0.0-prerelease.8", "text-table": "^0.2.0" + }, + "dependencies": { + "php-parser": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/php-parser/-/php-parser-3.0.2.tgz", + "integrity": "sha512-a7y1+odEGsceLDLpu7oNyspZ0pK8FMWJOoim4/yd82AtnEZNLdCLZ67arnOQZ9K0lHJiSp4/7lVUpGELVxE14w==", + "dev": true + } } }, "wrap-ansi": { diff --git a/plausible-analytics.php b/plausible-analytics.php index 4b44ef5..76dee1d 100644 --- a/plausible-analytics.php +++ b/plausible-analytics.php @@ -5,7 +5,7 @@ * Description: Simple and privacy-friendly alternative to Google Analytics. * Author: PlausibleHQ * Author URI: https://plausible.io - * Version: 1.0.0 + * Version: 1.0.1 * Text Domain: plausible-analytics * Domain Path: /languages * diff --git a/readme.txt b/readme.txt index c9c90ad..2e1b2cc 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Tags: analytics, google analytics, web analytics, stats, privacy, privacy friend Requires at least: 4.8 Tested up to: 5.5 Requires PHP: 5.6 -Stable tag: 1.0.0 +Stable tag: 1.0.1 License: Massachusetts Institute of Technology (MIT) license License URI: https://opensource.org/licenses/MIT diff --git a/src/Admin/Settings.php b/src/Admin/Settings.php index fcc88bd..7ec40e1 100644 --- a/src/Admin/Settings.php +++ b/src/Admin/Settings.php @@ -95,7 +95,15 @@ public function plausible_analytics_settings_page() {

- + %3$s %4$s', + esc_html__( 'We have fetched the domain name for which Plausible Analytics will be used. We assume that you have already setup the domain on our website.', 'plausible-analytics' ), + esc_url( 'https://docs.plausible.io/register-account' ), + esc_html__( 'Follow these instructions', 'plausible-analytics' ), + esc_html__( 'to add your site to Plausible.', 'plausible-analytics' ) + ); + ?>

@@ -109,10 +117,13 @@ public function plausible_analytics_settings_page() {
-

+

  • %1$s %3$s
  • %4$s %5$s %6$s %7$s %8$s
  • ', + esc_html__( 'Enable the custom domain functionality in your Plausible account.', 'plausible-analytics' ), + esc_url( 'https://docs.plausible.io/custom-domain/' ), + esc_html__( 'See how »', 'plausible-analytics' ), esc_html__( 'Enable this setting and configure it to link with Plausible Analytics on your custom domain.', 'plausible-analytics' ), __( 'For example,', 'plausible-analytics' ), "stats.$domain", @@ -121,7 +132,7 @@ public function plausible_analytics_settings_page() { ); ?> -

    +