Conditional Statement adrotator plugin (2 posts)

  1. 4k
    Posted 7 years ago #

    I am trying to write a conditional statement for the adrotator plugin so the theme doesn't break if I have to deactivate the plugin.

    Everything I have tried either shows nothing or gives me a t-string error.

    Can anyone point me in the right direction?

    this is the statement supplied by the plugin
    <?php echo getad('bannerad') ?>

    this is the lastest attempt at a conditional statement

    <?php if(function_exists('adrotator')) :
    echo getad('bannerad'); endif; ?>
  2. 4k
    Posted 7 years ago #

    figured it out, will put it here for anyone else who may be interested.

    <?php if(function_exists('getad')) : echo getad('bannerad'); endif; ?>

Topic Closed

This topic has been closed to new replies.

About this Topic