Changeset 555285
- Timestamp:
- 06/09/2012 12:47:37 PM (14 years ago)
- Location:
- facebook-like-box-paulund/trunk
- Files:
-
- 2 edited
-
paulund-facebook-like-box.php (modified) (6 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
facebook-like-box-paulund/trunk/paulund-facebook-like-box.php
r524842 r555285 41 41 private $facebook_stream = "false"; 42 42 private $facebook_header = "true"; 43 private $facebook_border_color = "#FFF"; 43 44 44 45 /** … … 106 107 $this->facebook_stream = ($instance['show_stream'] == "1" ? "true" : "false"); 107 108 $this->facebook_header = ($instance['show_header'] == "1" ? "true" : "false"); 109 $this->facebook_border_color = $instance['border_color']; 108 110 109 111 add_action('wp_footer', array(&$this,'add_js')); … … 123 125 data-show-faces="<?php echo $this->facebook_show_faces; ?>" 124 126 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> 126 129 <?php 127 130 … … 148 151 $instance['page_name'] = strip_tags( $new_instance['page_name'] ); 149 152 $instance['width'] = strip_tags( $new_instance['width'] ); 153 $instance['border_color'] = strip_tags( $new_instance['border_color'] ); 150 154 151 155 $instance['show_faces'] = (bool)$new_instance['show_faces']; … … 173 177 'show_faces' => $this->facebook_show_faces, 174 178 'show_stream' => $this->facebook_stream, 175 'show_header' => $this->facebook_header 179 'show_header' => $this->facebook_header, 180 'border_color' => $this->border_color 176 181 ); 177 182 … … 204 209 </p> 205 210 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 206 217 <!-- Show Faces: Checkbox --> 207 218 <p> -
facebook-like-box-paulund/trunk/readme.txt
r524842 r555285 30 30 31 31 == Changelog == 32 32 09/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. 33 33 34 34 == Upgrade Notice ==
Note: See TracChangeset
for help on using the changeset viewer.