Disable and Remove Google Fonts - Version 1.5.0

Version Description

Download this release

Release Info

Developer DannyCooper
Plugin Icon wp plugin Disable and Remove Google Fonts
Version 1.5.0
Comparing to
See all releases

Code changes from version 1.4.9 to 1.5.0

admin/class-drgf-admin.php CHANGED
@@ -19,7 +19,6 @@ class DRGF_Admin {
19
  add_action( 'admin_menu', array( $this, 'add_submenu' ), 10 );
20
  add_action( 'admin_init', array( $this, 'admin_redirect' ) );
21
  add_action( 'admin_enqueue_scripts', array( $this, 'enqueue' ) );
22
- add_action( 'wp_ajax_ogf_dismiss_guide', array( $this, 'dismiss_guide' ) );
23
  }
24
 
25
  function activate() {
@@ -67,6 +66,7 @@ function admin_redirect() {
67
  * Options page callback
68
  */
69
  public function render_welcome_page() {
 
70
  $site_url = site_url( '', 'https' );
71
  $url = preg_replace( '(^https?://)', '', $site_url );
72
  ?>
@@ -102,14 +102,6 @@ function admin_redirect() {
102
  </div>
103
  <?php
104
  }
105
-
106
- /**
107
- * AJAX handler to store the state of dismissible notices.
108
- */
109
- public function dismiss_guide() {
110
- // Store it in the options table.
111
- update_option( 'drgf_dismiss_guide', true );
112
- }
113
  }
114
 
115
  if ( is_admin() ) {
19
  add_action( 'admin_menu', array( $this, 'add_submenu' ), 10 );
20
  add_action( 'admin_init', array( $this, 'admin_redirect' ) );
21
  add_action( 'admin_enqueue_scripts', array( $this, 'enqueue' ) );
 
22
  }
23
 
24
  function activate() {
66
  * Options page callback
67
  */
68
  public function render_welcome_page() {
69
+ update_option( 'dismissed-drgf-welcome', true );
70
  $site_url = site_url( '', 'https' );
71
  $url = preg_replace( '(^https?://)', '', $site_url );
72
  ?>
102
  </div>
103
  <?php
104
  }
 
 
 
 
 
 
 
 
105
  }
106
 
107
  if ( is_admin() ) {
admin/class-drgf-notice.php CHANGED
@@ -94,7 +94,7 @@ endif;
94
 
95
  $message = sprintf(
96
  // translators: %s Link to DRGF welcome page.
97
- __( 'Thank you for installing <strong>Disable & Remove Google Fonts</strong>! <a href="%s">Finish the setup process.</a>.', 'olympus-google-fonts' ),
98
  esc_url( admin_url( '/themes.php?page=drgf' ) )
99
  );
100
 
94
 
95
  $message = sprintf(
96
  // translators: %s Link to DRGF welcome page.
97
+ __( 'Thank you for installing <strong>Disable & Remove Google Fonts</strong>! <a href="%s">Finish the setup process</a>.', 'olympus-google-fonts' ),
98
  esc_url( admin_url( '/themes.php?page=drgf' ) )
99
  );
100
 
admin/style.css CHANGED
@@ -5,29 +5,17 @@
5
 
6
  .drgf-admin__wrap p {
7
  font-size: 16px;
 
8
  margin-top: 0;
9
  font-family: 'Source Sans Pro', 'Helvetica Neue', sans-serif;
10
  }
11
 
12
- .drgf-admin__wrap p {
13
- line-height: 1.6;
14
- }
15
-
16
  .drgf-admin__wrap h3 {
17
  font-size: 1.1rem !important;
18
  margin: 1.5em 0 1em;
19
  font-weight: bold;
20
  }
21
 
22
- .drgf-admin__wrap ul {
23
- list-style: disc;
24
- margin-left: 32px
25
- }
26
-
27
- .drgf-admin__wrap ul li {
28
- margin-bottom: 8px
29
- }
30
-
31
  .drgf-admin__content {
32
  background: #fff;
33
  border-radius: 3px;
@@ -45,33 +33,13 @@
45
  .drgf-admin__content__header h1 {
46
  font-size: 24px;
47
  padding: 50px 50px 0;
48
- margin: 0
49
  }
50
 
51
  .drgf-admin__content__inner {
52
- background-color: #fff;
53
  padding: 25px 50px 50px;
54
  }
55
 
56
- .drgf-admin__sidebar__inner {
57
- background-color: white;
58
- }
59
-
60
- .drgf-admin__sidebar__header {
61
- background-color: #0d72a7
62
- }
63
-
64
- .drgf-admin__sidebar__plugin {
65
- padding: 30px;
66
- }
67
-
68
- .drgf-admin__sidebar__header h2 {
69
- color: #fff;
70
- font-size: 16px;
71
- padding: 20px 30px;
72
- margin: 0
73
- }
74
-
75
  .drgf-admin__button.button {
76
  color: #fff;
77
  border-color: #a10000;
@@ -79,18 +47,17 @@
79
  padding: 4px 16px;
80
  font-size: 16px;
81
  font-weight: 600;
82
- height: auto
83
  }
 
84
  .drgf-admin__button.button:hover {
85
  color: #fff;
86
  border-color: #a10000;
87
  background: #a10000;
88
  padding: 4px 16px;
89
-
90
  }
91
 
92
  @media only screen and (max-width: 960px) {
93
-
94
  .drgf-admin__content {
95
  max-width: 98%;
96
  float: none;
@@ -99,13 +66,4 @@
99
  .drgf-admin__wrap {
100
  margin: 1%;
101
  }
102
-
103
- }
104
- @media only screen and (max-width: 480px) {
105
-
106
- .drgf-admin__wrap .button {
107
- width: 100%;
108
- margin-left: 0;
109
- }
110
-
111
  }
5
 
6
  .drgf-admin__wrap p {
7
  font-size: 16px;
8
+ line-height: 1.6;
9
  margin-top: 0;
10
  font-family: 'Source Sans Pro', 'Helvetica Neue', sans-serif;
11
  }
12
 
 
 
 
 
13
  .drgf-admin__wrap h3 {
14
  font-size: 1.1rem !important;
15
  margin: 1.5em 0 1em;
16
  font-weight: bold;
17
  }
18
 
 
 
 
 
 
 
 
 
 
19
  .drgf-admin__content {
20
  background: #fff;
21
  border-radius: 3px;
33
  .drgf-admin__content__header h1 {
34
  font-size: 24px;
35
  padding: 50px 50px 0;
36
+ margin: 0;
37
  }
38
 
39
  .drgf-admin__content__inner {
 
40
  padding: 25px 50px 50px;
41
  }
42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  .drgf-admin__button.button {
44
  color: #fff;
45
  border-color: #a10000;
47
  padding: 4px 16px;
48
  font-size: 16px;
49
  font-weight: 600;
50
+ height: auto;
51
  }
52
+
53
  .drgf-admin__button.button:hover {
54
  color: #fff;
55
  border-color: #a10000;
56
  background: #a10000;
57
  padding: 4px 16px;
 
58
  }
59
 
60
  @media only screen and (max-width: 960px) {
 
61
  .drgf-admin__content {
62
  max-width: 98%;
63
  float: none;
66
  .drgf-admin__wrap {
67
  margin: 1%;
68
  }
 
 
 
 
 
 
 
 
 
69
  }
changelog.txt CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  = 1.4.9 =
2
 
3
  * Add compatibility for X theme.
1
+ = 1.5.0 =
2
+
3
+ * Admin improvements.
4
+
5
  = 1.4.9 =
6
 
7
  * Add compatibility for X theme.
disable-remove-google-fonts.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Optimize frontend performance by disabling Google Fonts. GDPR-friendly.
6
  * Author: Fonts Plugin
7
  * Author URI: https://fontsplugin.com
8
- * Version: 1.4.9
9
  * License: GPLv2 or later
10
  * License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
11
  *
@@ -31,7 +31,7 @@ if ( ! defined( 'DRGF_PLUGIN_FILE' ) ) {
31
  }
32
 
33
  if ( ! defined( 'DRGF_VERSION' ) ) {
34
- define( 'DRGF_VERSION', '1.4.9' );
35
  }
36
 
37
  if ( ! defined( 'DRGF_DIR_PATH' ) ) {
5
  * Description: Optimize frontend performance by disabling Google Fonts. GDPR-friendly.
6
  * Author: Fonts Plugin
7
  * Author URI: https://fontsplugin.com
8
+ * Version: 1.5.0
9
  * License: GPLv2 or later
10
  * License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
11
  *
31
  }
32
 
33
  if ( ! defined( 'DRGF_VERSION' ) ) {
34
+ define( 'DRGF_VERSION', '1.5.0' );
35
  }
36
 
37
  if ( ! defined( 'DRGF_DIR_PATH' ) ) {