'el-icon-eur', 'icon_class' => 'icon-large', 'title' => esc_html__( 'Kleo Monetizer', 'sq-kleo-monetizer' ), 'customizer' => false, 'desc' => '

' . esc_html__( 'Monetize Kleo Plugin', 'sq-kleo-monetizer' ) . '

', 'fields' => array( array( 'id' => 'km_before_single_content', 'type' => 'textarea', 'title' => esc_html__( 'Banner Zone - General Before Content', 'sq-kleo-monetizer' ), 'subtitle' => esc_html__( 'Add your adsense code with script tags [ Will not be rendered in front-page and in buddypress]', 'sq-kleo-monetizer' ), 'default' => '', ), array( 'id' => 'km_after_single_content', 'type' => 'textarea', 'title' => esc_html__( 'Banner Zone - General After Content ', 'sq-kleo-monetizer' ), 'subtitle' => esc_html__( 'Add your adsense code with script tags [ Will not be rendered in front-page and in buddypress ]', 'sq-kleo-monetizer' ), 'default' => '', ), array( 'id' => 'km_before_single_inner_content', 'type' => 'textarea', 'title' => esc_html__( 'Banner Zone - Before Article Inner Content', 'sq-kleo-monetizer' ), 'subtitle' => esc_html__( 'Add your adsense code with script tags [ Will be rendered in single post page ]', 'sq-kleo-monetizer' ), 'default' => '', ), array( 'id' => 'km_after_single_inner_main_content', 'type' => 'textarea', 'title' => esc_html__( 'Banner Zone - After Article Inner Content', 'sq-kleo-monetizer' ), 'subtitle' => esc_html__( 'Add your adsense code with script tags [ Will be rendered in single post page ]', 'sq-kleo-monetizer' ), 'default' => '', ), array( 'id' => 'km_before_single_archive_content', 'type' => 'textarea', 'title' => esc_html__( 'Banner Zone - Before Archive Content', 'sq-kleo-monetizer' ), 'subtitle' => esc_html__( 'Add your adsense code with script tags [ Will be rendered in archive pages ]', 'sq-kleo-monetizer' ), 'default' => '', ), array( 'id' => 'km_after_single_archive_content', 'type' => 'textarea', 'title' => esc_html__( 'Banner Zone - After Archive Content', 'sq-kleo-monetizer' ), 'subtitle' => esc_html__( 'Add your adsense code with script tags [ Will be rendered in archive pages ]', 'sq-kleo-monetizer' ), 'default' => '', ), array( 'id' => 'km_before_blog_outer_content', 'type' => 'textarea', 'title' => esc_html__( 'Banner zone - Before Blog Content', 'sq-kleo-monetizer' ), 'subtitle' => esc_html__( 'Add your adsense code with script tags [ Will be rendered in main blog page ]', 'sq-kleo-monetizer' ), 'default' => '', ), array( 'id' => 'km_after_blog_outer_content', 'type' => 'textarea', 'title' => esc_html__( 'Banner zone - After Blog Content', 'sq-kleo-monetizer' ), 'subtitle' => esc_html__( 'Add your adsense code with script tags [ Will be rendered in main blog page ]', 'sq-kleo-monetizer' ), 'default' => '', ), ), ); Redux::setSection( 'kleo_' . KLEO_DOMAIN, $section ); } public function register_render_actions() { if ( ! class_exists( 'Kleo' ) ) { return; } if ( sq_option( 'km_before_single_content' ) ) { add_action( 'kleo_before_content', array( $this, 'render_before_single_content' ) ); } if ( sq_option( 'km_after_single_content' ) ) { add_action( 'kleo_after_main_content', array( $this, 'render_after_main_content' ) ); } if ( sq_option( 'km_before_single_inner_content' ) ) { add_action( 'kleo_before_inner_article_loop', array( $this, 'render_before_single_inner_content' ) ); } if ( sq_option( 'km_after_single_inner_main_content' ) ) { add_action( 'kleo_after_inner_article_loop', array( $this, 'render_after_single_inner_main_content' ) ); } if ( sq_option( 'km_before_single_archive_content' ) ) { add_action( 'kleo_before_archive_content', array( $this, 'render_before_single_archive_content' ) ); } if ( sq_option( 'km_after_single_archive_content' ) ) { add_action( 'kleo_after_archive_content', array( $this, 'render_after_single_archive_content' ) ); } if ( sq_option( 'km_before_blog_outer_content' ) ) { add_action( 'kleo_before_blog_outer_content', array( $this, 'render_before_blog_outer_content' ) ); } if ( sq_option( 'km_after_blog_outer_content' ) ) { add_action( 'kleo_after_blog_outer_content', array( $this, 'render_after_blog_outer_content' ) ); } } public function render_before_single_content() { if (!is_front_page() && !is_archive() && !is_home() && is_singular('post')) { echo '
' . do_shortcode(sq_option('km_before_single_content')) . '
'; } } public function render_after_main_content() { if (!is_front_page() && !is_archive() && !is_home() && is_singular('post')) { $output = ''; $output .= '
' . sq_option('km_after_single_content') . '
'; echo do_shortcode($output); } } public function render_before_single_inner_content() { if (is_single() && !is_front_page() && is_singular('post')) { $output = ''; $output .= '
' . sq_option('km_before_single_inner_content') . '
'; echo do_shortcode($output); } } public function render_after_single_inner_main_content() { if ( is_single() && ! is_front_page() && is_singular( 'post' ) ) { $output = ''; $output .= '
' . sq_option( 'km_after_single_inner_main_content' ) . '
'; echo do_shortcode($output); } } public function render_before_single_archive_content() { if ( is_archive() ) { $output = ''; $output .= '
' . sq_option( 'km_before_single_archive_content' ) . '
'; echo do_shortcode($output); } } public function render_after_single_archive_content() { if ( is_archive() ) { $output = ''; $output .= '
' . sq_option( 'km_after_single_archive_content' ) . '
'; echo do_shortcode($output); } } public function render_before_blog_outer_content() { if ( is_home() ) { $output = ''; $output .= '
' . sq_option( 'km_before_blog_outer_content' ) . '
'; echo do_shortcode($output); } } public function render_after_blog_outer_content() { if ( is_home() ) { $output = ''; $output .= '
' . sq_option( 'km_after_blog_outer_content' ) . '
'; echo do_shortcode($output); } } } /* Initialize our class */ Kleo_Monetizer::instance();