Version Description
- March 21, 2012
- Added Pinterest
- Added drag and drop reorder option
- AFTER UPDATE YOU NEED TO VISIT THE PLUGIN SETTINGS PAGE TO START SHOWING THE ICONS (Upgrade Will Not Alter Your Settings).
Download this release
Release Info
Developer | Acurax |
Plugin | Social Media Flying Icons | Floating Social Media Icon |
Version | 1.0.9 |
Comparing to | |
See all releases |
Code changes from version 1.0.8 to 1.0.9
- acurax-social-icon.php +94 -84
- function.php +167 -91
- images/themes/1/pinterest.png +0 -0
- images/themes/1/single.png +0 -0
- images/themes/10/pinterest.png +0 -0
- images/themes/10/single.png +0 -0
- images/themes/11/pinterest.png +0 -0
- images/themes/11/single.png +0 -0
- images/themes/12/pinterest.png +0 -0
- images/themes/12/single.png +0 -0
- images/themes/13/{gooleplus.png → googleplus.png} +0 -0
- images/themes/13/pinterest.png +0 -0
- images/themes/13/single.png +0 -0
- images/themes/14/pinterest.png +0 -0
- images/themes/14/single.png +0 -0
- images/themes/15/pinterest.png +0 -0
- images/themes/15/single.png +0 -0
- images/themes/16/pinterest.png +0 -0
- images/themes/16/single.png +0 -0
- images/themes/17/pinterest.png +0 -0
- images/themes/17/single.png +0 -0
- images/themes/18/pinterest.png +0 -0
- images/themes/18/single.png +0 -0
- images/themes/19/pinterest.png +0 -0
- images/themes/19/single.png +0 -0
- images/themes/2/pinterest.png +0 -0
- images/themes/2/single.png +0 -0
- images/themes/20/pinterest.png +0 -0
- images/themes/20/single.png +0 -0
- images/themes/21/pinterest.png +0 -0
- images/themes/21/single.png +0 -0
- images/themes/22/pinterest.png +0 -0
- images/themes/22/single.png +0 -0
- images/themes/23/pinterest.png +0 -0
- images/themes/23/single.png +0 -0
- images/themes/24/pinterest.png +0 -0
- images/themes/24/single.png +0 -0
- images/themes/3/pinterest.png +0 -0
- images/themes/3/single.png +0 -0
- images/themes/4/pinterest.png +0 -0
- images/themes/4/single.png +0 -0
- images/themes/5/pinterest.png +0 -0
- images/themes/5/single.png +0 -0
- images/themes/6/pinterest.png +0 -0
- images/themes/6/single.png +0 -0
- images/themes/7/pinterest.png +0 -0
- images/themes/7/single.png +0 -0
- images/themes/8/pinterest.png +0 -0
- images/themes/8/single.png +0 -0
- images/themes/9/pinterest.png +0 -0
- images/themes/9/single.png +0 -0
- js.php +10 -1
- readme.txt +36 -12
- save_order.php +15 -0
- screenshot-1.png +0 -0
- screenshot-3.png +0 -0
- screenshot-4.png +0 -0
- social-help.php +6 -0
- social-icon.php +287 -124
- style_admin.css +34 -3
acurax-social-icon.php
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
/*
|
3 |
Plugin Name: Floating Social Media Icon
|
4 |
Plugin URI: http://www.acurax.com/products/floating-social-media-icon-plugin-wordpress/
|
5 |
-
Description: An easy to use plugin to show social media icons which floats on your browsers right bottom, which links to your social media profiles, You have option in plugin settings to configure social media profile urls and also can select icon style and size.
|
6 |
Author: Acurax
|
7 |
-
Version: 1.0.
|
8 |
Author URI: http://www.acurax.com
|
9 |
License: GPLv2 or later
|
10 |
*/
|
@@ -33,9 +33,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
33 |
function enqueue_acx_social_icon_script()
|
34 |
{
|
35 |
wp_enqueue_script ( 'jquery' );
|
36 |
-
}
|
37 |
-
add_action( 'get_header', 'enqueue_acx_social_icon_script' );
|
38 |
//*************** Include JS in Header Ends Here ********
|
|
|
|
|
39 |
//*********** Include Additional Menu ********************
|
40 |
function AcuraxLinks($links, $file) {
|
41 |
$plugin = plugin_basename(__FILE__);
|
@@ -51,109 +52,118 @@ function AcuraxLinks($links, $file) {
|
|
51 |
));
|
52 |
}
|
53 |
return $links;
|
54 |
-
}
|
55 |
-
add_filter('plugin_row_meta', 'AcuraxLinks', 10, 2 );
|
56 |
//*********************************************************
|
|
|
57 |
include('function.php');
|
|
|
58 |
//*************** Admin function ***************
|
59 |
-
function acx_social_icon_admin()
|
|
|
60 |
include('social-icon.php');
|
61 |
}
|
62 |
-
function acx_social_icon_help()
|
|
|
63 |
include('social-help.php');
|
64 |
}
|
|
|
65 |
function acx_social_icon_admin_actions()
|
66 |
{
|
67 |
-
add_menu_page( 'Acurax Social Icon Plugin Configuration', 'Acx Social Icons', 8, 'Acurax-Social-Icons-Settings','acx_social_icon_admin',plugin_dir_url( __FILE__ ).'/images/admin.ico', 55 ); // 8 for admin
|
68 |
-
add_submenu_page('Acurax-Social-Icons-Settings', 'Acurax Social Icon Help and Support', 'Help', 8, 'Acurax-Social-Icons-Help' ,'acx_social_icon_help');
|
69 |
}
|
|
|
70 |
if ( is_admin() )
|
71 |
{
|
72 |
-
add_action('admin_menu', 'acx_social_icon_admin_actions');
|
73 |
}
|
|
|
74 |
// Adding WUM Starts Here
|
75 |
function acurax_social_icon_update( $plugin_data, $r )
|
76 |
{
|
77 |
-
// Get Current Plugin Data () Starts Here
|
78 |
-
function current_plugin_info($value)
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
$
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
$
|
88 |
-
|
89 |
-
$
|
90 |
-
|
91 |
-
|
92 |
-
$
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
$
|
99 |
-
$ret
|
100 |
-
$
|
101 |
-
$
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
{
|
106 |
-
if (
|
107 |
-
{
|
108 |
-
|
109 |
-
|
110 |
-
$
|
111 |
-
|
112 |
-
$
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
{
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
$
|
131 |
-
}
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
$ret .= '</
|
138 |
-
}
|
139 |
-
|
140 |
-
|
|
|
|
|
141 |
}
|
142 |
/**
|
143 |
* Add update messages that can be attached to the CURRENT release (not
|
144 |
* this one), but only for 2.8+
|
145 |
*/
|
146 |
global $wp_version;
|
147 |
-
if ( version_compare('2.8', $wp_version, '<=') )
|
148 |
-
global $pagenow;
|
149 |
-
if ( 'plugins.php' === $pagenow )
|
150 |
{
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
|
|
|
|
|
|
157 |
}
|
158 |
// Adding WUM Ends Here
|
159 |
?>
|
2 |
/*
|
3 |
Plugin Name: Floating Social Media Icon
|
4 |
Plugin URI: http://www.acurax.com/products/floating-social-media-icon-plugin-wordpress/
|
5 |
+
Description: An easy to use plugin to show social media icons which floats on your browsers right bottom, which links to your social media profiles, You have option in plugin settings to configure social media profile urls and also can select icon style,order and size.
|
6 |
Author: Acurax
|
7 |
+
Version: 1.0.9
|
8 |
Author URI: http://www.acurax.com
|
9 |
License: GPLv2 or later
|
10 |
*/
|
33 |
function enqueue_acx_social_icon_script()
|
34 |
{
|
35 |
wp_enqueue_script ( 'jquery' );
|
36 |
+
} add_action( 'get_header', 'enqueue_acx_social_icon_script' );
|
|
|
37 |
//*************** Include JS in Header Ends Here ********
|
38 |
+
|
39 |
+
|
40 |
//*********** Include Additional Menu ********************
|
41 |
function AcuraxLinks($links, $file) {
|
42 |
$plugin = plugin_basename(__FILE__);
|
52 |
));
|
53 |
}
|
54 |
return $links;
|
55 |
+
} add_filter('plugin_row_meta', 'AcuraxLinks', 10, 2 );
|
|
|
56 |
//*********************************************************
|
57 |
+
|
58 |
include('function.php');
|
59 |
+
|
60 |
//*************** Admin function ***************
|
61 |
+
function acx_social_icon_admin()
|
62 |
+
{
|
63 |
include('social-icon.php');
|
64 |
}
|
65 |
+
function acx_social_icon_help()
|
66 |
+
{
|
67 |
include('social-help.php');
|
68 |
}
|
69 |
+
|
70 |
function acx_social_icon_admin_actions()
|
71 |
{
|
72 |
+
add_menu_page( 'Acurax Social Icon Plugin Configuration', 'Acx Social Icons', 8, 'Acurax-Social-Icons-Settings','acx_social_icon_admin',plugin_dir_url( __FILE__ ).'/images/admin.ico', 55 ); // 8 for admin
|
73 |
+
add_submenu_page('Acurax-Social-Icons-Settings', 'Acurax Social Icon Help and Support', 'Help', 8, 'Acurax-Social-Icons-Help' ,'acx_social_icon_help');
|
74 |
}
|
75 |
+
|
76 |
if ( is_admin() )
|
77 |
{
|
78 |
+
add_action('admin_menu', 'acx_social_icon_admin_actions');
|
79 |
}
|
80 |
+
|
81 |
// Adding WUM Starts Here
|
82 |
function acurax_social_icon_update( $plugin_data, $r )
|
83 |
{
|
84 |
+
// Get Current Plugin Data () Starts Here
|
85 |
+
function current_plugin_info($value)
|
86 |
+
{
|
87 |
+
if ( ! function_exists( 'get_plugins' ) )
|
88 |
+
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
89 |
+
$plugin_folder = get_plugins( '/' . plugin_basename( dirname( __FILE__ ) ) );
|
90 |
+
$plugin_file = basename( ( __FILE__ ) );
|
91 |
+
return $plugin_folder[$plugin_file][$value];
|
92 |
+
} // Get Current Plugin Data () Starts Here
|
93 |
+
|
94 |
+
$curr_ver = current_plugin_info('Version');
|
95 |
+
define ( 'CURRENT_VERSION', $curr_ver );
|
96 |
+
$folder = basename( dirname( __FILE__ ) );
|
97 |
+
// readme contents
|
98 |
+
$data = file_get_contents( 'http://plugins.trac.wordpress.org/browser/'.$folder.'/trunk/readme.txt?format=txt' );
|
99 |
+
if ($data)
|
100 |
+
{
|
101 |
+
$matches = null;
|
102 |
+
$regexp = '~==\s*Changelog\s*==\s*=\s*[0-9.]+\s*=(.*)(=\s*' . preg_quote ( CURRENT_VERSION ) . '\s*=|$)~Uis';
|
103 |
+
if ( preg_match ( $regexp, $data, $matches) )
|
104 |
+
{
|
105 |
+
$changelog = (array) preg_split ( '~[\r\n]+~', trim ( $matches[1] ) );
|
106 |
+
$ret = '<div style="color: #c00;font-size: small; margin-top:8px;margin-bottom:8px">The Floating Social Media Plugin has been updated. Here is a change list, so you can see what\'s been changed or fixed:</div>';
|
107 |
+
$ret .= '<div style="font-weight: normal;">';
|
108 |
+
$ret .= '<p style="margin: 5px 0; font-weight:bold; font-size:small">= Latest Version =</p>';
|
109 |
+
$ul = false;
|
110 |
+
$first = false;
|
111 |
+
foreach ( $changelog as $index => $line )
|
112 |
+
{
|
113 |
+
if ( preg_match ( '~^\s*\*\s*~', $line) )
|
114 |
+
{
|
115 |
+
if ( !$ul )
|
116 |
+
{
|
117 |
+
$ret .= '<ul style="list-style: disc; margin-left: 20px;">';
|
118 |
+
$ul = true;
|
119 |
+
$first = true;
|
120 |
+
}
|
121 |
+
$line = preg_replace ( '~^\s*\*\s*~', '', $line );
|
122 |
+
if ( $first )
|
123 |
+
{
|
124 |
+
$ret .= '<li style="list-style-type:none;margin-left: -1.5em; font-weight:bold">Release Date:' . $line . '</li>';
|
125 |
+
$first = false;
|
126 |
+
}
|
127 |
+
else
|
128 |
+
{
|
129 |
+
$ret .= '<li>' . $line . '</li>';
|
130 |
+
}
|
131 |
+
}
|
132 |
+
else
|
133 |
+
{
|
134 |
+
if ( $ul )
|
135 |
+
{
|
136 |
+
$ret .= '</ul><div style="clear: left;"></div>';
|
137 |
+
$ul = false;
|
138 |
+
}
|
139 |
+
$ret .= '<p style="margin: 5px 0; font-weight:bold; font-size:small">' . $line . '</p>';
|
140 |
+
}
|
141 |
+
}
|
142 |
+
if ( $ul )
|
143 |
+
{
|
144 |
+
$ret .= '</ul>';
|
145 |
+
}
|
146 |
+
$ret .= '</div>';
|
147 |
+
}
|
148 |
+
}
|
149 |
+
echo $ret;
|
150 |
}
|
151 |
/**
|
152 |
* Add update messages that can be attached to the CURRENT release (not
|
153 |
* this one), but only for 2.8+
|
154 |
*/
|
155 |
global $wp_version;
|
156 |
+
if ( version_compare('2.8', $wp_version, '<=') )
|
|
|
|
|
157 |
{
|
158 |
+
global $pagenow;
|
159 |
+
if ( 'plugins.php' === $pagenow )
|
160 |
+
{
|
161 |
+
// Better update message
|
162 |
+
$file = basename( __FILE__ );
|
163 |
+
$folder = basename( dirname( __FILE__ ) );
|
164 |
+
$acx_add = "in_plugin_update_message-{$folder}/{$file}";
|
165 |
+
add_action( $acx_add, 'acurax_social_icon_update', 20, 2 );
|
166 |
+
}
|
167 |
}
|
168 |
// Adding WUM Ends Here
|
169 |
?>
|
function.php
CHANGED
@@ -1,123 +1,199 @@
|
|
1 |
<?php
|
2 |
-
|
|
|
3 |
function enqueue_acx_si_style()
|
4 |
{
|
5 |
wp_enqueue_style ( 'acx-si-style', plugins_url('style.css', __FILE__) );
|
6 |
-
}
|
7 |
-
|
8 |
-
//*************** Include CSS in Header Ends Here ********
|
9 |
// Check Credit Link
|
10 |
function check_acx_credit($yes,$no)
|
11 |
{ $acx_si_credit = get_option('acx_si_credit');
|
12 |
if($acx_si_credit != "no") { echo $yes; } else { echo $no; }
|
13 |
}
|
|
|
14 |
// Options Value Checker
|
15 |
function acx_option_value_check($option_name,$yes,$no)
|
16 |
{ $acx_si_option_set = get_option($option_name);
|
17 |
if ($acx_si_option_set != "") { echo $yes; } else { echo $no; }
|
18 |
}
|
19 |
-
|
20 |
function acurax_icons()
|
21 |
{
|
22 |
-
// Getting Option From DB *****************************
|
23 |
-
$acx_si_theme = get_option('acx_si_theme');
|
24 |
-
$acx_si_credit = get_option('acx_si_credit');
|
25 |
-
$acx_si_display = get_option('acx_si_display');
|
26 |
-
$acx_si_twitter = get_option('acx_si_twitter');
|
27 |
-
$acx_si_facebook = get_option('acx_si_facebook');
|
28 |
-
$acx_si_youtube = get_option('acx_si_youtube');
|
29 |
-
$acx_si_linkedin = get_option('acx_si_linkedin');
|
30 |
-
$acx_si_gplus = get_option('acx_si_gplus');
|
31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
acx_option_value_check("acx_si_linkedin",$linkedin_link,"");
|
49 |
-
echo "</div>\n<!-- Ending Icon Display Code For Social Media Icon From Acurax International www.acurax.com -->\n\n\n";
|
50 |
-
//*****************************************************************************************************************************************
|
51 |
-
if ($acx_si_display == "auto") {
|
52 |
-
//********************************************** STARTING PUMBING JAVASCIRPT ******************************************************
|
53 |
-
echo "\n\n\n<!-- Starting Javascript For Social Media Icon From Acurax International www.acurax.com -->\n";
|
54 |
-
?>
|
55 |
-
<script type="text/javascript" src="<?php echo plugins_url('js.php', __FILE__);?>"></script>
|
56 |
-
<?php
|
57 |
-
echo "<!-- Ending Javascript Code For Social Media Icon From Acurax International www.acurax.com -->\n\n\n";
|
58 |
-
//*********************************************************************************************************************************
|
59 |
-
} // Checking $acx_si_display
|
60 |
} // Ending acurax_icons();
|
61 |
|
|
|
|
|
62 |
// Starting Footer PBL
|
63 |
-
function pbl_footer()
|
64 |
-
|
65 |
-
|
66 |
-
$
|
67 |
-
$
|
68 |
-
$
|
69 |
-
$
|
70 |
-
$
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
|
|
|
|
|
|
|
|
|
|
81 |
|
82 |
function extra_style_acx_icon()
|
83 |
{
|
84 |
-
$acx_si_theme = get_option('acx_si_icon_size');
|
85 |
-
$acx_si_display = get_option('acx_si_display');
|
86 |
-
echo "\n\n\n<!-- Starting Styles For Social Media Icon From Acurax International www.acurax.com -->\n<style type='text/css'>\n";
|
87 |
-
echo "#divBottomRight img \n{\n";
|
88 |
-
echo "width: " . $acx_si_theme. "px; \n}\n";
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
echo "
|
93 |
-
|
94 |
-
echo "
|
95 |
-
}
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
function DISPLAY_ACURAX_ICONS()
|
105 |
{
|
106 |
-
$acx_si_display = get_option('acx_si_display');
|
107 |
-
if (function_exists('acurax_icons') && $acx_si_display != "auto")
|
108 |
-
|
109 |
-
|
|
|
|
|
110 |
} // DISPLAY_ACURAX_ICONS
|
|
|
|
|
111 |
function acx_not_auto()
|
112 |
{
|
113 |
-
echo "<!-- Select Display Mode as Manual To Show The Acurax Social Media Icons -->";
|
114 |
}
|
115 |
-
if
|
116 |
-
|
117 |
-
|
118 |
-
add_shortcode( 'DISPLAY_ACURAX_ICONS', 'acx_not_auto' ); // Defining Shortcode to show Select Manual
|
119 |
}
|
120 |
-
|
121 |
-
|
122 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
?>
|
1 |
<?php
|
2 |
+
error_reporting(0);
|
3 |
+
//*************** Include style.css in Header ********
|
4 |
function enqueue_acx_si_style()
|
5 |
{
|
6 |
wp_enqueue_style ( 'acx-si-style', plugins_url('style.css', __FILE__) );
|
7 |
+
} add_action( 'wp_print_styles', 'enqueue_acx_si_style' );
|
8 |
+
|
|
|
9 |
// Check Credit Link
|
10 |
function check_acx_credit($yes,$no)
|
11 |
{ $acx_si_credit = get_option('acx_si_credit');
|
12 |
if($acx_si_credit != "no") { echo $yes; } else { echo $no; }
|
13 |
}
|
14 |
+
|
15 |
// Options Value Checker
|
16 |
function acx_option_value_check($option_name,$yes,$no)
|
17 |
{ $acx_si_option_set = get_option($option_name);
|
18 |
if ($acx_si_option_set != "") { echo $yes; } else { echo $no; }
|
19 |
}
|
20 |
+
|
21 |
function acurax_icons()
|
22 |
{
|
23 |
+
// Getting Option From DB *****************************
|
24 |
+
$acx_si_theme = get_option('acx_si_theme');
|
25 |
+
$acx_si_credit = get_option('acx_si_credit');
|
26 |
+
$acx_si_display = get_option('acx_si_display');
|
27 |
+
$acx_si_twitter = get_option('acx_si_twitter');
|
28 |
+
$acx_si_facebook = get_option('acx_si_facebook');
|
29 |
+
$acx_si_youtube = get_option('acx_si_youtube');
|
30 |
+
$acx_si_linkedin = get_option('acx_si_linkedin');
|
31 |
+
$acx_si_gplus = get_option('acx_si_gplus');
|
32 |
+
$acx_si_pinterest = get_option('acx_si_pinterest');
|
33 |
+
// *****************************************************
|
34 |
+
|
35 |
+
if($acx_si_twitter != "" || $acx_si_facebook != "" || $acx_si_youtube != "" || $acx_si_linkedin != "" || $acx_si_pinterest != "" || $acx_si_gplus != "")
|
36 |
+
{
|
37 |
+
//******** MAKING EACH BUTTON LINKS ********************
|
38 |
+
if ($acx_si_twitter == "") { $twitter_link = ""; } else {
|
39 |
+
$twitter_link = "<a href='http://www.twitter.com/". $acx_si_twitter ."' target='_blank'>" . "<img src=" . plugins_url('images/themes/'. $acx_si_theme .'/twitter.png', __FILE__) . " border='0'></a>";
|
40 |
+
}
|
41 |
+
if ($acx_si_facebook == "") { $facebook_link = ""; } else {
|
42 |
+
$facebook_link = "<a href='". $acx_si_facebook ."' target='_blank'>" . "<img src=" . plugins_url('images/themes/'. $acx_si_theme .'/facebook.png', __FILE__) . " border='0'></a>";
|
43 |
+
}
|
44 |
+
if ($acx_si_gplus == "") { $gplus_link = ""; } else {
|
45 |
+
$gplus_link = "<a href='". $acx_si_gplus ."' target='_blank'>" . "<img src=" . plugins_url('images/themes/'. $acx_si_theme .'/googleplus.png', __FILE__) . " border='0'></a>";
|
46 |
+
}
|
47 |
+
if ($acx_si_pinterest == "") { $pinterest_link = ""; } else {
|
48 |
+
$pinterest_link = "<a href='". $acx_si_pinterest ."' target='_blank'>" . "<img src=" . plugins_url('images/themes/'. $acx_si_theme .'/pinterest.png', __FILE__) . " border='0'></a>";
|
49 |
+
}
|
50 |
+
if ($acx_si_youtube == "") { $youtube_link = ""; } else {
|
51 |
+
$youtube_link = "<a href='". $acx_si_youtube ."' target='_blank'>" . "<img src=" . plugins_url('images/themes/'. $acx_si_theme .'/youtube.png', __FILE__) . " border='0'></a>";
|
52 |
+
}
|
53 |
+
if ($acx_si_linkedin == "") { $linkedin_link = ""; } else {
|
54 |
+
$linkedin_link = "<a href='". $acx_si_linkedin ."' target='_blank'>" . "<img src=" . plugins_url('images/themes/'. $acx_si_theme .'/linkedin.png', __FILE__) . " border='0'></a>";
|
55 |
+
}
|
56 |
+
|
57 |
+
|
58 |
+
//*********************** STARTED DISPLAYING THE ICONS ***********************
|
59 |
+
|
60 |
+
echo "\n\n\n<!-- Starting Icon Display Code For Social Media Icon From Acurax International www.acurax.com -->\n";
|
61 |
+
echo "<div id='divBottomRight' align='center'>";
|
62 |
+
$social_icon_array_order = get_option('social_icon_array_order');
|
63 |
+
$social_icon_array_order = unserialize($social_icon_array_order);
|
64 |
+
foreach ($social_icon_array_order as $key => $value)
|
65 |
+
{
|
66 |
+
if ($value == 0) { echo $twitter_link; }
|
67 |
+
|
68 |
+
else if ($value == 1) { echo $facebook_link; }
|
69 |
+
|
70 |
+
else if ($value == 2) { echo $gplus_link; }
|
71 |
+
|
72 |
+
else if ($value == 3) { echo $pinterest_link; }
|
73 |
+
|
74 |
+
else if ($value == 4) { echo $youtube_link; }
|
75 |
+
|
76 |
+
else if ($value == 5) { echo $linkedin_link; }
|
77 |
+
}
|
78 |
+
echo "</div>\n";
|
79 |
+
echo "<!-- Ending Icon Display Code For Social Media Icon From Acurax International www.acurax.com -->\n\n\n";
|
80 |
|
81 |
+
//*****************************************************************************
|
82 |
+
|
83 |
+
if ($acx_si_display == "auto")
|
84 |
+
{
|
85 |
+
|
86 |
+
//*************** STARTING PUMBING JAVASCIRPT *******************************
|
87 |
+
echo "\n\n\n<!-- Starting Javascript For Social Media Icon From Acurax International www.acurax.com -->\n"; ?>
|
88 |
+
<script type="text/javascript" src="<?php echo plugins_url('js.php', __FILE__);?>"></script>
|
89 |
+
<?php echo "<!-- Ending Javascript Code For Social Media Icon From Acurax International www.acurax.com -->\n\n\n";
|
90 |
+
|
91 |
+
} // Checking $acx_si_display
|
92 |
+
|
93 |
+
|
94 |
+
} // Chking null fields
|
95 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
} // Ending acurax_icons();
|
97 |
|
98 |
+
|
99 |
+
|
100 |
// Starting Footer PBL
|
101 |
+
function pbl_footer()
|
102 |
+
{
|
103 |
+
// Getting Option From DB *****************************
|
104 |
+
$acx_si_credit = get_option('acx_si_credit');
|
105 |
+
$acx_si_twitter = get_option('acx_si_twitter');
|
106 |
+
$acx_si_facebook = get_option('acx_si_facebook');
|
107 |
+
$acx_si_youtube = get_option('acx_si_youtube');
|
108 |
+
$acx_si_linkedin = get_option('acx_si_linkedin');
|
109 |
+
$acx_si_gplus = get_option('acx_si_gplus');
|
110 |
+
$acx_si_pinterest = get_option('acx_si_pinterest');
|
111 |
+
// *****************************************************
|
112 |
+
|
113 |
+
//********** CHECKING CREDIT LINK STATUS ******************
|
114 |
+
if($acx_si_twitter != "" || $acx_si_facebook != "" || $acx_si_youtube != "" || $acx_si_linkedin != "" || $acx_si_pinterest != "" || $acx_si_gplus != "")
|
115 |
+
{
|
116 |
+
if($acx_si_credit == "yes")
|
117 |
+
{
|
118 |
+
echo "<div style='text-align:center;color:gray;font-family:arial;font-size:10px;text-decoration:none;'>";
|
119 |
+
echo "<a href='http://www.acurax.com/products/floating-social-media-icon-plugin-wordpress/' target='_blank' title='Social Media Wordpress plugin' style='text-align:center;color:gray;font-family:arial;font-size:10px;text-decoration:none;'>Social Media Icons</a> Powered by <a href='http://www.acurax.com/services/web-designing.php' target='_blank' title='Web Design Company' style='text-align:center;color:gray;font-family:arial;font-size:10px;text-decoration:none;'>Acurax Web Design Company</a></div>";
|
120 |
+
}
|
121 |
+
}
|
122 |
+
|
123 |
+
} add_action('wp_footer', 'pbl_footer'); // pbl_footer
|
124 |
|
125 |
function extra_style_acx_icon()
|
126 |
{
|
127 |
+
$acx_si_theme = get_option('acx_si_icon_size');
|
128 |
+
$acx_si_display = get_option('acx_si_display');
|
129 |
+
echo "\n\n\n<!-- Starting Styles For Social Media Icon From Acurax International www.acurax.com -->\n<style type='text/css'>\n";
|
130 |
+
echo "#divBottomRight img \n{\n";
|
131 |
+
echo "width: " . $acx_si_theme. "px; \n}\n";
|
132 |
+
|
133 |
+
if ($acx_si_display != "auto")
|
134 |
+
{
|
135 |
+
echo "#divBottomRight \n{\n";
|
136 |
+
echo "min-width:0px; \n";
|
137 |
+
echo "position: static; \n}\n";
|
138 |
+
}
|
139 |
+
|
140 |
+
echo "</style>\n<!-- Ending Styles For Social Media Icon From Acurax International www.acurax.com -->\n\n\n\n";
|
141 |
+
} add_action('admin_head', 'extra_style_acx_icon'); // ADMIN
|
142 |
+
add_action('wp_head', 'extra_style_acx_icon'); // PUBLIC
|
143 |
+
|
144 |
+
function acx_si_admin_style() // Adding Style For Admin
|
145 |
+
{
|
146 |
+
echo '<link rel="stylesheet" type="text/css" href="' .plugins_url('style_admin.css', __FILE__). '">';
|
147 |
+
} add_action('admin_head', 'acx_si_admin_style'); // ADMIN
|
148 |
+
|
149 |
+
$acx_si_display = get_option('acx_si_display');
|
150 |
+
if ($acx_si_display == "auto")
|
151 |
+
{
|
152 |
+
add_action('wp_footer', 'acurax_icons');
|
153 |
}
|
154 |
+
|
155 |
+
function DISPLAY_ACURAX_ICONS_SC()
|
156 |
+
{
|
157 |
+
$acx_si_display = get_option('acx_si_display');
|
158 |
+
if (function_exists('acurax_icons') && $acx_si_display != "auto")
|
159 |
+
{
|
160 |
+
ob_start();
|
161 |
+
acurax_icons();
|
162 |
+
$content = ob_get_contents();
|
163 |
+
ob_end_clean();
|
164 |
+
return $content;
|
165 |
+
}
|
166 |
+
else echo "<!-- Select Display Mode as Manual To Show The Acurax Social Media Icons -->";
|
167 |
+
} // DISPLAY_ACURAX_ICONS
|
168 |
+
|
169 |
function DISPLAY_ACURAX_ICONS()
|
170 |
{
|
171 |
+
$acx_si_display = get_option('acx_si_display');
|
172 |
+
if (function_exists('acurax_icons') && $acx_si_display != "auto")
|
173 |
+
{
|
174 |
+
acurax_icons();
|
175 |
+
}
|
176 |
+
else echo "<!-- Select Display Mode as Manual To Show The Acurax Social Media Icons -->";
|
177 |
} // DISPLAY_ACURAX_ICONS
|
178 |
+
|
179 |
+
|
180 |
function acx_not_auto()
|
181 |
{
|
182 |
+
echo "<!-- Select Display Mode as Manual To Show The Acurax Social Media Icons -->";
|
183 |
}
|
184 |
+
if (function_exists('DISPLAY_ACURAX_ICONS') && $acx_si_display != "auto")
|
185 |
+
{
|
186 |
+
add_shortcode( 'DISPLAY_ACURAX_ICONS', 'DISPLAY_ACURAX_ICONS_SC' ); // Defining Shortcode to show Social Media Icon
|
|
|
187 |
}
|
188 |
+
else if (function_exists('acx_not_auto') && $acx_si_display == "auto")
|
189 |
+
{
|
190 |
+
add_shortcode( 'DISPLAY_ACURAX_ICONS', 'acx_not_auto' ); // Defining Shortcode to show Select Manual
|
191 |
+
}
|
192 |
+
|
193 |
+
function acx_si_custom_admin_js()
|
194 |
+
{
|
195 |
+
wp_enqueue_script('jquery');
|
196 |
+
wp_enqueue_script('jquery-ui-core');
|
197 |
+
wp_enqueue_script('jquery-ui-sortable');
|
198 |
+
} add_action( 'admin_enqueue_scripts', 'acx_si_custom_admin_js' )
|
199 |
?>
|
images/themes/1/pinterest.png
ADDED
Binary file
|
images/themes/1/single.png
DELETED
Binary file
|
images/themes/10/pinterest.png
ADDED
Binary file
|
images/themes/10/single.png
DELETED
Binary file
|
images/themes/11/pinterest.png
ADDED
Binary file
|
images/themes/11/single.png
DELETED
Binary file
|
images/themes/12/pinterest.png
ADDED
Binary file
|
images/themes/12/single.png
DELETED
Binary file
|
images/themes/13/{gooleplus.png → googleplus.png}
RENAMED
File without changes
|
images/themes/13/pinterest.png
ADDED
Binary file
|
images/themes/13/single.png
DELETED
Binary file
|
images/themes/14/pinterest.png
ADDED
Binary file
|
images/themes/14/single.png
DELETED
Binary file
|
images/themes/15/pinterest.png
ADDED
Binary file
|
images/themes/15/single.png
DELETED
Binary file
|
images/themes/16/pinterest.png
ADDED
Binary file
|
images/themes/16/single.png
DELETED
Binary file
|
images/themes/17/pinterest.png
ADDED
Binary file
|
images/themes/17/single.png
DELETED
Binary file
|
images/themes/18/pinterest.png
ADDED
Binary file
|
images/themes/18/single.png
DELETED
Binary file
|
images/themes/19/pinterest.png
ADDED
Binary file
|
images/themes/19/single.png
DELETED
Binary file
|
images/themes/2/pinterest.png
ADDED
Binary file
|
images/themes/2/single.png
DELETED
Binary file
|
images/themes/20/pinterest.png
ADDED
Binary file
|
images/themes/20/single.png
DELETED
Binary file
|
images/themes/21/pinterest.png
ADDED
Binary file
|
images/themes/21/single.png
DELETED
Binary file
|
images/themes/22/pinterest.png
ADDED
Binary file
|
images/themes/22/single.png
DELETED
Binary file
|
images/themes/23/pinterest.png
ADDED
Binary file
|
images/themes/23/single.png
DELETED
Binary file
|
images/themes/24/pinterest.png
ADDED
Binary file
|
images/themes/24/single.png
DELETED
Binary file
|
images/themes/3/pinterest.png
ADDED
Binary file
|
images/themes/3/single.png
DELETED
Binary file
|
images/themes/4/pinterest.png
ADDED
Binary file
|
images/themes/4/single.png
DELETED
Binary file
|
images/themes/5/pinterest.png
ADDED
Binary file
|
images/themes/5/single.png
DELETED
Binary file
|
images/themes/6/pinterest.png
ADDED
Binary file
|
images/themes/6/single.png
DELETED
Binary file
|
images/themes/7/pinterest.png
ADDED
Binary file
|
images/themes/7/single.png
DELETED
Binary file
|
images/themes/8/pinterest.png
ADDED
Binary file
|
images/themes/8/single.png
DELETED
Binary file
|
images/themes/9/pinterest.png
ADDED
Binary file
|
images/themes/9/single.png
DELETED
Binary file
|
js.php
CHANGED
@@ -14,18 +14,21 @@ $acx_si_facebook = get_option('acx_si_facebook');
|
|
14 |
$acx_si_youtube = get_option('acx_si_youtube');
|
15 |
$acx_si_linkedin = get_option('acx_si_linkedin');
|
16 |
$acx_si_gplus = get_option('acx_si_gplus');
|
|
|
17 |
$count_check = 0;
|
18 |
$l1 = 0;
|
19 |
$l2 = 0;
|
20 |
$l3 = 0;
|
21 |
$l4 = 0;
|
22 |
$l5 = 0;
|
|
|
23 |
if ($acx_si_twitter != "") { $l1 = 1; }
|
24 |
if ($acx_si_facebook != "") { $l2 = 1; }
|
25 |
if ($acx_si_youtube != "") { $l3 = 1; }
|
26 |
if ($acx_si_linkedin != "") { $l4 = 1; }
|
27 |
if ($acx_si_gplus != "") { $l5 = 1; }
|
28 |
-
|
|
|
29 |
|
30 |
if ($acx_si_icon_size == $icon_size && $count_check == $count)
|
31 |
{
|
@@ -51,6 +54,7 @@ acx_si_check_loaded_count(2,16,-170,-35);
|
|
51 |
acx_si_check_loaded_count(3,16,-170,-35);
|
52 |
acx_si_check_loaded_count(4,16,-170,-35);
|
53 |
acx_si_check_loaded_count(5,16,-170,-35);
|
|
|
54 |
// *********************************
|
55 |
// Icon Size 25 Starts Here
|
56 |
// acx_si_check_loaded_count($count,$icon_size,$set_x_value,$set_y_value);
|
@@ -59,6 +63,7 @@ acx_si_check_loaded_count(2,25,-160,-50);
|
|
59 |
acx_si_check_loaded_count(3,25,-160,-50);
|
60 |
acx_si_check_loaded_count(4,25,-160,-50);
|
61 |
acx_si_check_loaded_count(5,25,-160,-50);
|
|
|
62 |
// *********************************
|
63 |
// Icon Size 32 Starts Here
|
64 |
// acx_si_check_loaded_count($count,$icon_size,$set_x_value,$set_y_value);
|
@@ -67,6 +72,7 @@ acx_si_check_loaded_count(2,32,-170,-55);
|
|
67 |
acx_si_check_loaded_count(3,32,-170,-55);
|
68 |
acx_si_check_loaded_count(4,32,-170,-55);
|
69 |
acx_si_check_loaded_count(5,32,-190,-60);
|
|
|
70 |
// *********************************
|
71 |
// Icon Size 40 Starts Here
|
72 |
// acx_si_check_loaded_count($count,$icon_size,$set_x_value,$set_y_value);
|
@@ -75,6 +81,7 @@ acx_si_check_loaded_count(2,40,-170,-65);
|
|
75 |
acx_si_check_loaded_count(3,40,-170,-65);
|
76 |
acx_si_check_loaded_count(4,40,-170,-105);
|
77 |
acx_si_check_loaded_count(5,40,-170,-105);
|
|
|
78 |
// *********************************
|
79 |
// Icon Size 48 Starts Here
|
80 |
// acx_si_check_loaded_count($count,$icon_size,$set_x_value,$set_y_value);
|
@@ -83,6 +90,7 @@ acx_si_check_loaded_count(2,48,-170,-75);
|
|
83 |
acx_si_check_loaded_count(3,48,-170,-75);
|
84 |
acx_si_check_loaded_count(4,48,-170,-120);
|
85 |
acx_si_check_loaded_count(5,48,-170,-120);
|
|
|
86 |
// *********************************
|
87 |
// Icon Size 55 Starts Here
|
88 |
// acx_si_check_loaded_count($count,$icon_size,$set_x_value,$set_y_value);
|
@@ -91,6 +99,7 @@ acx_si_check_loaded_count(2,55,-170,-80);
|
|
91 |
acx_si_check_loaded_count(3,55,-170,-135);
|
92 |
acx_si_check_loaded_count(4,55,-170,-135);
|
93 |
acx_si_check_loaded_count(5,55,-190,-135);
|
|
|
94 |
// *********************************
|
95 |
/**************************************************************************
|
96 |
CONDITIONS ENDING HERE
|
14 |
$acx_si_youtube = get_option('acx_si_youtube');
|
15 |
$acx_si_linkedin = get_option('acx_si_linkedin');
|
16 |
$acx_si_gplus = get_option('acx_si_gplus');
|
17 |
+
$acx_si_pinterest = get_option('acx_si_pinterest');
|
18 |
$count_check = 0;
|
19 |
$l1 = 0;
|
20 |
$l2 = 0;
|
21 |
$l3 = 0;
|
22 |
$l4 = 0;
|
23 |
$l5 = 0;
|
24 |
+
$l6 = 0;
|
25 |
if ($acx_si_twitter != "") { $l1 = 1; }
|
26 |
if ($acx_si_facebook != "") { $l2 = 1; }
|
27 |
if ($acx_si_youtube != "") { $l3 = 1; }
|
28 |
if ($acx_si_linkedin != "") { $l4 = 1; }
|
29 |
if ($acx_si_gplus != "") { $l5 = 1; }
|
30 |
+
if ($acx_si_pinterest != "") { $l6 = 1; }
|
31 |
+
$count_check = $l1 + $l2 + $l3 + $l4 + $l5 + $l6;
|
32 |
|
33 |
if ($acx_si_icon_size == $icon_size && $count_check == $count)
|
34 |
{
|
54 |
acx_si_check_loaded_count(3,16,-170,-35);
|
55 |
acx_si_check_loaded_count(4,16,-170,-35);
|
56 |
acx_si_check_loaded_count(5,16,-170,-35);
|
57 |
+
acx_si_check_loaded_count(6,16,-170,-35);
|
58 |
// *********************************
|
59 |
// Icon Size 25 Starts Here
|
60 |
// acx_si_check_loaded_count($count,$icon_size,$set_x_value,$set_y_value);
|
63 |
acx_si_check_loaded_count(3,25,-160,-50);
|
64 |
acx_si_check_loaded_count(4,25,-160,-50);
|
65 |
acx_si_check_loaded_count(5,25,-160,-50);
|
66 |
+
acx_si_check_loaded_count(6,25,-180,-50);
|
67 |
// *********************************
|
68 |
// Icon Size 32 Starts Here
|
69 |
// acx_si_check_loaded_count($count,$icon_size,$set_x_value,$set_y_value);
|
72 |
acx_si_check_loaded_count(3,32,-170,-55);
|
73 |
acx_si_check_loaded_count(4,32,-170,-55);
|
74 |
acx_si_check_loaded_count(5,32,-190,-60);
|
75 |
+
acx_si_check_loaded_count(6,32,-160,-80);
|
76 |
// *********************************
|
77 |
// Icon Size 40 Starts Here
|
78 |
// acx_si_check_loaded_count($count,$icon_size,$set_x_value,$set_y_value);
|
81 |
acx_si_check_loaded_count(3,40,-170,-65);
|
82 |
acx_si_check_loaded_count(4,40,-170,-105);
|
83 |
acx_si_check_loaded_count(5,40,-170,-105);
|
84 |
+
acx_si_check_loaded_count(6,40,-170,-105);
|
85 |
// *********************************
|
86 |
// Icon Size 48 Starts Here
|
87 |
// acx_si_check_loaded_count($count,$icon_size,$set_x_value,$set_y_value);
|
90 |
acx_si_check_loaded_count(3,48,-170,-75);
|
91 |
acx_si_check_loaded_count(4,48,-170,-120);
|
92 |
acx_si_check_loaded_count(5,48,-170,-120);
|
93 |
+
acx_si_check_loaded_count(6,48,-170,-120);
|
94 |
// *********************************
|
95 |
// Icon Size 55 Starts Here
|
96 |
// acx_si_check_loaded_count($count,$icon_size,$set_x_value,$set_y_value);
|
99 |
acx_si_check_loaded_count(3,55,-170,-135);
|
100 |
acx_si_check_loaded_count(4,55,-170,-135);
|
101 |
acx_si_check_loaded_count(5,55,-190,-135);
|
102 |
+
acx_si_check_loaded_count(6,55,-190,-135);
|
103 |
// *********************************
|
104 |
/**************************************************************************
|
105 |
CONDITIONS ENDING HERE
|
readme.txt
CHANGED
@@ -2,31 +2,35 @@
|
|
2 |
Contributors: Acurax
|
3 |
Donate link:http://www.acurax.com/
|
4 |
|
5 |
-
Tags: social media,social media icon,social profile link,social floating icon,floating social media button,social media url,social media button,facebook button,
|
6 |
Requires at least: 2.8
|
7 |
Tested up to: 3.3.1
|
8 |
-
Stable tag: 1.0.
|
9 |
|
10 |
-
An easy to use plugin to show socialmedia icons which floats,you can configure social icon design and size at plugin settings
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
-
Floating Social Media Icon is an easy to use plugin which allows you to configure essential social media profile links, like Twitter, Facebook, Youtube and Linkedin from plugin settings and you also have option to select an icon style from the icon packs available.We will be upgrading plugin frequently with new set of icons. The social media icons will load in an animated way where it will stay and float on your website or blog's right bottom.
|
15 |
|
16 |
* Added More Icon Designs
|
17 |
|
18 |
-
*
|
|
|
|
|
|
|
|
|
19 |
|
20 |
-
*
|
21 |
|
22 |
* Icon Size Selection Support
|
23 |
|
24 |
* Automatic Integration
|
25 |
|
26 |
-
* Shortcode Support
|
27 |
-
|
28 |
* Support Essential Social Medias Only
|
29 |
|
|
|
|
|
30 |
In Short we can say, this is an ultimate social icon widget that will float on your visitors screen.. check screenshots and video for a clear understanding..
|
31 |
|
32 |
We Always Look Forward Your Comments and Suggestions for Future Updates. You can Submit Your Comments at our [Website](http://www.acurax.com/ "Website Designing")
|
@@ -57,11 +61,11 @@ To hide an icon, Just dont give any value for that button link.. it will automat
|
|
57 |
|
58 |
= Why the floating social media icon is not displaying on my page even if i made all properly? =
|
59 |
|
60 |
-
Our Plugin Uses Hooks to integrate the suppported javascripts styles and html to the theme. So Make sure your theme footer.php have
|
61 |
|
62 |
-
= How can i integrate the
|
63 |
|
64 |
-
It can be easily done.. Just to go Theme Editor which is under apperance and select footer.php and add
|
65 |
|
66 |
= Can i disable the automated integration and place where ever i want? =
|
67 |
|
@@ -69,7 +73,7 @@ Yes, You can.. Just to go "Acx Social icons" Menu which is in left side on wp-ad
|
|
69 |
|
70 |
= What are theshortcode and php code that will display this social media icon? =
|
71 |
|
72 |
-
You can use the shortcode [DISPLAY_ACURAX_ICONS] in any post or page or even in your custom post types. You can also use
|
73 |
|
74 |
= How can i help the development of this plugin? =
|
75 |
|
@@ -83,6 +87,14 @@ Most of all the plugins have more and more options which is only easly understan
|
|
83 |
|
84 |
Sorry, Its not supported in this version, but we will be releasing a premium version which support a lot more easy options with in few weeks, we are on its development.
|
85 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
Have more questions ? [Drop a mail](http://www.acurax.com/contact.php/ "Drop an Email") and we shall get back to you with the answers.
|
87 |
|
88 |
== Screenshots ==
|
@@ -95,6 +107,12 @@ Have more questions ? [Drop a mail](http://www.acurax.com/contact.php/ "Drop an
|
|
95 |
|
96 |
== Upgrade Notice ==
|
97 |
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
= 1.0.8 =
|
99 |
* March 14, 2012
|
100 |
* Added More Icon Designs
|
@@ -127,6 +145,12 @@ Have more questions ? [Drop a mail](http://www.acurax.com/contact.php/ "Drop an
|
|
127 |
|
128 |
== Changelog ==
|
129 |
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
= 1.0.8 =
|
131 |
* March 14, 2012
|
132 |
* Added More Icon Designs
|
2 |
Contributors: Acurax
|
3 |
Donate link:http://www.acurax.com/
|
4 |
|
5 |
+
Tags: social media,social media icon,pinterest,social profile link,social floating icon,floating social media button,social media url,social media button,facebook button,floating pinterest,twitter icon,twitter button,youtube icon,youtube button,facebook profile url,twitter url,social icon,google plus,googleplus button,google plus button,pinterest button
|
6 |
Requires at least: 2.8
|
7 |
Tested up to: 3.3.1
|
8 |
+
Stable tag: 1.0.9
|
9 |
|
10 |
+
An easy to use plugin to show socialmedia icons which floats,you can configure social icon design,order and size at plugin settings.
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
+
Floating Social Media Icon is an easy to use plugin which allows you to configure essential social media profile links, like Twitter, Facebook, Pinterest, Youtube and Linkedin from plugin settings and you also have option to select an icon style from the icon packs available.We will be upgrading plugin frequently with new set of icons. The social media icons will load in an animated way where it will stay and float on your website or blog's right bottom.
|
15 |
|
16 |
* Added More Icon Designs
|
17 |
|
18 |
+
* One and Only Plugin With 20+ Icon Designs with Pinterest Support
|
19 |
+
|
20 |
+
* Drag and Drop Reorder Icons
|
21 |
+
|
22 |
+
* Shortcode Support - Use Shortcodes to Show on Widgets or in Posts
|
23 |
|
24 |
+
* Easy to configure user interface
|
25 |
|
26 |
* Icon Size Selection Support
|
27 |
|
28 |
* Automatic Integration
|
29 |
|
|
|
|
|
30 |
* Support Essential Social Medias Only
|
31 |
|
32 |
+
* Added Pinterest Profile Support
|
33 |
+
|
34 |
In Short we can say, this is an ultimate social icon widget that will float on your visitors screen.. check screenshots and video for a clear understanding..
|
35 |
|
36 |
We Always Look Forward Your Comments and Suggestions for Future Updates. You can Submit Your Comments at our [Website](http://www.acurax.com/ "Website Designing")
|
61 |
|
62 |
= Why the floating social media icon is not displaying on my page even if i made all properly? =
|
63 |
|
64 |
+
Our Plugin Uses Hooks to integrate the suppported javascripts styles and html to the theme. So Make sure your theme footer.php have <?php wp_footer(); ?> and header.php have <?php wp_head(); ?> , Most of all the plugins work with the support of this code and if this is not present on your theme.. Its your themes mistake..
|
65 |
|
66 |
+
= How can i integrate the <?php wp_footer(); ?> and <?php wp_head(); ?> to my theme if it is not present on my theme? =
|
67 |
|
68 |
+
It can be easily done.. Just to go Theme Editor which is under apperance and select footer.php and add <?php wp_footer(); ?> before the closing body tag which is </body> and then go and edit header.php and add <?php wp_head(); ?> just before the closing head tag which is </head>
|
69 |
|
70 |
= Can i disable the automated integration and place where ever i want? =
|
71 |
|
73 |
|
74 |
= What are theshortcode and php code that will display this social media icon? =
|
75 |
|
76 |
+
You can use the shortcode [DISPLAY_ACURAX_ICONS] in any post or page or even in your custom post types. You can also use <?php DISPLAY_ACURAX_ICONS(); ?> anywhere in the theme files to show this icons.(But note that manual icons display will not have the animation
|
77 |
|
78 |
= How can i help the development of this plugin? =
|
79 |
|
87 |
|
88 |
Sorry, Its not supported in this version, but we will be releasing a premium version which support a lot more easy options with in few weeks, we are on its development.
|
89 |
|
90 |
+
= After Upgrading Plugin, Icons are not showing. why? =
|
91 |
+
|
92 |
+
You need to visit the plugin settings page once after upgrading to complete the upgrade process.Only after that it will show the icons.
|
93 |
+
|
94 |
+
= Will upgrade change any of my settings or configuration? =
|
95 |
+
|
96 |
+
No, It will not.. :)
|
97 |
+
|
98 |
Have more questions ? [Drop a mail](http://www.acurax.com/contact.php/ "Drop an Email") and we shall get back to you with the answers.
|
99 |
|
100 |
== Screenshots ==
|
107 |
|
108 |
== Upgrade Notice ==
|
109 |
|
110 |
+
= 1.0.9 =
|
111 |
+
* March 21, 2012
|
112 |
+
* Added Pinterest
|
113 |
+
* Added drag and drop reorder option
|
114 |
+
* AFTER UPDATE YOU NEED TO VISIT THE PLUGIN SETTINGS PAGE TO START SHOWING THE ICONS (Upgrade Will Not Alter Your Settings).
|
115 |
+
|
116 |
= 1.0.8 =
|
117 |
* March 14, 2012
|
118 |
* Added More Icon Designs
|
145 |
|
146 |
== Changelog ==
|
147 |
|
148 |
+
= 1.0.9 =
|
149 |
+
* March 21, 2012
|
150 |
+
* Added Pinterest
|
151 |
+
* Added drag and drop reorder option
|
152 |
+
* AFTER UPDATE YOU NEED TO VISIT THE PLUGIN SETTINGS PAGE TO START SHOWING THE ICONS (Upgrade Will Not Alter Your Settings).
|
153 |
+
|
154 |
= 1.0.8 =
|
155 |
* March 14, 2012
|
156 |
* Added More Icon Designs
|
save_order.php
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
require( dirname( __FILE__ ) . '../../../../wp-config.php' );
|
3 |
+
$action = mysql_real_escape_string($_POST['action']);
|
4 |
+
$social_icon_array_order = $_POST['recordsArray'];
|
5 |
+
|
6 |
+
if ($action == "updateRecordsListings")
|
7 |
+
{
|
8 |
+
$social_icon_array_order = serialize($social_icon_array_order);
|
9 |
+
update_option('social_icon_array_order', $social_icon_array_order);
|
10 |
+
echo "<div id='acurax_notice' align='center' style='width: 420px; font-family: arial; font-weight: normal; font-size: 22px;'>";
|
11 |
+
echo "Social Media Icon's Order Saved";
|
12 |
+
echo "</div><br>";
|
13 |
+
}
|
14 |
+
|
15 |
+
?>
|
screenshot-1.png
CHANGED
Binary file
|
screenshot-3.png
CHANGED
Binary file
|
screenshot-4.png
CHANGED
Binary file
|
social-help.php
CHANGED
@@ -40,6 +40,12 @@ $code_6 = ' [DISPLAY_ACURAX_ICONS]';
|
|
40 |
<p class="q">Can i add my own icons for the social media profiles?</p>
|
41 |
<p class="a">Sorry, Its not supported in this version, but we will be releasing a premium version which support a lot more easy options with in few weeks, we are on its development.</p>
|
42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
<p class="a">Have more questions ? <a href="http://www.acurax.com/contact.php" target="_blank">Drop a mail</a> and we shall get back to you with the answers.</p>
|
44 |
|
45 |
</div> <!-- acx_help_page -->
|
40 |
<p class="q">Can i add my own icons for the social media profiles?</p>
|
41 |
<p class="a">Sorry, Its not supported in this version, but we will be releasing a premium version which support a lot more easy options with in few weeks, we are on its development.</p>
|
42 |
|
43 |
+
<p class="q">After Upgrading Plugin, Icons are not showing. why?</p>
|
44 |
+
<p class="a">You need to visit the plugin settings page once after upgrading to complete the upgrade process.Only after that it will show the icon.</p>
|
45 |
+
|
46 |
+
<p class="q">Will upgrade change any of my settings or configuration?</p>
|
47 |
+
<p class="a">No, It will not.. :)</p>
|
48 |
+
|
49 |
<p class="a">Have more questions ? <a href="http://www.acurax.com/contact.php" target="_blank">Drop a mail</a> and we shall get back to you with the answers.</p>
|
50 |
|
51 |
</div> <!-- acx_help_page -->
|
social-icon.php
CHANGED
@@ -3,182 +3,345 @@
|
|
3 |
$total_themes = 24; // DEFINE NUMBER OF THEMES HERE
|
4 |
$total_themes = ($total_themes+1); // DO NOT EDIT THIS
|
5 |
/**********************************************/
|
6 |
-
|
7 |
-
|
8 |
-
$acx_si_theme = $_POST['acx_si_theme'];
|
9 |
-
update_option('acx_si_theme', $acx_si_theme);
|
10 |
|
11 |
-
$acx_si_twitter = $_POST['acx_si_twitter'];
|
12 |
-
update_option('acx_si_twitter', $acx_si_twitter);
|
13 |
|
14 |
-
$acx_si_facebook = $_POST['acx_si_facebook'];
|
15 |
-
update_option('acx_si_facebook', $acx_si_facebook);
|
16 |
|
17 |
-
$acx_si_youtube = $_POST['acx_si_youtube'];
|
18 |
-
update_option('acx_si_youtube', $acx_si_youtube);
|
19 |
|
20 |
-
$acx_si_linkedin = $_POST['acx_si_linkedin'];
|
21 |
-
update_option('acx_si_linkedin', $acx_si_linkedin);
|
22 |
|
23 |
-
$acx_si_gplus = $_POST['acx_si_gplus'];
|
24 |
-
update_option('acx_si_gplus', $acx_si_gplus);
|
25 |
|
26 |
-
$acx_si_credit = $_POST['acx_si_credit'];
|
27 |
-
update_option('acx_si_credit', $acx_si_credit);
|
28 |
|
29 |
-
$acx_si_icon_size = $_POST['acx_si_icon_size'];
|
30 |
-
update_option('acx_si_icon_size', $acx_si_icon_size);
|
31 |
|
32 |
-
$acx_si_display = $_POST['acx_si_display'];
|
33 |
-
update_option('acx_si_display', $acx_si_display);
|
34 |
|
35 |
-
|
|
|
|
|
|
|
36 |
|
|
|
37 |
<div class="updated"><p><strong><?php _e('Acurax Settings Saved!.' ); ?></strong></p></div>
|
38 |
<?php
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
|
57 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
<div class="wrap">
|
59 |
-
<p
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
</p>
|
61 |
<?php echo "<h2>" . __( 'Acurax Social Icons Options', 'acx_si_config' ) . "</h2>"; ?>
|
62 |
|
63 |
<form name="acurax_si_form" method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>">
|
64 |
-
<input type="hidden" name="acurax_social_icon_hidden" value="Y">
|
65 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
|
|
|
|
|
|
|
|
|
67 |
|
|
|
68 |
|
|
|
|
|
|
|
|
|
|
|
69 |
|
|
|
|
|
|
|
|
|
70 |
|
71 |
-
<?php if($acx_si_credit != "yes") { ?>
|
72 |
-
<div id='acurax_notice' align='center'><p><strong style='color:darkred;'>You Have Selected Show Credit Link as <b>NO</b>. We Appreciate You Link Back to Our Website,Select Yes to Enable Credit Link.</strong></p>
|
73 |
-
<select name="acx_si_credit" onChange="this.form.submit();" style="font-size:18px;">
|
74 |
-
<option value="yes"<?php if ($acx_si_credit == "yes") { echo 'selected="selected"'; } ?>>Yes, Show Credit Link </option>
|
75 |
-
<option value="no"<?php if ($acx_si_credit == "no") { echo 'selected="selected"'; } ?>>No, Hide Credit Link</option>
|
76 |
-
</select>
|
77 |
-
<p><strong style='color:darkred;'>Its just a small font size link at the very bottom of your website/blog :) We helping you by providing this plugin for free.. so help us back..</strong></p></div>
|
78 |
-
<?php } ?>
|
79 |
|
80 |
|
|
|
|
|
|
|
|
|
81 |
|
82 |
|
83 |
|
|
|
|
|
|
|
|
|
84 |
|
85 |
|
|
|
|
|
|
|
|
|
|
|
86 |
|
87 |
|
88 |
-
<?php echo "<h4>" . __( 'Select an icon style', 'acx_si_config' ) . "</h4>"; ?>
|
89 |
-
|
90 |
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
<?php
|
96 |
-
echo "</p>";
|
97 |
-
|
98 |
-
// Starting The Theme List
|
99 |
-
echo "<div id='acx_si_theme_display'>";
|
100 |
-
for ($i=1; $i < $total_themes; $i++)
|
101 |
-
{ ?>
|
102 |
-
<label class="acx_si_single_theme_display <?php if ($acx_si_theme == $i) { echo "selected"; } ?>" id="icon_selection">
|
103 |
-
<div class="acx_si_single_label">Theme <?php echo $i; ?><br><input type="radio" name="acx_si_theme" value="<?php echo $i; ?>"<?php if ($acx_si_theme == $i) { echo " checked"; } ?>></div>
|
104 |
-
<div class="image_div"><img src="<?php echo plugins_url('images/themes/'.$i.'/single.png', __FILE__);?>"></div>
|
105 |
-
</label>
|
106 |
-
<?php
|
107 |
-
}
|
108 |
-
echo "</div> <!-- acx_si_theme_display -->";
|
109 |
-
// Ending The Theme List
|
110 |
-
?>
|
111 |
-
<p><?php _e("Social Icon Size: " ); ?>
|
112 |
-
<select name="acx_si_icon_size">
|
113 |
-
<option value="16"<?php if ($acx_si_icon_size == "16") { echo 'selected="selected"'; } ?>>16px X 16px </option>
|
114 |
-
<option value="25"<?php if ($acx_si_icon_size == "25") { echo 'selected="selected"'; } ?>>25px X 25px </option>
|
115 |
-
<option value="32"<?php if ($acx_si_icon_size == "32") { echo 'selected="selected"'; } ?>>32px X 32px </option>
|
116 |
-
<option value="40"<?php if ($acx_si_icon_size == "40") { echo 'selected="selected"'; } ?>>40px X 40px </option>
|
117 |
-
<option value="48"<?php if ($acx_si_icon_size == "48") { echo 'selected="selected"'; } ?>>48px X 48px </option>
|
118 |
-
<option value="55"<?php if ($acx_si_icon_size == "55") { echo 'selected="selected"'; } ?>>55px X 55px </option>
|
119 |
-
</select>
|
120 |
-
<?php _e("Select a social icon size" ); ?></p>
|
121 |
|
122 |
|
123 |
|
|
|
|
|
|
|
|
|
124 |
|
|
|
|
|
|
|
125 |
|
|
|
|
|
|
|
|
|
|
|
126 |
|
127 |
-
<hr />
|
128 |
-
<?php echo "<h4>" . __( 'Social Media Settings', 'acx_si_config' ) . "</h4>"; ?>
|
129 |
-
<p>
|
130 |
-
<?php _e("Twitter Username: " ); ?><input type="text" name="acx_si_twitter" value="<?php echo $acx_si_twitter; ?>" size="50">
|
131 |
-
<?php _e("<b>Eg:</b> acuraxdotcom" ); ?>
|
132 |
-
</p>
|
133 |
-
<p>
|
134 |
-
<?php _e("Facebook Page/Profile URL: " ); ?><input type="text" name="acx_si_facebook" value="<?php echo $acx_si_facebook; ?>" size="50">
|
135 |
-
<?php _e("<b>Eg:</b> http://www.facebook.com/AcuraxInternational" ); ?>
|
136 |
-
</p>
|
137 |
-
<p>
|
138 |
-
<?php _e("Google Plus URL: " ); ?><input type="text" name="acx_si_gplus" value="<?php echo $acx_si_gplus; ?>" size="50">
|
139 |
-
<?php _e("Enter Your Complete Google Plus Url Starting With http://" ); ?>
|
140 |
-
</p>
|
141 |
-
<p>
|
142 |
-
<?php _e("Youtube URL: " ); ?><input type="text" name="acx_si_youtube" value="<?php echo $acx_si_youtube; ?>" size="50">
|
143 |
-
<?php _e("<b>Eg:</b> http://www.youtube.com/user/acuraxdotcom" ); ?>
|
144 |
-
</p>
|
145 |
-
<p>
|
146 |
-
<?php _e("Linkedin URL: " ); ?><input type="text" name="acx_si_linkedin" value="<?php echo $acx_si_linkedin; ?>" size="50">
|
147 |
-
<?php _e("<b>Eg:</b> http://www.linkedin.com/company/acurax-international" ); ?>
|
148 |
-
</p>
|
149 |
<hr />
|
150 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
|
|
|
|
|
|
|
|
|
|
|
152 |
|
153 |
-
<p
|
154 |
-
|
155 |
-
<
|
156 |
-
|
157 |
-
</
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
?>
|
|
|
|
|
162 |
|
163 |
-
|
|
|
|
|
|
|
|
|
164 |
|
|
|
|
|
|
|
|
|
|
|
165 |
|
|
|
166 |
|
167 |
-
<?php if($acx_si_credit == "yes") { ?>
|
168 |
-
<p><?php _e("Show Credit Link: " ); ?>
|
169 |
-
<select name="acx_si_credit">
|
170 |
-
<option value="yes"<?php if ($acx_si_credit == "yes") { echo 'selected="selected"'; } ?>>Yes, Its Okay to Show Credit Link </option>
|
171 |
-
<option value="no"<?php if ($acx_si_credit == "no") { echo 'selected="selected"'; } ?>>No, I dont Like to Show Credit Link</option>
|
172 |
-
</select>
|
173 |
-
<?php _e("We Appreciate You Link Back to Our Website, Its just a small font size link :)" ); ?></p>
|
174 |
-
<?php } ?>
|
175 |
|
|
|
176 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
|
178 |
<p class="submit">
|
179 |
-
|
180 |
</p>
|
|
|
181 |
</form>
|
|
|
182 |
<hr/>
|
183 |
-
<p>
|
|
|
|
|
184 |
</div>
|
3 |
$total_themes = 24; // DEFINE NUMBER OF THEMES HERE
|
4 |
$total_themes = ($total_themes+1); // DO NOT EDIT THIS
|
5 |
/**********************************************/
|
6 |
+
if($_POST['acurax_social_icon_hidden'] == 'Y')
|
7 |
+
{ //Form data sent
|
8 |
+
$acx_si_theme = $_POST['acx_si_theme'];
|
9 |
+
update_option('acx_si_theme', $acx_si_theme);
|
10 |
|
11 |
+
$acx_si_twitter = $_POST['acx_si_twitter'];
|
12 |
+
update_option('acx_si_twitter', $acx_si_twitter);
|
13 |
|
14 |
+
$acx_si_facebook = $_POST['acx_si_facebook'];
|
15 |
+
update_option('acx_si_facebook', $acx_si_facebook);
|
16 |
|
17 |
+
$acx_si_youtube = $_POST['acx_si_youtube'];
|
18 |
+
update_option('acx_si_youtube', $acx_si_youtube);
|
19 |
|
20 |
+
$acx_si_linkedin = $_POST['acx_si_linkedin'];
|
21 |
+
update_option('acx_si_linkedin', $acx_si_linkedin);
|
22 |
|
23 |
+
$acx_si_gplus = $_POST['acx_si_gplus'];
|
24 |
+
update_option('acx_si_gplus', $acx_si_gplus);
|
25 |
|
26 |
+
$acx_si_credit = $_POST['acx_si_credit'];
|
27 |
+
update_option('acx_si_credit', $acx_si_credit);
|
28 |
|
29 |
+
$acx_si_icon_size = $_POST['acx_si_icon_size'];
|
30 |
+
update_option('acx_si_icon_size', $acx_si_icon_size);
|
31 |
|
32 |
+
$acx_si_display = $_POST['acx_si_display'];
|
33 |
+
update_option('acx_si_display', $acx_si_display);
|
34 |
|
35 |
+
$acx_si_pinterest = $_POST['acx_si_pinterest'];
|
36 |
+
update_option('acx_si_pinterest', $acx_si_pinterest);
|
37 |
+
|
38 |
+
$social_icon_array_order = get_option('social_icon_array_order');
|
39 |
|
40 |
+
?>
|
41 |
<div class="updated"><p><strong><?php _e('Acurax Settings Saved!.' ); ?></strong></p></div>
|
42 |
<?php
|
43 |
+
}
|
44 |
+
else
|
45 |
+
{ //Normal page display
|
46 |
+
|
47 |
+
$acx_si_theme = get_option('acx_si_theme');
|
48 |
+
$acx_si_twitter = get_option('acx_si_twitter');
|
49 |
+
$acx_si_facebook = get_option('acx_si_facebook');
|
50 |
+
$acx_si_youtube = get_option('acx_si_youtube');
|
51 |
+
$acx_si_linkedin = get_option('acx_si_linkedin');
|
52 |
+
$acx_si_pinterest = get_option('acx_si_pinterest');
|
53 |
+
$acx_si_gplus = get_option('acx_si_gplus');
|
54 |
+
$acx_si_credit = get_option('acx_si_credit');
|
55 |
+
$acx_si_icon_size = get_option('acx_si_icon_size');
|
56 |
+
$acx_si_display = get_option('acx_si_display');
|
57 |
+
$social_icon_array_order = get_option('social_icon_array_order');
|
58 |
+
// Setting Defaults
|
59 |
+
if ($acx_si_credit == "") { $acx_si_credit = "no"; }
|
60 |
+
if ($acx_si_icon_size == "") { $acx_si_icon_size = "32"; }
|
61 |
+
if ($acx_si_display == "") { $acx_si_display = "auto"; }
|
62 |
+
if ($acx_si_theme == "") { $acx_si_theme = "1"; }
|
63 |
+
|
64 |
+
|
65 |
+
if ($social_icon_array_order == "")
|
66 |
+
{
|
67 |
+
$social_icon_array_order = array(0,1,2,3,4,5);
|
68 |
+
$social_icon_array_order = serialize($social_icon_array_order);
|
69 |
+
update_option('social_icon_array_order', $social_icon_array_order);
|
70 |
+
} else
|
71 |
+
{
|
72 |
+
// Counting and Adding New Keys (UPGRADE PURPOSE)
|
73 |
+
$total_arrays = 6; // Number Of Services
|
74 |
+
$social_icon_array_order = get_option('social_icon_array_order');
|
75 |
+
$social_icon_array_order = unserialize($social_icon_array_order);
|
76 |
+
$social_icon_array_count = count($social_icon_array_order);
|
77 |
+
if ($social_icon_array_count < $total_arrays)
|
78 |
+
{
|
79 |
+
for( $i = $social_icon_array_count; $i < $total_arrays; $i++ )
|
80 |
+
{
|
81 |
+
array_push($social_icon_array_order,$i);
|
82 |
+
} // for
|
83 |
+
} // Condition ($social_icon_array_count != $total_arrays)
|
84 |
+
|
85 |
+
$social_icon_array_order = serialize($social_icon_array_order);
|
86 |
+
update_option('social_icon_array_order', $social_icon_array_order);
|
87 |
+
|
88 |
+
// Counting and Adding New Keys Ends Here
|
89 |
+
} //Normal page display else
|
90 |
+
} //Main else
|
91 |
|
92 |
?>
|
93 |
+
|
94 |
+
<!-- To Update Drag and Drop -->
|
95 |
+
<script type="text/javascript">
|
96 |
+
jQuery(document).ready(function()
|
97 |
+
{
|
98 |
+
jQuery(function()
|
99 |
+
{
|
100 |
+
jQuery("#contentLeft ul").sortable(
|
101 |
+
{
|
102 |
+
opacity: 0.5, cursor: 'move', update: function()
|
103 |
+
{
|
104 |
+
var order = jQuery(this).sortable("serialize") + '&action=updateRecordsListings';
|
105 |
+
jQuery.post("<?php echo plugins_url( 'save_order.php' , (__FILE__) ); ?>", order, function(theResponse)
|
106 |
+
{
|
107 |
+
jQuery("#contentRight").html(theResponse);
|
108 |
+
});
|
109 |
+
}
|
110 |
+
});
|
111 |
+
});
|
112 |
+
});
|
113 |
+
</script>
|
114 |
+
|
115 |
+
|
116 |
<div class="wrap">
|
117 |
+
<p>
|
118 |
+
<b>Acurax Services >> </b>
|
119 |
+
<a href="http://www.acurax.com/services/blog-design.php" target="_blank">Wordpress Theme Design</a> |
|
120 |
+
<a href="http://www.acurax.com/services/web-designing.php" target="_blank">Website Design</a> |
|
121 |
+
<a href="http://www.acurax.com/social-media-marketing-optimization/social-profile-design.php" target="_blank">Social Profile Design</a> |
|
122 |
+
<a href="http://www.acurax.com/social-media-marketing-optimization/twitter-background-design.php" target="_blank">Twitter Background Design</a> |
|
123 |
+
<a href="http://www.acurax.com/social-media-marketing-optimization/facebook-page-design.php" target="_blank">Facebook Page Design</a>
|
124 |
</p>
|
125 |
<?php echo "<h2>" . __( 'Acurax Social Icons Options', 'acx_si_config' ) . "</h2>"; ?>
|
126 |
|
127 |
<form name="acurax_si_form" method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>">
|
128 |
+
<input type="hidden" name="acurax_social_icon_hidden" value="Y">
|
129 |
+
<?php
|
130 |
+
if($acx_si_credit != "yes")
|
131 |
+
{ ?>
|
132 |
+
<div id='acurax_notice' align='center'>
|
133 |
+
<p>
|
134 |
+
<strong style='color:darkred;'>
|
135 |
+
You Have Selected Show Credit Link as <b>NO</b>. We Appreciate You Link Back to Our Website,Select Yes to Enable Credit Link.
|
136 |
+
</strong>
|
137 |
+
</p>
|
138 |
+
|
139 |
+
<select name="acx_si_credit" onChange="this.form.submit();" style="font-size:18px;">
|
140 |
+
<option value="yes"<?php if ($acx_si_credit == "yes") { echo 'selected="selected"'; } ?>>Yes, Show Credit Link </option>
|
141 |
+
<option value="no"<?php if ($acx_si_credit == "no") { echo 'selected="selected"'; } ?>>No, Hide Credit Link</option>
|
142 |
+
</select>
|
143 |
+
|
144 |
+
<p>
|
145 |
+
<strong style='color:darkred;'>Its just a small font size link at the very bottom of your website/blog :) We helping you by providing this plugin for free.. so help us back..
|
146 |
+
</strong>
|
147 |
+
</p>
|
148 |
+
</div>
|
149 |
+
<?php
|
150 |
+
} ?>
|
151 |
+
|
152 |
+
|
153 |
+
<?php echo "<h4>" . __( 'Select an icon style', 'acx_si_config' ) . "</h4>"; ?>
|
154 |
+
|
155 |
+
<p>
|
156 |
+
<?php echo "Your Current Theme is <b>Theme" . $acx_si_theme."</b>"; ?>
|
157 |
+
<div class="image_div">
|
158 |
+
<img src="<?php echo plugins_url('images/themes/'.$acx_si_theme.'/twitter.png', __FILE__);?>" style="height:<?php echo $acx_si_icon_size;?>px;">
|
159 |
+
<img src="<?php echo plugins_url('images/themes/'.$acx_si_theme.'/facebook.png', __FILE__);?>" style="height:<?php echo $acx_si_icon_size;?>px;">
|
160 |
+
<img src="<?php echo plugins_url('images/themes/'.$acx_si_theme.'/googleplus.png', __FILE__);?>" style="height:<?php echo $acx_si_icon_size;?>px;">
|
161 |
+
<img src="<?php echo plugins_url('images/themes/'.$acx_si_theme.'/pinterest.png', __FILE__);?>" style="height:<?php echo $acx_si_icon_size;?>px;">
|
162 |
+
<img src="<?php echo plugins_url('images/themes/'.$acx_si_theme.'/youtube.png', __FILE__);?>" style="height:<?php echo $acx_si_icon_size;?>px;">
|
163 |
+
<img src="<?php echo plugins_url('images/themes/'.$acx_si_theme.'/linkedin.png', __FILE__);?>" style="height:<?php echo $acx_si_icon_size;?>px;">
|
164 |
+
</div>
|
165 |
+
</p>
|
166 |
+
<?php
|
167 |
+
// Starting The Theme List
|
168 |
+
echo "<div id='acx_si_theme_display'>";
|
169 |
+
for ($i=1; $i < $total_themes; $i++)
|
170 |
+
{ ?>
|
171 |
+
<label class="acx_si_single_theme_display <?php if ($acx_si_theme == $i) { echo "selected"; } ?>" id="icon_selection">
|
172 |
+
<div class="acx_si_single_label">Theme <?php echo $i; ?><br><input type="radio" name="acx_si_theme" value="<?php echo $i; ?>"<?php if ($acx_si_theme == $i) { echo " checked"; } ?>></div>
|
173 |
+
<div class="image_div">
|
174 |
+
<img src="<?php echo plugins_url('images/themes/'.$i.'/twitter.png', __FILE__);?>">
|
175 |
+
<img src="<?php echo plugins_url('images/themes/'.$i.'/facebook.png', __FILE__);?>">
|
176 |
+
<img src="<?php echo plugins_url('images/themes/'.$i.'/googleplus.png', __FILE__);?>">
|
177 |
+
<img src="<?php echo plugins_url('images/themes/'.$i.'/pinterest.png', __FILE__);?>">
|
178 |
+
<img src="<?php echo plugins_url('images/themes/'.$i.'/youtube.png', __FILE__);?>">
|
179 |
+
<img src="<?php echo plugins_url('images/themes/'.$i.'/linkedin.png', __FILE__);?>">
|
180 |
+
</div>
|
181 |
+
</label>
|
182 |
+
<?php
|
183 |
+
}
|
184 |
+
echo "</div> <!-- acx_si_theme_display -->";
|
185 |
+
// Ending The Theme List
|
186 |
+
?>
|
187 |
+
|
188 |
+
<p> <?php _e("Social Icon Size: " ); ?>
|
189 |
+
<select name="acx_si_icon_size">
|
190 |
+
<option value="16"<?php if ($acx_si_icon_size == "16") { echo 'selected="selected"'; } ?>>16px X 16px </option>
|
191 |
+
<option value="25"<?php if ($acx_si_icon_size == "25") { echo 'selected="selected"'; } ?>>25px X 25px </option>
|
192 |
+
<option value="32"<?php if ($acx_si_icon_size == "32") { echo 'selected="selected"'; } ?>>32px X 32px </option>
|
193 |
+
<option value="40"<?php if ($acx_si_icon_size == "40") { echo 'selected="selected"'; } ?>>40px X 40px </option>
|
194 |
+
<option value="48"<?php if ($acx_si_icon_size == "48") { echo 'selected="selected"'; } ?>>48px X 48px </option>
|
195 |
+
<option value="55"<?php if ($acx_si_icon_size == "55") { echo 'selected="selected"'; } ?>>55px X 55px </option>
|
196 |
+
</select>
|
197 |
+
<?php _e("Select a social icon size" ); ?>
|
198 |
+
</p>
|
199 |
|
200 |
+
<p> <?php echo "<h4>" . __( 'Social Media Icon Display Order - Drag and Drop to Reorder', 'acx_si_config' ) . "</h4>"; ?>
|
201 |
+
<div id="contentLeft">
|
202 |
+
<ul>
|
203 |
+
<?php
|
204 |
|
205 |
+
$social_icon_array_order = unserialize($social_icon_array_order);
|
206 |
|
207 |
+
foreach ($social_icon_array_order as $key => $value)
|
208 |
+
{
|
209 |
+
?>
|
210 |
+
<li id="recordsArray_<?php echo $value; ?>">
|
211 |
+
<?php
|
212 |
|
213 |
+
if ($value == 0)
|
214 |
+
{
|
215 |
+
echo "<img src=" . plugins_url('images/themes/'. $acx_si_theme .'/twitter.png', __FILE__) . " border='0'><br> Twitter";
|
216 |
+
} else
|
217 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
218 |
|
219 |
|
220 |
+
if ($value == 1)
|
221 |
+
{
|
222 |
+
echo "<img src=" . plugins_url('images/themes/'. $acx_si_theme .'/facebook.png', __FILE__) . " border='0'><br> Facebook";
|
223 |
+
} else
|
224 |
|
225 |
|
226 |
|
227 |
+
if ($value == 2)
|
228 |
+
{
|
229 |
+
echo "<img src=" . plugins_url('images/themes/'. $acx_si_theme .'/googleplus.png', __FILE__) . " border='0'><br> Google Plus";
|
230 |
+
} else
|
231 |
|
232 |
|
233 |
+
|
234 |
+
if ($value == 3)
|
235 |
+
{
|
236 |
+
echo "<img src=" . plugins_url('images/themes/'. $acx_si_theme .'/pinterest.png', __FILE__) . " border='0'><br> Pinterest";
|
237 |
+
} else
|
238 |
|
239 |
|
|
|
|
|
240 |
|
241 |
+
if ($value == 4)
|
242 |
+
{
|
243 |
+
echo "<img src=" . plugins_url('images/themes/'. $acx_si_theme .'/youtube.png', __FILE__) . " border='0'><br> Youtube";
|
244 |
+
} else
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
245 |
|
246 |
|
247 |
|
248 |
+
if ($value == 5)
|
249 |
+
{
|
250 |
+
echo "<img src=" . plugins_url('images/themes/'. $acx_si_theme .'/linkedin.png', __FILE__) . " border='0'><br> Linkedin";
|
251 |
+
}
|
252 |
|
253 |
+
?>
|
254 |
+
</li> <?php
|
255 |
+
} ?>
|
256 |
|
257 |
+
</ul>
|
258 |
+
</div>
|
259 |
+
<div id="contentRight"></div> <!-- contentRight -->
|
260 |
+
<?php _e("Drag and Reorder Icons (It will automatically save on reorder)" ); ?>
|
261 |
+
</p>
|
262 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
263 |
<hr />
|
264 |
+
|
265 |
+
<?php echo "<h4>" . __( 'Social Media Settings', 'acx_si_config' ) . "</h4>"; ?>
|
266 |
+
|
267 |
+
<p>
|
268 |
+
<?php _e("Twitter Username: " ); ?>
|
269 |
+
<input type="text" name="acx_si_twitter" value="<?php echo $acx_si_twitter; ?>" size="50">
|
270 |
+
<?php _e("<b>Eg:</b> acuraxdotcom" ); ?>
|
271 |
+
</p>
|
272 |
|
273 |
+
<p>
|
274 |
+
<?php _e("Facebook Page/Profile URL: " ); ?>
|
275 |
+
<input type="text" name="acx_si_facebook" value="<?php echo $acx_si_facebook; ?>" size="50">
|
276 |
+
<?php _e("<b>Eg:</b> http://www.facebook.com/AcuraxInternational" ); ?>
|
277 |
+
</p>
|
278 |
|
279 |
+
<p>
|
280 |
+
<?php _e("Google Plus URL: " ); ?>
|
281 |
+
<input type="text" name="acx_si_gplus" value="<?php echo $acx_si_gplus; ?>" size="50">
|
282 |
+
<?php _e("Enter Your Complete Google Plus Url Starting With http://" ); ?>
|
283 |
+
</p>
|
284 |
+
|
285 |
+
<p>
|
286 |
+
<?php _e("Pinterest URL: " ); ?>
|
287 |
+
<input type="text" name="acx_si_pinterest" value="<?php echo $acx_si_pinterest; ?>" size="50">
|
288 |
+
<?php _e("Enter Your Complete Pinterest Url Starting With http://" ); ?>
|
289 |
+
</p>
|
290 |
|
291 |
+
<p>
|
292 |
+
<?php _e("Youtube URL: " ); ?>
|
293 |
+
<input type="text" name="acx_si_youtube" value="<?php echo $acx_si_youtube; ?>" size="50">
|
294 |
+
<?php _e("<b>Eg:</b> http://www.youtube.com/user/acuraxdotcom" ); ?>
|
295 |
+
</p>
|
296 |
|
297 |
+
<p>
|
298 |
+
<?php _e("Linkedin URL: " ); ?>
|
299 |
+
<input type="text" name="acx_si_linkedin" value="<?php echo $acx_si_linkedin; ?>" size="50">
|
300 |
+
<?php _e("<b>Eg:</b> http://www.linkedin.com/company/acurax-international" ); ?>
|
301 |
+
</p>
|
302 |
|
303 |
+
<hr />
|
304 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
305 |
|
306 |
+
<?php echo "<h4>" . __( 'Other Settings', 'acx_si_config' ) . "</h4>"; ?>
|
307 |
|
308 |
+
<p>
|
309 |
+
<?php _e("Display Mode: " ); ?>
|
310 |
+
|
311 |
+
<select name="acx_si_display">
|
312 |
+
<option value="auto"<?php if ($acx_si_display == "auto") { echo 'selected="selected"'; } ?>>Automatic (With Animation)</option>
|
313 |
+
<option value="manual"<?php if ($acx_si_display == "manual") { echo 'selected="selected"'; } ?>>Manual (No Animation)</option>
|
314 |
+
</select>
|
315 |
+
|
316 |
+
<?php
|
317 |
+
$code = ' <?php DISPLAY_ACURAX_ICONS(); ?>';
|
318 |
+
$code_2 = ' [DISPLAY_ACURAX_ICONS]';
|
319 |
+
?>
|
320 |
+
|
321 |
+
If you select display mode as automatic, it will show automatically, If you select as manual, there will be no animation and you need to place <br><?php highlight_string($code); ?> in your theme file or use the shortcode <?php highlight_string($code_2); ?>, to display the Social Icons.
|
322 |
+
</p>
|
323 |
+
|
324 |
+
<?php if($acx_si_credit == "yes")
|
325 |
+
{ ?>
|
326 |
+
<p>
|
327 |
+
<?php _e("Show Credit Link: " ); ?>
|
328 |
+
<select name="acx_si_credit">
|
329 |
+
<option value="yes"<?php if ($acx_si_credit == "yes") { echo 'selected="selected"'; } ?>>Yes, Its Okay to Show Credit Link </option>
|
330 |
+
<option value="no"<?php if ($acx_si_credit == "no") { echo 'selected="selected"'; } ?>>No, I dont Like to Show Credit Link</option>
|
331 |
+
</select>
|
332 |
+
<?php _e("We Appreciate You Link Back to Our Website, Its just a small font size link :)" ); ?>
|
333 |
+
</p>
|
334 |
+
<?php
|
335 |
+
} ?>
|
336 |
|
337 |
<p class="submit">
|
338 |
+
<input type="submit" name="Submit" value="<?php _e('Update Acurax Social Icon', 'acx_si_config' ) ?>" />
|
339 |
</p>
|
340 |
+
|
341 |
</form>
|
342 |
+
|
343 |
<hr/>
|
344 |
+
<p>
|
345 |
+
Something Not Working Well? Have a Doubt? Have a Suggestion? - <a href="http://www.acurax.com" target="_blank">Contact us now</a> | Need a Custom Designed Theme For your Blog or Website? Need a Custom Header Image? - <a href="http://www.acurax.com" target="_blank">Contact us now</a>
|
346 |
+
</p>
|
347 |
</div>
|
style_admin.css
CHANGED
@@ -39,7 +39,7 @@
|
|
39 |
margin-bottom: 8px;
|
40 |
margin-left: 7px;
|
41 |
padding: 2px;
|
42 |
-
width:
|
43 |
}
|
44 |
#acx_si_theme_display .acx_si_single_label
|
45 |
{
|
@@ -56,8 +56,8 @@ float:left;
|
|
56 |
#acx_si_theme_display .image_div img
|
57 |
{
|
58 |
border: 0 none;
|
59 |
-
margin-top:
|
60 |
-
width:
|
61 |
}
|
62 |
#floating-social-media-icon
|
63 |
{
|
@@ -128,4 +128,35 @@ background: url("images/plugin_page_bg.png") repeat-x scroll 0 0 #FFFFFF;
|
|
128 |
#acurax_notice select
|
129 |
{
|
130 |
font-weight:normal;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
}
|
39 |
margin-bottom: 8px;
|
40 |
margin-left: 7px;
|
41 |
padding: 2px;
|
42 |
+
width: 365px;
|
43 |
}
|
44 |
#acx_si_theme_display .acx_si_single_label
|
45 |
{
|
56 |
#acx_si_theme_display .image_div img
|
57 |
{
|
58 |
border: 0 none;
|
59 |
+
margin-top: 6px;
|
60 |
+
width: 36px;
|
61 |
}
|
62 |
#floating-social-media-icon
|
63 |
{
|
128 |
#acurax_notice select
|
129 |
{
|
130 |
font-weight:normal;
|
131 |
+
}
|
132 |
+
|
133 |
+
|
134 |
+
|
135 |
+
|
136 |
+
|
137 |
+
|
138 |
+
|
139 |
+
#contentLeft ul{
|
140 |
+
display: inline-block;
|
141 |
+
list-style: none outside none;
|
142 |
+
}
|
143 |
+
#contentLeft img
|
144 |
+
{
|
145 |
+
width: 40px;
|
146 |
+
}
|
147 |
+
#contentLeft li {
|
148 |
+
border: 1px solid #CCCCCC;
|
149 |
+
color: black;
|
150 |
+
cursor: move;
|
151 |
+
float: left;
|
152 |
+
font-family: arial;
|
153 |
+
font-size: 15px;
|
154 |
+
list-style: none outside none;
|
155 |
+
margin-left: 3px;
|
156 |
+
min-width: 70px;
|
157 |
+
padding: 5px;
|
158 |
+
text-align: center;
|
159 |
+
}
|
160 |
+
#contentRight {
|
161 |
+
|
162 |
}
|