Skip to content

Commit

Permalink
Ready for Version 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
imtiazrayhan committed Jul 2, 2018
1 parent 0b50a89 commit 30cc2dd
Show file tree
Hide file tree
Showing 8 changed files with 101 additions and 31 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.idea/
.vscode/
node_modules/
.node_modules/
.DS_Store
4 changes: 2 additions & 2 deletions admin/class-ultimate-blocks-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function register_admin_menus() {
'UltimateBlocks Settings',
'Ultimate Blocks',
'manage_options',
'ultimate-blocks',
'ultimate-blocks-settings',
array( $this, 'main_menu_template_cb' ),
plugin_dir_url( __FILE__ ) . 'images/logos/menu-icon.png',
20
Expand Down Expand Up @@ -211,7 +211,7 @@ public function on_admin_init() {

deactivate_plugins( plugin_basename( ULTIMATE_BLOCKS_PATH ) . '/ultimate-blocks.php' );

wp_die( 'You must install <strong>Gutenberg Plugin</strong> to activate <strong>Ultimate Blocks Plugin</strong> plugins. If you have gutenberg plugin already installed please check if it\'s activated. We are redirecting in <span id="seconds">5</span> seconds... <script> setTimeout(function() { window.location.href = "/wp-admin/plugins.php"; document.getElementById("seconds").text = "a"}, 5000);</script>' );
wp_die( 'You must have <strong>Gutenberg Plugin</strong> installed to activate/use <strong>Ultimate Blocks</strong> plugin. If you have Gutenberg already installed please check if it\'s activated. We are redirecting in <span id="seconds">5</span> seconds... <script> setTimeout(function() { window.location.href = "/wp-admin/plugins.php"; document.getElementById("seconds").text = "a"}, 5000);</script>' );

return;
}
Expand Down
8 changes: 4 additions & 4 deletions admin/templates/help/help-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@

<div class="container">
<div class="ultimate-blocks">
<h1>Welcome to Ultimate Blocks!</h1>
<h5>Essential Collection of Blocks for Gutenberg Editor</h5>
<h1><?php esc_html_e( 'Welcome to Ultimate Blocks!', 'ultimate-blocks' ); ?></h1>
<h5><?php esc_html_e( 'Essential Collection of Blocks for Gutenberg Editor', 'ultimate-blocks' ); ?></h5>
</div>
<div class="intro">
<p>Ultimate Blocks comes with the essential Gutenberg blocks you need to create better content with Gutenberg.</p>
<h2><span class="color-red">11 awesome blocks.</span> More in the making...</h2>
<p><?php esc_html_e( 'Ultimate Blocks comes with the essential Gutenberg blocks you need to create better content with Gutenberg.', 'ultimate-blocks' ); ?></p>
<h2><span class="color-red"><?php esc_html_e( '11 awesome blocks.', 'ultimate-blocks' ); ?></span> <?php esc_html_e( 'More in the making...', 'ultimate-blocks' ); ?></h2>
<div class="button-wrap ultimate-blocks-clear">
<div class="left">
<a href="<?php echo admin_url( 'admin.php?page=ultimate-blocks' ); ?>" class="ultimate-blocks-btn ultimate-blocks-btn-block ultimate-blocks-btn-lg ultimate-blocks-btn-red">
Expand Down
6 changes: 3 additions & 3 deletions admin/templates/menus/main-menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
<div class="ub__header-container">
<img src="<?php echo esc_url( ULTIMATE_BLOCKS_URL . 'admin/images/banners/banner-772x250.png' ); ?>" alt="Ultimate Blocks" />
<div class="ub_collection_filter">
<span class="filter-action active" data-filter-status="all">All</span>
<span class="filter-action" data-filter-status="enabled">Enabled</span>
<span class="filter-action" data-filter-status="disabled">Disabled</span>
<span class="filter-action active" data-filter-status="all"><?php esc_html_e( 'All', 'ultimate-blocks' ); ?></span>
<span class="filter-action" data-filter-status="enabled"><?php esc_html_e( 'Enabled', 'ultimate-blocks' ); ?></span>
<span class="filter-action" data-filter-status="disabled"><?php esc_html_e( 'Disabled', 'ultimate-blocks' ); ?></span>
</div>
</div>
</div>
Expand Down
57 changes: 57 additions & 0 deletions languages/ultimate-blocks.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Copyright (C) 2018 Ultimate_Blocks
# This file is distributed under the same license as the Ultimate_Blocks package.
msgid ""
msgstr ""
"Project-Id-Version: Ultimate_Blocks\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language-Team: Ultimate Blocks <irayhan.asif@gmail.com>\n"
"Last-Translator: Imtiaz Rayhan <irayhan.asif@gmail.com>\n"
"Report-Msgid-Bugs-To: https://github.com/imtiazrayhan/Ultimate-Blocks/issues\n"
"X-Poedit-Basepath: ..\n"
"X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-SearchPathExcluded-0: *.js\n"
"X-Poedit-SourceCharset: UTF-8\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: ../admin/templates/help/help-page.php:20
msgid "Welcome to Ultimate Blocks!"
msgstr ""

#: ../admin/templates/help/help-page.php:21
msgid "Essential Collection of Blocks for Gutenberg Editor"
msgstr ""

#: ../admin/templates/help/help-page.php:24
msgid "Ultimate Blocks comes with the essential Gutenberg blocks you need to create better content with Gutenberg."
msgstr ""

#: ../admin/templates/help/help-page.php:25
msgid "11 awesome blocks."
msgstr ""

#: ../admin/templates/help/help-page.php:25
msgid "More in the making..."
msgstr ""

#: ../admin/templates/help/help-page.php:29
msgid "Manage the Blocks"
msgstr ""

#: ../admin/templates/menus/main-menu.php:22
msgid "All"
msgstr ""

#: ../admin/templates/menus/main-menu.php:23
msgid "Enabled"
msgstr ""

#: ../admin/templates/menus/main-menu.php:24
msgid "Disabled"
msgstr ""

#: ../admin/templates/menus/main-menu.php:36
msgid "%s"
msgstr ""
45 changes: 25 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
{
"name": "ultimate-blocks-cgb-guten-block",
"version": "1.0.0",
"private": true,
"scripts": {
"start": "cgb-scripts start",
"build": "cgb-scripts build",
"eject": "cgb-scripts eject"
},
"dependencies": {
"ajv": ">=6.0.0",
"cgb-scripts": "1.9.5",
"react": "16.2.0",
"react-autosize-textarea": "2.0.0",
"react-dom": "16.2.0",
"react-sortable-hoc": "^0.6.8"
},
"devDependencies": {
"classnames": "^2.2.5"
}
}
"name": "ultimate-blocks-cgb-guten-block",
"version": "1.0.0",
"private": true,
"scripts": {
"start": "cgb-scripts start",
"build": "cgb-scripts build",
"eject": "cgb-scripts eject",
"pot": "wp-pot --src '**/*.php' --dest-file 'languages/ultimate-blocks.pot' --package 'Ultimate_Blocks' --domain 'ultimate-blocks' --last-translator 'Imtiaz Rayhan <irayhan.asif@gmail.com>' --team 'Ultimate Blocks <irayhan.asif@gmail.com>' --bug-report 'https://github.com/imtiazrayhan/Ultimate-Blocks/issues'"
},
"dependencies": {
"ajv": ">=6.0.0",
"cgb-scripts": "1.9.5",
"react": "16.2.0",
"react-autosize-textarea": "2.0.0",
"react-dom": "16.2.0",
"react-sortable-hoc": "^0.6.8"
},
"devDependencies": {
"classnames": "^2.2.5",
"gulp": "^3.9.1",
"gulp-notify": "^3.0.0",
"gulp-sort": "^2.0.0",
"gulp-wp-pot": "^2.0.4"
}
}
9 changes: 8 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: imtiazrayhan, aqibrashid, freemius
Tags: blocks, gutenberg blocks, gutenberg, editor
Requires at least: 4.9
Tested up to: 4.9
Stable tag: 1.0.3
Stable tag: 1.0.4
Requires PHP: 5.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -93,6 +93,13 @@ That's it. You're done!

== Changelog ==

= 1.0.4 =

Release Date: July 2nd, 2018

* Add - Translation File.
* Fix - White Screen bug if Gutenberg is not installed.

= 1.0.3 =

Release Date: May 22nd, 2018
Expand Down
2 changes: 1 addition & 1 deletion ultimate-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: Ultimate Blocks for Gutenberg.
* Author: Imtiaz Rayhan
* Author URI: http://imtiazrayhan.com/
* Version: 1.0.3
* Version: 1.0.4
* License: GPL3+
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt
* Text Domain: ultimate-blocks
Expand Down

0 comments on commit 30cc2dd

Please sign in to comment.