Atomic Blocks – Gutenberg Blocks Collection - Version 1.0.7

Version Description

  • Improve Quick Start box on the Getting Started page.
  • Fix issue with FontAwesome not loading on Getting Started page.
Download this release

Release Info

Developer atomicblocks
Plugin Icon 128x128 Atomic Blocks – Gutenberg Blocks Collection
Version 1.0.7
Comparing to
See all releases

Code changes from version 1.0.6 to 1.0.7

README.md CHANGED
@@ -70,6 +70,10 @@ Yes, you will need to install the [Gutenberg plugin](https://wordpress.org/plugi
70
 
71
  ## Changelog
72
 
 
 
 
 
73
  **1.0.6**
74
  * Add PanelBody to inspector controls.
75
  * Group social links together in Profile block.
70
 
71
  ## Changelog
72
 
73
+ **1.0.7**
74
+ * Improve Quick Start box on the Getting Started page.
75
+ * Fix issue with FontAwesome not loading on Getting Started page.
76
+
77
  **1.0.6**
78
  * Add PanelBody to inspector controls.
79
  * Group social links together in Profile block.
README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://atomicblocks.com
4
  Tags: gutenberg, blocks, page builder, gutenberg blocks, editor, atomicblocks, builder, wordpress 5.0, options
5
  Requires at least: 4.7
6
  Tested up to: 4.9.5
7
- Stable tag: 1.0.6
8
  Requires PHP: 5.2.4
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -92,6 +92,10 @@ Yes, you will need to install the [Gutenberg plugin](https://wordpress.org/plugi
92
 
93
  == Changelog ==
94
 
 
 
 
 
95
  = 1.0.6 =
96
  * Add PanelBody to inspector controls.
97
  * Group social links together in Profile block.
4
  Tags: gutenberg, blocks, page builder, gutenberg blocks, editor, atomicblocks, builder, wordpress 5.0, options
5
  Requires at least: 4.7
6
  Tested up to: 4.9.5
7
+ Stable tag: 1.0.7
8
  Requires PHP: 5.2.4
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
92
 
93
  == Changelog ==
94
 
95
+ = 1.0.7 =
96
+ * Improve Quick Start box on the Getting Started page.
97
+ * Fix issue with FontAwesome not loading on Getting Started page.
98
+
99
  = 1.0.6 =
100
  * Add PanelBody to inspector controls.
101
  * Group social links together in Profile block.
atomicblocks.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: A beautiful collection of handy Gutenberg blocks to help you get started with the new WordPress editor.
6
  * Author: atomicblocks
7
  * Author URI: http://arraythemes.com
8
- * Version: 1.0.6
9
  * License: GPL2+
10
  * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
11
  *
5
  * Description: A beautiful collection of handy Gutenberg blocks to help you get started with the new WordPress editor.
6
  * Author: atomicblocks
7
  * Author URI: http://arraythemes.com
8
+ * Version: 1.0.7
9
  * License: GPL2+
10
  * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
11
  *
dist/getting-started/getting-started.css CHANGED
@@ -281,11 +281,26 @@
281
  }
282
 
283
  .getting-started .intro h3 {
284
- font-size: 44px;
285
  line-height: 1.2;
286
  font-weight: 300;
287
  margin: 0;
288
  color: #fff;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
289
  }
290
 
291
  .getting-started .intro h4 {
@@ -661,4 +676,8 @@ h4 .button {
661
  font-size: 16px;
662
  margin-top: .5em;
663
  text-align: center;
 
 
 
 
664
  }
281
  }
282
 
283
  .getting-started .intro h3 {
284
+ font-size: 40px;
285
  line-height: 1.2;
286
  font-weight: 300;
287
  margin: 0;
288
  color: #fff;
289
+ display: inline-block;
290
+ }
291
+
292
+ .atomic-logo {
293
+ max-width: 245px;
294
+ display: inline-block;
295
+ float: right;
296
+ margin-top: 2px;
297
+ }
298
+
299
+ @media only screen and (max-width:800px) {
300
+ .atomic-logo {
301
+ float: none;
302
+ margin-bottom: 6%;
303
+ }
304
  }
305
 
306
  .getting-started .intro h4 {
676
  font-size: 16px;
677
  margin-top: .5em;
678
  text-align: center;
679
+ }
680
+
681
+ .getting-started div[id^='attachment'] {
682
+ max-width: 100% !important;
683
  }
dist/getting-started/getting-started.php CHANGED
@@ -26,6 +26,10 @@ function atomic_blocks_start_load_admin_scripts() {
26
  // Getting Started styles
27
  wp_register_style( 'atomic-blocks-getting-started', plugins_url( 'getting-started/getting-started.css', dirname( __FILE__ ) ), false, '1.0.0' );
28
  wp_enqueue_style( 'atomic-blocks-getting-started' );
 
 
 
 
29
  }
30
  add_action( 'admin_enqueue_scripts', 'atomic_blocks_start_load_admin_scripts' );
31
 
@@ -90,7 +94,7 @@ function atomic_blocks_getting_started_page() {
90
  ),
91
  admin_url( 'update.php' )
92
  ),
