WordPress.org

Plugin Directory

Changeset 614638


Ignore:
Timestamp:
10/19/12 17:50:17 (18 months ago)
Author:
scribu
Message:

Revert "replace radio buttons with dropdowns" (it's connected to the
built-in radio buttons)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • network-privacy/trunk/ra-network-privacy.php

    r614626 r614638  
    137137    // hook into blog privacy selector(options-privacy.php) 
    138138    function add_privacy_options($options) { 
     139 
    139140        $privacy = get_option( 'blog_public' ); 
    140  
    141         $dropdown = ''; 
    142  
    143         for ( $i = ( is_multisite() ? -1 : -2 ); $i > -5; $i-- ) { 
    144             $dropdown .= sprintf( '<option value="%d"%s>%s</option>', $i, selected( $i, $privacy, false ), $this->meta[$i]['settings_label'] ); 
    145         } 
    146  
    147         $dropdown = '<select name="blog_public" id="blog_public">' . $dropdown . '</select>'; 
    148  
     141        for( $i = ( is_multisite() ? -1 : -2 ); $i > -5; $i-- ) { 
    149142?> 
    150         <label for="blog_public"><?php printf( __( 'I would like my site to be visible only to %s.', 'network-privacy' ), $dropdown ); ?></label> 
    151 <?php 
    152     } 
    153  
     143            <br /> 
     144            <input id="privacy-<?php echo $i; ?>" type="radio" name="blog_public" value="<?php echo $i; ?>" <?php checked( $i, $privacy ); ?> /> 
     145            <label for="privacy-<?php echo $i; ?>"><?php printf( __( 'I would like my site to be visible only to %s.', 'network-privacy'), $this->meta[$i]['settings_label'] ); ?></label> 
     146<?php 
     147        } 
     148 
     149    } 
    154150    function privacy_login_message () { 
    155151 
Note: See TracChangeset for help on using the changeset viewer.