WordPress.org

Plugin Directory

Changeset 610203


Ignore:
Timestamp:
10/09/12 23:31:14 (19 months ago)
Author:
aaroncampbell
Message:

Load images through SSL when needed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • twitter-widget-pro/trunk/range-plugin-framework.php

    r600169 r610203  
    347347 
    348348        public function option_page_styles() { 
     349            $logo_url = sprintf( 'http%s://range-wphost.netdna-ssl.com/assets/range-icon-square-32x32.png' , is_ssl()? 's':'' ); 
    349350            ?> 
    350351            <style type="text/css"> 
    351352                #icon-range { 
    352                     background:transparent url(http://s1.ran.ge/assets/range-icon-square-32x32.png) no-repeat scroll bottom left; 
     353                    background:transparent url(<?php echo esc_url_raw( $logo_url ); ?>) no-repeat scroll bottom left; 
    353354                } 
    354355            </style> 
     
    412413                'show_summary'  => 1, 
    413414            ); 
     415            $logo_url = sprintf( 'http%s://range-wphost.netdna-ssl.com/content/uploads/2012/06/range-trans.png' , is_ssl()? 's':'' ); 
     416            $icon = includes_url('images/rss.png'); 
    414417            echo '<div class="rss-widget">'; 
    415             echo '<a href="http://ran.ge"><img class="alignright" style="padding:0 0 5px 10px;" src="http://s1.ran.ge/content/uploads/2012/06/range-trans.png" /></a>'; 
     418            echo '<a href="http://ran.ge"><img class="alignright" style="padding:0 0 5px 10px;" src="' . esc_url_raw( $logo_url ) . '" /></a>'; 
    416419            wp_widget_rss_output( $args ); 
    417420            echo '<p style="border-top: 1px solid #CCC; padding-top: 10px; font-weight: bold;">'; 
    418             echo '<a href="' . $this->_feed_url . '"><img src="'.get_bloginfo('wpurl').'/wp-includes/images/rss.png" alt=""/> Subscribe with RSS</a>'; 
     421            echo '<a href="' . $this->_feed_url . '"><img src="' . $icon . '" alt=""/> Subscribe with RSS</a>'; 
    419422            echo "</p>"; 
    420423            echo "</div>"; 
Note: See TracChangeset for help on using the changeset viewer.