• Resolved kobireed

    (@kobireed)


    Hello, we’ve updated to new Pro Free plugin!

    This was our old code in the header. Can you please let me know how to update it so it will work with the new updated Plugin?

    Thank you so much.

    <?php
    				{
    					// AD SERVER LOGIC
    					if (isset($pagename) && $pagename == 'intl') {
    						if(function_exists('drawAdsPlace')) drawAdsPlace(array('id' => 5), array('before' => '<div class="ad">', 'after' => '</div>'));
    					} else {
    						if(in_category('intl', get_the_ID())) {
    							if(function_exists('drawAdsPlace')) drawAdsPlace(array('id' => 5), array('before' => '<div class="ad">', 'after' => '</div>'));
    						} else {
    							if(function_exists('drawAdsPlace')) drawAdsPlace(array('id' => 1), array('before' => '<div class="ad">', 'after' => '</div>'));
    						}
    					}
    					$html = array();
    					echo implode("\n",$html);
    				}
    			?>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been damaged by the forum’s parser.]

    https://wordpress.org/plugins/sam-pro-free/

Viewing 1 replies (of 1 total)
  • Plugin Author minimus

    (@minimus)

    <?php
    	{
    		// AD SERVER LOGIC
    		if (isset($pagename) && $pagename == 'intl') {
    			if(function_exists('samProDrawPlace')) samProDrawPlace(5, null, array('before' => '<div class="ad">', 'after' => '</div>'));
    		} else {
    			if(in_category('intl', get_the_ID())) {
    				if(function_exists('samProDrawPlace')) samProDrawPlace(5, null, array('before' => '<div class="ad">', 'after' => '</div>'));
    			} else {
    				if(function_exists('samProDrawPlace')) samProDrawPlace(1, null, array('before' => '<div class="ad">', 'after' => '</div>'));
    			}
    		}
    		$html = array();
    		echo implode("\n",$html);
    	}
    ?>
Viewing 1 replies (of 1 total)

The topic ‘How to update code in header’ is closed to new replies.