Skip to content

Commit

Permalink
Merge pull request #30 from michelegiorgi/development
Browse files Browse the repository at this point in the history
release 1.3.3
  • Loading branch information
michelegiorgi authored Jun 13, 2021
2 parents f162d6a + 3a0efb2 commit a51df06
Show file tree
Hide file tree
Showing 11 changed files with 71 additions and 76 deletions.
9 changes: 9 additions & 0 deletions admin/class-formality-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,15 @@ public function form_columns_data( $column, $post_id ) {
}
}

public function link_website( $links, $file ) {
if ( strpos( $file, 'formality.php' ) !== false ) {
$new_links = array('<a href="https://formality.dev" target="_blank">' . __('Visit new plugin site', 'formality') . '<span style="font-size: 1.1em; height: auto;
vertical-align: middle; margin: 0 0 2px 1px" class="dashicons dashicons-formality"></span></a>');
$links = array_merge( $links, $new_links );
}
return $links;
}

public function welcome_notice() {
global $pagenow, $typenow;
if ('edit.php' === $pagenow && strpos($typenow, 'formality_') !== false) {
Expand Down
3 changes: 0 additions & 3 deletions assets/scripts/public/core/uiux.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,5 @@ export default {
//
}
}
},
dbg($field) {

}
}
21 changes: 0 additions & 21 deletions assets/styles/public/common/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,3 @@
font-style: normal;
font-weight: 400;
}

.material-icons {
font-family: 'Material Icons';
font-weight: normal;
font-style: normal;
font-size: 24px;
line-height: 1;
letter-spacing: normal;
text-transform: none;
display: inline-block;
white-space: nowrap;
word-wrap: normal;
direction: ltr;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
}

h4 {
//font-weight: bold;
font-size: 1.2em;
}
3 changes: 2 additions & 1 deletion assets/styles/public/common/_utility.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
html.html-formality {
margin: 0 !important;
font-size: var(--formality_fontsize) !important;
scroll-behavior: auto !important;
body.body-formality {
#wpadminbar {
display:none !important;
display: none !important;
}
}
}
2 changes: 1 addition & 1 deletion assets/styles/public/templates/_side.scss
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ body.body-formality--side {
flex-grow: 0;
flex-shrink: 0;
.formality__wrap {
max-width: 640px;
max-width: calc(var(--formality_fontsize) * 32);
margin: 0 0 0 auto;
}
.formality__body {
Expand Down
8 changes: 4 additions & 4 deletions assets/styles/public/templates/_standard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ body.body-formality {
}
}
@include breakpoint(tablet, true) {
max-width: 1100px;
max-width: calc(var(--formality_fontsize) * 55);
margin: 0 auto;
&.formality--conversational {
.formality__footer,
Expand Down Expand Up @@ -149,7 +149,7 @@ body.body-formality {
.formality__actions,
.formality__result,
.formality__credits {
max-width: 640px;
max-width: calc(var(--formality_fontsize) * 32);
width: 60%;
}
}
Expand All @@ -158,15 +158,15 @@ body.body-formality {
justify-content: space-between;
.formality__main {
order: 0;
max-width: 640px;
max-width: calc(var(--formality_fontsize) * 32);
width: 60%;
flex-grow: 0;
flex-shrink: 0;
}
.formality__nav {
order: 1;
width: 34%;
max-width: 360px;
max-width: calc(var(--formality_fontsize) * 18);
flex-grow: 0;
flex-shrink: 0;
padding-top: .5em;
Expand Down
4 changes: 2 additions & 2 deletions formality.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Plugin Name: Formality
* Plugin URI: https://formality.dev
* Description: Forms made simple (and cute). Designless, multistep, conversational, secure, all-in-one WordPress forms plugin.
* Version: 1.3.2
* Version: 1.3.3
* Author: Michele Giorgi
* Author URI: https://giorgi.io
* License: GPLv3
Expand Down Expand Up @@ -51,7 +51,7 @@
/**
* Currently plugin version.
*/
define( 'FORMALITY_VERSION', '1.3.2' );
define( 'FORMALITY_VERSION', '1.3.3' );
define( 'FORMALITY_PATH', plugin_dir_path( __FILE__ ));

/**
Expand Down
3 changes: 2 additions & 1 deletion includes/class-formality.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Formality {
*/
public function __construct() {

$this->version = defined( 'FORMALITY_VERSION' ) ? FORMALITY_VERSION : '1.3.2';
$this->version = defined( 'FORMALITY_VERSION' ) ? FORMALITY_VERSION : '1.3.3';
$this->formality = 'formality';
$this->fse = version_compare( $GLOBALS['wp_version'], '5.7.9', '>' );

Expand Down Expand Up @@ -129,6 +129,7 @@ private function define_admin_hooks() {
$this->loader->add_filter( 'manage_formality_form_posts_columns', $plugin_admin, 'form_columns', 99 );
$this->loader->add_action( 'manage_formality_form_posts_custom_column', $plugin_admin, 'form_columns_data', 10, 2 );
$this->loader->add_action( 'admin_notices', $plugin_admin, 'welcome_notice');
$this->loader->add_filter( 'plugin_row_meta', $plugin_admin, 'link_website', 10, 2 );

$plugin_tools = new Formality_Tools( $this->get_formality(), $this->get_version() );
$this->loader->add_action( 'admin_init', $plugin_tools, 'flush_rules');
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Formality",
"version": "1.3.2",
"version": "1.3.3",
"author": "Michele Giorgi <[email protected]>",
"homepage": "https://giorgi.io",
"private": true,
Expand Down
9 changes: 8 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: https://www.paypal.me/michelegiorgi/
Tags: form, conversational, multistep, design form, gutenberg, block editor
Requires at least: 5.6
Tested up to: 5.7
Stable tag: 1.3.2
Stable tag: 1.3.3
Requires PHP: 7.0
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.txt
Expand Down Expand Up @@ -61,6 +61,13 @@ You will find **Formality** menu in your WordPress admin screen.

== Changelog ==

= 1.3.3 =
Release Date: Jun 13th, 2021

* Minor UI changes
* Formality brand refresh
* New website online

= 1.3.2 =
Release Date: May 25th, 2021

Expand Down
83 changes: 42 additions & 41 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1966,14 +1966,15 @@ browserify-zlib@^0.2.0:
pako "~1.0.5"

browserslist@^4.0.0, browserslist@^4.12.0, browserslist@^4.8.5:
version "4.14.0"
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.14.0.tgz"
integrity sha512-pUsXKAF2lVwhmtpeA3LJrZ76jXuusrNyhduuQs7CDFf9foT4Y38aQOserd2lMe5DSSrjf3fx34oHwryuvxAUgQ==
version "4.16.6"
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.16.6.tgz#d7901277a5a88e554ed305b183ec9b0c08f66fa2"
integrity sha512-Wspk/PqO+4W9qp5iUTJsa1B/QrYn1keNCcEP5OvP7WBwT4KaDly0uONYmC6Xa3Z5IqnUgS0KcgLYu1l74x0ZXQ==
dependencies:
caniuse-lite "^1.0.30001111"
electron-to-chromium "^1.3.523"
escalade "^3.0.2"
node-releases "^1.1.60"
caniuse-lite "^1.0.30001219"
colorette "^1.2.2"
electron-to-chromium "^1.3.723"
escalade "^3.1.1"
node-releases "^1.1.71"

[email protected]:
version "1.3.4"
Expand Down Expand Up @@ -2158,10 +2159,10 @@ caniuse-api@^3.0.0:
lodash.memoize "^4.1.2"
lodash.uniq "^4.5.0"

caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001111:
version "1.0.30001116"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001116.tgz"
integrity sha512-f2lcYnmAI5Mst9+g0nkMIznFGsArRmZ0qU+dnq8l91hymdc2J3SFbiPhOJEeDqC1vtE8nc1qNQyklzB8veJefQ==
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001219:
version "1.0.30001228"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001228.tgz#bfdc5942cd3326fa51ee0b42fbef4da9d492a7fa"
integrity sha512-QQmLOGJ3DEgokHbMSA8cj2a+geXqmnpyOFT0lhQV6P3/YOJvGDEwoedcwxEQ30gJIwIIunHIicunJ2rzK5gB2A==

ccount@^1.0.0:
version "1.0.5"
Expand Down Expand Up @@ -2412,10 +2413,10 @@ color@^3.0.0:
color-convert "^1.9.1"
color-string "^1.5.2"

colorette@^1.2.1:
version "1.2.1"
resolved "https://registry.yarnpkg.com/colorette/-/colorette-1.2.1.tgz"
integrity sha512-puCDz0CzydiSYOrnXpz/PKd69zRrribezjtE9yd4zvytoRc8+RY/KJPvtPFKZS3E3wP6neGyMe0vOTlHO5L3Pw==
colorette@^1.2.1, colorette@^1.2.2:
version "1.2.2"
resolved "https://registry.yarnpkg.com/colorette/-/colorette-1.2.2.tgz#cbcc79d5e99caea2dbf10eb3a26fd8b3e6acfa94"
integrity sha512-MKGMzyfeuutC/ZJ1cba9NqcNpfeqMUcYmyF1ZFY6/Cn7CNSAKx6a+s48sqLqyAiZuaP2TcqMhoo+dlwFnVxT9w==

[email protected]:
version "2.17.1"
Expand Down Expand Up @@ -3177,10 +3178,10 @@ [email protected]:
resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz"
integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=

electron-to-chromium@^1.3.523:
version "1.3.539"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.539.tgz"
integrity sha512-rM0LWDIstdqfaRUADZetNrL6+zd/0NBmavbMEhBXgc2u/CC1d1GaDyN5hho29fFvBiOVFwrSWZkzmNcZnCEDog==
electron-to-chromium@^1.3.723:
version "1.3.737"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.737.tgz#196f2e9656f4f3c31930750e1899c091b72d36b5"
integrity sha512-P/B84AgUSQXaum7a8m11HUsYL8tj9h/Pt5f7Hg7Ty6bm5DxlFq+e5+ouHUoNQMsKDJ7u4yGfI8mOErCmSH9wyg==

elliptic@^6.5.3:
version "6.5.3"
Expand Down Expand Up @@ -3389,10 +3390,10 @@ es6-templates@^0.2.3:
recast "~0.11.12"
through "~2.3.6"

escalade@^3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.0.2.tgz"
integrity sha512-gPYAU37hYCUhW5euPeR+Y74F7BL+IBsV93j5cvGriSaD1aG6MGsqsV1yamRdrWrb2j3aiZvb0X+UBOWpx3JWtQ==
escalade@^3.1.1:
version "3.1.1"
resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40"
integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==

escape-html@~1.0.3:
version "1.0.3"
Expand Down Expand Up @@ -4365,9 +4366,9 @@ homedir-polyfill@^1.0.1:
parse-passwd "^1.0.0"

hosted-git-info@^2.1.4:
version "2.8.8"
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.8.tgz"
integrity sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg==
version "2.8.9"
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.9.tgz#dffc0bf9a21c02209090f2aa69429e1414daf3f9"
integrity sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==

hpack.js@^2.1.6:
version "2.1.6"
Expand Down Expand Up @@ -5425,9 +5426,9 @@ lodash.uniq@^4.5.0:
integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=

lodash@^4, lodash@^4.17.10, lodash@^4.17.11, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.5:
version "4.17.20"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.20.tgz"
integrity sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==
version "4.17.21"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==

log-symbols@^2.2.0:
version "2.2.0"
Expand Down Expand Up @@ -5963,10 +5964,10 @@ node-notifier@^5.1.2:
shellwords "^0.1.1"
which "^1.3.0"

node-releases@^1.1.60:
version "1.1.60"
resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.60.tgz"
integrity sha512-gsO4vjEdQaTusZAEebUWp2a5d7dF5DYoIpDG7WySnk7BuZDW+GPpHXoXXuYawRBr/9t5q54tirPz79kFIWg4dA==
node-releases@^1.1.71:
version "1.1.72"
resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.72.tgz#14802ab6b1039a79a0c7d662b610a5bbd76eacbe"
integrity sha512-LLUo+PpH3dU6XizX3iVoubUNheF/owjXCZZ5yACDxNnPtgFuludV1ZL3ayK1kVep42Rmm0+R9/Y60NQbZ2bifw==

normalize-package-data@^2.3.2, normalize-package-data@^2.5.0:
version "2.5.0"
Expand Down Expand Up @@ -7171,7 +7172,7 @@ [email protected]:

querystringify@^2.1.1:
version "2.2.0"
resolved "https://registry.yarnpkg.com/querystringify/-/querystringify-2.2.0.tgz"
resolved "https://registry.yarnpkg.com/querystringify/-/querystringify-2.2.0.tgz#3345941b4153cb9d082d8eee4cda2016a9aef7f6"
integrity sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==

quick-lru@^4.0.1:
Expand Down Expand Up @@ -7539,7 +7540,7 @@ require-main-filename@^2.0.0:

requires-port@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz"
resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff"
integrity sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=

resolve-cwd@^2.0.0:
Expand Down Expand Up @@ -8852,9 +8853,9 @@ typedarray@^0.0.6:
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=

ua-parser-js@^0.7.18:
version "0.7.21"
resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.21.tgz"
integrity sha512-+O8/qh/Qj8CgC6eYBVBykMrNtp5Gebn4dlGD/kKXVkJNDwyrAwSIqwz8CDf+tsAIWVycKcku6gIXJ0qwx/ZXaQ==
version "0.7.28"
resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.28.tgz#8ba04e653f35ce210239c64661685bf9121dec31"
integrity sha512-6Gurc1n//gjp9eQNXjD9O3M/sMwVtN5S8Lv9bvOYBfKfDNiIIhqiyi01vMBO45u4zkDE420w/e0se7Vs+sIg+g==

[email protected]:
version "3.4.10"
Expand Down Expand Up @@ -9035,9 +9036,9 @@ urix@^0.1.0:
integrity sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=

url-parse@^1.4.3:
version "1.4.7"
resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.4.7.tgz"
integrity sha512-d3uaVyzDB9tQoSXFvuSUNFibTd9zxd2bkVrDRvF5TmvWWQwqE4lgYJ5m+x1DbecWkw+LK4RNl2CU1hHuOKPVlg==
version "1.5.1"
resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.5.1.tgz#d5fa9890af8a5e1f274a2c98376510f6425f6e3b"
integrity sha512-HOfCOUJt7iSYzEx/UqgtwKRMC6EU91NFhsCHMv9oM03VJcVo2Qrp8T8kI9D7amFf1cu+/3CEhgb3rF9zL7k85Q==
dependencies:
querystringify "^2.1.1"
requires-port "^1.0.0"
Expand Down

0 comments on commit a51df06

Please sign in to comment.