Files
roi-theme/wp-content/plugins/advanced-ads-pro/modules/responsive-ads/main.php
root a22573bf0b Commit inicial - WordPress Análisis de Precios Unitarios
- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 21:04:30 -06:00

45 lines
890 B
PHP
Executable File

<?php
/**
* Responsive Ads Module bootstrap
*
* @package Advanced_Ads_Pro\Module
* @subpackage Responsive_Ads
* @author Advanced Ads <info@wpadvancedads.com>
*/
use Advanced_Ads_Pro\Module\Responsive_Ads\Admin;
use Advanced_Ads_Pro\Module\Responsive_Ads\Common;
use Advanced_Ads_Pro\Module\Responsive_Ads\Frontend;
defined( 'ABSPATH' ) || exit;
if ( ( new Admin() )->is_responsive_active() ) {
$notices = get_option( 'advanced-ads-notices' );
if ( ! array_key_exists( 'pro_responsive_migration', $notices['closed'] ?? [] ) ) {
Advanced_Ads_Admin_Notices::get_instance()->add_to_queue( 'pro_responsive_migration' );
}
}
if ( ( new Admin() )->is_responsive_outdated() ) {
return;
}
/**
* Common
*/
( new Common() )->hooks();
/**
* Start admin.
*/
if ( is_admin() ) {
( new Admin() )->hooks();
return;
}
/**
* Start frontend.
*/
( new Frontend() )->hooks();