93
- 'install-plugin-gutenberg'
94
  );
95
 
96
  $ab_install_url = wp_nonce_url(
@@ -101,12 +105,13 @@ function atomic_blocks_getting_started_page() {
101
  ),
102
  admin_url( 'update.php' )
103
  ),
104
- 'install-plugin-atomic-blocks'
105
  );
106
  ?>
107
  <div class="wrap getting-started">
108
  <div class="intro-wrap">
109
  <div class="intro">
 
110
  <h3><?php printf( esc_html__( 'Getting started with', 'atomic-blocks' ) ); ?> <strong><?php printf( esc_html__( 'Atomic Blocks', 'atomic-blocks' ) ); ?></strong></h3>
111
  </div>
112
 
@@ -210,25 +215,31 @@ function atomic_blocks_getting_started_page() {
210
  </div>
211
 
212
  <ul>
213
- <li class="cell <?php if( function_exists( 'gutenberg_init' ) ) { echo 'step-complete'; } ?>">
214
  <strong><?php esc_html_e( '1. Install the Gutenberg plugin.', 'atomic-blocks' ); ?></strong>
215
- <p><?php esc_html_e( 'Gutenberg adds the new block-based editor to WordPress.', 'atomic-blocks' ); ?></p>
216
 
217
- <?php if( ! function_exists( 'gutenberg_init' ) ) { ?>
218
- <a class="button-primary club-button" href="<?php echo esc_url( $gberg_install_url ); ?>"><?php esc_html_e( 'Install Gutenberg now', 'atomic-blocks' ); ?> &rarr;</a>
 
 
 
219
  <?php } else { ?>
220
- <strong><i class="fa fa-check"></i> <?php esc_html_e( 'Plugin already installed!', 'atomic-blocks' ); ?></strong>
221
  <?php } ?>
222
  </li>
223
 
224
  <li class="cell <?php if( function_exists( 'atomic_blocks_loader' ) ) { echo 'step-complete'; } ?>">
225
  <strong><?php esc_html_e( '2. Install the Atomic Blocks plugin.', 'atomic-blocks' ); ?></strong>
226
- <p><?php esc_html_e( 'Atomic Blocks adds several handy blocks to the block editor.', 'atomic-blocks' ); ?></p>
227
 
228
- <?php if( ! function_exists( 'atomic_blocks_loader' ) ) { ?>
229
- <a class="button-primary club-button" href="<?php echo esc_url( $ab_install_url ); ?>"><?php esc_html_e( 'Install Atomic Blocks now', 'atomic-blocks' ); ?> &rarr;</a>
 
 
 
230
  <?php } else { ?>
231
- <strong><i class="fa fa-check"></i> <?php esc_html_e( 'Plugin already installed!', 'atomic-blocks' ); ?></strong>
232
  <?php } ?>
233
  </li>
234
  </ul>
@@ -262,7 +273,7 @@ function atomic_blocks_getting_started_page() {
262
 
263
  <ul>
264
  <li class="cell">
265
- <p><?php esc_html_e( 'The Atomic Blocks theme and plugin are both in early development. Join the newsletter and we will send you an email when we update the theme and plugin!', 'atomic-blocks' ); ?></p>
266
 
267
  <a class="button-primary club-button" target="_blank" href="<?php echo esc_url( 'https://goo.gl/3pC6LE' ); ?>"><?php esc_html_e( 'Subscribe Now', 'atomic-blocks' ); ?> &rarr;</a>
268
  </li>
26
  // Getting Started styles
27
  wp_register_style( 'atomic-blocks-getting-started', plugins_url( 'getting-started/getting-started.css', dirname( __FILE__ ) ), false, '1.0.0' );
28
  wp_enqueue_style( 'atomic-blocks-getting-started' );
29
+
30
+ // FontAwesome
31
+ wp_register_style( 'atomic-blocks-fontawesome', get_template_directory_uri() . '/inc/fontawesome/css/font-awesome.css', false, '1.0.0' );
32
+ wp_enqueue_style( 'atomic-blocks-fontawesome' );
33
  }
34
  add_action( 'admin_enqueue_scripts', 'atomic_blocks_start_load_admin_scripts' );
35
 
94
  ),
