GIF89a;
Notice: Undefined index: in /home/bs3263/domains/poolq.ee/public_html/wp-content/plugins/classic-editor/classic-editor.php on line 3
Priv8 Uploader By InMyMine7
Linux bs3.beeserver.ee 2.6.32-642.6.2.el6.x86_64 #1 SMP Wed Oct 26 06:52:09 UTC 2016 x86_64
<?php
global $theme;
$themater_facebook_defaults = array(
'title' => 'Facebook',
'url' => 'http://www.facebook.com/platform',
'width' => '292',
'height' => '180',
'colorscheme' => 'light',
'show_faces' => 'true',
'stream' => 'false',
'header' => 'false'
);
$theme->options['widgets_options']['facebook'] = isset($theme->options['widgets_options']['facebook'])
? array_merge($themater_facebook_defaults, $theme->options['widgets_options']['facebook'])
: $themater_facebook_defaults;
add_action('widgets_init', create_function('', 'return register_widget("ThematerFacebook");'));
class ThematerFacebook extends WP_Widget
{
function __construct()
{
$widget_options = array('description' => __('Facebook Like Box social widget. Enables Facebook Page owners to attract and gain Likes from their own website.', 'themater') );
$control_options = array( 'width' => 400);
$this->WP_Widget('themater_facebook', '» Facebook Like Box', $widget_options, $control_options);
}
function widget($args, $instance)
{
global $wpdb, $theme;
extract( $args );
$title = apply_filters('widget_title', $instance['title']);
$url = $instance['url'];
$width = $instance['width'];
$height = $instance['height'];
$colorscheme = $instance['colorscheme'];
$show_faces = $instance['show_faces'] == 'true' ? 'true' : 'false';
$stream = $instance['stream'] == 'true' ? 'true' : 'false';
$header = $instance['header'] == 'true' ? 'true' : 'false';
?>
<ul class="widget-container"><li class="facebook-widget">
<?php if ( $title ) { ?> <h3 class="widgettitle"><?php echo $title; ?></h3> <?php } ?>
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
<fb:like-box href="<?php echo $url; ?>" width="<?php echo $width; ?>" height="<?php echo $height; ?>" colorscheme ="<?php echo $colorscheme; ?>" show_faces="<?php echo $show_faces; ?>" stream="<?php echo $stream; ?>" header="<?php echo $header; ?>"></fb:like-box>
</li></ul>
<?php
}
function update($new_instance, $old_instance)
{
$instance = $old_instance;
$instance['title'] = strip_tags($new_instance['title']);
$instance['url'] = strip_tags($new_instance['url']);
$instance['width'] = strip_tags($new_instance['width']);
$instance['height'] = strip_tags($new_instance['height']);
$instance['colorscheme'] = strip_tags($new_instance['colorscheme']);
$instance['show_faces'] = strip_tags($new_instance['show_faces']);
$instance['stream'] = strip_tags($new_instance['stream']);
$instance['header'] = strip_tags($new_instance['header']);
return $instance;
}
function form($instance)
{
global $theme;
$instance = wp_parse_args( (array) $instance, $theme->options['widgets_options']['facebook'] );
?>
<div class="tt-widget">
<table width="100%">
<tr>
<td class="tt-widget-label" width="30%"><label for="<?php echo $this->get_field_id('title'); ?>">Title:</label></td>
<td class="tt-widget-content" width="70%"><input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($instance['title']); ?>" /></td>
</tr>
<tr>
<td class="tt-widget-label"><label for="<?php echo $this->get_field_id('url'); ?>">Facebook Page URL:</label></td>
<td class="tt-widget-content"><input class="widefat" id="<?php echo $this->get_field_id('url'); ?>" name="<?php echo $this->get_field_name('url'); ?>" type="text" value="<?php echo esc_attr($instance['url']); ?>" /></td>
</tr>
<tr>
<td class="tt-widget-label">Sizes:</td>
<td class="tt-widget-content">
Width: <input type="text" style="width: 50px;" name="<?php echo $this->get_field_name('width'); ?>" value="<?php echo esc_attr($instance['width']); ?>" /> px.
Height: <input type="text" style="width: 50px;" name="<?php echo $this->get_field_name('height'); ?>" value="<?php echo esc_attr($instance['height']); ?>" /> px.
</td>
</tr>
<tr>
<td class="tt-widget-label">Color Scheme:</td>
<td class="tt-widget-content">
<select name="<?php echo $this->get_field_name('colorscheme'); ?>">
<option value="light" <?php selected('alignleft', $instance['colorscheme']); ?> >Light</option>
<option value="dark" <?php selected('alignright', $instance['colorscheme']); ?>>Dark</option>
</select>
</td>
</tr>
<tr>
<td class="tt-widget-label">Misc Options:</td>
<td class="tt-widget-content">
<input type="checkbox" name="<?php echo $this->get_field_name('show_faces'); ?>" <?php checked('true', $instance['show_faces']); ?> value="true" /> <?php _e('Show Faces', 'themater'); ?>
<br /><input type="checkbox" name="<?php echo $this->get_field_name('stream'); ?>" <?php checked('true', $instance['stream']); ?> value="true" /> <?php _e('Show Stream', 'themater'); ?>
<br /><input type="checkbox" name="<?php echo $this->get_field_name('header'); ?>" <?php checked('true', $instance['header']); ?> value="true" /> <?php _e('Show Header', 'themater'); ?>
</td>
</tr>
</table>
</div>
<?php
}
}
?>