" . "";
}
if ($acx_widget_si_facebook == "") { $facebook_link = ""; } else
{
$facebook_link = "" . "";
}
if ($acx_widget_si_gplus == "") { $gplus_link = ""; } else
{
$gplus_link = "" . "";
}
if ($acx_widget_si_pinterest == "") { $pinterest_link = ""; } else
{
$pinterest_link = "" . "";
}
if ($acx_widget_si_youtube == "") { $youtube_link = ""; } else
{
$youtube_link = "" . "";
}
if ($acx_widget_si_linkedin == "") { $linkedin_link = ""; } else
{
$linkedin_link = "" . "";
}
if ($acx_widget_si_feed == "") { $feed_link = ""; } else
{
$feed_link = "" . "";
}
$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()
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." . "
';
}
$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);
}
// 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
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? - You can also support us by giving us a website design, redesign, social media project or by spreading the world about this plugin. Thank you for using the plugin
';
}
$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...)
$this->WP_Widget( '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 "
";
// 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 );
?>
This Plugin is the basic widget version of floating social media icon wordpress plugin. This plugin only support the icon pack and the widget. Premium Version of This plugin includes all the features of floating social media icon and a lot more. Premium version is same as the premium version of floating social media icon wordpress plugin.
Free and Premium Comparison:
Features
Free
Premium
Automatic/Manual Integration
Option to select/define icon design
Option to select/define icon size
Seperate Icon Style/Size for each Shortcode
Seperate Icon Style/Size for each Widget
Reorder Icons
Widget Support
Multiple Widget Support
Shortcode Support
Multiple Shortcode Instance Support
More Sharp Quality Icons
Multiple Floating Animation
Configure Animation Repeat Interval
Animation Repeat Interval Based On Time
Animation Repeat Interval Based on Page Views
Animation Repeat Interval Based On Page Views and Time (both)
Ajax Based Settings Page
Set whether the icons to link profile/share
Easy to configure
Icon Placement Width Setting (allows to configure how many icons in 1 row)