" . "Visit Us On Twitter"; } if ($acx_widget_si_facebook == "") { $facebook_link = ""; } else { $facebook_link = "" . "Visit Us On Facebook"; } if ($acx_widget_si_gplus == "") { $gplus_link = ""; } else { $gplus_link = "" . "Visit Us On GooglePlus"; } if ($acx_widget_si_pinterest == "") { $pinterest_link = ""; } else { $pinterest_link = "" . "Visit Us On Pinterest"; } if ($acx_widget_si_youtube == "") { $youtube_link = ""; } else { $youtube_link = "" . "Visit Us On Youtube"; } if ($acx_widget_si_linkedin == "") { $linkedin_link = ""; } else { $linkedin_link = "" . "Visit Us On Linkedin"; } if ($acx_widget_si_feed == "") { $feed_link = ""; } else { $feed_link = "" . "Check Our Feed"; } $social_widget_icon_array_order = get_option('social_widget_icon_array_order'); $social_widget_icon_array_order = unserialize($social_widget_icon_array_order); foreach ($social_widget_icon_array_order as $key => $value) { if ($value == 0) { echo $twitter_link; } else if ($value == 1) { echo $facebook_link; } else if ($value == 2) { echo $gplus_link; } else if ($value == 3) { echo $pinterest_link; } else if ($value == 4) { echo $youtube_link; } else if ($value == 5) { echo $linkedin_link; } else if ($value == 6) { echo $feed_link; } } } //acurax_si_widget_simple() // Check Credit Link function check_widget_acx_credit($yes,$no) { $acx_widget_si_credit = get_option('acx_widget_si_credit'); if($acx_widget_si_credit != "no") { echo $yes; } else { echo $no; } } function acx_widget_theme_check_wp_head() { $template_directory = get_template_directory(); // If header.php exists in the current theme, scan for "wp_head" $file = $template_directory . '/header.php'; if (is_file($file)) { $search_string = "wp_head"; $file_lines = @file($file); foreach ($file_lines as $line) { $searchCount = substr_count($line, $search_string); if ($searchCount > 0) { return true; } } // wp_head() not found: echo "
" . "Your theme needs to be fixed for plugins to work. To fix your theme, use the Theme Editor to insert <?php wp_head(); ?> just before the </head> line of your theme's header.php file." . "
"; } } // theme check if($acx_si_smw_theme_warning_ignore != "yes") { add_action('admin_notices', 'acx_widget_theme_check_wp_head'); } function acurax_widget_icons() { global $acx_widget_si_theme, $acx_widget_si_credit, $acx_widget_si_twitter, $acx_widget_si_facebook, $acx_widget_si_youtube, $acx_widget_si_linkedin, $acx_widget_si_gplus, $acx_widget_si_pinterest, $acx_widget_si_feed, $acx_widget_si_icon_size; if($acx_widget_si_twitter != "" || $acx_widget_si_facebook != "" || $acx_widget_si_youtube != "" || $acx_widget_si_linkedin != "" || $acx_widget_si_pinterest != "" || $acx_widget_si_gplus != "" || $acx_widget_si_feed != "") { //*********************** STARTED DISPLAYING THE ICONS *********************** echo "\n\n\n\n"; echo "
"; acurax_si_widget_simple(); echo "
\n"; echo "\n\n\n"; //***************************************************************************** } // Chking null fields } // Ending acurax_widget_icons(); function extra_style_acx_widget_icon() { global $acx_widget_si_icon_size; global $acx_si_smw_float_fix; echo "\n\n\n\n\n\n\n\n\n"; } add_action('admin_head', 'extra_style_acx_widget_icon'); // ADMIN add_action('wp_head', 'extra_style_acx_widget_icon'); // PUBLIC function acx_widget_si_admin_style() // Adding Style For Admin { echo ''; } add_action('admin_head', 'acx_widget_si_admin_style'); // ADMIN $acx_widget_si_sc_id = 0; // Defined to assign shortcode unique id function DISPLAY_WIDGET_acurax_widget_icons_SC($atts) { global $acx_widget_si_icon_size, $acx_widget_si_sc_id; extract(shortcode_atts(array( "theme" => '', "size" => $acx_widget_si_icon_size, "autostart" => 'false' ), $atts)); if ($theme > ACX_SOCIALMEDIA_WIDGET_TOTAL_THEMES) { $theme = ""; } if (!is_numeric($theme)) { $theme = ""; } if ($size > 55) { $size = $acx_widget_si_icon_size; } if (!is_numeric($size)) { $size = $acx_widget_si_icon_size; } $acx_widget_si_sc_id = $acx_widget_si_sc_id + 1; ob_start(); echo ""; echo "
"; acurax_si_widget_simple($theme); echo "
"; $content = ob_get_contents(); ob_end_clean(); return $content; } // DISPLAY_WIDGET_acurax_widget_icons_SC function acx_widget_si_custom_admin_js() { wp_enqueue_script('jquery'); wp_enqueue_script('jquery-ui-core'); wp_enqueue_script('jquery-ui-sortable'); } add_action( 'admin_enqueue_scripts', 'acx_widget_si_custom_admin_js' ); // wp-admin Notices >> Finish Upgrade function acx_widget_si_pluign_upgrade_not_finished() { echo '

