Tailwind compatible con oxygen

This commit is contained in:
2026-09-22 19:09:48 -06:00
parent 74039bf5f5
commit 85e67a8386
10 changed files with 4880 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
# Cache
/functions/tailwindcss
/functions/tailwindcss/css
/functions/tailwindcss/css-production
# Logs
*.log
debug.log
# Archivos del sistema
.DS_Store
Thumbs.db
# IDE
.vscode/
.idea/
# Configuración local
wp-config.php
+229
View File
@@ -0,0 +1,229 @@
<?php
/**
* Plugin Name: Alcastromol | Functions WP | Oxygen 6.1.1 | Tailwindcss v3 DF | Y mas
* Plugin URI: https://alcastromol.com/
* Description: Funciones personalizadas y Tailwind v3. Oxygen es opcional.
* Version: 3.2.0
* Author: Alejandro Castro Molina
* Author URI: https://alcastromol.com/
* License: GPL-2.0-or-later
*/
if (!defined('ABSPATH')) {
exit; // Seguridad
}
/*
|--------------------------------------------------------------------------
| Constantes del plugin
|--------------------------------------------------------------------------
*/
define('ALCASTROMOL_PLUGIN_PATH', plugin_dir_path(__FILE__));
define('ALCASTROMOL_PLUGIN_URL', plugin_dir_url(__FILE__));
define('ALCASTROMOL_PLUGIN_VERSION', '3.2.0');
define('ALCASTROMOL_OXYGEN_ENABLED_OPTION', 'alcastromol_oxygen_enabled');
/*
|--------------------------------------------------------------------------
| Integración opcional con Oxygen
|--------------------------------------------------------------------------
*/
function alcastromol_is_oxygen_installed() {
if (defined('BREAKDANCE_MODE') && BREAKDANCE_MODE === 'oxygen') {
return true;
}
if (defined('CT_VERSION')) {
return true;
}
$plugins = (array) get_option('active_plugins', []);
if (in_array('oxygen/plugin.php', $plugins, true)) {
return true;
}
if (is_multisite()) {
$network = (array) get_site_option('active_sitewide_plugins', []);
if (isset($network['oxygen/plugin.php'])) {
return true;
}
}
return false;
}
function alcastromol_get_oxygen_option() {
$saved = get_option(ALCASTROMOL_OXYGEN_ENABLED_OPTION, null);
if ($saved === null) {
return alcastromol_is_oxygen_installed() ? '1' : '0';
}
return $saved === '1' ? '1' : '0';
}
function alcastromol_is_oxygen_enabled() {
return alcastromol_get_oxygen_option() === '1' && alcastromol_is_oxygen_installed();
}
add_action('plugins_loaded', 'alcastromol_check_oxygen');
function alcastromol_check_oxygen() {
if (alcastromol_is_oxygen_enabled()) {
return;
}
if (alcastromol_get_oxygen_option() === '1' && !alcastromol_is_oxygen_installed()) {
add_action('admin_notices', function () {
echo '<div class="notice notice-warning">
<p><strong>Alcastromol Functions:</strong> Oxygen no está instalado. Tailwind v3 funciona de forma independiente. Puedes activar Oxygen más tarde desde Tailwind → Modo.</p>
</div>';
});
}
}
/*
|--------------------------------------------------------------------------
| Función segura para cargar archivos
|--------------------------------------------------------------------------
*/
function alcastromol_require($file) {
$path = ALCASTROMOL_PLUGIN_PATH . $file;
if (file_exists($path)) {
require_once $path;
}
}
/*
|--------------------------------------------------------------------------
| Limpieza de WordPress / Oxygen
|--------------------------------------------------------------------------
*/
alcastromol_require('functions/clear-header.php');
/*
|--------------------------------------------------------------------------
| Insertar código en HEAD
|--------------------------------------------------------------------------
*/
alcastromol_require('functions/insert-code-header.php');
/*
|--------------------------------------------------------------------------
| Insertar código en FOOTER (opcional)
|--------------------------------------------------------------------------
*/
// alcastromol_require('functions/insert-code-footer.php');
/*
|--------------------------------------------------------------------------
| Funciones del Admin
|--------------------------------------------------------------------------
|
| - Desactivar actualizaciones automáticas
| - Desactivar pantalla completa del editor
| - Limpiar admin bar
| - Categorías y tags en media
|
*/
alcastromol_require('functions/admin/admin.php');
alcastromol_require('functions/admin/admin-comments.php');
register_activation_hook(__FILE__, 'alcastromol_setup_comment_settings');
function alcastromol_cleanup_options() {
delete_option('alcastromol_comments_done');
}
alcastromol_require('functions/admin/admin-permalinks.php');
register_activation_hook(__FILE__, 'alcastromol_setup_permalinks');
alcastromol_require('functions/admin/admin-general.php');
register_activation_hook(__FILE__, 'alcastromol_setup_general_settings');
register_deactivation_hook(__FILE__, 'alcastromol_cleanup_options');
/*
|--------------------------------------------------------------------------
| TailwindCSS
|--------------------------------------------------------------------------
*/
// Agregar CSS
alcastromol_require('functions/tailwindcss/tailwindcss.php');
// Sistema de cache para Tailwind
alcastromol_require('functions/tailwindcss/cache-system.php');
// Integración administrativa, acciones por entrada y barra superior
alcastromol_require('functions/tailwindcss/admin-integration.php');
// permitir clases de tailwind dentro de oxygen
/**==============================================
* *
* \wp-content\plugins\oxygen\builder\dist\js\app-DSmHGY7G.js
*
* / BUSCA esto
* if(!ro(n)){Bs.log.message(uo(S(`"%s" is not a valid class name.`),n));return}
// CAMBIA por esto
* if(!e||!String(e).trim()){Bs.log.message(uo(S(`"%s" is not a valid class name.`),n));return}
*
* Buscar ------
* for(let t of e)if(!ro(`.${t}`)){this.errorMessage=S(`Invalid class name`);return}
*
* Cambia por:
*
* for(let t of e)if(!t||!String(t).trim()){this.errorMessage=S(`Invalid class name`);return}
*
*
* \wp-content\plugins\oxygen\builder\dist\js\store-BBZRLWAp.js
*
* Buscar
* function G9(e){return/^-?[.]+[_a-zA-Z]+[_a-zA-Z0-9-]*$/.test(e)}
*
* CAmbiar por
*
* function G9(e){return typeof e==`string`&&e.startsWith(`.`)&&e.length>1}
*
*
*=============================================**/
/**
* Reemplaza el bundle JS de Oxygen por una copia parchada
* para permitir clases con : y [].
*/
/*
|--------------------------------------------------------------------------
| Plugins requeridos (TGM Plugin Activation)
|--------------------------------------------------------------------------
*/
alcastromol_require('required-plugins/class-tgm-plugin-activation.php');
alcastromol_require('required-plugins/plugins.php');
+38
View File
@@ -0,0 +1,38 @@
<?php
if (!defined('ABSPATH')) {
exit;
}
function alcastromol_setup_comment_settings() {
if (get_option('alcastromol_comments_done')) {
return;
}
update_option('default_pingback_flag', 1);
update_option('default_ping_status', 'closed');
update_option('default_comment_status', 'closed');
update_option('require_name_email', 1);
update_option('comment_registration', 1);
update_option('close_comments_for_old_posts', 1);
update_option('close_comments_days_old', 14);
update_option('show_comments_cookies_opt_in', 1);
update_option('thread_comments', 1);
update_option('thread_comments_depth', 5);
update_option('page_comments', 0);
update_option('comments_per_page', 50);
update_option('default_comments_page', 'last');
update_option('comment_order', 'asc');
update_option('comments_notify', 1);
update_option('moderation_notify', 1);
update_option('comment_moderation', 1);
update_option('comment_previously_approved', 1);
update_option('alcastromol_comments_done', 1);
}
+23
View File
@@ -0,0 +1,23 @@
<?php
if (!defined('ABSPATH')) {
exit;
}
function alcastromol_setup_general_settings() {
if (get_option('alcastromol_general_done')) {
return;
}
update_option('WPLANG', 'es_MX');
update_option('timezone_string', 'America/Mexico_City');
update_option('date_format', 'd/m/Y');
update_option('time_format', 'g:i a');
update_option('alcastromol_general_done', 1);
}
+20
View File
@@ -0,0 +1,20 @@
<?php
if (!defined('ABSPATH')) {
exit;
}
function alcastromol_setup_permalinks() {
global $wp_rewrite;
$structure = '/%postname%';
update_option('permalink_structure', $structure);
$wp_rewrite->set_permalink_structure($structure);
$wp_rewrite->use_trailing_slashes = false;
flush_rewrite_rules();
}
+85
View File
@@ -0,0 +1,85 @@
<?php
if (!defined('ABSPATH')) {
exit;
}
/*
|--------------------------------------------------------------------------
| Desactivar actualizaciones automáticas
|--------------------------------------------------------------------------
*/
if (!defined('AUTOMATIC_UPDATER_DISABLED')) {
define('AUTOMATIC_UPDATER_DISABLED', true);
}
/*
|--------------------------------------------------------------------------
| Optimización de recursos (Heartbeat + Cron)
|--------------------------------------------------------------------------
*/
add_action('init', 'alcastromol_admin_optimizations');
function alcastromol_admin_optimizations() {
// Desactivar Heartbeat en frontend
if (!is_admin()) {
wp_deregister_script('heartbeat');
}
}
/*
|--------------------------------------------------------------------------
| Desactivar pantalla completa en editor de bloques
|--------------------------------------------------------------------------
*/
add_action('enqueue_block_editor_assets', 'alcastromol_disable_fullscreen_editor');
function alcastromol_disable_fullscreen_editor() {
$script = "
window.onload = function() {
const isFullscreenMode = wp.data.select('core/edit-post').isFeatureActive('fullscreenMode');
if (isFullscreenMode) {
wp.data.dispatch('core/edit-post').toggleFeature('fullscreenMode');
}
}";
wp_add_inline_script('wp-blocks', $script);
}
/*
|--------------------------------------------------------------------------
| Categorías y Tags para Media
|--------------------------------------------------------------------------
*/
add_action('init', 'alcastromol_media_taxonomies');
function alcastromol_media_taxonomies() {
register_taxonomy_for_object_type('category', 'attachment');
register_taxonomy_for_object_type('post_tag', 'attachment');
}
/*
|--------------------------------------------------------------------------
| Configuración inicial de comentarios
|--------------------------------------------------------------------------
*/
function alcastromol_comment_settings() {
update_option('comment_moderation', 1);
}
+143
View File
@@ -0,0 +1,143 @@
<?php
if (!defined('ABSPATH')) {
exit; // Seguridad: evita acceso directo
}
/*
|--------------------------------------------------------------------------
| Limpieza del front: oEmbed, emoji, Gutenberg y classic-theme-styles
|--------------------------------------------------------------------------
*/
add_action('init', 'alcastromol_clean_frontend_head', 20);
function alcastromol_clean_frontend_head() {
if (is_admin()) {
return;
}
// oEmbed discovery links
remove_action('wp_head', 'wp_oembed_add_discovery_links', 4);
remove_action('wp_head', 'wp_oembed_add_discovery_links', 10);
remove_action('wp_head', 'wp_oembed_add_host_js');
add_filter('embed_oembed_discover', '__return_false');
// img auto-sizes contain CSS
remove_action('wp_head', 'wp_enqueue_img_auto_sizes_contain_css_fix', 0);
remove_action('wp_head', 'wp_print_auto_sizes_contain_css_fix', 1);
add_filter('wp_img_tag_add_auto_sizes', '__return_false');
// Emoji
remove_action('wp_head', 'print_emoji_detection_script', 7);
remove_action('wp_print_styles', 'print_emoji_styles');
remove_action('wp_enqueue_scripts', 'wp_enqueue_emoji_styles');
remove_filter('the_content_feed', 'wp_staticize_emoji');
remove_filter('comment_text_rss', 'wp_staticize_emoji');
remove_filter('wp_mail', 'wp_staticize_emoji_for_email');
add_filter('tiny_mce_plugins', 'alcastromol_disable_emojis_tinymce');
add_filter('wp_resource_hints', 'alcastromol_disable_emojis_dns_prefetch', 10, 2);
// Estilos de bloques y classic theme
remove_action('wp_enqueue_scripts', 'wp_enqueue_global_styles');
remove_action('wp_footer', 'wp_enqueue_global_styles', 1);
remove_action('wp_enqueue_scripts', 'wp_enqueue_classic_theme_styles');
remove_action('wp_enqueue_scripts', 'wp_common_block_scripts_and_styles');
remove_action('enqueue_block_assets', 'wp_enqueue_classic_theme_styles');
remove_action('enqueue_block_assets', 'wp_enqueue_registered_block_scripts_and_styles');
remove_action('enqueue_block_assets', 'enqueue_block_styles_assets', 30);
// REST API links en el <head>
remove_action('wp_head', 'rest_output_link_wp_head', 10);
remove_action('template_redirect', 'rest_output_link_header', 11);
}
function alcastromol_disable_emojis_tinymce($plugins) {
if (!is_array($plugins)) {
return [];
}
return array_diff($plugins, ['wpemoji']);
}
function alcastromol_disable_emojis_dns_prefetch($urls, $relation_type) {
if ($relation_type !== 'dns-prefetch') {
return $urls;
}
return array_filter($urls, function ($url) {
return strpos($url, 'https://s.w.org/images/core/emoji/') === false;
});
}
add_action('wp_enqueue_scripts', 'alcastromol_dequeue_frontend_styles', 100);
add_action('wp_enqueue_scripts', 'alcastromol_dequeue_frontend_jquery', PHP_INT_MAX);
add_action('wp_print_scripts', 'alcastromol_dequeue_frontend_jquery', 1);
function alcastromol_dequeue_frontend_jquery() {
if (is_admin()) {
return;
}
wp_dequeue_script('jquery');
wp_dequeue_script('jquery-core');
wp_dequeue_script('jquery-migrate');
wp_deregister_script('jquery');
wp_deregister_script('jquery-core');
wp_deregister_script('jquery-migrate');
}
function alcastromol_dequeue_frontend_styles() {
if (is_admin()) {
return;
}
$handles = [
'global-styles',
'classic-theme-styles',
'wp-block-library',
'wp-block-library-theme',
'core-block-supports',
'wp-emoji-styles',
'wp-img-auto-sizes-contain',
];
foreach ($handles as $handle) {
wp_dequeue_style($handle);
wp_deregister_style($handle);
}
global $wp_styles;
if (!($wp_styles instanceof WP_Styles)) {
return;
}
foreach (array_keys($wp_styles->registered) as $handle) {
if (strpos($handle, 'wp-block-') === 0) {
wp_dequeue_style($handle);
wp_deregister_style($handle);
}
}
}
if (function_exists('alcastromol_is_oxygen_enabled') && alcastromol_is_oxygen_enabled()) {
add_filter('breakdance_register_font', function ($font) {
$isGoogleFont = !empty($font['dependencies']['googleFonts']);
if ($isGoogleFont) {
return false;
}
return $font;
});
}
+49
View File
@@ -0,0 +1,49 @@
<?php
if (!defined('ABSPATH')) {
exit; // Seguridad: evita acceso directo
}
function custom_header_code()
{
$humans = file_exists("humans.txt");
if (!$humans) {
$createFile = fopen("humans.txt", "w") or die("Unable to open file!");
$txt = "/* TEAM */ \n";
fwrite($createFile, $txt);
$txt = "Desarrollado por: Alejandro Castro Molina \n";
fwrite($createFile, $txt);
$txt = "Email: alcastromol@gmail.com \n";
fwrite($createFile, $txt);
$txt = "Location: Acapulco, Gro., Méx \n";
fwrite($createFile, $txt);
$txt = " \n";
fwrite($createFile, $txt);
$txt = " \n";
fwrite($createFile, $txt);
$txt = "/* SITE */ \n";
fwrite($createFile, $txt);
$txt = "Last update: " . date("Y/m/d") . " \n";
fwrite($createFile, $txt);
$txt = "Standards: Html5, CSS3 (tailwindcss), Js (vanilla) y PHP 8.3 \n";
fwrite($createFile, $txt);
$txt = "Components: jQuery. \n";
fwrite($createFile, $txt);
$txt = "Software: Tema Personalizado desarrollado desde 0 \n";
fwrite($createFile, $txt);
fclose($createFile);
}
?>
<!--================================================
= Autoria del desarrollo Web =
=================================================-->
<link type="text/plain" rel="author" href="<?php echo get_home_url(); ?>/humans.txt" />
<!--==== Autoria del desarrollo Web ====-->
<?php
}
add_action('wp_head', 'custom_header_code');
File diff suppressed because it is too large Load Diff
+352
View File
@@ -0,0 +1,352 @@
<?php
if (!defined('ABSPATH')) {
exit; // Seguridad: evita acceso directo
}
/*======================================================
= Requiriendo plugins a instalar =
======================================================*/
add_action( 'tgmpa_register', 'my_theme_register_required_plugins' );
/**
* Register the required plugins for this theme.
*
* <snip />
*
* This function is hooked into tgmpa_init, which is fired within the
* TGM_Plugin_Activation class constructor.
*/
function my_theme_register_required_plugins() {
/*
* Array of plugin arrays. Required keys are name and slug.
* If the source is NOT from the .org repo, then source is also required.
*/
$plugins = array(
// This is an example of how to include a plugin from the WordPress Plugin Repository.
array(
'name' => 'Cookie Notice & Compliance for GDPR / CCPA',
'slug' => 'cookie-notice',
'required' => false,
),
array(
'name' => 'Advanced Custom Fields',
'slug' => 'advanced-custom-fields',
'required' => false,
),
array(
'name' => 'Ad Inserter – Ad Manager & AdSense Ads',
'slug' => 'ad-inserter',
'required' => false,
),
array(
'name' => 'User Activity Log',
'slug' => 'user-activity-log',
'required' => false,
),
array(
'name' => 'WP Mail SMTP by WPForms – The Most Popular SMTP and Registro de correo electrónico Plugin',
'slug' => 'wp-mail-smtp',
'required' => false,
),
array(
'name' => 'FAQ Schema For Pages And Posts',
'slug' => 'faq-schema-for-pages-and-posts',
'required' => false,
),
array(
'name' => 'Duplicate Page',
'slug' => 'duplicate-page',
'required' => false,
),
array(
'name' => 'Table of Contents Plus',
'slug' => 'table-of-contents-plus',
'required' => false,
),
array(
'name' => 'WPS Hide Login',
'slug' => 'wps-hide-login',
'required' => false,
),
array(
'name' => 'Rank Math SEO',
'slug' => 'seo-by-rank-math',
'required' => true,
),
array(
'name' => 'LoginPress | Custom Login Page Customizer',
'slug' => 'loginpress',
'required' => true,
),
array(
'name' => 'En construcción',
'slug' => 'under-construction-page',
'required' => false,
),
array(
'name' => 'AGCA - Custom Dashboard & Login Page',
'slug' => 'ag-custom-admin',
'required' => false,
),
array(
'name' => 'Bulk Page Generator',
'slug' => 'bulk-page-generator',
'required' => false,
),
array(
'name' => 'Custom Login Page Customizer',
'slug' => 'login-customizer',
'required' => false,
),
array(
'name' => 'Custom Post Type UI',
'slug' => 'custom-post-type-ui',
'required' => true,
),
array(
'name' => 'Disable Media Pages',
'slug' => 'disable-media-pages',
'required' => true,
),
array(
'name' => 'Disable Post Revision',
'slug' => 'disable-post-revision',
'required' => true,
),
array(
'name' => 'Duplicate Page',
'slug' => 'duplicate-page',
'required' => true,
),
array(
'name' => 'Error Log Monitor',
'slug' => 'error-log-monitor',
'required' => false,
),
array(
'name' => 'Optimize Database after Deleting Revisions',
'slug' => 'rvg-optimize-database',
'required' => false,
),
array(
'name' => 'CompressX - AVIF & WebP Converter',
'slug' => 'compressx',
'required' => true,
),
array(
'name' => 'Query Monitor',
'slug' => 'query-monitor',
'required' => false,
),
array(
'name' => 'Yabe Webfont',
'slug' => 'yabe-webfont',
'required' => true,
),
array(
'name' => 'Permalink Manager Lite',
'slug' => 'permalink-manager',
'required' => false,
),
array(
'name' => 'WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager',
'slug' => 'insert-headers-and-footers',
'required' => true,
),
array(
'name' => 'Remove CPT base',
'slug' => 'remove-cpt-base',
'required' => false,
),
array(
'name' => 'All-In-One Security (AIOS) – Security and Firewall',
'slug' => 'all-in-one-wp-security-and-firewall',
'required' => true,
),
array(
'name' => 'Polylang',
'slug' => 'polylang',
'required' => false,
),
array(
'name' => 'LiteSpeed Cache',
'slug' => 'litespeed-cache',
'required' => true,
),
array(
'name' => 'Post Type Switcher',
'slug' => 'post-type-switcher',
'required' => false,
),
array(
'name' => 'All-in-One WP Migration and Backup',
'slug' => 'all-in-one-wp-migration',
'required' => true,
),
array(
'name' => 'Media Library Helper Bulk alt',
'slug' => 'media-library-helper',
'required' => false,
),
array(
'name' => 'Modern Image Formats',
'slug' => 'webp-uploads',
'required' => false,
),
array(
'name' => 'CompressX',
'slug' => 'compressx',
'required' => false,
),
array(
'name' => 'Descargar plugin',
'slug' => 'download-plugin',
'required' => false,
),
array(
'name' => 'WP Multilang',
'slug' => 'wp-multilang',
'required' => false,
),
array(
'name' => 'Woocommerce',
'slug' => 'woocommerce',
'required' => false,
),
array(
'name' => 'Post Export Import with Media',
'slug' => 'post-export-import-with-media',
'required' => false,
),
array(
'name' => 'PiWeb Product Enquiry or product catalog for WooCommerce',
'slug' => 'enquiry-quotation-for-woocommerce',
'required' => false,
),
array(
'name' => 'Swiper JS',
'slug' => 'alcastromol-swiperjs',
'source' => 'https://alcastromol.com/repositorio/plugins/alcastromol-swiperjs.zip',
'required' => true,
'version' => '0.0.0',
'force_activation' => false,
'force_deactivation' => false,
'external_url' => 'https://alcastromol.com/repositorio/plugins/',
),
array(
'name' => 'wp-rocket-3.15.3',
'slug' => 'wp-rocket',
'source' => 'https://alcastromol.com/repositorio/plugins/wp-rocket-3.15.3.zip',
'required' => true,
'version' => '0.0.0',
'force_activation' => false,
'force_deactivation' => false,
'external_url' => 'https://alcastromol.com/repositorio/plugins/',
),
array(
'name' => 'Polylang Pro',
'slug' => 'polylang-pro',
'source' => 'https://alcastromol.com/repositorio/plugins/polylang-pro.zip',
'required' => true,
'version' => '0.0.0',
'force_activation' => false,
'force_deactivation' => false,
'external_url' => 'https://alcastromol.com/repositorio/plugins/',
),
array(
'name' => 'Polylang for WooCommerce',
'slug' => 'polylang-wc',
'source' => 'https://alcastromol.com/repositorio/plugins/polylang-wc.zip',
'required' => true,
'version' => '0.0.0',
'force_activation' => false,
'force_deactivation' => false,
'external_url' => 'https://alcastromol.com/repositorio/plugins/',
),
// <snip />
);
if (function_exists('alcastromol_is_oxygen_enabled') && alcastromol_is_oxygen_enabled()) {
$plugins = array_merge($plugins, array(
array(
'name' => 'Oxygen 6 con Parche para Tailwind 3',
'slug' => 'oxygen',
'source' => 'https://alcastromol.com/repositorio/plugins/oxygen-6-con-parche.zip',
'required' => true,
'version' => '1.0.0',
'force_activation' => false,
'force_deactivation' => false,
'external_url' => 'https://alcastromol.com/repositorio/plugins/',
),
array(
'name' => 'Breakdance Form to Oxygen 6',
'slug' => 'breakdance-forms-for-oxygen',
'source' => 'https://alcastromol.com/repositorio/plugins/breakdance-forms-for-oxygen.zip',
'required' => true,
'version' => '0.3.0',
'force_activation' => false,
'force_deactivation' => false,
'external_url' => 'https://alcastromol.com/repositorio/plugins/',
),
array(
'name' => 'Breakdance Elements for Oxygen',
'slug' => 'breakdance-elements-for-oxygen',
'source' => 'https://alcastromol.com/repositorio/plugins/breakdance-elements-for-oxygen.zip',
'required' => true,
'version' => '0.0.0',
'force_activation' => false,
'force_deactivation' => false,
'external_url' => 'https://alcastromol.com/repositorio/plugins/',
),
array(
'name' => 'Breakdance WooCommerce for Oxygen',
'slug' => 'breakdance-woocommerce-for-oxygen',
'source' => 'https://alcastromol.com/repositorio/plugins/breakdance-woocommerce-for-oxygen.zip',
'required' => true,
'version' => '0.0.0',
'force_activation' => false,
'force_deactivation' => false,
'external_url' => 'https://alcastromol.com/repositorio/plugins/',
),
));
}
/*
* Array of configuration settings. Amend each line as needed.
*
* TGMPA will start providing localized text strings soon. If you already have translations of our standard
* strings available, please help us make TGMPA even better by giving us access to these translations or by
* sending in a pull-request with .po file(s) with the translations.
*
* Only uncomment the strings in the config array if you want to customize the strings.
*/
$config = array(
'id' => 'tgmpa', // Unique ID for hashing notices for multiple instances of TGMPA.
'default_path' => '', // Default absolute path to bundled plugins.
'menu' => 'tgmpa-install-plugins', // Menu slug.
'parent_slug' => 'plugins.php', // Parent menu slug.
'capability' => 'edit_theme_options', // Capability needed to view plugin install page, should be a capability associated with the parent menu used.
'has_notices' => false, // Show admin notices or not.
'dismissable' => true, // If false, a user cannot dismiss the nag message.
'dismiss_msg' => '', // If 'dismissable' is false, this message will be output at top of nag.
'is_automatic' => false, // Automatically activate plugins after installation or not.
'message' => '', // Message to output right before the plugins table.
'position' => 99,
/*
'strings' => array(
'page_title' => __( 'Install Required Plugins', 'theme-slug' ),
'menu_title' => __( 'Install Plugins', 'theme-slug' ),
// <snip>...</snip>
'nag_type' => 'updated', // Determines admin notice type - can only be 'updated', 'update-nag' or 'error'.
)
*/
);
tgmpa( $plugins, $config );
}