__( 'bbPress Static Content', 'advanced-ads-pro' ), 'description' => __( 'Display ads on bbPress related pages.', 'advanced-ads-pro' ), 'image' => AAP_BASE_URL . 'modules/bbpress/assets/img/bbpress-static.png', 'order' => 32, ); $types['bbPress comment'] = array( 'title' => __( 'bbPress Reply Content', 'advanced-ads-pro' ), 'description' => __( 'Display ads in bbPress replies.', 'advanced-ads-pro' ), 'image' => AAP_BASE_URL . 'modules/bbpress/assets/img/bbpress-reply.png', 'order' => 33, ); return $types; } public function placement_options( $placement_slug = '', $placement = array() ){ if( 'bbPress static' === $placement['type'] ){ $bbPress_static_positions = $this->get_bbPress_static_hooks(); $current = isset($placement['options']['bbPress_static_hook']) ? $placement['options']['bbPress_static_hook'] : ''; ?> get_bbPress_comment_hooks(); $current = isset($placement['options']['bbPress_comment_hook']) ? $placement['options']['bbPress_comment_hook'] : ''; ?>
'; printf(__('Inject at %s. post', 'advanced-ads-pro'), $index_option); } } public function get_bbPress_static_hooks(){ return array( __( 'forum topic page', 'advanced-ads-pro' ) => array( 'template after replies loop', 'template before replies loop', ), __( 'single forum page', 'advanced-ads-pro' ) => array( 'template after single forum', 'template before single forum' ), __( 'forums page', 'advanced-ads-pro' ) => array( 'template after forums loop', 'template before forums loop' ) ); } public function get_bbPress_comment_hooks(){ return array( __( 'forum topic page', 'advanced-ads-pro' ) => array( 'theme after reply content', 'theme before reply content', 'theme after reply author admin details' ) ); } }