function friendly_shortcode_responsive_slides_slider($atts, $content = null)
 {
     extract(shortcode_atts(array('image_1' => 'http://www.dummyimage.com/600x300', 'image_2' => '', 'image_3' => '', 'image_4' => '', 'image_5' => '', 'image_6' => '', 'image_7' => '', 'image_8' => '', 'image_9' => '', 'image_10' => '', 'auto' => 'false', 'speed' => '700', 'timeout' => '4000', 'pager' => 'false', 'nav' => 'true', 'random' => 'false', 'pause' => 'false', 'prevText' => 'Previous', 'nextText' => 'Next', 'maxwidth' => '', 'namespace' => 'shortcode_rslides'), $atts));
     if ($image_1 != '') {
         global $post;
         $post_id = $post->ID;
         $out = "<div class='rslides_container'><ul class='rslides_shortcode' id='rs_post_" . absint($post_id) . "'>";
         $out .= "<li><img src='" . esc_url($image_1) . "' alt='' /></li>";
         if ($image_2 && $image_2 != '') {
             $out .= "<li><img src='" . esc_url($image_2) . "' alt='' /></li>";
         }
         if ($image_3 && $image_3 != '') {
             $out .= "<li><img src='" . esc_url($image_3) . "' alt='' /></li>";
         }
         if ($image_4 && $image_4 != '') {
             $out .= "<li><img src='" . esc_url($image_4) . "' alt='' /></li>";
         }
         if ($image_5 && $image_5 != '') {
             $out .= "<li><img src='" . esc_url($image_5) . "' alt='' /></li>";
         }
         if ($image_6 && $image_6 != '') {
             $out .= "<li><img src='" . esc_url($image_6) . "' alt='' /></li>";
         }
         if ($image_7 && $image_7 != '') {
             $out .= "<li><img src='" . esc_url($image_7) . "' alt='' /></li>";
         }
         if ($image_8 && $image_8 != '') {
             $out .= "<li><img src='" . esc_url($image_8) . "' alt='' /></li>";
         }
         if ($image_9 && $image_9 != '') {
             $out .= "<li><img src='" . esc_url($image_9) . "' alt='' /></li>";
         }
         if ($image_10 && $image_10 != '') {
             $out .= "<li><img src='" . esc_url($image_10) . "' alt='' /></li>";
         }
         $out .= '</ul></div>';
         $out .= '<script>';
         $out .= "jQuery(document).ready(function(\$) {\n\n\t\t\t\t\tjQuery( '#rs_post_" . absint($post_id) . "' ).responsiveSlides({\n\t\t\t\t\t\tauto: " . esc_attr($auto) . ",\n\t\t\t\t\t\tspeed: " . absint($speed) . ",\n\t\t\t\t\t\ttimeout: " . absint($timeout) . ",\n\t\t\t\t\t\tpager: " . esc_attr($pager) . ",\n\t\t\t\t\t\tnav: " . esc_attr($nav) . ",\n\t\t\t\t\t\trandom: " . esc_attr($random) . ",\n\t\t\t\t\t\tpause: " . esc_attr($pause) . ",\n\t\t\t\t\t\tprevText: '" . esc_html($prevText) . "',\n\t\t\t\t\t\tnextText: '" . esc_html($nextText) . "',\n\t\t\t\t\t\tmaxwidth: '" . esc_attr($maxwidth) . "'\n\t\t\t\t\t});\n\n\t\t\t\t});";
         $out .= '</script>';
     }
     wp_enqueue_style('responsiveslides-slider-css', friendly_rs_slider::get_url('_a/css/responsiveslides.css'), '', friendly_rs_slider::version, 'screen');
     return $out;
 }
/**
 * Begin!
 *
 * @package Friendly RS Slider
 * @author iamfriendly
 * @version 0.1
 * @since 0.1
 */
function friendly_rs_slider_init()
{
    $friendly_rs_slider = new friendly_rs_slider();
    $friendly_rs_slider->init();
}
 /**
  * Load front-end and back-end scripts and styles
  *
  * @package Friendly RS Slider
  * @author iamfriendly
  * @version 0.1
  * @since 0.1
  */
 private function register_scripts_and_styles()
 {
     global $style_dir;
     if (is_admin()) {
         return;
     }
     $this->load_file('responsiveslides-slider-js', friendly_rs_slider::get_url('_a/js/responsiveslides.min.js'), true);
     $this->load_file('responsiveslides-slider-css', friendly_rs_slider::get_url('_a/css/responsiveslides.css'), false);
 }