Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Above Ads Option Shortcode.
- * Use [custom_above_ads] to show this elmeent on your pages.
- */
- function custom_above_ads() {
- ob_start();
- ?>
- <div class="jeg_ad jeg_article jnews_article_top_ads">
- <?php do_action( 'jnews_article_top_ads' ); ?>
- </div>
- <?php
- return ob_get_clean();
- }
- /**
- * Top Ads Option Shortcode.
- * Use [custom_top_ads] to show this elmeent on your pages.
- */
- function custom_top_ads() {
- ob_start();
- ?>
- <?php do_action( 'jnews_single_post_before_content' ); ?>
- <?php
- return ob_get_clean();
- }
- /**
- * Bottom Ads Option Shortcode.
- * Use [custom_bottom_ads] to show this elmeent on your pages.
- */
- function custom_bottom_ads() {
- ob_start();
- ?>
- <?php do_action( 'jnews_single_post_after_content' ); ?>
- <?php
- return ob_get_clean();
- }
- /**
- * Below Ads Option Shortcode.
- * Use [custom_below_ads] to show this elmeent on your pages.
- */
- function custom_below_ads() {
- ob_start();
- ?>
- <div class="jeg_ad jeg_article jnews_article_bottom_ads">
- <?php do_action( 'jnews_article_bottom_ads' ); ?>
- </div>
- <?php
- return ob_get_clean();
- }
- add_shortcode( 'custom_above_ads', 'custom_above_ads' );
- add_shortcode( 'custom_top_ads', 'custom_top_ads' );
- add_shortcode( 'custom_bottom_ads', 'custom_bottom_ads' );
- add_shortcode( 'custom_below_ads', 'custom_below_ads' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement