Plugin Directory

Changeset 405028


Ignore:
Timestamp:
07/05/2011 08:09:08 PM (15 years ago)
Author:
barchard
Message:

Add the ability to remove the 'Advertise Here' text from the RSS ads.

Location:
buysellads/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • buysellads/trunk/helpers/bsa.functions.php

    r398015 r405028  
    448448        $network = get_option('bsa_shortname', 'BSA');
    449449        $home = rtrim(get_option('bsa_homepage', 'buysellads.com'), '/');
    450        
    451         return "<p><a href='http://${rss}/click.php?z=${zone}&k=${site}&a=${article}&c=${random}' target='_blank'><img src='http://${rss}/img.php?z=${zone}&k=${site}&a=${article}&c=${random}' border='0' alt='' /></a></p><p><a href='http://${home}/buy/sitedetails/pubkey/${site}/zone/${zone}' target='_blank'>Advertise here with ${network}</a></p>";
    452     }
    453 }
    454 
    455 
     450        $promote = get_option('bsa_advertise_here', true);
     451       
     452        return "<p><a href='http://${rss}/click.php?z=${zone}&k=${site}&a=${article}&c=${random}' target='_blank'>
     453                <img src='http://${rss}/img.php?z=${zone}&k=${site}&a=${article}&c=${random}' border='0' alt='' /></a></p>".
     454                ($promote ? "<p><a href='http://${home}/buy/sitedetails/pubkey/${site}/zone/${zone}' target='_blank'>Advertise here with ${network}</a></p>" : '');
     455    }
     456}
    456457
    457458/**
  • buysellads/trunk/language/en_US/admin_lang.php

    r398015 r405028  
    2828$lang['bsa_rss_zone_bottom_desc'] = 'Enable Ads in the footer of each RSS feed item';
    2929$lang['bsa_rss_zone_bottom_id_desc'] = 'Enter the zone id for the ad zone that corresponds to the footer of the RSS feed';
     30$lang['bsa_advertise_here_desc'] = 'Enter the Advertise Here text below the RSS Ad.';
    3031
    3132$lang['mobile_zone'] = 'Mobile';
  • buysellads/trunk/libraries/bsa.plugin.class.php

    r398015 r405028  
    121121      update_option('bsa_rss_zone_bottom_id', $bsa_rss_zone_bottom_id);
    122122      update_option('bsa_rss_zone_bottom', $bsa_rss_zone_bottom);
     123
     124      update_option('bsa_advertise_here', isset($_POST['bsa_advertise_here']) ? $_POST['bsa_advertise_here'] : false);
    123125
    124126      // Mobile settings
     
    203205                  <span class="description"><?php echo $bsa_lang->line('bsa_rss_zone_top_id_desc'); ?></span>
    204206                </td>
    205             </td>
    206207            </tr>
    207               <tr valign="top">
     208           
     209            <tr valign="top">
     210                <tr>
    208211                    <th scope="row"><label for="bsa_rss_zone_bottom"></label></th>
    209212                    <td>
     
    220223                      <span class="description"><?php echo $bsa_lang->line('bsa_rss_zone_bottom_id_desc'); ?></span>
    221224                    </td>
    222                 </td>
    223225                </tr>
    224 
    225                 <tr valign="top">
     226             </tr>
     227            <tr valign="top">
     228                <tr>
     229                    <th scope="row"><label for="bsa_advertise_here"></label></th>
     230                    <td>
     231                        <input type="checkbox" value="1" id="bsa_advertise_here" name="bsa_advertise_here"<?php echo (get_option('bsa_advertise_here') == 1) ? ' checked="checked"': ''; ?>> Insert Advertise Here text in Feed
     232                        <p><span class="description"><?php echo $bsa_lang->line('bsa_advertise_here_desc'); ?></span></p>
     233                    </td>
     234                </tr>
     235            </tr>
     236           
     237            <tr valign="top">
     238                <tr>
    226239                    <th scope="row"><label for="bsa_mobile_zone_top"><?php echo $bsa_lang->line('mobile_zone'); ?></label></th>
    227240                    <td>
     
    238251                      <span class="description"><?php echo $bsa_lang->line('bsa_mobile_zone_top_id_desc'); ?></span>
    239252                    </td>
    240                 </td>
     253                </tr>
    241254            </tr>
    242255            <tr valign="top">
     256                <tr>
    243257                    <th scope="row"><label for="bsa_mobile_zone_bottom"></label></th>
    244258                    <td>
     
    255269                      <span class="description"><?php echo $bsa_lang->line('bsa_mobile_zone_bottom_id_desc'); ?></span>
    256270                    </td>
    257                 </td>
    258271                </tr>
     272            </tr>
    259273   
    260274            <tr valign="top">
Note: See TracChangeset for help on using the changeset viewer.