95
  admin_url( 'update.php' )
96
  ),
97
+ 'install-plugin_gutenberg'
98
  );
99
 
100
  $ab_install_url = wp_nonce_url(
105
  ),
106
  admin_url( 'update.php' )
107
  ),
108
+ 'install-plugin_atomic-blocks'
109
  );
110
  ?>
111
  <div class="wrap getting-started">
112
  <div class="intro-wrap">
113
  <div class="intro">
114
+ <a href="<?php echo esc_url('https://goo.gl/NfXcof'); ?>"><img class="atomic-logo" src="<?php echo get_template_directory_uri(); ?>/inc/admin/getting-started/logo.png" alt="<?php esc_html_e( 'Visit Atomic Blocks', 'atomic-blocks' ); ?>" /></a>
115
  <h3><?php printf( esc_html__( 'Getting started with', 'atomic-blocks' ) ); ?> <strong><?php printf( esc_html__( 'Atomic Blocks', 'atomic-blocks' ) ); ?></strong></h3>
116
  </div>
117
 
215
  </div>
216
 
217
  <ul>
218
+ <li class="cell <?php if( function_exists( 'gutenberg_init' ) ) { echo 'step-complete'; } ?>">
219
  <strong><?php esc_html_e( '1. Install the Gutenberg plugin.', 'atomic-blocks' ); ?></strong>
220
+ <p><?php esc_html_e( 'Gutenberg adds the new block-based editor to WordPress. You will need this to work with the Atomic Blocks plugin.', 'atomic-blocks' ); ?></p>
221
 
222
+ <?php if( ! array_key_exists( 'gutenberg/gutenberg.php', get_plugins() ) ) { ?>
223
+ <a target="_blank" class="button-primary club-button" href="<?php echo esc_url( $gberg_install_url ); ?>"><?php esc_html_e( 'Install Gutenberg now', 'atomic-blocks' ); ?> &rarr;</a>
224
+ <?php } else if ( array_key_exists( 'gutenberg/gutenberg.php', get_plugins() ) && ! is_plugin_active( 'gutenberg/gutenberg.php' ) ) { ?>
225
+ <?php activate_plugin( 'gutenberg/gutenberg.php' ); ?>
226
+ <strong><i class="fa fa-check"></i> <?php esc_html_e( 'Plugin activated!', 'atomic-blocks' ); ?></strong>
227
  <?php } else { ?>
228
+ <strong><i class="fa fa-check"></i> <?php esc_html_e( 'Plugin activated!', 'atomic-blocks' ); ?></strong>
229
  <?php } ?>
230
  </li>
231
 
232
  <li class="cell <?php if( function_exists( 'atomic_blocks_loader' ) ) { echo 'step-complete'; } ?>">
233
  <strong><?php esc_html_e( '2. Install the Atomic Blocks plugin.', 'atomic-blocks' ); ?></strong>
234
+ <p><?php esc_html_e( 'Atomic Blocks adds several handy content blocks to the Gutenberg block editor.', 'atomic-blocks' ); ?></p>
235
 
236
+ <?php if( ! array_key_exists( 'atomic-blocks/atomicblocks.php', get_plugins() ) ) { ?>
237
+ <a target="_blank" class="button-primary club-button" href="<?php echo esc_url( $ab_install_url ); ?>"><?php esc_html_e( 'Install Atomic Blocks now', 'atomic-blocks' ); ?> &rarr;</a>
238
+ <?php } else if ( array_key_exists( 'atomic-blocks/atomicblocks.php', get_plugins() ) && ! is_plugin_active( 'atomic-blocks/atomicblocks.php' ) ) { ?>
239
+ <?php activate_plugin( 'atomic-blocks/atomicblocks.php' ); ?>
240
+ <strong><i class="fa fa-check"></i> <?php esc_html_e( 'Plugin activated!', 'atomic-blocks' ); ?></strong>
241
  <?php } else { ?>
242
+ <strong><i class="fa fa-check"></i> <?php esc_html_e( 'Plugin activated!', 'atomic-blocks' ); ?></strong>
243
  <?php } ?>
244
  </li>
245
  </ul>
273
 
274
  <ul>
275
  <li class="cell">
276
+ <p><?php esc_html_e( 'Join the newsletter to receive emails when we add new blocks, release plugin and theme updates, send out free resources, and more!', 'atomic-blocks' ); ?></p>
277
 
278
  <a class="button-primary club-button" target="_blank" href="<?php echo esc_url( 'https://goo.gl/3pC6LE' ); ?>"><?php esc_html_e( 'Subscribe Now', 'atomic-blocks' ); ?> &rarr;</a>
279
  </li>