Changeset 2092450
- Timestamp:
- 05/21/2019 03:53:44 PM (7 years ago)
- Location:
- adbutler/trunk
- Files:
-
- 2 edited
-
adbutler.php (modified) (2 diffs)
-
includes/adbutler_interval_ads.class (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
adbutler/trunk/adbutler.php
r2090069 r2092450 5 5 Plugin URI: https://wordpress.org/plugins/adbutler 6 6 Description: AdButler ad management system integration plugin. Simplify deployment of your ad zones with this highly effective manner of deploying your publishing needs 7 Version: 1.2 37 Version: 1.24 8 8 Author: AdButler 9 9 Author URI: http://www.adbutler.com … … 23 23 define( 'ADBUTLER_CACHEURL', ADBUTLER_URLPATH . 'cache/' ); 24 24 define( 'ADBUTLER_ADSERVE_URL','https://adbutler.com/external_request.spark'); 25 define( 'ADBUTLER_PLUGIN_VERSION', '1.2 3');25 define( 'ADBUTLER_PLUGIN_VERSION', '1.24'); 26 26 27 27 -
adbutler/trunk/includes/adbutler_interval_ads.class
r2090069 r2092450 29 29 * @param WP_Query $wp_query the current query 30 30 */ 31 public static function adbutler_interval_ad( WP_Post $post, ?WP_Query$wp_query = null)31 public static function adbutler_interval_ad($post, $wp_query = null) 32 32 { 33 33 if (!empty($wp_query)) { … … 46 46 * @param WP_Query $wp_query 47 47 */ 48 public static function adbutler_interval_ad_last( ?WP_Query$wp_query = null)48 public static function adbutler_interval_ad_last($wp_query = null) 49 49 { 50 50 if (!empty($wp_query)) { … … 65 65 * @param WP_Query $wp_query the current query 66 66 */ 67 private static function should_inject_ad($index, WP_Query$wp_query)67 private static function should_inject_ad($index, $wp_query) 68 68 { 69 69 // in_the_loop ensures that we only do actions when the theme is looping through posts to render … … 83 83 } 84 84 85 private static function should_show_on_page( WP_Query$wp_query)85 private static function should_show_on_page($wp_query) 86 86 { 87 87 if ($wp_query->is_home() && self::should_show_on_home_page()) return true; … … 113 113 } 114 114 115 private static function should_show_on_category_page( WP_Query$wp_query)115 private static function should_show_on_category_page($wp_query) 116 116 { 117 117 if (!self::is_restricted()) return true;
Note: See TracChangeset
for help on using the changeset viewer.