Plugin Directory

Changeset 555285


Ignore:
Timestamp:
06/09/2012 12:47:37 PM (14 years ago)
Author:
paulund
Message:

Add border color to the facebook like box.

Location:
facebook-like-box-paulund/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • facebook-like-box-paulund/trunk/paulund-facebook-like-box.php

    r524842 r555285  
    4141    private $facebook_stream = "false";
    4242    private $facebook_header = "true";
     43    private $facebook_border_color = "#FFF";
    4344   
    4445    /**
     
    106107        $this->facebook_stream = ($instance['show_stream'] == "1" ? "true" : "false");
    107108        $this->facebook_header = ($instance['show_header'] == "1" ? "true" : "false");
     109        $this->facebook_border_color = $instance['border_color'];
    108110       
    109111        add_action('wp_footer', array(&$this,'add_js'));
     
    123125                data-show-faces="<?php echo $this->facebook_show_faces; ?>"
    124126                data-stream="<?php echo $this->facebook_stream; ?>"
    125                 data-header="<?php echo $this->facebook_header; ?>"></div>
     127                data-header="<?php echo $this->facebook_header; ?>"
     128                data-border-color="<?php echo $this->facebook_border_color; ?>"></div>
    126129        <?php
    127130
     
    148151        $instance['page_name'] = strip_tags( $new_instance['page_name'] );
    149152        $instance['width'] = strip_tags( $new_instance['width'] );
     153        $instance['border_color'] = strip_tags( $new_instance['border_color'] );
    150154       
    151155        $instance['show_faces'] = (bool)$new_instance['show_faces'];
     
    173177        'show_faces' => $this->facebook_show_faces,
    174178        'show_stream' => $this->facebook_stream,
    175         'show_header' => $this->facebook_header
     179        'show_header' => $this->facebook_header,
     180        'border_color' => $this->border_color
    176181        );
    177182       
     
    204209        </p>
    205210       
     211        <!-- Border color: Text Input -->
     212        <p>
     213            <label for="<?php echo $this->get_field_id( 'border_color' ); ?>"><?php _e('Border color', 'framework') ?></label>
     214            <input type="text" class="widefat" id="<?php echo $this->get_field_id( 'border_color' ); ?>" name="<?php echo $this->get_field_name( 'border_color' ); ?>" value="<?php echo $instance['border_color']; ?>" />
     215        </p>
     216       
    206217        <!-- Show Faces: Checkbox -->
    207218        <p>
  • facebook-like-box-paulund/trunk/readme.txt

    r524842 r555285  
    3030
    3131== Changelog ==
    32 
     3209/06/2012 - Add border color to the Facebook box you can now give the widget a color in hex and this will be the color used by the like box.
    3333
    3434== Upgrade Notice ==
Note: See TracChangeset for help on using the changeset viewer.