Skip to content
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
2 changes: 1 addition & 1 deletion wordpress/svn/assets/blueprints/blueprint.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"step": "installPlugin",
"pluginZipFile": {
"resource": "url",
"url": "https://downloads.wordpress.org/plugin/simplepdf-embed.1.2.1.zip"
"url": "https://downloads.wordpress.org/plugin/simplepdf-embed.1.2.2.zip"
},
"options": {
"activate": true
Expand Down
15 changes: 9 additions & 6 deletions wordpress/svn/trunk/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Contributors: bendersej
Tags: pdf, pdf form, fill pdf, sign pdf, form submissions
Tested up to: 7.1.2
Stable tag: 1.2.1
Stable tag: 1.2.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Requires at least: 5.8
Expand All @@ -27,7 +27,7 @@ With a SimplePDF account, visitors click Submit and the filled PDF lands in your
* Your logo in the editor (Pro and above)
* Filled PDFs saved to your own storage (S3 or Azure Blob Storage on Pro, SharePoint on Premium)

Every plan starts with a 7-day free trial: [see the plans](https://simplepdf.com/pricing?ref=wordpress).
Every plan starts with a 7-day free trial: [see the plans](https://simplepdf.com/pricing?ref=wordpress_plugin_directory).

**Free, without an account**

Expand Down Expand Up @@ -76,7 +76,7 @@ https://wordpress.simplepdf.co/

Without an account, visitors fill your PDF and download it. It is then up to them to send it to you.

With an account, they click Submit and the filled PDF lands in your dashboard, with an email alert or a webhook if you want one. You can export the answers to CSV or Excel, make fields required, and add your logo. [See the plans](https://simplepdf.com/pricing?ref=wordpress).
With an account, they click Submit and the filled PDF lands in your dashboard, with an email alert or a webhook if you want one. You can export the answers to CSV or Excel, make fields required, and add your logo. [See the plans](https://simplepdf.com/pricing?ref=wordpress_plugin_directory).

= Where do the filled PDFs go? =

Expand Down Expand Up @@ -127,13 +127,16 @@ The plugin and the script it bundles are open source:

== External services ==

This plugin uses [SimplePDF](https://simplepdf.com) to open your PDFs in an editor on your page. Filled PDFs stay in your visitors' browser, unless you have a SimplePDF account and they click Submit. The settings page also checks that your SimplePDF account exists.
This plugin uses [SimplePDF](https://simplepdf.com/?ref=wordpress_plugin_directory) to open your PDFs in an editor on your page. Filled PDFs stay in your visitors' browser, unless you have a SimplePDF account and they click Submit. The settings page also checks that your SimplePDF account exists.

* [Terms of service](https://simplepdf.com/terms-of-service)
* [Privacy policy](https://simplepdf.com/privacy-policy)
* [Terms of service](https://simplepdf.com/terms-of-service?ref=wordpress_plugin_directory)
* [Privacy policy](https://simplepdf.com/privacy-policy?ref=wordpress_plugin_directory)

== Changelog ==

= 1.2.2 =
* Links from the plugin to simplepdf.com now say where they come from (the plugin's settings page or its WordPress.org listing), so we can see which of them help people. They carry nothing about your site or your visitors

= 1.2.1 =
* The PDF links report now also lists the links in your Site Editor templates, template parts, synced patterns and navigation menus, like your home page, header and footer
* It lists only what visitors can reach: published pages and posts, the drafts or private pages you picked to try it, and the templates, patterns and menus your site actually shows
Expand Down
20 changes: 12 additions & 8 deletions wordpress/svn/trunk/simplepdf-embed.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Author: SimplePDF
Author URI: https://simplepdf.com
Description: Visitors fill and sign your PDFs right on your site. With a SimplePDF account, every filled PDF comes back to you, automatically.
Version: 1.2.1
Version: 1.2.2
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
Expand All @@ -14,14 +14,13 @@

require_once __DIR__ . '/pdf-links.php';

define('SIMPLEPDF_PLUGIN_VERSION', '1.2.1');
define('SIMPLEPDF_PLUGIN_VERSION', '1.2.2');
define('SIMPLEPDF_SETTINGS_SCREEN', 'settings_page_simplepdf_settings');
define('SIMPLEPDF_POST_LIST_LIMIT', 300);
define('SIMPLEPDF_PDF_PAGE_LIMIT', 100);
define('SIMPLEPDF_PDF_TABLE_PAGE_SIZE', 20);
define('SIMPLEPDF_WEB_EMBED_VERSION', '1.9.0');
define('SIMPLEPDF_REVIEW_URL', 'https://wordpress.org/support/plugin/simplepdf-embed/reviews/#new-post');
define('SIMPLEPDF_PRICING_URL', 'https://simplepdf.com/pricing?ref=wordpress');

function simplepdf_settings_init() {
add_submenu_page(
Expand Down Expand Up @@ -363,6 +362,11 @@ function simplepdf_admin_css() {
CSS;
}

// A link to simplepdf.com from this settings page: the `ref` says where it came from, nothing about the visitor.
function simplepdf_site_url($path) {
return add_query_arg('ref', 'wordpress_admin_settings', 'https://simplepdf.com' . $path);
}

function simplepdf_external_link($url, $label) {
return sprintf(
'<a href="%s" target="_blank" rel="noopener">%s <span aria-hidden="true">↗</span><span class="screen-reader-text">%s</span></a>',
Expand All @@ -379,7 +383,7 @@ function simplepdf_render_header() {
<h1><?php esc_html_e('SimplePDF Embed', 'simplepdf-embed'); ?></h1>
<span class="simplepdf-version">v<?php echo esc_html(SIMPLEPDF_PLUGIN_VERSION); ?></span>
<nav aria-label="<?php esc_attr_e('SimplePDF help', 'simplepdf-embed'); ?>">
<?php echo wp_kses_post(simplepdf_external_link('https://simplepdf.com/help', __('Help center', 'simplepdf-embed'))); ?>
<?php echo wp_kses_post(simplepdf_external_link(simplepdf_site_url('/help'), __('Help center', 'simplepdf-embed'))); ?>
<a href="mailto:support@simplepdf.com"><?php esc_html_e('Contact support', 'simplepdf-embed'); ?></a>
</nav>
</div>
Expand Down Expand Up @@ -1102,8 +1106,8 @@ function simplepdf_render_account_next_steps($account_address) {
?>
<ul class="simplepdf-next-steps">
<li><?php echo wp_kses_post(simplepdf_external_link('https://' . $account_address . '/account/documents', __('Open your dashboard', 'simplepdf-embed'))); ?></li>
<li><?php echo wp_kses_post(simplepdf_external_link('https://simplepdf.com/help/how-to/get-email-notifications-for-pdf-form-submissions', __('Turn on email alerts for your forms', 'simplepdf-embed'))); ?></li>
<li><?php echo wp_kses_post(simplepdf_external_link('https://simplepdf.com/help/how-to/configure-webhooks-pdf-form-submissions', __('Send filled PDFs to your own systems with a webhook', 'simplepdf-embed'))); ?></li>
<li><?php echo wp_kses_post(simplepdf_external_link(simplepdf_site_url('/help/how-to/get-email-notifications-for-pdf-form-submissions'), __('Turn on email alerts for your forms', 'simplepdf-embed'))); ?></li>
<li><?php echo wp_kses_post(simplepdf_external_link(simplepdf_site_url('/help/how-to/configure-webhooks-pdf-form-submissions'), __('Send filled PDFs to your own systems with a webhook', 'simplepdf-embed'))); ?></li>
</ul>
<?php
}
Expand Down Expand Up @@ -1204,7 +1208,7 @@ function simplepdf_render_account_pitch() {
</ul>
<p class="description"><?php esc_html_e('On Pro and above: your logo in the editor, and filled PDFs saved to your own storage (S3 or Azure Blob Storage on Pro, SharePoint on Premium).', 'simplepdf-embed'); ?></p>
<div class="simplepdf-cta">
<a class="button button-primary button-hero" href="<?php echo esc_url(SIMPLEPDF_PRICING_URL); ?>" target="_blank" rel="noopener">
<a class="button button-primary button-hero" href="<?php echo esc_url(simplepdf_site_url('/pricing')); ?>" target="_blank" rel="noopener">
<?php esc_html_e('Get filled PDFs back', 'simplepdf-embed'); ?>
<span class="screen-reader-text"><?php esc_html_e('(opens in a new tab)', 'simplepdf-embed'); ?></span>
</a>
Expand Down Expand Up @@ -1402,7 +1406,7 @@ function simplepdf_render_help_card() {
<h3><?php echo esc_html($section['heading']); ?></h3>
<ul>
<?php foreach ( $section['links'] as $article_path => $label ) : ?>
<li><?php echo wp_kses_post(simplepdf_external_link('https://simplepdf.com/help/' . $article_path, $label)); ?></li>
<li><?php echo wp_kses_post(simplepdf_external_link(simplepdf_site_url('/help/' . $article_path), $label)); ?></li>
<?php endforeach; ?>
</ul>
</div>
Expand Down
Loading