Version Description
- April 06, 2012
- Added Code Security
- Now You can have as many widgets where you can define icon size and icon design for each widget.
- Now You can have Shortcode customization where you can define icon size and icon design for each shortcodes (Check Faq for more info).
Download this release
Release Info
Developer | Acurax |
Plugin | Social Media Flying Icons | Floating Social Media Icon |
Version | 1.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.9 to 1.1
- acurax-social-icon.php +1 -1
- function.php +497 -85
- images/social_media.jpg +0 -0
- js.php +0 -136
- readme.txt +68 -18
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
- screenshot-3.png +0 -0
- screenshot-4.png +0 -0
- social-help.php +27 -2
- social-icon.php +97 -46
- style.css +2 -2
- style_admin.css +6 -14
acurax-social-icon.php
CHANGED
@@ -4,7 +4,7 @@ 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.
|
8 |
Author URI: http://www.acurax.com
|
9 |
License: GPLv2 or later
|
10 |
*/
|
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.1
|
8 |
Author URI: http://www.acurax.com
|
9 |
License: GPLv2 or later
|
10 |
*/
|
function.php
CHANGED
@@ -1,6 +1,19 @@
|
|
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__) );
|
@@ -17,98 +30,233 @@ 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 |
-
|
24 |
-
|
25 |
-
$acx_si_credit
|
26 |
-
$
|
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 |
-
|
|
|
|
|
40 |
}
|
41 |
-
if ($acx_si_facebook == "") { $facebook_link = ""; } else
|
42 |
-
|
|
|
|
|
43 |
}
|
44 |
-
if ($acx_si_gplus == "") { $gplus_link = ""; } else
|
45 |
-
|
|
|
|
|
46 |
}
|
47 |
-
if ($acx_si_pinterest == "") { $pinterest_link = ""; } else
|
48 |
-
|
|
|
|
|
49 |
}
|
50 |
-
if ($acx_si_youtube == "") { $youtube_link = ""; } else
|
51 |
-
|
|
|
|
|
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
|
68 |
-
|
69 |
|
70 |
-
|
71 |
|
72 |
-
|
73 |
|
74 |
-
|
75 |
|
76 |
-
|
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 |
-
|
101 |
-
|
102 |
-
|
103 |
-
//
|
104 |
-
|
|
|
|
|
|
|
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 != "")
|
@@ -116,7 +264,14 @@ function pbl_footer()
|
|
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'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
}
|
121 |
}
|
122 |
|
@@ -124,13 +279,13 @@ function pbl_footer()
|
|
124 |
|
125 |
function extra_style_acx_icon()
|
126 |
{
|
127 |
-
$
|
128 |
-
$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: " . $
|
132 |
|
133 |
-
if ($acx_si_display
|
134 |
{
|
135 |
echo "#divBottomRight \n{\n";
|
136 |
echo "min-width:0px; \n";
|
@@ -147,31 +302,52 @@ function acx_si_admin_style() // Adding Style For Admin
|
|
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 |
-
|
158 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
159 |
{
|
|
|
|
|
160 |
ob_start();
|
161 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
-
} //
|
168 |
|
169 |
function DISPLAY_ACURAX_ICONS()
|
170 |
{
|
171 |
-
$acx_si_display
|
172 |
-
if (
|
173 |
{
|
174 |
-
|
|
|
|
|
175 |
}
|
176 |
else echo "<!-- Select Display Mode as Manual To Show The Acurax Social Media Icons -->";
|
177 |
} // DISPLAY_ACURAX_ICONS
|
@@ -181,19 +357,255 @@ function acx_not_auto()
|
|
181 |
{
|
182 |
echo "<!-- Select Display Mode as Manual To Show The Acurax Social Media Icons -->";
|
183 |
}
|
184 |
-
if (
|
185 |
{
|
186 |
add_shortcode( 'DISPLAY_ACURAX_ICONS', 'DISPLAY_ACURAX_ICONS_SC' ); // Defining Shortcode to show Social Media Icon
|
187 |
}
|
188 |
-
else
|
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
2 |
error_reporting(0);
|
3 |
//*************** Include style.css in Header ********
|
4 |
+
|
5 |
+
// Getting Option From DB *****************************
|
6 |
+
$acx_si_theme = get_option('acx_si_theme');
|
7 |
+
$acx_si_credit = get_option('acx_si_credit');
|
8 |
+
$acx_si_display = get_option('acx_si_display');
|
9 |
+
$acx_si_twitter = get_option('acx_si_twitter');
|
10 |
+
$acx_si_facebook = get_option('acx_si_facebook');
|
11 |
+
$acx_si_youtube = get_option('acx_si_youtube');
|
12 |
+
$acx_si_linkedin = get_option('acx_si_linkedin');
|
13 |
+
$acx_si_gplus = get_option('acx_si_gplus');
|
14 |
+
$acx_si_pinterest = get_option('acx_si_pinterest');
|
15 |
+
$acx_si_icon_size = get_option('acx_si_icon_size');
|
16 |
+
// *****************************************************
|
17 |
function enqueue_acx_si_style()
|
18 |
{
|
19 |
wp_enqueue_style ( 'acx-si-style', plugins_url('style.css', __FILE__) );
|
30 |
{ $acx_si_option_set = get_option($option_name);
|
31 |
if ($acx_si_option_set != "") { echo $yes; } else { echo $no; }
|
32 |
}
|
33 |
+
function acurax_si_simple($theme)
|
|
|
34 |
{
|
35 |
+
|
36 |
+
// Getting Globals *****************************
|
37 |
+
global $acx_si_theme, $acx_si_credit, $acx_si_display , $acx_si_twitter, $acx_si_facebook, $acx_si_youtube,
|
38 |
+
$acx_si_linkedin, $acx_si_gplus, $acx_si_pinterest, $acx_si_icon_size;
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
// *****************************************************
|
40 |
+
if ($theme == "") { $acx_si_touse_theme = $acx_si_theme; } else { $acx_si_touse_theme = $theme; }
|
|
|
|
|
41 |
//******** MAKING EACH BUTTON LINKS ********************
|
42 |
+
if ($acx_si_twitter == "") { $twitter_link = ""; } else
|
43 |
+
{
|
44 |
+
$twitter_link = "<a href='http://www.twitter.com/". $acx_si_twitter ."' target='_blank'>" . "<img src=" .
|
45 |
+
plugins_url('images/themes/'. $acx_si_touse_theme .'/twitter.png', __FILE__) . " border='0'></a>";
|
46 |
}
|
47 |
+
if ($acx_si_facebook == "") { $facebook_link = ""; } else
|
48 |
+
{
|
49 |
+
$facebook_link = "<a href='". $acx_si_facebook ."' target='_blank'>" . "<img src=" . plugins_url('images/themes/'
|
50 |
+
. $acx_si_touse_theme .'/facebook.png', __FILE__) . " border='0'></a>";
|
51 |
}
|
52 |
+
if ($acx_si_gplus == "") { $gplus_link = ""; } else
|
53 |
+
{
|
54 |
+
$gplus_link = "<a href='". $acx_si_gplus ."' target='_blank'>" . "<img src=" . plugins_url('images/themes/'.
|
55 |
+
$acx_si_touse_theme .'/googleplus.png', __FILE__) . " border='0'></a>";
|
56 |
}
|
57 |
+
if ($acx_si_pinterest == "") { $pinterest_link = ""; } else
|
58 |
+
{
|
59 |
+
$pinterest_link = "<a href='". $acx_si_pinterest ."' target='_blank'>" . "<img src=" . plugins_url(
|
60 |
+
'images/themes/'. $acx_si_touse_theme .'/pinterest.png', __FILE__) . " border='0'></a>";
|
61 |
}
|
62 |
+
if ($acx_si_youtube == "") { $youtube_link = ""; } else
|
63 |
+
{
|
64 |
+
$youtube_link = "<a href='". $acx_si_youtube ."' target='_blank'>" . "<img src=" . plugins_url('images/themes/'.
|
65 |
+
$acx_si_touse_theme .'/youtube.png', __FILE__) . " border='0'></a>";
|
66 |
}
|
67 |
+
if ($acx_si_linkedin == "") { $linkedin_link = ""; } else
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
{
|
69 |
+
$linkedin_link = "<a href='". $acx_si_linkedin ."' target='_blank'>" . "<img src=" . plugins_url('images/themes/'
|
70 |
+
. $acx_si_touse_theme .'/linkedin.png', __FILE__) . " border='0'></a>";
|
71 |
+
}
|
72 |
+
$social_icon_array_order = get_option('social_icon_array_order');
|
73 |
+
$social_icon_array_order = unserialize($social_icon_array_order);
|
74 |
+
foreach ($social_icon_array_order as $key => $value)
|
75 |
+
{
|
76 |
+
if ($value == 0) { echo $twitter_link; }
|
77 |
|
78 |
+
else if ($value == 1) { echo $facebook_link; }
|
79 |
|
80 |
+
else if ($value == 2) { echo $gplus_link; }
|
81 |
|
82 |
+
else if ($value == 3) { echo $pinterest_link; }
|
83 |
|
84 |
+
else if ($value == 4) { echo $youtube_link; }
|
85 |
|
86 |
+
else if ($value == 5) { echo $linkedin_link; }
|
87 |
+
}
|
88 |
+
} //acurax_si_simple()
|
89 |
+
|
90 |
+
|
91 |
+
function acurax_icons()
|
92 |
+
{
|
93 |
+
global $acx_si_theme, $acx_si_credit, $acx_si_display , $acx_si_twitter, $acx_si_facebook, $acx_si_youtube,
|
94 |
+
$acx_si_linkedin, $acx_si_gplus, $acx_si_pinterest, $acx_si_icon_size;
|
95 |
+
|
96 |
+
if($acx_si_twitter != "" || $acx_si_facebook != "" || $acx_si_youtube != "" || $acx_si_linkedin != "" ||
|
97 |
+
$acx_si_pinterest != "" || $acx_si_gplus != "")
|
98 |
+
{
|
99 |
+
//*********************** STARTED DISPLAYING THE ICONS ***********************
|
100 |
+
echo "\n\n\n<!-- Starting Icon Display Code For Social Media Icon From Acurax International www.acurax.com -->\n";
|
101 |
+
echo "<div id='divBottomRight' align='center'>";
|
102 |
+
acurax_si_simple();
|
103 |
echo "</div>\n";
|
104 |
echo "<!-- Ending Icon Display Code For Social Media Icon From Acurax International www.acurax.com -->\n\n\n";
|
105 |
+
//*****************************************************************************
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
} // Chking null fields
|
107 |
|
108 |
} // Ending acurax_icons();
|
109 |
|
110 |
+
// Setting X Y values for javascript
|
111 |
+
$x = -170;
|
112 |
+
$y = -60;
|
113 |
+
function acx_load_floating_js()
|
114 |
+
{
|
115 |
+
global $x;
|
116 |
+
global $y;
|
117 |
|
118 |
+
//*************** STARTING PUMBING JAVASCIRPT *******************************
|
119 |
+
echo "\n\n\n<!-- Starting Javascript For Social Media Icon From Acurax International www.acurax.com -->\n";
|
120 |
+
$acx_si_icon_size = get_option('acx_si_icon_size');
|
121 |
+
////////////////////////////////////////////////////////////////////////////
|
122 |
+
//STARTING CROSS CHECK $count,$icon_size,$set_value
|
123 |
+
function acx_si_check_loaded_count($count,$icon_size,$set_x_value,$set_y_value)
|
124 |
+
{
|
125 |
+
// Defining Values To Use
|
126 |
+
$acx_si_icon_size = get_option('acx_si_icon_size'); // Getting Value From DB :)
|
127 |
$acx_si_twitter = get_option('acx_si_twitter');
|
128 |
$acx_si_facebook = get_option('acx_si_facebook');
|
129 |
$acx_si_youtube = get_option('acx_si_youtube');
|
130 |
$acx_si_linkedin = get_option('acx_si_linkedin');
|
131 |
$acx_si_gplus = get_option('acx_si_gplus');
|
132 |
$acx_si_pinterest = get_option('acx_si_pinterest');
|
133 |
+
$count_check = 0;
|
134 |
+
$l1 = 0;
|
135 |
+
$l2 = 0;
|
136 |
+
$l3 = 0;
|
137 |
+
$l4 = 0;
|
138 |
+
$l5 = 0;
|
139 |
+
$l6 = 0;
|
140 |
+
if ($acx_si_twitter != "") { $l1 = 1; }
|
141 |
+
if ($acx_si_facebook != "") { $l2 = 1; }
|
142 |
+
if ($acx_si_youtube != "") { $l3 = 1; }
|
143 |
+
if ($acx_si_linkedin != "") { $l4 = 1; }
|
144 |
+
if ($acx_si_gplus != "") { $l5 = 1; }
|
145 |
+
if ($acx_si_pinterest != "") { $l6 = 1; }
|
146 |
+
$count_check = $l1 + $l2 + $l3 + $l4 + $l5 + $l6;
|
147 |
+
if ($acx_si_icon_size == $icon_size && $count_check == $count)
|
148 |
+
{
|
149 |
+
global $x;
|
150 |
+
global $y;
|
151 |
+
$x = $set_x_value;
|
152 |
+
$y = $set_y_value;
|
153 |
+
}
|
154 |
+
} // ENDING THE FUNCTION TO CROS CHECK
|
155 |
+
|
156 |
+
/**************************************************************************
|
157 |
+
CONDITIONS STARTING HERE
|
158 |
+
if X Decreases then move to Right
|
159 |
+
If Y Decreases then Move to Down
|
160 |
+
***************************************************************************/
|
161 |
+
// Icon Size 16 Starts Here
|
162 |
+
// acx_si_check_loaded_count($count,$icon_size,$set_x_value,$set_y_value);
|
163 |
+
acx_si_check_loaded_count(1,16,-170,-35);
|
164 |
+
acx_si_check_loaded_count(2,16,-170,-35);
|
165 |
+
acx_si_check_loaded_count(3,16,-170,-35);
|
166 |
+
acx_si_check_loaded_count(4,16,-170,-35);
|
167 |
+
acx_si_check_loaded_count(5,16,-170,-35);
|
168 |
+
acx_si_check_loaded_count(6,16,-170,-35);
|
169 |
+
// *********************************
|
170 |
+
// Icon Size 25 Starts Here
|
171 |
+
// acx_si_check_loaded_count($count,$icon_size,$set_x_value,$set_y_value);
|
172 |
+
acx_si_check_loaded_count(1,25,-160,-50);
|
173 |
+
acx_si_check_loaded_count(2,25,-160,-50);
|
174 |
+
acx_si_check_loaded_count(3,25,-160,-50);
|
175 |
+
acx_si_check_loaded_count(4,25,-160,-50);
|
176 |
+
acx_si_check_loaded_count(5,25,-160,-50);
|
177 |
+
acx_si_check_loaded_count(6,25,-180,-50);
|
178 |
+
// *********************************
|
179 |
+
// Icon Size 32 Starts Here
|
180 |
+
// acx_si_check_loaded_count($count,$icon_size,$set_x_value,$set_y_value);
|
181 |
+
acx_si_check_loaded_count(1,32,-170,-55);
|
182 |
+
acx_si_check_loaded_count(2,32,-170,-55);
|
183 |
+
acx_si_check_loaded_count(3,32,-170,-55);
|
184 |
+
acx_si_check_loaded_count(4,32,-170,-55);
|
185 |
+
acx_si_check_loaded_count(5,32,-190,-70);
|
186 |
+
acx_si_check_loaded_count(6,32,-160,-80);
|
187 |
+
// *********************************
|
188 |
+
// Icon Size 40 Starts Here
|
189 |
+
// acx_si_check_loaded_count($count,$icon_size,$set_x_value,$set_y_value);
|
190 |
+
acx_si_check_loaded_count(1,40,-170,-65);
|
191 |
+
acx_si_check_loaded_count(2,40,-170,-65);
|
192 |
+
acx_si_check_loaded_count(3,40,-170,-65);
|
193 |
+
acx_si_check_loaded_count(4,40,-170,-105);
|
194 |
+
acx_si_check_loaded_count(5,40,-170,-105);
|
195 |
+
acx_si_check_loaded_count(6,40,-170,-105);
|
196 |
+
// *********************************
|
197 |
+
// Icon Size 48 Starts Here
|
198 |
+
// acx_si_check_loaded_count($count,$icon_size,$set_x_value,$set_y_value);
|
199 |
+
acx_si_check_loaded_count(1,48,-170,-75);
|
200 |
+
acx_si_check_loaded_count(2,48,-170,-75);
|
201 |
+
acx_si_check_loaded_count(3,48,-170,-75);
|
202 |
+
acx_si_check_loaded_count(4,48,-170,-120);
|
203 |
+
acx_si_check_loaded_count(5,48,-170,-120);
|
204 |
+
acx_si_check_loaded_count(6,48,-170,-120);
|
205 |
+
// *********************************
|
206 |
+
// Icon Size 55 Starts Here
|
207 |
+
// acx_si_check_loaded_count($count,$icon_size,$set_x_value,$set_y_value);
|
208 |
+
acx_si_check_loaded_count(1,55,-170,-80);
|
209 |
+
acx_si_check_loaded_count(2,55,-170,-80);
|
210 |
+
acx_si_check_loaded_count(3,55,-170,-135);
|
211 |
+
acx_si_check_loaded_count(4,55,-170,-135);
|
212 |
+
acx_si_check_loaded_count(5,55,-190,-135);
|
213 |
+
acx_si_check_loaded_count(6,55,-190,-135);
|
214 |
+
// *********************************
|
215 |
+
/**************************************************************************
|
216 |
+
CONDITIONS ENDING HERE
|
217 |
+
***************************************************************************/
|
218 |
+
?>
|
219 |
+
<script type="text/javascript">
|
220 |
+
var ns = (navigator.appName.indexOf("Netscape") != -1);
|
221 |
+
var d = document;
|
222 |
+
var px = document.layers ? "" : "px";
|
223 |
+
function JSFX_FloatDiv(id, sx, sy)
|
224 |
+
{
|
225 |
+
var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
|
226 |
+
window[id + "_obj"] = el;
|
227 |
+
if(d.layers)el.style=el;
|
228 |
+
el.cx = el.sx = sx;el.cy = el.sy = sy;
|
229 |
+
el.sP=function(x,y){this.style.left=x+px;this.style.top=y+px;};
|
230 |
+
el.flt=function()
|
231 |
+
{
|
232 |
+
var pX, pY;
|
233 |
+
pX = (this.sx >= 0) ? 0 : ns ? innerWidth :
|
234 |
+
document.documentElement && document.documentElement.clientWidth ?
|
235 |
+
document.documentElement.clientWidth : document.body.clientWidth;
|
236 |
+
pY = ns ? pageYOffset : document.documentElement && document.documentElement.scrollTop ?
|
237 |
+
document.documentElement.scrollTop : document.body.scrollTop;
|
238 |
+
if(this.sy<0)
|
239 |
+
pY += ns ? innerHeight : document.documentElement && document.documentElement.clientHeight ?
|
240 |
+
document.documentElement.clientHeight : document.body.clientHeight;
|
241 |
+
this.cx += (pX + this.sx - this.cx)/8;this.cy += (pY + this.sy - this.cy)/8;
|
242 |
+
this.sP(this.cx, this.cy);
|
243 |
+
setTimeout(this.id + "_obj.flt()", 40);
|
244 |
+
}
|
245 |
+
return el;
|
246 |
+
}
|
247 |
+
JSFX_FloatDiv("divBottomRight", <?php echo $x; ?>, <?php echo $y; ?>).flt();
|
248 |
+
</script>
|
249 |
+
<?php echo "<!-- Ending Javascript Code For Social Media Icon From Acurax International www.acurax.com -->\n\n\n";
|
250 |
+
} if ($acx_si_display == "auto" || $acx_si_display == "both")
|
251 |
+
{
|
252 |
+
add_action('wp_footer', 'acx_load_floating_js',101);
|
253 |
+
}
|
254 |
+
|
255 |
+
// Starting Footer PBL
|
256 |
+
function pbl_footer()
|
257 |
+
{
|
258 |
+
global $acx_si_theme, $acx_si_credit, $acx_si_display , $acx_si_twitter, $acx_si_facebook, $acx_si_youtube,
|
259 |
+
$acx_si_linkedin, $acx_si_gplus, $acx_si_pinterest;
|
260 |
|
261 |
//********** CHECKING CREDIT LINK STATUS ******************
|
262 |
if($acx_si_twitter != "" || $acx_si_facebook != "" || $acx_si_youtube != "" || $acx_si_linkedin != "" || $acx_si_pinterest != "" || $acx_si_gplus != "")
|
264 |
if($acx_si_credit == "yes")
|
265 |
{
|
266 |
echo "<div style='text-align:center;color:gray;font-family:arial;font-size:10px;text-decoration:none;'>";
|
267 |
+
echo "<a href='http://www.acurax.com/products/floating-social-media-icon-plugin-wordpress/' target='_blank'
|
268 |
+
title='Social Media Wordpress plugin'
|
269 |
+
style='text-align:center;color:gray;font-family:arial;
|
270 |
+
font-size:10px;text-decoration:none;'>Social Media
|
271 |
+
Icons</a> Powered by <a href='http://www.acurax.com/services/web-designing.php' target='_blank' title='Web
|
272 |
+
Design Company'
|
273 |
+
style='text-align:center;color:gray;font-family:arial;font-size:10px;text-decoration:none;'>Acurax Web Design
|
274 |
+
Company</a></div>";
|
275 |
}
|
276 |
}
|
277 |
|
279 |
|
280 |
function extra_style_acx_icon()
|
281 |
{
|
282 |
+
global $acx_si_icon_size;
|
283 |
+
global $acx_si_display;
|
284 |
echo "\n\n\n<!-- Starting Styles For Social Media Icon From Acurax International www.acurax.com -->\n<style type='text/css'>\n";
|
285 |
echo "#divBottomRight img \n{\n";
|
286 |
+
echo "width: " . $acx_si_icon_size . "px; \n}\n";
|
287 |
|
288 |
+
if ($acx_si_display == "manual")
|
289 |
{
|
290 |
echo "#divBottomRight \n{\n";
|
291 |
echo "min-width:0px; \n";
|
302 |
} add_action('admin_head', 'acx_si_admin_style'); // ADMIN
|
303 |
|
304 |
$acx_si_display = get_option('acx_si_display');
|
305 |
+
if ($acx_si_display == "auto" || $acx_si_display == "both")
|
306 |
{
|
307 |
+
add_action('wp_footer', 'acurax_icons',100);
|
308 |
}
|
309 |
+
$acx_si_sc_id = 0; // Defined to assign shortcode unique id
|
310 |
+
function DISPLAY_ACURAX_ICONS_SC($atts)
|
311 |
{
|
312 |
+
global $acx_si_display, $acx_si_icon_size, $acx_si_sc_id;
|
313 |
+
extract(shortcode_atts(array(
|
314 |
+
"theme" => '',
|
315 |
+
"size" => $acx_si_icon_size,
|
316 |
+
"autostart" => 'false'
|
317 |
+
), $atts));
|
318 |
+
if ($theme > 24) { $theme = ""; }
|
319 |
+
if (!is_numeric($theme)) { $theme = ""; }
|
320 |
+
if ($size > 55) { $size = $acx_si_icon_size; }
|
321 |
+
if (!is_numeric($size)) { $size = $acx_si_icon_size; }
|
322 |
+
if ($acx_si_display != "auto" || $acx_si_display == "both")
|
323 |
{
|
324 |
+
|
325 |
+
$acx_si_sc_id = $acx_si_sc_id + 1;
|
326 |
ob_start();
|
327 |
+
echo "<style>\n";
|
328 |
+
echo "#short_code_si_icon img \n {";
|
329 |
+
echo "width:" . $size . "px; \n}\n";
|
330 |
+
echo ".scid-" . $acx_si_sc_id . " img \n{\n";
|
331 |
+
echo "width:" . $size . "px !important; \n}\n";
|
332 |
+
echo "</style>";
|
333 |
+
echo "<div id='short_code_si_icon' align='center' class='scid-" . $acx_si_sc_id . "'>";
|
334 |
+
acurax_si_simple($theme);
|
335 |
+
echo "</div>";
|
336 |
$content = ob_get_contents();
|
337 |
ob_end_clean();
|
338 |
return $content;
|
339 |
}
|
340 |
else echo "<!-- Select Display Mode as Manual To Show The Acurax Social Media Icons -->";
|
341 |
+
} // DISPLAY_ACURAX_ICONS_SC
|
342 |
|
343 |
function DISPLAY_ACURAX_ICONS()
|
344 |
{
|
345 |
+
global $acx_si_display;
|
346 |
+
if ($acx_si_display != "auto" || $acx_si_display == "both")
|
347 |
{
|
348 |
+
echo "<div id='short_code_si_icon' align='center'>";
|
349 |
+
acurax_si_simple();
|
350 |
+
echo "</div>";
|
351 |
}
|
352 |
else echo "<!-- Select Display Mode as Manual To Show The Acurax Social Media Icons -->";
|
353 |
} // DISPLAY_ACURAX_ICONS
|
357 |
{
|
358 |
echo "<!-- Select Display Mode as Manual To Show The Acurax Social Media Icons -->";
|
359 |
}
|
360 |
+
if ($acx_si_display != "auto" || $acx_si_display == "both")
|
361 |
{
|
362 |
add_shortcode( 'DISPLAY_ACURAX_ICONS', 'DISPLAY_ACURAX_ICONS_SC' ); // Defining Shortcode to show Social Media Icon
|
363 |
}
|
364 |
+
else
|
365 |
{
|
366 |
add_shortcode( 'DISPLAY_ACURAX_ICONS', 'acx_not_auto' ); // Defining Shortcode to show Select Manual
|
367 |
}
|
368 |
|
369 |
+
|
370 |
function acx_si_custom_admin_js()
|
371 |
{
|
372 |
wp_enqueue_script('jquery');
|
373 |
wp_enqueue_script('jquery-ui-core');
|
374 |
wp_enqueue_script('jquery-ui-sortable');
|
375 |
+
} add_action( 'admin_enqueue_scripts', 'acx_si_custom_admin_js' );
|
376 |
+
|
377 |
+
|
378 |
+
|
379 |
+
// wp-admin Notices >> Finish Upgrade
|
380 |
+
function acx_si_pluign_upgrade_not_finished()
|
381 |
+
{
|
382 |
+
echo '<div class="error">
|
383 |
+
<p><b>Thanks for updating Floating Social Media Icon plugin... You need to visit <a href="admin.php?page=Acurax-Social-Icons-Settings">Plugin\'s Settings Page</a> to Complete the Updation Process - <a href="admin.php?page=Acurax-Social-Icons-Settings">Click Here Visit Social Icon Plugin Settings</a></b></p>
|
384 |
+
</div>';
|
385 |
+
}
|
386 |
+
$total_arrays = 6; // Number Of Services
|
387 |
+
$social_icon_array_order = get_option('social_icon_array_order');
|
388 |
+
$social_icon_array_order = unserialize($social_icon_array_order);
|
389 |
+
$social_icon_array_count = count($social_icon_array_order);
|
390 |
+
if ($social_icon_array_count < $total_arrays)
|
391 |
+
{
|
392 |
+
add_action('admin_notices', 'acx_si_pluign_upgrade_not_finished',1);
|
393 |
+
}
|
394 |
+
|
395 |
+
// wp-admin Notices >> Plugin not configured
|
396 |
+
function acx_si_pluign_not_configured()
|
397 |
+
{
|
398 |
+
echo '<div class="error">
|
399 |
+
<p><b>Floating Social Media Icon Plugin is not configured. You need to configure your social media profile URL\'s
|
400 |
+
to start showing the Floating Social Media Icons - <a href="admin.php?page=Acurax-Social-Icons-Settings">Click
|
401 |
+
here to configure</a></b></p>
|
402 |
+
</div>';
|
403 |
+
}
|
404 |
+
if ($social_icon_array_count == $total_arrays)
|
405 |
+
{
|
406 |
+
if ($acx_si_twitter == "" && $acx_si_facebook == "" && $acx_si_youtube == "" && $acx_si_linkedin == "" && $acx_si_pinterest == "" && $acx_si_gplus == "")
|
407 |
+
{
|
408 |
+
add_action('admin_notices', 'acx_si_pluign_not_configured',1);
|
409 |
+
} // Chking If Plugin Not Configured
|
410 |
+
} // Chking $social_icon_array_count == $total_arrays
|
411 |
+
|
412 |
+
|
413 |
+
|
414 |
+
|
415 |
+
// Starting Widget Code
|
416 |
+
class Acx_Social_Icons_Widget extends WP_Widget
|
417 |
+
{
|
418 |
+
// Register the widget
|
419 |
+
function Acx_Social_Icons_Widget()
|
420 |
+
{
|
421 |
+
// Set some widget options
|
422 |
+
$widget_options = array( 'description' => 'Allow users to show Social Media Icons From Floating Social Media Icon
|
423 |
+
Plugin', 'classname' => 'acx-social-icons-desc' );
|
424 |
+
// Set some control options (width, height etc)
|
425 |
+
$control_options = array( 'width' => 300 );
|
426 |
+
// Actually create the widget (widget id, widget name, options...)
|
427 |
+
$this->WP_Widget( 'acx-social-icons-widget', 'Acx Social Icons', $widget_options, $control_options );
|
428 |
+
}
|
429 |
+
|
430 |
+
// Output the content of the widget
|
431 |
+
function widget($args, $instance)
|
432 |
+
{
|
433 |
+
extract( $args ); // Don't worry about this
|
434 |
+
|
435 |
+
// Get our variables
|
436 |
+
$title = apply_filters( 'widget_title', $instance['title'] );
|
437 |
+
$icon_size = $instance['icon_size'];
|
438 |
+
$icon_theme = $instance['icon_theme'];
|
439 |
+
|
440 |
+
// This is defined when you register a sidebar
|
441 |
+
echo $before_widget;
|
442 |
+
|
443 |
+
// If our title isn't empty then show it
|
444 |
+
if ( $title )
|
445 |
+
{
|
446 |
+
echo $before_title . $title . $after_title;
|
447 |
+
}
|
448 |
+
echo "<style>\n";
|
449 |
+
echo "." . $this->get_field_id('widget') . " img \n{\n";
|
450 |
+
echo "width:" . $icon_size . "px; \n}\n";
|
451 |
+
echo "</style>";
|
452 |
+
echo "<div id='acurax_si_simple' align='center' class='" . $this->get_field_id('widget') . "'>";
|
453 |
+
acurax_si_simple($icon_theme);
|
454 |
+
echo "</div>";
|
455 |
+
// This is defined when you register a sidebar
|
456 |
+
echo $after_widget;
|
457 |
+
}
|
458 |
+
|
459 |
+
// Output the admin options form
|
460 |
+
function form($instance)
|
461 |
+
{
|
462 |
+
$total_themes = 24;
|
463 |
+
$total_themes = $total_themes + 1;
|
464 |
+
// These are our default values
|
465 |
+
$defaults = array( 'title' => 'Social Media Icons','icon_size' => '32' );
|
466 |
+
// This overwrites any default values with saved values
|
467 |
+
$instance = wp_parse_args( (array) $instance, $defaults );
|
468 |
+
?>
|
469 |
+
<p>
|
470 |
+
<label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:'); ?></label>
|
471 |
+
<input id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>"
|
472 |
+
value="<?php echo $instance['title']; ?>" type="text" class="widefat" />
|
473 |
+
</p>
|
474 |
+
<p>
|
475 |
+
<label for="<?php echo $this->get_field_id('icon_size'); ?>"><?php _e('Icon Size:'); ?></label>
|
476 |
+
<select class="widefat" name="<?php echo $this->get_field_name('icon_size'); ?>" id="<?php echo $this
|
477 |
+
->get_field_id('icon_size'); ?>">
|
478 |
+
<option value="16"<?php if ($instance['icon_size'] == "16") { echo 'selected="selected"'; } ?>>16px X 16px </
|
479 |
+
option>
|
480 |
+
<option value="25"<?php if ($instance['icon_size'] == "25") { echo 'selected="selected"'; } ?>>25px X 25px </
|
481 |
+
option>
|
482 |
+
<option value="32"<?php if ($instance['icon_size'] == "32") { echo 'selected="selected"'; } ?>>32px X 32px </
|
483 |
+
option>
|
484 |
+
<option value="40"<?php if ($instance['icon_size'] == "40") { echo 'selected="selected"'; } ?>>40px X 40px </
|
485 |
+
option>
|
486 |
+
<option value="48"<?php if ($instance['icon_size'] == "48") { echo 'selected="selected"'; } ?>>48px X 48px </
|
487 |
+
option>
|
488 |
+
<option value="55"<?php if ($instance['icon_size'] == "55") { echo 'selected="selected"'; } ?>>55px X 55px </
|
489 |
+
option>
|
490 |
+
</select>
|
491 |
+
</p>
|
492 |
+
<p>
|
493 |
+
<label for="<?php echo $this->get_field_id('icon_theme'); ?>"><?php _e('Icon Theme:'); ?></label>
|
494 |
+
<select class="widefat" name="<?php echo $this->get_field_name('icon_theme'); ?>" id="<?php echo $this
|
495 |
+
->get_field_id('icon_theme'); ?>">
|
496 |
+
<option value=""<?php if ($instance['icon_theme'] == "") { echo
|
497 |
+
'selected="selected"'; } ?>>Default Theme Design</option>
|
498 |
+
<?php
|
499 |
+
for ($i=1; $i < $total_themes; $i++)
|
500 |
+
{
|
501 |
+
?>
|
502 |
+
<option value="<?php echo $i; ?>"<?php if ($instance['icon_theme'] == $i) { echo
|
503 |
+
'selected="selected"'; } ?>>Theme Design <?php echo $i; ?> </option>
|
504 |
+
<?php
|
505 |
+
} ?>
|
506 |
+
</select>
|
507 |
+
</p>
|
508 |
+
<?php
|
509 |
+
}
|
510 |
+
|
511 |
+
// Processes the admin options form when saved
|
512 |
+
function update($new_instance, $old_instance)
|
513 |
+
{
|
514 |
+
// Get the old values
|
515 |
+
$instance = $old_instance;
|
516 |
+
|
517 |
+
// Update with any new values (and sanitise input)
|
518 |
+
$instance['title'] = strip_tags( $new_instance['title'] );
|
519 |
+
$instance['icon_size'] = strip_tags( $new_instance['icon_size'] );
|
520 |
+
$instance['icon_theme'] = strip_tags( $new_instance['icon_theme'] );
|
521 |
+
return $instance;
|
522 |
+
}
|
523 |
+
} add_action('widgets_init', create_function('', 'return register_widget("Acx_Social_Icons_Widget");'));
|
524 |
+
// Ending Widget Codes
|
525 |
+
function acurax_optin()
|
526 |
+
{ ?>
|
527 |
+
<br>
|
528 |
+
<div class="widefat" align="center" style="width: 425px; padding: 10px; margin-left: auto; margin-right: auto;">
|
529 |
+
<script>
|
530 |
+
function verify_fields()
|
531 |
+
{
|
532 |
+
var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
|
533 |
+
var address = document.subscription.xyz_em_email.value;
|
534 |
+
if(reg.test(address) == false) {
|
535 |
+
alert("Please check whether the email is correct.");
|
536 |
+
return false;
|
537 |
+
}else{
|
538 |
+
document.subscription.submit();
|
539 |
+
}
|
540 |
+
}
|
541 |
+
</script>
|
542 |
+
<style>
|
543 |
+
#acx_optin
|
544 |
+
{
|
545 |
+
background: url("<?php echo plugins_url('images/social_media.jpg', __FILE__); ?>") repeat scroll 0 0 transparent;
|
546 |
+
height: 227px;
|
547 |
+
position: relative;
|
548 |
+
width: 425px;
|
549 |
+
}
|
550 |
+
#xyz_em_email
|
551 |
+
{
|
552 |
+
background: none repeat scroll 0 0 white;
|
553 |
+
border: medium none;
|
554 |
+
height: 21px;
|
555 |
+
left: 195px;
|
556 |
+
position: absolute;
|
557 |
+
top: 141px;
|
558 |
+
width: 203px;
|
559 |
+
}
|
560 |
+
#xyz_em_name
|
561 |
+
{
|
562 |
+
background: none repeat scroll 0 0 white;
|
563 |
+
border: medium none;
|
564 |
+
height: 21px;
|
565 |
+
left: 195px;
|
566 |
+
position: absolute;
|
567 |
+
top: 99px;
|
568 |
+
width: 203px;
|
569 |
+
}
|
570 |
+
#xyz_em_submit
|
571 |
+
{
|
572 |
+
background: none repeat scroll 0 0 transparent;
|
573 |
+
border: 0 none;
|
574 |
+
color: white;
|
575 |
+
cursor: pointer;
|
576 |
+
font-family: arial;
|
577 |
+
font-size: 1px;
|
578 |
+
height: 24px;
|
579 |
+
left: 281px;
|
580 |
+
position: absolute;
|
581 |
+
top: 180px;
|
582 |
+
width: 120px;
|
583 |
+
}
|
584 |
+
</style><a name="cheat-sheet">
|
585 |
+
<div id="acx_optin"></a>
|
586 |
+
<form method="POST" name="subscription" action="http://www.acurax.com/wp-content/plugins/newsletter-manager/subscription.php">
|
587 |
+
<input name="xyz_em_name" id="xyz_em_name" type="text" value="
|
588 |
+
<?php global $current_user; get_currentuserinfo();
|
589 |
+
if ($current_user->user_firstname != "" || $current_user->user_lastname != "")
|
590 |
+
{
|
591 |
+
echo $current_user->user_firstname . " " . $current_user->user_lastname;
|
592 |
+
}
|
593 |
+
else if ($current_user->display_name != "admin" && $current_user->display_name != "Admin" && $current_user->display_name != "administrator")
|
594 |
+
{
|
595 |
+
echo $current_user->display_name;
|
596 |
+
} else if ($current_user->user_login != "admin" && $current_user->user_login != "administrator" && $current_user->user_login != "Admin")
|
597 |
+
{
|
598 |
+
echo $current_user->user_login;
|
599 |
+
}
|
600 |
+
?>
|
601 |
+
"/>
|
602 |
+
<input name="xyz_em_email" id="xyz_em_email" type="text" value="
|
603 |
+
<?php global $current_user; get_currentuserinfo();
|
604 |
+
echo $current_user->user_email;
|
605 |
+
?>
|
606 |
+
"/>
|
607 |
+
<input name="htmlSubmit" id="xyz_em_submit" class="button-primary" type="submit" value="." onclick="javascript: if(!verify_fields()) return false; " />
|
608 |
+
</form>
|
609 |
+
</div>
|
610 |
+
</div>
|
611 |
+
<?php } ?>
|
images/social_media.jpg
ADDED
Binary file
|
js.php
DELETED
@@ -1,136 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
require( dirname( __FILE__ ) . '../../../../wp-config.php' );
|
3 |
-
$acx_si_icon_size=get_option('acx_si_icon_size');
|
4 |
-
$y = -60;
|
5 |
-
$x = -170;
|
6 |
-
////////////////////////////////////////////////////////////////////////////
|
7 |
-
//STARTING CROSS CHECK $count,$icon_size,$set_value
|
8 |
-
function acx_si_check_loaded_count($count,$icon_size,$set_x_value,$set_y_value)
|
9 |
-
{
|
10 |
-
// Defining Values To Use
|
11 |
-
$acx_si_icon_size=get_option('acx_si_icon_size'); // Getting Value From DB :)
|
12 |
-
$acx_si_twitter = get_option('acx_si_twitter');
|
13 |
-
$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 |
-
$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 |
-
{
|
35 |
-
global $x;
|
36 |
-
global $y;
|
37 |
-
|
38 |
-
$x = $set_x_value;
|
39 |
-
$y = $set_y_value;
|
40 |
-
}
|
41 |
-
} // ENDING THE FUNCTION TO CROS CHECK
|
42 |
-
////////////////////////////////////////////////////////////////////////////
|
43 |
-
|
44 |
-
|
45 |
-
/**************************************************************************
|
46 |
-
CONDITIONS STARTING HERE
|
47 |
-
if X Decreases then move to Right
|
48 |
-
If Y Decreases then Move to Down
|
49 |
-
***************************************************************************/
|
50 |
-
// Icon Size 16 Starts Here
|
51 |
-
// acx_si_check_loaded_count($count,$icon_size,$set_x_value,$set_y_value);
|
52 |
-
acx_si_check_loaded_count(1,16,-170,-35);
|
53 |
-
acx_si_check_loaded_count(2,16,-170,-35);
|
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);
|
61 |
-
acx_si_check_loaded_count(1,25,-160,-50);
|
62 |
-
acx_si_check_loaded_count(2,25,-160,-50);
|
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);
|
70 |
-
acx_si_check_loaded_count(1,32,-170,-55);
|
71 |
-
acx_si_check_loaded_count(2,32,-170,-55);
|
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);
|
79 |
-
acx_si_check_loaded_count(1,40,-170,-65);
|
80 |
-
acx_si_check_loaded_count(2,40,-170,-65);
|
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);
|
88 |
-
acx_si_check_loaded_count(1,48,-170,-75);
|
89 |
-
acx_si_check_loaded_count(2,48,-170,-75);
|
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);
|
97 |
-
acx_si_check_loaded_count(1,55,-170,-80);
|
98 |
-
acx_si_check_loaded_count(2,55,-170,-80);
|
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
|
106 |
-
***************************************************************************/
|
107 |
-
?>
|
108 |
-
|
109 |
-
var ns = (navigator.appName.indexOf("Netscape") != -1);
|
110 |
-
var d = document;
|
111 |
-
var px = document.layers ? "" : "px";
|
112 |
-
function JSFX_FloatDiv(id, sx, sy)
|
113 |
-
{
|
114 |
-
var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
|
115 |
-
window[id + "_obj"] = el;
|
116 |
-
if(d.layers)el.style=el;
|
117 |
-
el.cx = el.sx = sx;el.cy = el.sy = sy;
|
118 |
-
el.sP=function(x,y){this.style.left=x+px;this.style.top=y+px;};
|
119 |
-
el.flt=function()
|
120 |
-
{
|
121 |
-
var pX, pY;
|
122 |
-
pX = (this.sx >= 0) ? 0 : ns ? innerWidth :
|
123 |
-
document.documentElement && document.documentElement.clientWidth ?
|
124 |
-
document.documentElement.clientWidth : document.body.clientWidth;
|
125 |
-
pY = ns ? pageYOffset : document.documentElement && document.documentElement.scrollTop ?
|
126 |
-
document.documentElement.scrollTop : document.body.scrollTop;
|
127 |
-
if(this.sy<0)
|
128 |
-
pY += ns ? innerHeight : document.documentElement && document.documentElement.clientHeight ?
|
129 |
-
document.documentElement.clientHeight : document.body.clientHeight;
|
130 |
-
this.cx += (pX + this.sx - this.cx)/8;this.cy += (pY + this.sy - this.cy)/8;
|
131 |
-
this.sP(this.cx, this.cy);
|
132 |
-
setTimeout(this.id + "_obj.flt()", 40);
|
133 |
-
}
|
134 |
-
return el;
|
135 |
-
}
|
136 |
-
JSFX_FloatDiv("divBottomRight", <?php echo $x; ?>, <?php echo $y; ?>).flt();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
@@ -2,30 +2,38 @@
|
|
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,
|
6 |
Requires at least: 2.8
|
7 |
Tested up to: 3.3.1
|
8 |
-
Stable tag:
|
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.
|
15 |
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
-
*
|
19 |
|
20 |
-
*
|
21 |
|
22 |
-
*
|
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 |
|
@@ -37,7 +45,7 @@ We Always Look Forward Your Comments and Suggestions for Future Updates. You can
|
|
37 |
|
38 |
[Click Here To See a Live Demo](http://www.acurax.com/products/floating-social-media-icon-plugin-wordpress/ "Floating Social Media Icon Demo")
|
39 |
|
40 |
-
[Click Here to Order Professional Installation/Integration Service](http://clients.acurax.com/
|
41 |
|
42 |
**About**
|
43 |
|
@@ -45,12 +53,20 @@ This Plugin is developed and maintained by [Acurax International](http://www.acu
|
|
45 |
|
46 |
**Plugin Video Tour**
|
47 |
'[youtube http://www.youtube.com/watch?v=oK1iCywcjZY]'
|
|
|
|
|
48 |
== Installation ==
|
49 |
|
50 |
Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from Plugins page.
|
51 |
|
52 |
Then Visit Plugin Configuration Settings and select a theme and size for icons. configure your social profile url. You are done!
|
|
|
|
|
|
|
|
|
53 |
'[youtube http://www.youtube.com/watch?v=oK1iCywcjZY]'
|
|
|
|
|
54 |
After Installation,Dont Forgot to Cast Your Vote on Combatibility :) Thanks for trying...
|
55 |
|
56 |
== Frequently Asked Questions ==
|
@@ -61,19 +77,41 @@ To hide an icon, Just dont give any value for that button link.. it will automat
|
|
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
|
65 |
|
66 |
-
= How can i integrate the
|
67 |
|
68 |
-
It can be easily done.. Just to go Theme Editor which is under apperance and select footer.php and add
|
69 |
|
70 |
= Can i disable the automated integration and place where ever i want? =
|
71 |
|
72 |
-
Yes, You can.. Just to go "Acx Social icons" Menu which is in left side on wp-admin and in that page you will find "Display Mode" option. Select it to Manual. But then there will be no animation but you can Use Our Shortcode or PHP Code to display the social media icons anywhere you want.
|
|
|
|
|
73 |
|
74 |
-
|
75 |
|
76 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
|
78 |
= How can i help the development of this plugin? =
|
79 |
|
@@ -100,13 +138,19 @@ Have more questions ? [Drop a mail](http://www.acurax.com/contact.php/ "Drop an
|
|
100 |
== Screenshots ==
|
101 |
|
102 |
1. Plugin Settings Page
|
103 |
-
2. Plugin in action, It will stay at bottom right with animated move even if we scroll..
|
104 |
3. Icon Settings Style/Theme and Size Selection Options
|
105 |
4. Social Media Profile Link Settings
|
106 |
5. Credit Link Enable Disable Option
|
107 |
|
108 |
== Upgrade Notice ==
|
109 |
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
= 1.0.9 =
|
111 |
* March 21, 2012
|
112 |
* Added Pinterest
|
@@ -145,6 +189,12 @@ Have more questions ? [Drop a mail](http://www.acurax.com/contact.php/ "Drop an
|
|
145 |
|
146 |
== Changelog ==
|
147 |
|
|
|
|
|
|
|
|
|
|
|
|
|
148 |
= 1.0.9 =
|
149 |
* March 21, 2012
|
150 |
* Added Pinterest
|
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,social media widget,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: trunk
|
|
|
|
|
9 |
|
10 |
+
Easy 2 use plugin 2 show socialmedia icons which floats,Choose social icon style,order & size @ plugin settings.
|
11 |
+
Suport Widgets & Shortcode
|
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.
|
15 |
|
16 |
+
**Multiple Widget Support**
|
17 |
+
|
18 |
+
**Advanced Shortcode Support**
|
19 |
+
|
20 |
+
We will be upgrading plugin frequently with new set of icons. The social media icons will load in an animated style where it will stay and float on your website on blog's lower right corner.
|
21 |
+
|
22 |
+
* Multiple Social Media Widget Support (**Each Widget Can Have Seperate Icon Theme and Icon Size**)
|
23 |
+
|
24 |
+
* Best Shortcode Support (**Each Shortcode Support Seperate Icon Theme and Icon Size**) [Check Faq](http://wordpress.org/extend/plugins/floating-social-media-icon/faq/ "Frequently Asked Questions")
|
25 |
|
26 |
+
* Can Show Social Media Icons in **between content on post and pages** in any size and style plugin supports.
|
27 |
|
28 |
+
* One and Only Plugin With 20+ Icon Designs with **Pinterest** Support
|
29 |
|
30 |
+
* **Drag and Drop** Reorder Icons
|
31 |
|
32 |
* Easy to configure user interface
|
33 |
|
34 |
* Icon Size Selection Support
|
35 |
|
36 |
+
* **Automatic** Integration
|
37 |
|
38 |
* Support Essential Social Medias Only
|
39 |
|
45 |
|
46 |
[Click Here To See a Live Demo](http://www.acurax.com/products/floating-social-media-icon-plugin-wordpress/ "Floating Social Media Icon Demo")
|
47 |
|
48 |
+
[Click Here to Order Professional Installation/Integration Service](http://clients.acurax.com/link.php?id=4/ "Professional Integration Service")
|
49 |
|
50 |
**About**
|
51 |
|
53 |
|
54 |
**Plugin Video Tour**
|
55 |
'[youtube http://www.youtube.com/watch?v=oK1iCywcjZY]'
|
56 |
+
NOTE: This video is old version video. Check Screenshots for New Settings Page Option Preview.
|
57 |
+
|
58 |
== Installation ==
|
59 |
|
60 |
Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from Plugins page.
|
61 |
|
62 |
Then Visit Plugin Configuration Settings and select a theme and size for icons. configure your social profile url. You are done!
|
63 |
+
|
64 |
+
You need to go to Apperance >> Widgets to add "Acx Social Icon" Widget to your sidebar
|
65 |
+
If you selected display mode as manual, you can use the shortcodes which is clearly mentioned in [Faq](http://wordpress.org/extend/plugins/floating-social-media-icon/faq/ "Frequently Asked Questions") section.
|
66 |
+
|
67 |
'[youtube http://www.youtube.com/watch?v=oK1iCywcjZY]'
|
68 |
+
NOTE: This video is old version video. Check Screenshots for New Settings Page Option Preview.
|
69 |
+
|
70 |
After Installation,Dont Forgot to Cast Your Vote on Combatibility :) Thanks for trying...
|
71 |
|
72 |
== Frequently Asked Questions ==
|
77 |
|
78 |
= Why the floating social media icon is not displaying on my page even if i made all properly? =
|
79 |
|
80 |
+
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..
|
81 |
|
82 |
+
= How can i integrate the **<?php wp_footer(); ?>** and **<?php wp_head(); ?>** to my theme if it is not present on my theme? =
|
83 |
|
84 |
+
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>**
|
85 |
|
86 |
= Can i disable the automated integration and place where ever i want? =
|
87 |
|
88 |
+
Yes, You can.. Just to go **"Acx Social icons"** Menu which is in left side on wp-admin and in that page you will find "Display Mode" option. Select it to Manual. But then there will be no animation but you can Use Our Shortcode or PHP Code to display the social media icons anywhere you want.
|
89 |
+
|
90 |
+
= What are the shortcode and php code that will display this social media icon? =
|
91 |
|
92 |
+
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
|
93 |
|
94 |
+
= Can i customize the shortcode to show icons with differant icon design and size? =
|
95 |
+
|
96 |
+
Yes, You can use shortcode to display icon and set icon size,what ever you want which is supported by the plugin. You can override the global icon theme and size configuration using some attributes on shortcode.
|
97 |
+
|
98 |
+
As you know we have given icon themes, Numbers to identify. Right now we have themes like, 1,2,3,4....
|
99 |
+
|
100 |
+
If you want to show icons with Theme # 5, You can use the shortcode **[DISPLAY_ACURAX_ICONS theme="5"]**
|
101 |
+
Here we using the attribute **"theme"** to define the theme number (Make sure you use the available theme numbers, You can see the theme numbers on plugin settings page)
|
102 |
+
|
103 |
+
If you want to show the icons with a custom size 50px.. you can use the shortcode **[DISPLAY_ACURAX_ICONS size="50"]**
|
104 |
+
Here we using the attribute **"size"** to define the icon size (Make Sure you specifying size which is not more than "55" which is the maximum icon support of this plugin, **DO NOT ADD px**, Just Add the Size in Numerical)
|
105 |
+
|
106 |
+
So if you use a shortcode **[DISPLAY_ACURAX_ICONS theme="10" size="45"]**
|
107 |
+
It will show the Social Media Icon with Icon Theme 10 and Icon size will be 45px width and height.
|
108 |
+
|
109 |
+
|
110 |
+
= How can i use the plugin widgets? =
|
111 |
+
|
112 |
+
We have widgets also with almost same features of the shortcodes, You can have **many number of widgets where on each widget you can configure the Social Media Icons size and Icon Design/Style**.
|
113 |
+
|
114 |
+
To add a widget to your sidebar.. you theme must support sidebars. Go to **Apperance >> Widgets**,to add "Acx Social Icons" widget to your sidebar.
|
115 |
|
116 |
= How can i help the development of this plugin? =
|
117 |
|
138 |
== Screenshots ==
|
139 |
|
140 |
1. Plugin Settings Page
|
141 |
+
2. Plugin in action, It will stay at bottom right with animated move even if we scroll.. Auto and Manual Mode. It Shows Both Floating and Shortcode Icons..
|
142 |
3. Icon Settings Style/Theme and Size Selection Options
|
143 |
4. Social Media Profile Link Settings
|
144 |
5. Credit Link Enable Disable Option
|
145 |
|
146 |
== Upgrade Notice ==
|
147 |
|
148 |
+
= 1.1 =
|
149 |
+
* April 06, 2012
|
150 |
+
* Added Code Security
|
151 |
+
* Now You can have as many widgets where you can define icon size and icon design for each widget.
|
152 |
+
* Now You can have Shortcode customization where you can define icon size and icon design for each shortcodes (Check Faq for more info).
|
153 |
+
|
154 |
= 1.0.9 =
|
155 |
* March 21, 2012
|
156 |
* Added Pinterest
|
189 |
|
190 |
== Changelog ==
|
191 |
|
192 |
+
= 1.1 =
|
193 |
+
* April 06, 2012
|
194 |
+
* Added Code Security
|
195 |
+
* Now You can have as many widgets where you can define icon size and icon design for each widget.
|
196 |
+
* Now You can have Shortcode customization where you can define icon size and icon design for each shortcodes (Check Faq for more info).
|
197 |
+
|
198 |
= 1.0.9 =
|
199 |
* March 21, 2012
|
200 |
* Added Pinterest
|
screenshot-1.png
CHANGED
Binary file
|
screenshot-2.png
CHANGED
Binary file
|
screenshot-3.png
CHANGED
Binary file
|
screenshot-4.png
CHANGED
Binary file
|
social-help.php
CHANGED
@@ -11,12 +11,13 @@ $code_6 = ' [DISPLAY_ACURAX_ICONS]';
|
|
11 |
|
12 |
<p>Thank you for using Floating Social Media Icon Plugin For Your Wordpress Social Media Profile Linking Need.</p>
|
13 |
<p>We always look forward for your suggestions and comments regarding the plugin. You can submit them via our website <a href="http://www.acurax.com" target="_blank">www.acurax.com</a></p>
|
14 |
-
<p><a href="http://www.acurax.com/services/blog-design.php" target="_blank">Wordpress Theme Design</a> | <a href="http://www.acurax.com/services/web-designing.php" target="_blank">Website Design</a> | <a href="http://www.acurax.com/social-media-marketing-optimization/social-profile-design.php" target="_blank">Social Profile Design</a>| <a href="http://www.acurax.com/social-media-marketing-optimization/twitter-background-design.php" target="_blank">Twitter Background Design</a>| <a href="http://www.acurax.com/social-media-marketing-optimization/facebook-page-design.php" target="_blank">Facebook Page Design</a>
|
|
|
15 |
</p>
|
16 |
<hr>
|
17 |
<h3>Frequently Asked Questions</h3>
|
18 |
|
19 |
-
<p class="q">How can i hide an icon?</p>
|
20 |
<p class="a">To hide an icon, Just dont give any value for that button link.. it will automatically gets hiden.</p>
|
21 |
|
22 |
<p class="q" style="border:0px;padding:0px;">Why the floating social media icon is not displaying on my page even if i made all properly?</p>
|
@@ -31,6 +32,28 @@ $code_6 = ' [DISPLAY_ACURAX_ICONS]';
|
|
31 |
<p class="q">What are theshortcode and php code that will display this social media icon?</p>
|
32 |
<p class="a">You can use the shortcode <?php highlight_string($code_6); ?> in any post or page or even in your custom post types. You can also use <?php highlight_string($code_5); ?> anywhere in the theme files to show this icons.(But note that manual icons display will not have the animation</p>
|
33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
<p class="q">How can i help the development of this plugin?</p>
|
35 |
<p class="a">Acurax Provide Most of all the wordpress related services like website design and development including plugin development, theme design and coding, Graphics Design like header image designing etc. we can do your projects. So here you get what u needs to get done and we getting business so a part of that can be used for the time that we spend to develop plugins like this </p>
|
36 |
|
@@ -48,4 +71,6 @@ $code_6 = ' [DISPLAY_ACURAX_ICONS]';
|
|
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 -->
|
11 |
|
12 |
<p>Thank you for using Floating Social Media Icon Plugin For Your Wordpress Social Media Profile Linking Need.</p>
|
13 |
<p>We always look forward for your suggestions and comments regarding the plugin. You can submit them via our website <a href="http://www.acurax.com" target="_blank">www.acurax.com</a></p>
|
14 |
+
<p><a href="http://www.acurax.com/services/blog-design.php" target="_blank">Wordpress Theme Design</a> | <a href="http://www.acurax.com/services/web-designing.php" target="_blank">Website Design</a> | <a href="http://www.acurax.com/social-media-marketing-optimization/social-profile-design.php" target="_blank">Social Profile Design</a>| <a href="http://www.acurax.com/social-media-marketing-optimization/twitter-background-design.php" target="_blank">Twitter Background Design</a>| <a href="http://www.acurax.com/social-media-marketing-optimization/facebook-page-design.php" target="_blank">Facebook Page Design</a> |
|
15 |
+
<a href="#cheat-sheet">Free Social Media Marketing Cheat Sheet</a>
|
16 |
</p>
|
17 |
<hr>
|
18 |
<h3>Frequently Asked Questions</h3>
|
19 |
|
20 |
+
<p class="q" style="margin-top: 18px;">How can i hide an icon?</p>
|
21 |
<p class="a">To hide an icon, Just dont give any value for that button link.. it will automatically gets hiden.</p>
|
22 |
|
23 |
<p class="q" style="border:0px;padding:0px;">Why the floating social media icon is not displaying on my page even if i made all properly?</p>
|
32 |
<p class="q">What are theshortcode and php code that will display this social media icon?</p>
|
33 |
<p class="a">You can use the shortcode <?php highlight_string($code_6); ?> in any post or page or even in your custom post types. You can also use <?php highlight_string($code_5); ?> anywhere in the theme files to show this icons.(But note that manual icons display will not have the animation</p>
|
34 |
|
35 |
+
<p class="q">Can i customize the shortcode to show icons with differant icon design and size?</p>
|
36 |
+
|
37 |
+
<p class="a">Yes, You can use shortcode to display icon and set icon size,what ever you want which is supported by the plugin. You can override the global icon theme and size configuration using some attributes on shortcode.</p>
|
38 |
+
|
39 |
+
<p class="a">As you know we have given icon themes, Numbers to identify. Right now we have themes like, 1,2,3,4....</p>
|
40 |
+
|
41 |
+
<p class="a">If you want to show icons with Theme # 5, You can use the shortcode <b>[DISPLAY_ACURAX_ICONS theme="5"]</b></p>
|
42 |
+
<p class="a">Here we using the attribute <b>"theme"</b> to define the theme number (Make sure you use the available theme numbers, You can see the theme numbers on <a href="admin.php?page=Acurax-Social-Icons-Settings" target="_blank">plugin settings page</a>)</p>
|
43 |
+
|
44 |
+
<p class="a">If you want to show the icons with a custom size 50px.. you can use the shortcode <b>[DISPLAY_ACURAX_ICONS size="50"]</b></p>
|
45 |
+
<p class="a">Here we using the attribute <b>"size"</b> to define the icon size (Make Sure you specifying size which is not more than "55" which is the maximum icon support of this plugin, DO NOT ADD px, Just Add the Size in Numerical)</p>
|
46 |
+
|
47 |
+
<p class="a">So if you use a shortcode <b>[DISPLAY_ACURAX_ICONS theme="10" size="45"]</b></p>
|
48 |
+
<p class="a">It will show the Social Media Icon with Icon Theme 10 and Icon size will be 45px width and height.</p>
|
49 |
+
|
50 |
+
|
51 |
+
<p class="q">How can i use the plugin widgets?</p>
|
52 |
+
|
53 |
+
<p class="a">We have widgets also with almost same features of the shortcodes, You can have many number of widgets where on each widget you can configure the Social Media Icons size and Icon Design/Style.</p>
|
54 |
+
|
55 |
+
<p class="a">To add a widget to your sidebar.. you theme must support sidebars. Go to Apperance >> Widgets,to add "Acx Social Icons" widget to your sidebar.</p>
|
56 |
+
|
57 |
<p class="q">How can i help the development of this plugin?</p>
|
58 |
<p class="a">Acurax Provide Most of all the wordpress related services like website design and development including plugin development, theme design and coding, Graphics Design like header image designing etc. we can do your projects. So here you get what u needs to get done and we getting business so a part of that can be used for the time that we spend to develop plugins like this </p>
|
59 |
|
71 |
|
72 |
<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>
|
73 |
|
74 |
+
<?php acurax_optin(); ?>
|
75 |
+
|
76 |
</div> <!-- acx_help_page -->
|
social-icon.php
CHANGED
@@ -38,7 +38,7 @@ if($_POST['acurax_social_icon_hidden'] == 'Y')
|
|
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
|
@@ -114,13 +114,14 @@ if($_POST['acurax_social_icon_hidden'] == 'Y')
|
|
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 |
|
@@ -132,17 +133,21 @@ if($_POST['acurax_social_icon_hidden'] == 'Y')
|
|
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
|
|
|
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
|
141 |
-
|
|
|
|
|
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
|
|
|
146 |
</strong>
|
147 |
</p>
|
148 |
</div>
|
@@ -152,31 +157,67 @@ if($_POST['acurax_social_icon_hidden'] == 'Y')
|
|
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
|
159 |
-
|
160 |
-
<img src="<?php echo plugins_url('images/themes/'.$acx_si_theme.'/
|
161 |
-
|
162 |
-
<img src="<?php echo plugins_url('images/themes/'.$acx_si_theme.'/
|
163 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
180 |
</div>
|
181 |
</label>
|
182 |
<?php
|
@@ -185,7 +226,7 @@ if($_POST['acurax_social_icon_hidden'] == 'Y')
|
|
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>
|
@@ -197,13 +238,12 @@ if($_POST['acurax_social_icon_hidden'] == 'Y')
|
|
197 |
<?php _e("Select a social icon size" ); ?>
|
198 |
</p>
|
199 |
|
200 |
-
|
|
|
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 |
?>
|
@@ -212,42 +252,48 @@ if($_POST['acurax_social_icon_hidden'] == 'Y')
|
|
212 |
|
213 |
if ($value == 0)
|
214 |
{
|
215 |
-
echo "<img src=" . plugins_url('images/themes/'. $acx_si_theme .'/twitter.png', __FILE__) . "
|
|
|
216 |
} else
|
217 |
|
218 |
|
219 |
|
220 |
if ($value == 1)
|
221 |
{
|
222 |
-
echo "<img src=" . plugins_url('images/themes/'. $acx_si_theme .'/facebook.png', __FILE__) . "
|
|
|
223 |
} else
|
224 |
|
225 |
|
226 |
|
227 |
if ($value == 2)
|
228 |
{
|
229 |
-
echo "<img src=" . plugins_url('images/themes/'. $acx_si_theme .'/googleplus.png', __FILE__) . "
|
|
|
230 |
} else
|
231 |
|
232 |
|
233 |
|
234 |
if ($value == 3)
|
235 |
{
|
236 |
-
echo "<img src=" . plugins_url('images/themes/'. $acx_si_theme .'/pinterest.png', __FILE__) . "
|
|
|
237 |
} else
|
238 |
|
239 |
|
240 |
|
241 |
if ($value == 4)
|
242 |
{
|
243 |
-
echo "<img src=" . plugins_url('images/themes/'. $acx_si_theme .'/youtube.png', __FILE__) . "
|
|
|
244 |
} else
|
245 |
|
246 |
|
247 |
|
248 |
if ($value == 5)
|
249 |
{
|
250 |
-
echo "<img src=" . plugins_url('images/themes/'. $acx_si_theme .'/linkedin.png', __FILE__) . "
|
|
|
251 |
}
|
252 |
|
253 |
?>
|
@@ -258,43 +304,43 @@ if($_POST['acurax_social_icon_hidden'] == 'Y')
|
|
258 |
</div>
|
259 |
<div id="contentRight"></div> <!-- contentRight -->
|
260 |
<?php _e("Drag and Reorder Icons (It will automatically save on reorder)" ); ?>
|
261 |
-
</
|
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" ); ?>
|
@@ -305,25 +351,29 @@ if($_POST['acurax_social_icon_hidden'] == 'Y')
|
|
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 (
|
313 |
-
|
|
|
|
|
|
|
|
|
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
|
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>
|
@@ -341,7 +391,8 @@ if($_POST['acurax_social_icon_hidden'] == 'Y')
|
|
341 |
</form>
|
342 |
|
343 |
<hr/>
|
344 |
-
|
|
|
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>
|
38 |
$social_icon_array_order = get_option('social_icon_array_order');
|
39 |
|
40 |
?>
|
41 |
+
<div class="updated"><p><strong><?php _e('Acurax Floating Social Icons Settings Saved!.' ); ?></strong></p></div>
|
42 |
<?php
|
43 |
}
|
44 |
else
|
114 |
|
115 |
|
116 |
<div class="wrap">
|
117 |
+
<p class="widefat" style="padding:8px;width:99%;">
|
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 |
+
<a href="#cheat-sheet">Free Social Media Marketing Cheat Sheet</a>
|
125 |
</p>
|
126 |
<?php echo "<h2>" . __( 'Acurax Social Icons Options', 'acx_si_config' ) . "</h2>"; ?>
|
127 |
|
133 |
<div id='acurax_notice' align='center'>
|
134 |
<p>
|
135 |
<strong style='color:darkred;'>
|
136 |
+
You Have Selected Show Credit Link as <b>NO</b>. We Appreciate You Link Back to Our Website,Select Yes to
|
137 |
+
Enable Credit Link.
|
138 |
</strong>
|
139 |
</p>
|
140 |
|
141 |
<select name="acx_si_credit" onChange="this.form.submit();" style="font-size:18px;">
|
142 |
+
<option value="yes"<?php if ($acx_si_credit == "yes") { echo 'selected="selected"'; } ?>>Yes, Show Credit
|
143 |
+
Link </option>
|
144 |
+
<option value="no"<?php if ($acx_si_credit == "no") { echo 'selected="selected"'; } ?>>No, Hide Credit Link
|
145 |
+
</option>
|
146 |
</select>
|
147 |
|
148 |
<p>
|
149 |
+
<strong style='color:darkred;'>Its just a small font size link at the very bottom of your website/blog :) We
|
150 |
+
helping you by providing this plugin for free.. so help us back..
|
151 |
</strong>
|
152 |
</p>
|
153 |
</div>
|
157 |
|
158 |
<?php echo "<h4>" . __( 'Select an icon style', 'acx_si_config' ) . "</h4>"; ?>
|
159 |
|
160 |
+
<p class="widefat" style="padding:8px;width:99%;">
|
161 |
<?php echo "Your Current Theme is <b>Theme" . $acx_si_theme."</b>"; ?>
|
162 |
+
<div class="image_div" style="margin-top:8px;">
|
163 |
+
<img src="<?php echo plugins_url('images/themes/'.$acx_si_theme.'/twitter.png', __FILE__);?>" style="height:<?php
|
164 |
+
echo $acx_si_icon_size;?>px;">
|
165 |
+
<img src="<?php echo plugins_url('images/themes/'.$acx_si_theme.'/facebook.png', __FILE__);?>" style="height:
|
166 |
+
<?php echo $acx_si_icon_size;?>px;">
|
167 |
+
<img src="<?php echo plugins_url('images/themes/'.$acx_si_theme.'/googleplus.png', __FILE__);?>" style="height:
|
168 |
+
<?php echo $acx_si_icon_size;?>px;">
|
169 |
+
<img src="<?php echo plugins_url('images/themes/'.$acx_si_theme.'/pinterest.png', __FILE__);?>" style="height:
|
170 |
+
<?php echo $acx_si_icon_size;?>px;">
|
171 |
+
<img src="<?php echo plugins_url('images/themes/'.$acx_si_theme.'/youtube.png', __FILE__);?>" style="height:<?php
|
172 |
+
echo $acx_si_icon_size;?>px;">
|
173 |
+
<img src="<?php echo plugins_url('images/themes/'.$acx_si_theme.'/linkedin.png', __FILE__);?>" style="height:
|
174 |
+
<?php echo $acx_si_icon_size;?>px;">
|
175 |
</div>
|
176 |
</p>
|
177 |
<?php
|
178 |
+
$social_icon_array_order = unserialize($social_icon_array_order);
|
179 |
// Starting The Theme List
|
180 |
+
echo "<div id='acx_si_theme_display' class='widefat'>";
|
181 |
for ($i=1; $i < $total_themes; $i++)
|
182 |
{ ?>
|
183 |
<label class="acx_si_single_theme_display <?php if ($acx_si_theme == $i) { echo "selected"; } ?>" id="icon_selection">
|
184 |
<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>
|
185 |
<div class="image_div">
|
186 |
+
<?php
|
187 |
+
foreach ($social_icon_array_order as $key => $value)
|
188 |
+
{
|
189 |
+
if ($value == 0)
|
190 |
+
{
|
191 |
+
echo "<img src=" . plugins_url('images/themes/'. $i .'/twitter.png', __FILE__) . ">";
|
192 |
+
} else
|
193 |
+
|
194 |
+
if ($value == 1)
|
195 |
+
{
|
196 |
+
echo "<img src=" . plugins_url('images/themes/'. $i .'/facebook.png', __FILE__) . ">";
|
197 |
+
} else
|
198 |
+
|
199 |
+
if ($value == 2)
|
200 |
+
{
|
201 |
+
echo "<img src=" . plugins_url('images/themes/'. $i .'/googleplus.png', __FILE__) . ">";
|
202 |
+
} else
|
203 |
+
|
204 |
+
if ($value == 3)
|
205 |
+
{
|
206 |
+
echo "<img src=" . plugins_url('images/themes/'. $i .'/pinterest.png', __FILE__) . ">";
|
207 |
+
} else
|
208 |
+
|
209 |
+
if ($value == 4)
|
210 |
+
{
|
211 |
+
echo "<img src=" . plugins_url('images/themes/'. $i .'/youtube.png', __FILE__) . ">";
|
212 |
+
} else
|
213 |
+
|
214 |
+
if ($value == 5)
|
215 |
+
{
|
216 |
+
echo "<img src=" . plugins_url('images/themes/'. $i .'/linkedin.png', __FILE__) . ">";
|
217 |
+
}
|
218 |
+
|
219 |
+
}
|
220 |
+
?>
|
221 |
</div>
|
222 |
</label>
|
223 |
<?php
|
226 |
// Ending The Theme List
|
227 |
?>
|
228 |
|
229 |
+
<p class="widefat" style="padding:8px;width:99%;margin-top:8px;"> <?php _e("Social Icon Size: " ); ?>
|
230 |
<select name="acx_si_icon_size">
|
231 |
<option value="16"<?php if ($acx_si_icon_size == "16") { echo 'selected="selected"'; } ?>>16px X 16px </option>
|
232 |
<option value="25"<?php if ($acx_si_icon_size == "25") { echo 'selected="selected"'; } ?>>25px X 25px </option>
|
238 |
<?php _e("Select a social icon size" ); ?>
|
239 |
</p>
|
240 |
|
241 |
+
<?php echo "<h4>" . __( 'Social Media Icon Display Order - Drag and Drop to Reorder', 'acx_si_config' ) . "</h4>"; ?>
|
242 |
+
<div class="widefat" style="padding:8px;width:99%;margin-top:8px;">
|
243 |
<div id="contentLeft">
|
244 |
<ul>
|
245 |
<?php
|
246 |
|
|
|
|
|
247 |
foreach ($social_icon_array_order as $key => $value)
|
248 |
{
|
249 |
?>
|
252 |
|
253 |
if ($value == 0)
|
254 |
{
|
255 |
+
echo "<img src=" . plugins_url('images/themes/'. $acx_si_theme .'/twitter.png', __FILE__) . "
|
256 |
+
border='0'><br> Twitter";
|
257 |
} else
|
258 |
|
259 |
|
260 |
|
261 |
if ($value == 1)
|
262 |
{
|
263 |
+
echo "<img src=" . plugins_url('images/themes/'. $acx_si_theme .'/facebook.png', __FILE__) . "
|
264 |
+
border='0'><br> Facebook";
|
265 |
} else
|
266 |
|
267 |
|
268 |
|
269 |
if ($value == 2)
|
270 |
{
|
271 |
+
echo "<img src=" . plugins_url('images/themes/'. $acx_si_theme .'/googleplus.png', __FILE__) . "
|
272 |
+
border='0'><br> Google Plus";
|
273 |
} else
|
274 |
|
275 |
|
276 |
|
277 |
if ($value == 3)
|
278 |
{
|
279 |
+
echo "<img src=" . plugins_url('images/themes/'. $acx_si_theme .'/pinterest.png', __FILE__) . "
|
280 |
+
border='0'><br> Pinterest";
|
281 |
} else
|
282 |
|
283 |
|
284 |
|
285 |
if ($value == 4)
|
286 |
{
|
287 |
+
echo "<img src=" . plugins_url('images/themes/'. $acx_si_theme .'/youtube.png', __FILE__) . "
|
288 |
+
border='0'><br> Youtube";
|
289 |
} else
|
290 |
|
291 |
|
292 |
|
293 |
if ($value == 5)
|
294 |
{
|
295 |
+
echo "<img src=" . plugins_url('images/themes/'. $acx_si_theme .'/linkedin.png', __FILE__) . "
|
296 |
+
border='0'><br> Linkedin";
|
297 |
}
|
298 |
|
299 |
?>
|
304 |
</div>
|
305 |
<div id="contentRight"></div> <!-- contentRight -->
|
306 |
<?php _e("Drag and Reorder Icons (It will automatically save on reorder)" ); ?>
|
307 |
+
</div>
|
308 |
|
309 |
<hr />
|
310 |
|
311 |
<?php echo "<h4>" . __( 'Social Media Settings', 'acx_si_config' ) . "</h4>"; ?>
|
312 |
|
313 |
+
<p class="widefat" style="padding:8px;width:99%;">
|
314 |
<?php _e("Twitter Username: " ); ?>
|
315 |
<input type="text" name="acx_si_twitter" value="<?php echo $acx_si_twitter; ?>" size="50">
|
316 |
<?php _e("<b>Eg:</b> acuraxdotcom" ); ?>
|
317 |
</p>
|
318 |
|
319 |
+
<p class="widefat" style="padding:8px;width:99%;">
|
320 |
<?php _e("Facebook Page/Profile URL: " ); ?>
|
321 |
<input type="text" name="acx_si_facebook" value="<?php echo $acx_si_facebook; ?>" size="50">
|
322 |
<?php _e("<b>Eg:</b> http://www.facebook.com/AcuraxInternational" ); ?>
|
323 |
</p>
|
324 |
|
325 |
+
<p class="widefat" style="padding:8px;width:99%;">
|
326 |
<?php _e("Google Plus URL: " ); ?>
|
327 |
<input type="text" name="acx_si_gplus" value="<?php echo $acx_si_gplus; ?>" size="50">
|
328 |
<?php _e("Enter Your Complete Google Plus Url Starting With http://" ); ?>
|
329 |
</p>
|
330 |
|
331 |
+
<p class="widefat" style="padding:8px;width:99%;">
|
332 |
<?php _e("Pinterest URL: " ); ?>
|
333 |
<input type="text" name="acx_si_pinterest" value="<?php echo $acx_si_pinterest; ?>" size="50">
|
334 |
<?php _e("Enter Your Complete Pinterest Url Starting With http://" ); ?>
|
335 |
</p>
|
336 |
|
337 |
+
<p class="widefat" style="padding:8px;width:99%;">
|
338 |
<?php _e("Youtube URL: " ); ?>
|
339 |
<input type="text" name="acx_si_youtube" value="<?php echo $acx_si_youtube; ?>" size="50">
|
340 |
<?php _e("<b>Eg:</b> http://www.youtube.com/user/acuraxdotcom" ); ?>
|
341 |
</p>
|
342 |
|
343 |
+
<p class="widefat" style="padding:8px;width:99%;">
|
344 |
<?php _e("Linkedin URL: " ); ?>
|
345 |
<input type="text" name="acx_si_linkedin" value="<?php echo $acx_si_linkedin; ?>" size="50">
|
346 |
<?php _e("<b>Eg:</b> http://www.linkedin.com/company/acurax-international" ); ?>
|
351 |
|
352 |
<?php echo "<h4>" . __( 'Other Settings', 'acx_si_config' ) . "</h4>"; ?>
|
353 |
|
354 |
+
<p class="widefat" style="padding:8px;width:99%;">
|
355 |
<?php _e("Display Mode: " ); ?>
|
356 |
|
357 |
<select name="acx_si_display">
|
358 |
+
<option value="auto"<?php if ($acx_si_display == "auto") { echo 'selected="selected"'; } ?>>Automatic Only (Will
|
359 |
+
Float) - Shortcode and PHP code will not show icons</option>
|
360 |
+
<option value="manual"<?php if ($acx_si_display == "manual") { echo 'selected="selected"'; } ?>>Manual Only
|
361 |
+
(Using Shortcode or PHP Code - Will not float)</option>
|
362 |
+
<option value="both"<?php if ($acx_si_display == "both") { echo 'selected="selected"'; } ?>>Automatic and Manual
|
363 |
+
(Shortcode/PHP will not float but Automatic will Float)</option>
|
364 |
</select>
|
365 |
|
366 |
<?php
|
367 |
$code = ' <?php DISPLAY_ACURAX_ICONS(); ?>';
|
368 |
$code_2 = ' [DISPLAY_ACURAX_ICONS]';
|
369 |
?>
|
370 |
+
<br>
|
371 |
+
If you select display mode as "Automatic Only" , it will show automatically but will not show anything for shortcode or php code, If you select as "Manual Only", It will not automatically show floating icons but you can place <?php highlight_string($code); ?> in your theme file or use the shortcode <?php highlight_string($code_2); ?>, to display the Social Icons where ever you want, If you select "Automatic and Manual", It will automatically show floating icons and will also show icons for shortcode and php code.
|
372 |
</p>
|
373 |
|
374 |
<?php if($acx_si_credit == "yes")
|
375 |
{ ?>
|
376 |
+
<p class="widefat" style="padding:8px;width:99%;">
|
377 |
<?php _e("Show Credit Link: " ); ?>
|
378 |
<select name="acx_si_credit">
|
379 |
<option value="yes"<?php if ($acx_si_credit == "yes") { echo 'selected="selected"'; } ?>>Yes, Its Okay to Show Credit Link </option>
|
391 |
</form>
|
392 |
|
393 |
<hr/>
|
394 |
+
<?php acurax_optin(); ?> <br>
|
395 |
+
<p class="widefat" style="padding:8px;width:99%;">
|
396 |
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>
|
397 |
</p>
|
398 |
</div>
|
style.css
CHANGED
@@ -4,11 +4,11 @@ position:absolute;
|
|
4 |
z-index:10000;
|
5 |
min-width: 142px;
|
6 |
}
|
7 |
-
#divBottomRight img
|
8 |
{
|
9 |
margin-left:1px;
|
10 |
}
|
11 |
-
#divBottomRight img:hover
|
12 |
{
|
13 |
opacity:0.8;
|
14 |
}
|
4 |
z-index:10000;
|
5 |
min-width: 142px;
|
6 |
}
|
7 |
+
#divBottomRight img, #acurax_si_simple img, #short_code_si_icon img
|
8 |
{
|
9 |
margin-left:1px;
|
10 |
}
|
11 |
+
#divBottomRight img:hover, #acurax_si_simple img:hover, #short_code_si_icon img:hover
|
12 |
{
|
13 |
opacity:0.8;
|
14 |
}
|
style_admin.css
CHANGED
@@ -17,9 +17,6 @@
|
|
17 |
}
|
18 |
#acx_si_theme_display
|
19 |
{
|
20 |
-
background: none repeat scroll 0 0 #EFECEC;
|
21 |
-
border-radius: 8px 8px 8px 8px;
|
22 |
-
box-shadow: 1px 1px 2px gray;
|
23 |
color: #737171;
|
24 |
display: block;
|
25 |
font-size: 12px;
|
@@ -27,7 +24,7 @@
|
|
27 |
margin-right: auto;
|
28 |
max-height: 120px;
|
29 |
overflow-y: scroll;
|
30 |
-
padding: 5px
|
31 |
text-shadow: 0 0 1px #F7F7F7;
|
32 |
width: 99%;
|
33 |
}
|
@@ -58,6 +55,7 @@ float:left;
|
|
58 |
border: 0 none;
|
59 |
margin-top: 6px;
|
60 |
width: 36px;
|
|
|
61 |
}
|
62 |
#floating-social-media-icon
|
63 |
{
|
@@ -102,12 +100,12 @@ background: url("images/plugin_page_bg.png") repeat-x scroll 0 0 #FFFFFF;
|
|
102 |
}
|
103 |
#acx_help_page .q
|
104 |
{
|
105 |
-
border-
|
106 |
color: gray;
|
107 |
font-family: arial;
|
108 |
font-size: 14px;
|
109 |
font-weight: bold;
|
110 |
-
margin-top:
|
111 |
padding-top: 5px;
|
112 |
}
|
113 |
#acx_help_page .a
|
@@ -116,7 +114,7 @@ background: url("images/plugin_page_bg.png") repeat-x scroll 0 0 #FFFFFF;
|
|
116 |
}
|
117 |
#acurax_notice
|
118 |
{
|
119 |
-
background-color: #
|
120 |
border: 1px solid #E6DB55;
|
121 |
border-radius: 5px 5px 5px 5px;
|
122 |
color: darkRed;
|
@@ -129,13 +127,6 @@ background: url("images/plugin_page_bg.png") repeat-x scroll 0 0 #FFFFFF;
|
|
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;
|
@@ -146,6 +137,7 @@ font-weight:normal;
|
|
146 |
}
|
147 |
#contentLeft li {
|
148 |
border: 1px solid #CCCCCC;
|
|
|
149 |
color: black;
|
150 |
cursor: move;
|
151 |
float: left;
|
17 |
}
|
18 |
#acx_si_theme_display
|
19 |
{
|
|
|
|
|
|
|
20 |
color: #737171;
|
21 |
display: block;
|
22 |
font-size: 12px;
|
24 |
margin-right: auto;
|
25 |
max-height: 120px;
|
26 |
overflow-y: scroll;
|
27 |
+
padding: 5px 7px 10px;
|
28 |
text-shadow: 0 0 1px #F7F7F7;
|
29 |
width: 99%;
|
30 |
}
|
55 |
border: 0 none;
|
56 |
margin-top: 6px;
|
57 |
width: 36px;
|
58 |
+
margin-left:1px;
|
59 |
}
|
60 |
#floating-social-media-icon
|
61 |
{
|
100 |
}
|
101 |
#acx_help_page .q
|
102 |
{
|
103 |
+
border-bottom: 1px dotted lightgray;
|
104 |
color: gray;
|
105 |
font-family: arial;
|
106 |
font-size: 14px;
|
107 |
font-weight: bold;
|
108 |
+
margin-top: 50px;
|
109 |
padding-top: 5px;
|
110 |
}
|
111 |
#acx_help_page .a
|
114 |
}
|
115 |
#acurax_notice
|
116 |
{
|
117 |
+
background-color: #FFEBE8;
|
118 |
border: 1px solid #E6DB55;
|
119 |
border-radius: 5px 5px 5px 5px;
|
120 |
color: darkRed;
|
127 |
{
|
128 |
font-weight:normal;
|
129 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
#contentLeft ul{
|
131 |
display: inline-block;
|
132 |
list-style: none outside none;
|
137 |
}
|
138 |
#contentLeft li {
|
139 |
border: 1px solid #CCCCCC;
|
140 |
+
background:white;
|
141 |
color: black;
|
142 |
cursor: move;
|
143 |
float: left;
|