Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.0.1 #1

Merged
merged 5 commits into from
Oct 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions assets/src/css/admin/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
align-items: center;
background-color: #fff;
padding: 0;
padding: 0;
margin: 0 0 0 -20px;

.plausible-analytics-logo {
Expand Down Expand Up @@ -68,6 +69,10 @@
border-top: 1px dashed #e5e5e5;
padding: 10px 0 0 0;
margin: 15px 0 0 0;

ol {
margin: 5px 15px;
}
}
}
}
4 changes: 2 additions & 2 deletions config/constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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 ) );
}
}
32 changes: 24 additions & 8 deletions languages/plausible-analytics.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
8 changes: 8 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plausible-analytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
19 changes: 15 additions & 4 deletions src/Admin/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,15 @@ public function plausible_analytics_settings_page() {
</div>
</div>
<p class="plausible-analytics-description">
<?php esc_html_e( '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' ); ?>
<?php
echo sprintf(
'%1$s <a href="%2$s" target="_blank">%3$s</a> %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' )
);
?>
</p>
</div>
<div class="plausible-analytics-admin-field">
Expand All @@ -109,10 +117,13 @@ public function plausible_analytics_settings_page() {
</label>
<?php echo Helpers::display_toggle_switch( 'custom_domain' ); ?>
</div>
<p class="plausible-analytics-description">
<div class="plausible-analytics-description">
<?php
echo sprintf(
'%1$s %2$s %3$s %4$s %5$s',
'<ol><li>%1$s <a href="%2$s" target="_blank">%3$s</a></li><li>%4$s %5$s %6$s %7$s %8$s</li></ol>',
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 &raquo;', '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' ),
"<code>stats.$domain</code>",
Expand All @@ -121,7 +132,7 @@ public function plausible_analytics_settings_page() {
);

?>
</p>
</div>
</div>
<div class="plausible-analytics-admin-field">
<div class="plausible-analytics-admin-field-header">
Expand Down