Plugin Directory

Changeset 1600157

Timestamp:
02/20/2017 11:50:25 PM (7 years ago)
Author:
derekspringer
Message:

Removed link from Advertisements notice & updated house ads to HTML5

Location:
radcontrol/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • radcontrol/trunk/adcontrol.php

    r1576964 r1600157  
    66Description: Harness WordPress.com's advertising partners for your own website. Requires <a href="http://jetpack.me/" target="_blank">Jetpack</a> to be installed and connected.
    77Author: Automattic
    8 Version: 1.2
     8Version: 1.2
    99Author URI: http://automattic.com
    1010Text Domain: adcontrol
     
    2828*/
    2929
    30 define( 'ADCONTROL_VERSION', '1.2' );
     30define( 'ADCONTROL_VERSION', '1.2' );
    3131define( 'ADCONTROL_ROOT', dirname( __FILE__ ) );
    3232define( 'ADCONTROL_BASENAME', plugin_basename( __FILE__ ) );
     
    288288HTML;
    289289        } else if ( 'house' == $type ) {
    290             $width = 300;
    291             $height = 250;
    292             $ad_url = 'https://s0.wp.com/wp-content/blog-plugins/wordads/house/';
    293             if ( 'top' == $spot && ! $this->params->mobile_device ) {
    294                 $width = 728;
    295                 $height = 90;
    296                 $ad_url .= 'leaderboard.png';
    297             } else {
    298                 $ad_url .= 'mrec.png';
    299             }
    300 
    301             $snippet = <<<HTML
    302             <a href="https://wordpress.com/create/" target="_blank">
    303                 <img src="$ad_url" alt="WordPress.com: Grow Your Business" width="$width" height="$height" />
    304             </a>
    305 HTML;
     290            $leaderboard = 'top' == $spot && ! $this->params->mobile_device;
     291            $snippet = $this->get_house_ad( $leaderboard ? 'leaderboard' : 'mrec' );
    306292        }
    307293
     
    310296        <div class="wpcnt">
    311297            <div class="wpa">
    312                 <a class="wpa-about" href="https://en.wordpress.com/about-these-ads/" rel="nofollow">$about</a>
     298                <>
    313299                <div id="ac-$spot" class="u $spot">
    314300                    $snippet
     
    368354
    369355    /**
     356
     357
     358
     359
     360
     361
     362
     363
     364
     365
     366
     367
     368
     369
     370
     371
     372
     373
     374
     375
     376
     377
     378
     379
     380
     381
     382
     383
     384
     385
     386
     387
     388
    370389     * Activation hook actions
    371390     *
  • radcontrol/trunk/css/ac-style.css

    r1312024 r1600157  
    4545}
    4646
    47 .wpa-about:hover, .wa_infobox a:hover {
    48     text-decoration: underline !important;  /* !important necessary, since themes override this routinely */
    49     color: #444;
    50 }
    51 
    5247/* ad unit wrapper */
    5348.wpa .u>div {   /* @todo: deprecate wpdvert */
  • radcontrol/trunk/php/widgets.php

    r1576964 r1600157  
    3636        $snippet = '';
    3737        if ( $adcontrol->option( 'wordads_house', true ) ) {
    38             $ad_url = 'https://s0.wp.com/wp-content/blog-plugins/wordads/house/';
     38            $';
    3939            if ( 'leaderboard' == $instance['unit'] && ! $this->params->mobile_device ) {
    40                 $ad_url .= 'leaderboard.png';
     40                $';
    4141            } else if ( 'wideskyscraper' == $instance['unit'] ) {
    42                 $ad_url .= 'widesky.png';
    43             } else {
    44                 $ad_url .= 'mrec.png';
     42                $unit = 'widesky';
    4543            }
    4644
    47             $snippet = <<<HTML
    48             <a href="https://wordpress.com/create/" target="_blank">
    49                 <img src="$ad_url" alt="WordPress.com: Grow Your Business" width="$width" height="$height" />
    50             </a>
    51 HTML;
     45            $snippet = $adcontrol->get_house_ad( $unit );
    5246        } else {
    5347            $section_id = 0 === $adcontrol->params->blog_id ? ADCONTROL_API_TEST_ID : $adcontrol->params->blog_id . '3';
     
    6357        <div class="wpcnt">
    6458            <div class="wpa">
    65                 <a class="wpa-about" href="https://en.wordpress.com/about-these-ads/" rel="nofollow">$about</a>
     59                <>
    6660                <div class="u {$instance['unit']}">
    6761                    $snippet
  • radcontrol/trunk/readme.txt

    r1576964 r1600157  
    44Requires at least: 3.4
    55Tested up to: 4.7.1
    6 Stable tag: 1.2
     6Stable tag: 1.2
    77
    88Harness WordPress.com's advertising partners for your own website.
     
    3535
    3636== Changelog ==
     37
     38
     39
     40
     41
    3742
    3843= 1.2 =
Note: See TracChangeset for help on using the changeset viewer.