Ad_Repository.php
1 year ago
Group_Repository.php
1 year ago
ad-ajax.php
1 year ago
ad-debug.php
1 year ago
ad-expiration.php
1 year ago
ad-model.php
1 week ago
ad-select.php
1 year ago
ad.php
1 year ago
ad_group.php
1 year ago
ad_placements.php
1 year ago
ad_type_abstract.php
1 year ago
ad_type_content.php
1 year ago
ad_type_dummy.php
1 year ago
ad_type_group.php
1 year ago
ad_type_image.php
1 year ago
ad_type_plain.php
1 year ago
class-admin.php
1 year ago
class-advanced-ads-plugin.php
1 year ago
gadsense-dummy.php
1 year ago
in-content-injector.php
2 months ago
placements-ad-label-position.php
1 year ago
class-advanced-ads-plugin.php
70 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Plugin file |
| 4 | * |
| 5 | * @package AdvancedAds |
| 6 | * @author Advanced Ads <info@wpadvancedads.com> |
| 7 | */ |
| 8 | |
| 9 | /** |
| 10 | * WordPress integration and definitions: |
| 11 | * |
| 12 | * @deprecated 2.0 Use Advanced_Ads |
| 13 | */ |
| 14 | class Advanced_Ads_Plugin { |
| 15 | |
| 16 | /** |
| 17 | * Instance of Advanced_Ads_Plugin |
| 18 | * |
| 19 | * @var object Advanced_Ads_Plugin |
| 20 | */ |
| 21 | protected static $instance; |
| 22 | |
| 23 | /** |
| 24 | * Plugin options |
| 25 | * |
| 26 | * @var array $options |
| 27 | */ |
| 28 | protected $options; |
| 29 | |
| 30 | /** |
| 31 | * Get instance of Advanced_Ads_Plugin |
| 32 | */ |
| 33 | public static function get_instance() { |
| 34 | _deprecated_file( __CLASS__, '2.0', 'Advanced_Ads' ); |
| 35 | |
| 36 | // If the single instance hasn't been set, set it now. |
| 37 | if ( null === self::$instance ) { |
| 38 | self::$instance = new self(); |
| 39 | } |
| 40 | |
| 41 | return self::$instance; |
| 42 | } |
| 43 | |
| 44 | /** |
| 45 | * Return plugin options these are the options updated by the user |
| 46 | * |
| 47 | * @deprecated 2.0 Use AdvancedAds\Options class instead. |
| 48 | * |
| 49 | * @return array $options |
| 50 | */ |
| 51 | public function options() { |
| 52 | _deprecated_function( __METHOD__, '2.0', "AdvancedAds\Options::get_instance()->get_options('advanced-ads')" ); |
| 53 | |
| 54 | return Advanced_Ads::get_instance()->options(); |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * Get prefix used for frontend elements |
| 59 | * |
| 60 | * @deprecated 2.0 Use wp_advads()->get_frontend_prefix(). |
| 61 | * |
| 62 | * @return string |
| 63 | */ |
| 64 | public function get_frontend_prefix() { |
| 65 | _deprecated_function( __METHOD__, '2.0', 'wp_advads()->get_frontend_prefix()' ); |
| 66 | |
| 67 | return wp_advads()->get_frontend_prefix(); |
| 68 | } |
| 69 | } |
| 70 |