'brizy_new_post',
'post_type' => $typenow,
), set_url_scheme( admin_url( 'edit.php' ) ) );
?>
supported_post_types() ) ) {
return;
}
try {
if ( Brizy_Editor_Entity::isBrizyEnabled($_GET['post']) ) {
add_filter( 'gutenberg_can_edit_post_type', '__return_false' );
}
} catch ( Exception $e ) {
return;
}
}
public function print_admin_footer_tpls() {
global $pagenow;
if ( ! in_array( $pagenow, array( 'post-new.php', 'post.php' ) ) ) {
return;
}
if ( ! in_array( get_post_type(), Brizy_Editor::get()->supported_post_types() ) ) {
return;
}
$continueUrl = add_query_arg(
array( Brizy_Editor::prefix('-edit') => '' ),
get_permalink( get_the_ID() )
);
try {
if ( Brizy_Editor_Entity::isBrizyEnabled( get_the_ID() ) ) {
$edit_url = esc_url( admin_url( 'admin-post.php?action=_brizy_admin_editor_disable&post=' . get_the_ID() ) );
?>
.brizy-buttons .button::before {
-webkit-mask: url(' . __bt( 'brizy-logo', plugins_url( '../admin/static/img/brizy-logo.svg', __FILE__ ) ) . ') no-repeat center;
mask: url(' . __bt( 'brizy-logo', plugins_url( '../admin/static/img/brizy-logo.png', __FILE__ ) ) . ') no-repeat center;
mask-size: contain;
-webkit-mask-size: contain;
}' .
'';
}
}