Jump to content

I need some help in some php codings


faisalbtt

Recommended Posts

I am new to php codings. Need some help...

 

Website: www.dailydose.com.my

 

I would like to change this codings in my wordpress theme and use the adpress plugin for my ads but when i include the codings, the image size shrunk.

 

The current php codings from theme are...

 

<?php if (jwOpt::get_option('banner_leader_type', 'image') == 'image') { ?>
    <?php 
        $banner_link = jwOpt::get_option('leader_banner_link', '#');
    ?>
    <?php if ( strlen($banner_link) <= 0 || $banner_link == 'http://' || $banner_link == 'https://' ) { ?>
        <div class="reverie-leader-banner">
            <a href="#">
                <img src="<?php echo jwOpt::get_option('leader_banner', ''); ?>">
            </a>
        </div>
    <?php } else { ?>
        <div class="reverie-leader-banner">
            <a href="<?php echo jwOpt::get_option('leader_banner_link', '#'); ?>"  target="<?php echo jwOpt::get_option('banner_lead_link_target', '_blank'); ?>">
                <img src="<?php echo jwOpt::get_option('leader_banner', ''); ?>">
            </a>
        </div>
    <?php } ?>
<?php } else { ?>
    <?php 
        $google_ads = jwOpt::get_option('leader_banner_google', '#');
    ?>
    <?php if ( strlen($google_ads) > 0) { ?>
        <div class="reverie-leader-banner">
            <div class="google_ads">
                <?php echo $google_ads; ?>
            </div>
        </div>
    <?php } ?>

<?php } ?> 

 

I would need to change it to....

 

<?php 
if (function_exists(display_campaign)) { 
display_campaign(1); 
?>
 
So where should i change the codes??
 
Thanks in advance for your help.

 

 

Link to comment
https://forums.phpfreaks.com/topic/285092-i-need-some-help-in-some-php-codings/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.