<?php
namespace NeoDrawFull\NeoDraw; if (!defined("ABSPATH")) { die("neoWP direct access not allowed"); }




\NeoDrawFull\NeoGlobal\add_action_hook("load-post.php",     function () { if (!\NeoDrawFull\NeoGlobal\current_user_can__neo_draw()) { return; } \NeoDrawFull\NeoGlobal\enqueue_css("neo-draw--pb-old-media-library-dialog.css"); });
\NeoDrawFull\NeoGlobal\add_action_hook("load-post-new.php", function () { if (!\NeoDrawFull\NeoGlobal\current_user_can__neo_draw()) { return; } \NeoDrawFull\NeoGlobal\enqueue_css("neo-draw--pb-old-media-library-dialog.css"); });


\NeoDrawFull\NeoGlobal\add_filter_hook("media_upload_tabs:200", function ($tabs) { if (!\NeoDrawFull\NeoGlobal\current_user_can__neo_draw()) { return $tabs; } return array_merge($tabs, ["neodraw" => \NeoDrawFull\NeoGlobal\neo__("Create with neoDraw", "Mit neoDraw erstellen")]); });
\NeoDrawFull\NeoGlobal\add_action_hook("media_upload_neodraw", function () {
    if (!\NeoDrawFull\NeoGlobal\current_user_can__neo_draw()) { return; }
    \NeoDrawFull\NeoGlobal\enqueue_js("neo-draw--pb-old-media-library-dialog.js");
    \NeoDrawFull\NeoGlobal\enqueue_css("neo-draw--pb-old-media-library-dialog.css");
    return wp_iframe(__NAMESPACE__ . "\\draw_pagebuilder_init");
});
