class AppThemes_Widget_Facebook extends WP_Widget {
.
.
$connections = $instance['connections'];
$width = $instance['width'];
$height = $instance['height'];
$locale = $instance['locale'];
if (empty($locale))
$locale = 'en_US';
<iframe src="http://www.facebook.com/plugins/likebox.php?locale=<?php echo urlencode($locale); ?>&id=<?php echo urlencode($fid); ?>&connections=<?php echo urlencode($connections); ?>&stream=false&header=true&width=<?php echo urlencode($width); ?>&height=<?php echo $height; ?>" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:<?php echo esc_attr($width); ?>px; height:<?php echo esc_attr($height); ?>px;" allowTransparency="true"></iframe>
function update($new_instance, $old_instance) {
$instance['locale'] = strip_tags($new_instance['locale']);
function form($instance) {
<p style="text-align:left;">
<input type="text" class="widefat" id="<?php echo $this->get_field_id('locale'); ?>" name="<?php echo $this->get_field_name('locale'); ?>" value="<?php echo $instance['locale']; ?>" style="width:50px;" />
<label for="<?php echo $this->get_field_id('locale'); ?>"><?php _e( 'Locale', APP_TD ); ?></label>
</p>
There are currently 1 users browsing this thread. (0 members and 1 guests)