Skip to content

Commit b6fff81

Browse files
authored
Merge pull request #275 from codepress/release/4.1.1
Release/4.1.1
2 parents a4e9630 + a01631d commit b6fff81

30 files changed

+1928
-25
lines changed

assets/css/admin-general.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/admin-page-columns.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/admin-welcome.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/table.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/fonts/cpac_icons.eot

376 Bytes
Binary file not shown.

assets/fonts/cpac_icons.woff

260 Bytes
Binary file not shown.

assets/fonts/cpac_icons.woff2

260 Bytes
Binary file not shown.

assets/images/addons/metabox.svg

Lines changed: 4 additions & 0 deletions
Loading

classes/Integration/MetaBox.php

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
namespace AC\Integration;
4+
5+
use AC\Integration;
6+
use AC\Screen;
7+
8+
final class MetaBox extends Integration {
9+
10+
public function __construct() {
11+
parent::__construct(
12+
'ac-addon-metabox/ac-addon-metabox.php',
13+
__( 'Meta Box', 'codepress-admin-columns' ),
14+
'assets/images/addons/metabox.svg',
15+
__( 'Instantly generate columns for your Meta Box custom fields!', 'codepress-admin-columns' ),
16+
null,
17+
'metabox'
18+
);
19+
}
20+
21+
public function is_plugin_active() {
22+
return class_exists( 'RWMB_Loader', false );
23+
}
24+
25+
public function show_notice( Screen $screen ) {
26+
return $screen->get_id() === 'edit-meta-box';
27+
}
28+
29+
}

classes/Integrations.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ public function __construct() {
1212
new Integration\NinjaForms(),
1313
new Integration\Pods(),
1414
new Integration\Types(),
15+
new Integration\MetaBox(),
1516
new Integration\WooCommerce(),
1617
];
1718

0 commit comments

Comments
 (0)