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

function interface_neo_manager_render_settings_card_slot_20260327($plugin_data, $setting_slot) {
    if ($setting_slot === "switch") {
        if (in_array(\NeoRename\NeoGlobal\get_plugin_entry_path_relative($plugin_data["plugin-slug"]), array_keys(get_plugins())) || \NeoRename\NeoGlobal\is_module_available($plugin_data["plugin-slug"])) { return; }
        if (!$plugin_data["plugin-is-coming-soon"]) {
            ?><neo-button-neo-rename href="<?php echo esc_url(\NeoRename\NeoGlobal\get_plugin_download_zip_file_url_without_version($plugin_data["plugin-slug"], edition: "full")) ?>" target="_blank">
                <?php $plugin_data["plugin-slug"] === "neo-plugins" ? \NeoRename\NeoGlobal\echo_neo__("Download all neoPlugins", "Download aller neoPlugins") : \NeoRename\NeoGlobal\echo_neo__("Download ZIP", "Download ZIP")?> 
            </neo-button-neo-rename><?php
        } else if (!empty($plugin_data["plugin-website-url"])) {
            ?><neo-button-neo-rename href="<?php echo esc_url($plugin_data["plugin-website-url"]) ?>" target="_blank"><?php \NeoRename\NeoGlobal\echo_neo__("More Info", "Weitere Infos") ?></neo-button-neo-rename><?php
        }
    } else if ($setting_slot === "tooltip") {
        ?><neo-info-tooltip-neo-rename>
            <ul style="list-style-type: none; padding-left: 0; margin: 0;">
                <li><a href="<?php echo esc_url($plugin_data["plugin-website-url"]     ?? "") ?>" target="_blank" rel="noopener"><?php \NeoRename\NeoGlobal\echo_neo__("Website", "Webseite")        ?></a></li>
                <li><a href="<?php echo esc_url($plugin_data["plugin-screenshots-url"] ?? "") ?>" target="_blank" rel="noopener"><?php \NeoRename\NeoGlobal\echo_neo__("Screenshots", "Screenshots") ?></a></li>
                <li><a href="<?php echo esc_url("https://" . \NeoRename\NeoGlobal\option__neo_wp_com() . \NeoRename\NeoGlobal\neo__("", "/de") . "/install-wordpress-plugin-zip/?ref=neo-manager-wporg") ?>" target="_blank" rel="noopener"><?php \NeoRename\NeoGlobal\echo_neo__("Installation instructions", "Installationsanleitung") ?></a></li>
            </ul>
        </neo-info-tooltip-neo-rename><?php
    } else if ($setting_slot === "install-options") { }
    else if ($setting_slot === "reload-button") { }
}
