| Server IP : 104.21.21.239 / Your IP : 216.73.216.11 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/home2/domains/siparent/wp-content/plugins/advanced-ads-genesis/ |
Upload File : |
<?php
/**
* Advanced Ads – Genesis
*
* Plugin Name: Advanced Ads – Genesis
* Plugin URI: https://wpadvancedads.com/add-ons/genesis/
* Description: Place ads on various positions within Genesis themes
* Version: 1.0.7
* Author: Thomas Maier
* Author URI: https://wpadvancedads.com
* Text Domain: advanced-ads-genesis
* Domain Path: /languages
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
// Only load if not already existing (maybe within another plugin I created).
if ( ! class_exists( 'Advanced_Ads_Genesis_Plugin' ) ) {
// Load basic path and url to the plugin.
define( 'AAG_BASE_PATH', plugin_dir_path( __FILE__ ) );
define( 'AAG_BASE_URL', plugin_dir_url( __FILE__ ) );
define( 'AAG_BASE_DIR', dirname( plugin_basename( __FILE__ ) ) ); // Directory of the plugin without any paths.
// Plugin slug and textdomain.
define( 'AAG_SLUG', 'advanced-ads-genesis' );
define( 'AAG_VERSION', '1.0.6' );
define( 'AAG_PLUGIN_URL', 'https://wpadvancedads.com' );
define( 'AAG_PLUGIN_NAME', 'Genesis Ads' );
include_once plugin_dir_path( __FILE__ ) . 'classes/plugin.php';
if ( is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) {
include_once plugin_dir_path( __FILE__ ) . 'admin/admin.php';
new Advanced_Ads_Genesis_Admin();
} else {
include_once plugin_dir_path( __FILE__ ) . 'public/public.php';
new Advanced_Ads_Genesis();
}
}