| Server IP : 104.21.21.239 / Your IP : 216.73.216.68 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/siparentBAK/wp-content/plugins/advanced-ads-sticky-ads/ |
Upload File : |
<?php
/**
* Advanced Ads – Sticky Ads
*
* @wordpress-plugin
* Plugin Name: Advanced Ads – Sticky Ads
* Plugin URI: http://wpadvancedads.com/add-ons/sticky-ads/
* Description: Advanced ad positioning.
* Version: 1.8.1
* Author: Advanced Ads GmbH
* Author URI: http://wpadvancedads.com
* Text Domain: advanced-ads-sticky
* 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( 'Sticky_Ads' ) ) {
// load basic path and url to the plugin
define( 'AASADS_BASE_PATH', plugin_dir_path( __FILE__ ) );
define( 'AASADS_BASE_DIR', dirname( plugin_basename( __FILE__ ) ) );
define( 'AASADS_BASE_URL', plugin_dir_url( __FILE__ ) );
define( 'AASADS_SLUG', 'advanced-ads-sticky-ads' );
define( 'AASADS_VERSION', '1.8.1' );
define( 'AASADS_PLUGIN_URL', 'https://wpadvancedads.com' );
define( 'AASADS_PLUGIN_NAME', 'Sticky Ads' );
include_once( plugin_dir_path( __FILE__ ) . 'classes/plugin.php' );
require_once( plugin_dir_path( __FILE__ ) . 'public/public.php' );
$is_admin = is_admin();
$is_ajax = defined( 'DOING_AJAX' ) && DOING_AJAX;
new Advanced_Ads_Sticky( $is_admin, $is_ajax );
// -TODO this basically renders for admin and for ajax (and is not needed for the latter)
if ( $is_admin ) {
require_once( plugin_dir_path( __FILE__ ) . 'admin/admin.php' );
new Advanced_Ads_Sticky_Admin();
}
}