HEX
Server: Apache/2.4.65 (Debian)
System: Linux 88f31f35b0b8 6.1.0-38-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.147-1 (2025-08-02) x86_64
User: www-data (33)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/advanced-ads-sticky-ads/sticky-ads.php
<?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.5
 * 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.5' );
	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();
	}
}