Skip to content

Commit 33638a8

Browse files
committed
init TypeRocket v6
1 parent c009fd7 commit 33638a8

File tree

148 files changed

+1162
-3032
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+1162
-3032
lines changed

admin.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@
2121
<div class="tr-p-20">
2222
<?php echo \TypeRocket\Html\Element::title('TypeRocket Open'); ?>
2323
<a class="button button-primary button-hero" target="_blank" href="https://typerocket.com/pro/">Get TypeRocket Pro</a>
24-
<p class="hide-if-no-customize">or, <a target="_blank" href="https://typerocket.com/docs/v5/">get started</a>.</p>
24+
<p class="hide-if-no-customize">or, <a target="_blank" href="https://typerocket.com/docs/v6/">get started</a>.</p>
2525
<h3>First Steps</h3>
2626
<p><?php _e('We’ve assembled some links to get you started:'); ?></p>
2727
<ul>
2828
<li><i class="dashicons dashicons-email"></i> <a target="_blank" href="https://us8.list-manage.com/subscribe?u=7bbb7409e86c85970f6150c5e&id=1d45a226d0">Join the TypRocket Mailing List.</a></li>
2929
<li><i class="dashicons dashicons-youtube"></i> <a target="_blank" href="https://www.youtube.com/watch?v=yqGiHCuDohQ&list=PLh6jokL0yBPT6uJPnMFcZJJ1PzNs8XaK8">Watch our MVC Video series.</a></li>
30-
<li><i class="dashicons dashicons-admin-post"></i> <a target="_blank" href="https://typerocket.com/docs/v5/post-types-making/">Add your first post type.</a></li>
31-
<li><i class="dashicons dashicons-admin-page"></i> <a target="_blank" href="https://typerocket.com/docs/v5/extension-page-builder/">Learn the page builder.</a></li>
30+
<li><i class="dashicons dashicons-admin-post"></i> <a target="_blank" href="https://typerocket.com/docs/v6/post-types-making/">Add your first post type.</a></li>
31+
<li><i class="dashicons dashicons-admin-page"></i> <a target="_blank" href="https://typerocket.com/docs/v6/extension-page-builder/">Learn the page builder.</a></li>
3232
</ul>
3333
</div>
3434
<?php
Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
<?php
22
/*
3-
Plugin Name: TypeRocket - Andromeda
3+
Plugin Name: TypeRocket - Antennae
44
Plugin URI: https://typerocket.com/
55
Description: TypeRocket is a framework that joins refined UI elements and modern programming architecture together.
6-
Version: 5.1.16
6+
Version: 6.0.0
77
Requires at least: 6.1
8-
Requires PHP: 7.4
8+
Requires PHP: 8.0.2
99
Author: TypeRocket
1010
Author URI: https://typerocket.com/
1111
License: GPLv3 or later
1212
*/
13+
namespace TypeRocket;
14+
1315
defined( 'ABSPATH' ) or die( 'Nothing here to see!' );
1416

15-
final class TypeRocketPlugin
17+
final class OpenPlugin
1618
{
1719
protected $path = null;
1820
protected $message = '';
@@ -34,7 +36,7 @@ public function __construct()
3436
return;
3537
}
3638

37-
define('TYPEROCKET_PLUGIN_VERSION', '5.1.16');
39+
define('TYPEROCKET_PLUGIN_VERSION', '6.0.0');
3840
define('TYPEROCKET_PLUGIN_INSTALL', __DIR__);
3941

4042
if(!defined('TYPEROCKET_ROOT_WP'))
@@ -48,9 +50,9 @@ public function __construct()
4850
return $value || $host == 'typerocket.com';
4951
}, 10, 2);
5052

51-
new \TypeRocketPlugin\Updater([
52-
'slug' => 'typerocket-v5',
53-
'api_url' => 'https://typerocket.com/plugins/typerocket-v5/'
53+
new \TypeRocket\OpenPlugin\Updater([
54+
'slug' => 'typerocket-v6',
55+
'api_url' => 'https://typerocket.com/plugins/typerocket-v6/'
5456
]);
5557
}
5658

@@ -130,7 +132,7 @@ public function activation_notice()
130132

131133
public function typerocket_loaded()
132134
{
133-
tr_page('settings@TypeRocketPlugin\\SettingsController', 'typerocket', __('TypeRocket Settings'), [
135+
tr_page('settings@TypeRocket\\OpenPlugin\\SettingsController', 'typerocket', __('TypeRocket Settings'), [
134136
'menu' => __('TypeRocket'),
135137
'capability' => 'activate_plugins'
136138
]);
@@ -141,4 +143,4 @@ public function typerocket_loaded()
141143
}
142144
}
143145

144-
new TypeRocketPlugin();
146+
new OpenPlugin();

typerocket/composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
}
1919
],
2020
"support": {
21-
"docs": "https://typerocket.com/docs/v5/"
21+
"docs": "https://typerocket.com/docs/v6/"
2222
},
2323
"require": {
24-
"php": "^7.4",
25-
"typerocket/core": "^5.1"
24+
"php": "^8.0.2",
25+
"typerocket/core": "6.0.0-RC1"
2626
},
2727
"require-dev": {
2828
"phpunit/phpunit": "^9.5"
@@ -32,7 +32,7 @@
3232
"helpers.php"
3333
],
3434
"psr-4": {
35-
"TypeRocketPlugin\\": "plugin/"
35+
"TypeRocket\\OpenPlugin\\": "plugin/"
3636
}
3737
},
3838
"scripts": {

0 commit comments

Comments
 (0)