Thanks for updating Acurax Social Media Widget Plugin... You need to visit Plugin\'s Settings Page to Complete the Updating Process - Click Here Visit Social Icon Plugin Settings

'; } $total_arrays = 7; // Number Of Services $social_widget_icon_array_order = get_option('social_widget_icon_array_order'); $social_widget_icon_array_order = unserialize($social_widget_icon_array_order); $social_widget_icon_array_count = count($social_widget_icon_array_order); if ($social_widget_icon_array_count < $total_arrays) { add_action('admin_notices', 'acx_widget_si_pluign_upgrade_not_finished',1); } function enqueue_acx_widget_si_style() { wp_enqueue_style ( 'acx-widget-si-style', plugins_url('style.css', __FILE__) ); } add_action( 'wp_print_styles', 'enqueue_acx_widget_si_style' ); function acx_widget_si_pluign_finish_version_update() { echo '

Thanks for updating Acurax Social Media Widget Plugin... You need to visit Plugin\'s Settings Page to Complete the Updating Process - Click Here Visit Social Icon Plugin Settings

'; } $acx_widget_si_current_version = get_option('acx_widget_si_current_version'); if($acx_widget_si_current_version != '2.3.1') // Current Version { if (get_option('social_widget_icon_array_order') != "") { add_action('admin_notices', 'acx_widget_si_pluign_finish_version_update',1); } } // wp-admin Notices >> Plugin not configured function acx_widget_si_pluign_not_configured() { echo '

Acurax Social Media Widget Plugin is not configured. You need to configure your social media profile URL\'s to start showing the Acurax Social Media Widgets - Click here to configure

'; } if ($social_widget_icon_array_count == $total_arrays) { if ($acx_widget_si_twitter == "" && $acx_widget_si_facebook == "" && $acx_widget_si_youtube == "" && $acx_widget_si_linkedin == "" && $acx_widget_si_pinterest == "" && $acx_widget_si_gplus == "" && $acx_widget_si_feed == "") { add_action('admin_notices', 'acx_widget_si_pluign_not_configured',1); } // Chking If Plugin Not Configured } // Chking $social_widget_icon_array_count == $total_arrays // wp-admin Notices >> Plugin not configured function acx_widget_si_pluign_promotion() { echo '

It looks like you have been enjoying using Acurax Social Media Widget plugin from Acurax for atleast 30 days.Would you consider upgrading to premium version to enjoy more features and help support continued development of the plugin? - Spreading the world about this plugin. Thank you for using the plugin

Rate it 5★\'s on wordpress Need More Features? Don\'t Show This Again

'; } $acx_widget_si_installed_date = get_option('acx_widget_si_installed_date'); if ($acx_widget_si_installed_date=="") { $acx_widget_si_installed_date = time();} if($acx_widget_si_installed_date < ( time() - 2952000 )) { if (get_option('acx_widget_si_td') != "hide") { add_action('admin_notices', 'acx_widget_si_pluign_promotion',1); } } // Starting Widget Code class acx_social_widget_icons_Widget extends WP_Widget { // Register the widget function acx_social_widget_icons_Widget() { // Set some widget options $widget_options = array( 'description' => 'Allow users to show Social Media Icons via Acurax Social Media Widget Plugin', 'classname' => 'acx-social-icons-desc' ); // Set some control options (width, height etc) $control_options = array( 'width' => 300 ); // Actually create the widget (widget id, widget name, options...) parent::__construct( 'acx-social-icons-widget', 'Acurax Social Media Widget', $widget_options, $control_options ); } // Output the content of the widget function widget($args, $instance) { extract( $args ); // Don't worry about this // Get our variables $title = apply_filters( 'widget_title', $instance['title'] ); $icon_size = $instance['icon_size']; $icon_theme = $instance['icon_theme']; $icon_align = $instance['icon_align']; // This is defined when you register a sidebar echo $before_widget; // If our title isn't empty then show it if ( $title ) { echo $before_title . $title . $after_title; } echo ""; echo "
"; } else { echo " style='text-align:center;'>"; } acurax_si_widget_simple($icon_theme); echo "
"; // This is defined when you register a sidebar echo $after_widget; } // Output the admin options form function form($instance) { $total_themes = ACX_SOCIALMEDIA_WIDGET_TOTAL_THEMES; $total_themes = $total_themes + 1; // These are our default values $defaults = array( 'title' => 'Social Media Icons','icon_size' => '32' ); // This overwrites any default values with saved values $instance = wp_parse_args( (array) $instance, $defaults ); ?>

