Skip to content

Commit 06a8281

Browse files
committed
update TypeRocket UI to version 5.0.10
1 parent 87771cf commit 06a8281

File tree

20 files changed

+684
-166
lines changed

20 files changed

+684
-166
lines changed

meta-dashboard.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<style>
2+
.typerocket-v5-open-meta-content {
3+
display: grid;
4+
grid-template-columns: 1fr 2fr;
5+
grid-auto-rows: minmax(64px,auto);
6+
column-gap: 16px;
7+
padding: 6px 12px 12px;
8+
}
9+
</style>
10+
<div class="typerocket-v5-open-meta-content">
11+
<div>
12+
<img style="max-width: 100%;" src="https://typerocket-public.s3.us-west-2.amazonaws.com/rocket-avatar.png" alt="TypeRocket Pro">
13+
</div>
14+
<div>
15+
<h3><strong>You are closer to building a modern WordPress site without sacrificing your developer experience or site's speed.</strong></h3>
16+
<p>Make every feature your way, with <a href="https://typerocket.com/pro/" target="_blank">TypeRocket Pro</a>.
17+
You shouldn't have to give up site speed, a beautiful WordPress admin, and elegant PHP syntax by adding yet-another-plugin.</p>
18+
<p><a class="button button-primary" href="https://typerocket.com/pro/" target="_blank">Get TypeRocket Pro</a> &nbsp; <a href="https://typerocket.com/compare-versions/" target="_blank">See Features</a></p>
19+
</div>
20+
</div>

readme.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Contributors: kevindees
33
Tags: custom post types, CPT, CMS, post, types, post type, taxonomy, tax, custom, content types, post types, box, meta-box, meta-boxes
44
Requires at least: 5.5
55
Requires PHP: 7.2.5
6-
Tested up to: 6.0
7-
Stable Tag: 5.0.9
6+
Tested up to: 6.0.1
7+
Stable Tag: 5.0.10
88
License: GPLv2 or later
99

1010
This plugin provides a powerful user interface for creating post types, taxonomies, and meta boxes.
@@ -20,7 +20,7 @@ Add custom post types and taxonomies to your website without code. With the Type
2020
5. Gutenberg controls.
2121
7. And much more.
2222

23-
For over 9 years, [TypeRocket](https://typerocket.com/) has helped thousands of developers and designers craft powerful WordPress websites. With TypeRocket UI, you get many of the powerful features the TypeRocket developers have come to know and trust in a graphical interface.
23+
For over 12 years, [TypeRocket](https://typerocket.com/) has helped thousands of developers and designers craft powerful WordPress websites. With TypeRocket UI, you get many of the powerful features the TypeRocket developers have come to know and trust in a graphical interface.
2424

2525
== Installation ==
2626

@@ -35,6 +35,12 @@ Upload the typerocket-ui plugin to your blog. Activate it! Then Go to TypeRocket
3535

3636
== Changelog ==
3737

38+
= 5.0.10 =
39+
40+
* Add WordPress 6.0.1 support.
41+
* Improve code.
42+
* Fix bugs.
43+
3844
= 5.0.9 =
3945

4046
* Add WordPress 6.0 support.

typerocket-ui.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: TypeRocket UI
44
Plugin URI: https://typerocket.com/ui/
55
Description: This plugin provides a powerful user interface for creating post types, taxonomies, and meta boxes.
6-
Version: 5.0.9
6+
Version: 5.0.10
77
Requires at least: 5.5
88
Requires PHP: 7.2
99
Author: TypeRocket
@@ -44,9 +44,17 @@ public function __construct()
4444
define('TYPEROCKET_AUTO_LOADER', '__return_false');
4545
add_filter('plugin_action_links', [$this, 'links'], 10, 2 );
4646
add_filter('typerocket_auth_policy_check', '__return_false', 10, 2 );
47+
add_action('typerocket_loaded', [$this, 'typerocket_loaded']);
4748
}, 20);
4849
}
4950

51+
public function typerocket_loaded()
52+
{
53+
TypeRocket\Register\MetaBox::new('TypeRocket UI')->setCallback(function() {
54+
echo \TypeRocket\Template\View::new(__DIR__ . '/meta-dashboard.php')->setEngine(\TypeRocket\Template\TemplateEngine::class);
55+
})->addScreen('dashboard')->addToRegistry();
56+
}
57+
5058
public function links($actions, $plugin_file)
5159
{
5260
if( $found = strpos(__FILE__, $plugin_file) ) {

0 commit comments

Comments
 (0)