public function close_wrapper() { if (!vendidero_helper_activated()) { return; } global $current_section; if (get_transient('woocommerce_gzdp_generator_success_' . $current_section)) { delete_transient('woocommerce_gzdp_generator_success_' . $current_section); return; } ?> <p class="submit"> <input type="hidden" name="generator" value="<?php echo esc_attr($current_section); ?> " /> <input name="save" class="button-primary wc-gzdp-generator-submit" type="submit" value="<?php echo sprintf(_x('Start %s', 'generator', 'woocommerce-germanized-pro'), $this->generator[$current_section]); ?> " /> </p> <div class="version"><p>Version <?php echo $this->get_version($current_section); ?> </p></div> </div> <?php }
if (!vendidero_helper_activated() && !function_exists('vendidero_helper_install')) { function vendidero_helper_install($api, $action, $args) { $download_url = 'https://github.com/vendidero/vendidero-helper/releases/download/1.0.0/vendidero-helper.zip'; if ('plugin_information' != $action || false !== $api || !isset($args->slug) || 'vendidero-helper' != $args->slug) { return $api; } $api = new stdClass(); $api->name = 'Vendidero Helper'; $api->version = '1.0.0'; $api->download_link = esc_url($download_url); return $api; } add_filter('plugins_api', 'vendidero_helper_install', 10, 3); } if (!vendidero_helper_activated() && !function_exists('vendidero_helper_notice')) { function vendidero_helper_notice($inline = false) { $slug = 'vendidero-helper'; $install_url = wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=' . $slug), 'install-plugin_' . $slug); $activate_url = 'plugins.php?action=activate&plugin=' . urlencode('vendidero-helper/vendidero-helper.php') . '&plugin_status=all&paged=1&s&_wpnonce=' . urlencode(wp_create_nonce('activate-plugin_vendidero-helper/vendidero-helper.php')); $message = '<a href="' . esc_url($install_url) . '">Installiere das Vendidero Helper Plugin</a> und aktualisiere deine Produkte direkt per WP-Backend.'; $plugins = array_keys(get_plugins()); foreach ($plugins as $plugin) { if (strpos($plugin, 'vendidero-helper.php') !== false) { $message = '<a href="' . esc_url(admin_url($activate_url)) . '">Aktiviere das Vendidero Helper Plugin</a> und aktualisiere deine Produkte direkt per WP-Backend.'; break; } } if ($inline) { return $message;