Limited on Features ?

Compare and Decide

Feature Group

Features

Feature Group

Display

Features

  • More Sharp Quality Icons
  • 20+ Icon Theme/Style
  • Can Choose Icon Theme/Style
  • Can Choose Icon Size
  • Automatic/Manual Integration
  • Set MouseOver text for each icon in Share Mode
  • Set MouseOver text for each icon in Profile Link Mode
  • Option to HIDE Invididual Share Icon
  • Set Floating Icons in Vertical
  • Define how many icons in 1 row
  • Add Custom Icons

FREE               PREMIUM

Feature Group

Icon Function

Features

  • Link to Social Media Profile
  • Share On Social Media

FREE               PREMIUM

Feature Group

Animation

Features

  • Fly Animation
  • Mouse Over Effects

FREE               PREMIUM

Feature Group

Fly Animation Repeat Interval

Features

  • Based On Time in Seconds
  • Based On Time in Minutes
  • Based On Time in Hours
  • Based on Page Views
  • Based On Page Views and Time

FREE               PREMIUM

Feature Group

Multiple Fly Animation

Features

  • Can Choose Fly Start Position
  • Can Choose Fly End Position

FREE               PREMIUM

Feature Group

Easy to Configure

Features

  • Ajax Based Settings Page
  • Drag & Drop Reorder Icons
  • Easy to Configure

FREE               PREMIUM

Feature Group

Widget Support

Features

  • Multiple Widgets
  • Separate Icon Style/Theme For Each
  • Separate Icon Size For Each
  • Set whether the icons to Link Profiles/SHARE
  • Separate Mouse Over Multiple Animation for Each
  • Separate Default Opacity for Each

FREE               PREMIUM

Feature Group

Shortcode Support

Features

  • Multiple Instances
  • Separate Icon Style/Theme For Each
  • Separate Icon Size For Each
  • Set whether the icons to Link Profiles/SHARE
  • Separate Mouse Over Multiple Animation for Each
  • Separate Default Opacity for Each

FREE               PREMIUM

Feature Group

PHP Code Support

Features

  • Multiple Instances
  • Use Outside Loop
  • Separate Icon Style/Theme For Each
  • Separate Icon Size For Each
  • Set whether the icons to Link Profiles/SHARE
  • Separate Mouse Over Multiple Animation for Each
  • Separate Default Opacity for Each

FREE               PREMIUM

'; $ad_2='

'; if($ad=="" || $ad == 2) { echo $ad_2; } else if ($ad == 1) { echo $ad_1; } else { echo $ad_2; } } function acx_asmw_saveorder_callback() { global $wpdb; $social_widget_icon_array_order = $_POST['recordsArray']; if (current_user_can('manage_options')) { $social_widget_icon_array_order = serialize($social_widget_icon_array_order); update_option('social_widget_icon_array_order', $social_widget_icon_array_order); echo "
"; echo "Social Media Icon's Order Saved"; echo "

"; } die(); // this is required to return a proper result } add_action('wp_ajax_acx_asmw_saveorder', 'acx_asmw_saveorder_callback'); function acx_quick_widget_request_submit_callback() { $acx_name = $_POST['acx_name']; $acx_email = $_POST['acx_email']; $acx_phone = $_POST['acx_phone']; $acx_weburl = $_POST['acx_weburl']; $acx_subject = $_POST['acx_subject']; $acx_question = $_POST['acx_question']; if($acx_name == "" || $acx_email == "" || $acx_weburl == "" || $acx_subject == "" || $acx_question == "") { echo 2; } else { $current_user_acx = wp_get_current_user(); $current_user_acx = $current_user->user_email; if($current_user_acx == "") { $current_user_acx = $acx_email; } $headers[] = 'From: ' . $acx_name . ' <' . $current_user_acx . '>'; $headers[] = 'Content-Type: text/html; charset=UTF-8'; $message = "Name: ".$acx_name . "\r\n
"; $message = $message . "Email: ".$acx_email . "\r\n
"; if($acx_phone != "") { $message = $message . "Phone: ".$acx_phone . "\r\n
"; } // In case any of our lines are larger than 70 characters, we should use wordwrap() $acx_question = wordwrap($acx_question, 70, "\r\n
"); $message = $message . "Website: ".$acx_weburl . "\r\n
"; $message = $message . "Question: ".$acx_question . "\r\n
"; $message = stripslashes($message); $acx_subject = "Quick Support - " . $acx_subject; $emailed = wp_mail( 'info@acurax.com', $acx_subject, $message, $headers ); if($emailed) { echo 1; } else { echo 0; } } die(); // this is required to return a proper result }add_action('wp_ajax_acx_quick_widget_request_submit','acx_quick_widget_request_submit_callback'); ?>