Version Description
- Issue of window.onscroll function overriding and breaking other plugins/themes fixed
Download this release
Release Info
Developer | socialdude |
Plugin | Social Media Share Buttons & Social Sharing Icons |
Version | 2.0.1 |
Comparing to | |
See all releases |
Code changes from version 2.0.0 to 2.0.1
- css/sfsi-admin-style.css +10 -1
- images/questionmark.png +0 -0
- js/custom-admin.js +16 -1
- js/custom-form.js +10 -1
- js/custom.js +23 -5
- libs/sfsi_install_uninstall.php +1 -1
- readme.txt +5 -2
- ultimate_social_media_icons.php +208 -3
- views/sfsi_option_view1.php +2 -0
- views/sfsi_option_view2.php +3 -0
- views/sfsi_option_view3.php +2 -0
- views/sfsi_option_view4.php +3 -0
- views/sfsi_option_view5.php +3 -0
- views/sfsi_option_view6.php +2 -0
- views/sfsi_option_view7.php +3 -0
- views/sfsi_option_view8.php +3 -0
- views/sfsi_options_view.php +2 -0
- views/sfsi_question3.php +3 -0
css/sfsi-admin-style.css
CHANGED
@@ -2077,4 +2077,13 @@ h2.optional { float: left;clear: both;margin-top: 25px !important; }
|
|
2077 |
.tab9 .sfsi_flicnsoptn3{font-size: 18px !important;min-width: 113px !important; margin: 60px 0px 0 10px !important;width: auto !important;}
|
2078 |
.tab9 .sfsi_position_divider { margin-left: 0px !important; }
|
2079 |
}
|
2080 |
-
/************************************ Question 3-> Where shall they be displayed? CSS CLOSES *************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2077 |
.tab9 .sfsi_flicnsoptn3{font-size: 18px !important;min-width: 113px !important; margin: 60px 0px 0 10px !important;width: auto !important;}
|
2078 |
.tab9 .sfsi_position_divider { margin-left: 0px !important; }
|
2079 |
}
|
2080 |
+
/************************************ Question 3-> Where shall they be displayed? CSS CLOSES *************************/
|
2081 |
+
|
2082 |
+
/* Link to support forum left of every Save button */
|
2083 |
+
.ui-accordion .ui-accordion-content { position: relative; }
|
2084 |
+
.sfsi_askforhelp { float: left;width: 32%;position: absolute;bottom: 30px;}
|
2085 |
+
.sfsi_askforhelp img { float: left;width: 35px;height: 35px;vertical-align: middle; }
|
2086 |
+
.sfsi_askforhelp span { float: left;margin-left: 6px;margin-top: 8px;}
|
2087 |
+
.askhelpInview2 { bottom: 25px; }
|
2088 |
+
.askhelpInview3 { bottom: 51px; }
|
2089 |
+
.askhelpInview7 { bottom: 50px; }
|
images/questionmark.png
ADDED
Binary file
|
js/custom-admin.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
|
2 |
var s = 1;
|
3 |
SFSI("ul.icn_listing li.custom").each(function() {
|
4 |
SFSI(this).children("span.custom-txt").html("Custom " + s), s++;
|
@@ -1666,6 +1666,21 @@ function create_suscriber_form()
|
|
1666 |
var global_error = 0;
|
1667 |
|
1668 |
SFSI(document).ready(function(s) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1669 |
//changes done {Monad}
|
1670 |
SFSI(".tab_3_icns").on("click", ".cstomskins_upload", function() {
|
1671 |
SFSI(".cstmskins-overlay").show("slow", function() {
|
1 |
+
function sfsi_update_index(){
|
2 |
var s = 1;
|
3 |
SFSI("ul.icn_listing li.custom").each(function() {
|
4 |
SFSI(this).children("span.custom-txt").html("Custom " + s), s++;
|
1666 |
var global_error = 0;
|
1667 |
|
1668 |
SFSI(document).ready(function(s) {
|
1669 |
+
|
1670 |
+
SFSI(document).on("click", ".sfsi-notice-dismiss", function(){
|
1671 |
+
|
1672 |
+
SFSI.ajax({
|
1673 |
+
url:ajax_object.ajax_url,
|
1674 |
+
type:"post",
|
1675 |
+
data:{action: "sfsi_dismiss_lang_notice"},
|
1676 |
+
success:function(e) {
|
1677 |
+
if(false != e){
|
1678 |
+
SFSI(".sfsi-notice-dismiss").parent().remove();
|
1679 |
+
}
|
1680 |
+
}
|
1681 |
+
});
|
1682 |
+
});
|
1683 |
+
|
1684 |
//changes done {Monad}
|
1685 |
SFSI(".tab_3_icns").on("click", ".cstomskins_upload", function() {
|
1686 |
SFSI(".cstmskins-overlay").show("slow", function() {
|
js/custom-form.js
CHANGED
@@ -141,4 +141,13 @@ var Custom = {
|
|
141 |
}
|
142 |
}
|
143 |
}
|
144 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
}
|
142 |
}
|
143 |
}
|
144 |
+
|
145 |
+
var prev_onload = window.onload;
|
146 |
+
|
147 |
+
|
148 |
+
if('function' === typeof prev_onload){
|
149 |
+
prev_onload(),Custom.init();
|
150 |
+
}
|
151 |
+
else{
|
152 |
+
Custom.init();
|
153 |
+
}
|
js/custom.js
CHANGED
@@ -68,17 +68,20 @@ function sfsi_stick_widget(s) {
|
|
68 |
}
|
69 |
|
70 |
function sfsi_float_widget(s) {
|
|
|
71 |
function i() {
|
72 |
r = "Microsoft Internet Explorer" === navigator.appName ? a - document.documentElement.scrollTop :a - window.pageYOffset,
|
73 |
Math.abs(r) > 0 ? (window.removeEventListener("scroll", i), a -= r * o, SFSI("#sfsi_floater").css({
|
74 |
top:(a + t).toString() + "px"
|
75 |
}), setTimeout(i, n)) :window.addEventListener("scroll", i, !1);
|
76 |
}
|
|
|
77 |
function e() {
|
78 |
var documentheight = SFSI("#sfsi_floater").attr("data-top");
|
79 |
-
var fltrhght
|
80 |
-
var fltrtp
|
81 |
-
|
|
|
82 |
{
|
83 |
window.addEventListener("scroll", i, !1);
|
84 |
}
|
@@ -88,9 +91,10 @@ function sfsi_float_widget(s) {
|
|
88 |
SFSI("#sfsi_floater").css("top",documentheight+"px");
|
89 |
}
|
90 |
}
|
|
|
91 |
if ("center" == s)
|
92 |
{
|
93 |
-
var t = (
|
94 |
}
|
95 |
else if ("bottom" == s)
|
96 |
{
|
@@ -100,10 +104,24 @@ function sfsi_float_widget(s) {
|
|
100 |
{
|
101 |
var t = parseInt(s);
|
102 |
}
|
|
|
103 |
var n = 50, o = .1, a = 0, r = 0;
|
104 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
}
|
106 |
|
|
|
107 |
function sfsi_shuffle() {
|
108 |
var s = [];
|
109 |
SFSI(".sfsi_wicons ").each(function(i) {
|
68 |
}
|
69 |
|
70 |
function sfsi_float_widget(s) {
|
71 |
+
|
72 |
function i() {
|
73 |
r = "Microsoft Internet Explorer" === navigator.appName ? a - document.documentElement.scrollTop :a - window.pageYOffset,
|
74 |
Math.abs(r) > 0 ? (window.removeEventListener("scroll", i), a -= r * o, SFSI("#sfsi_floater").css({
|
75 |
top:(a + t).toString() + "px"
|
76 |
}), setTimeout(i, n)) :window.addEventListener("scroll", i, !1);
|
77 |
}
|
78 |
+
|
79 |
function e() {
|
80 |
var documentheight = SFSI("#sfsi_floater").attr("data-top");
|
81 |
+
var fltrhght = parseInt(SFSI("#sfsi_floater").height());
|
82 |
+
var fltrtp = parseInt(SFSI("#sfsi_floater").css("top"));
|
83 |
+
|
84 |
+
if(parseInt(fltrhght)+parseInt(fltrtp) <=documentheight)
|
85 |
{
|
86 |
window.addEventListener("scroll", i, !1);
|
87 |
}
|
91 |
SFSI("#sfsi_floater").css("top",documentheight+"px");
|
92 |
}
|
93 |
}
|
94 |
+
|
95 |
if ("center" == s)
|
96 |
{
|
97 |
+
var t = ( SFSI(window).height() - SFSI("#sfsi_floater").height() ) / 2;
|
98 |
}
|
99 |
else if ("bottom" == s)
|
100 |
{
|
104 |
{
|
105 |
var t = parseInt(s);
|
106 |
}
|
107 |
+
|
108 |
var n = 50, o = .1, a = 0, r = 0;
|
109 |
+
SFSI("#sfsi_floater");
|
110 |
+
|
111 |
+
var prev_onscroll = window.onscroll;
|
112 |
+
|
113 |
+
window.onscroll = function() {
|
114 |
+
|
115 |
+
if('function' === typeof prev_onload){
|
116 |
+
prev_onload(),e();
|
117 |
+
}
|
118 |
+
else{
|
119 |
+
e();
|
120 |
+
}
|
121 |
+
}
|
122 |
}
|
123 |
|
124 |
+
|
125 |
function sfsi_shuffle() {
|
126 |
var s = [];
|
127 |
SFSI(".sfsi_wicons ").each(function(i) {
|
libs/sfsi_install_uninstall.php
CHANGED
@@ -12,7 +12,7 @@ function sfsi_update_plugin()
|
|
12 |
}
|
13 |
|
14 |
//Install version
|
15 |
-
update_option("sfsi_pluginVersion", "2.
|
16 |
|
17 |
if(!get_option('sfsi_serverphpVersionnotification'))
|
18 |
{
|
12 |
}
|
13 |
|
14 |
//Install version
|
15 |
+
update_option("sfsi_pluginVersion", "2.01");
|
16 |
|
17 |
if(!get_option('sfsi_serverphpVersionnotification'))
|
18 |
{
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: socialdude
|
|
3 |
Tags: social media, share, buttons, social widget, icons, share icons, share buttons, sharing icons, sharing buttons, social share, sharing, social sharing
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 4.9.4
|
6 |
-
Stable tag: 2.0.
|
7 |
License: GPLv2
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -275,6 +275,9 @@ You cannot use the same plugin twice, however you can install both the USM as we
|
|
275 |
|
276 |
== Changelog ==
|
277 |
|
|
|
|
|
|
|
278 |
= 2.0.0 =
|
279 |
* New question 3 to facilitate placement of icons
|
280 |
|
@@ -699,5 +702,5 @@ You cannot use the same plugin twice, however you can install both the USM as we
|
|
699 |
|
700 |
== Upgrade Notice ==
|
701 |
|
702 |
-
= 2.0.
|
703 |
Please upgrade
|
3 |
Tags: social media, share, buttons, social widget, icons, share icons, share buttons, sharing icons, sharing buttons, social share, sharing, social sharing
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 4.9.4
|
6 |
+
Stable tag: 2.0.1
|
7 |
License: GPLv2
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
275 |
|
276 |
== Changelog ==
|
277 |
|
278 |
+
= 2.0.1 =
|
279 |
+
* Issue of window.onscroll function overriding and breaking other plugins/themes fixed
|
280 |
+
|
281 |
= 2.0.0 =
|
282 |
* New question 3 to facilitate placement of icons
|
283 |
|
702 |
|
703 |
== Upgrade Notice ==
|
704 |
|
705 |
+
= 2.0.1 =
|
706 |
Please upgrade
|
ultimate_social_media_icons.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://ultimatelysocial.com
|
|
5 |
Description: Easy to use and 100% FREE social media plugin which adds social media icons to your website with tons of customization features!.
|
6 |
Author: UltimatelySocial
|
7 |
Author URI: http://ultimatelysocial.com
|
8 |
-
Version: 2.0.
|
9 |
License: GPLv2 or later
|
10 |
*/
|
11 |
|
@@ -55,7 +55,7 @@ register_activation_hook(__FILE__, 'sfsi_activate_plugin' );
|
|
55 |
register_deactivation_hook(__FILE__, 'sfsi_deactivate_plugin');
|
56 |
register_uninstall_hook(__FILE__, 'sfsi_Unistall_plugin');
|
57 |
|
58 |
-
if(!get_option('sfsi_pluginVersion') || get_option('sfsi_pluginVersion') < 2.
|
59 |
{
|
60 |
add_action("init", "sfsi_update_plugin");
|
61 |
}
|
@@ -774,4 +774,209 @@ function _is_curl_installed(){
|
|
774 |
else{
|
775 |
return false;
|
776 |
}
|
777 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
Description: Easy to use and 100% FREE social media plugin which adds social media icons to your website with tons of customization features!.
|
6 |
Author: UltimatelySocial
|
7 |
Author URI: http://ultimatelysocial.com
|
8 |
+
Version: 2.0.1
|
9 |
License: GPLv2 or later
|
10 |
*/
|
11 |
|
55 |
register_deactivation_hook(__FILE__, 'sfsi_deactivate_plugin');
|
56 |
register_uninstall_hook(__FILE__, 'sfsi_Unistall_plugin');
|
57 |
|
58 |
+
if(!get_option('sfsi_pluginVersion') || get_option('sfsi_pluginVersion') < 2.01)
|
59 |
{
|
60 |
add_action("init", "sfsi_update_plugin");
|
61 |
}
|
774 |
else{
|
775 |
return false;
|
776 |
}
|
777 |
+
}
|
778 |
+
|
779 |
+
// ********************************* Link to support forum for different languages STARTS *******************************//
|
780 |
+
|
781 |
+
function sfsi_get_language_notice_text(){
|
782 |
+
|
783 |
+
$currLang = get_locale();
|
784 |
+
$text = '';
|
785 |
+
|
786 |
+
switch ($currLang) {
|
787 |
+
|
788 |
+
// Arabic
|
789 |
+
case 'ar':
|
790 |
+
|
791 |
+
$text = "hal tatakalam alearabia? 'iidha kanat ladayk 'asyilat hawl almukawan al'iidafii l Ultimate Social Media , aitruh sualik fi muntadaa aldaem , sanuhawil alrada biallughat alearabiat: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'><b>'unqur huna</b></a>";
|
792 |
+
break;
|
793 |
+
|
794 |
+
// Chinese - simplified
|
795 |
+
case 'zh-Hans':
|
796 |
+
|
797 |
+
$text = "你会说中文吗?如果您有关于Ultimate Social Media插件的问题,请在支持论坛中提出您的问题,我们将尝试用中文回复:<a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'><b>点击此处</b></a>";
|
798 |
+
break;
|
799 |
+
|
800 |
+
// Chinese - traditional
|
801 |
+
case 'zh-Hant':
|
802 |
+
|
803 |
+
$text = "你會說中文嗎?如果您有關於Ultimate Social Media插件的問題,請在支持論壇中提出您的問題,我們將嘗試用中文回复:<a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'><b>點擊此處</b></a>";
|
804 |
+
break;
|
805 |
+
|
806 |
+
// Dutch, Dutch (Belgium)
|
807 |
+
case 'nl_NL': case 'nl_BE':
|
808 |
+
$text = "Jij spreekt Nederlands? Als je vragen hebt over de Ultimate Social Media-plug-in, stel je vraag in het ondersteuningsforum, we zullen proberen in het Nederlands te antwoorden: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>klik hier</a>";
|
809 |
+
break;
|
810 |
+
|
811 |
+
// French (Belgium), French (France)
|
812 |
+
case 'fr_BE': case 'fr_FR':
|
813 |
+
|
814 |
+
$text = "Vous parlez français? Si vous avez des questions sur le plugin Ultimate Social Media, posez votre question sur le forum de support, nous essaierons de répondre en français: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>Cliquez ici</a>";
|
815 |
+
break;
|
816 |
+
|
817 |
+
// German, German (Switzerland)
|
818 |
+
case 'de': case 'de_CH':
|
819 |
+
|
820 |
+
$text = "Du sprichst Deutsch? Wenn Du Fragen zum Ultimate Social Media-Plugins hast, einfach im Support Forum fragen. Wir antworten auch auf Deutsch! <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>Klicke hier</a>";
|
821 |
+
break;
|
822 |
+
|
823 |
+
// Greek
|
824 |
+
case 'el':
|
825 |
+
|
826 |
+
$text = "Μιλάτε Ελληνικά? Αν έχετε ερωτήσεις σχετικά με το plugin Ultimate Social Media, ρωτήστε την ερώτησή σας στο φόρουμ υποστήριξης, θα προσπαθήσουμε να απαντήσουμε στα ελληνικά: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>Κάντε κλικ εδώ</a>";
|
827 |
+
break;
|
828 |
+
|
829 |
+
// Hebrew
|
830 |
+
case 'he_IL':
|
831 |
+
|
832 |
+
$text = "אתה מדבר עברית? אם יש לך שאלות על תוסף המדיה החברתית האולטימטיבית, שאל את השאלה שלך בפורום התמיכה, ננסה לענות בעברית: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>לחץ כאן</a>";
|
833 |
+
break;
|
834 |
+
|
835 |
+
// Hindi
|
836 |
+
case 'hi_IN':
|
837 |
+
|
838 |
+
$text = "आप हिंदी बोलते हो? यदि आपके पास अल्टीमेट सोशल मीडिया प्लगइन के बारे में कोई प्रश्न है, तो समर्थन फोरम में अपना प्रश्न पूछें, हम हिंदी में जवाब देने का प्रयास करेंगे: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>यहां क्लिक करें</a>";
|
839 |
+
break;
|
840 |
+
|
841 |
+
// Indonesian
|
842 |
+
case 'id':
|
843 |
+
|
844 |
+
$text = "Anda berbicara bahasa Indonesia? Jika Anda memiliki pertanyaan tentang plugin Ultimate Social Media, ajukan pertanyaan Anda di Forum Dukungan, kami akan mencoba menjawab dalam Bahasa Indonesia: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>Klik di sini</a>";
|
845 |
+
|
846 |
+
break;
|
847 |
+
|
848 |
+
// Italian
|
849 |
+
case 'it_IT':
|
850 |
+
|
851 |
+
$text = "Tu parli italiano? Se hai domande sul plugin Ultimate Social Media, fai la tua domanda nel Forum di supporto, cercheremo di rispondere in italiano: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>clicca qui</a>";
|
852 |
+
|
853 |
+
break;
|
854 |
+
|
855 |
+
// Japanese
|
856 |
+
case 'ja':
|
857 |
+
|
858 |
+
$text = "あなたは日本語を話しますか?アルティメットソーシャルメディアのプラグインに関する質問がある場合は、サポートフォーラムで質問してください。日本語で対応しようと思っています:<a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>ここをクリック</a>";
|
859 |
+
|
860 |
+
break;
|
861 |
+
|
862 |
+
// Korean
|
863 |
+
case 'ko_KR ':
|
864 |
+
|
865 |
+
$text = "한국어를 할 줄 아세요? 궁극적 인 소셜 미디어 플러그인에 대해 궁금한 점이 있으면 지원 포럼에서 질문하십시오. 한국어로 답변하려고합니다 : <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>여기를 클릭하십시오.</a>";
|
866 |
+
|
867 |
+
break;
|
868 |
+
|
869 |
+
// Persian, Persian (Afghanistan)
|
870 |
+
case 'fa_IR':case 'fa_AF':
|
871 |
+
|
872 |
+
$text = "شما فارسی صحبت می کنید؟ اگر سوالی در مورد پلاگین رسانه Ultimate Social دارید، سوال خود را در انجمن پشتیبانی بپرسید، سعی خواهیم کرد به فارسی پاسخ دهید: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>اینجا را کلیک کنید</a>";
|
873 |
+
|
874 |
+
break;
|
875 |
+
|
876 |
+
// Polish
|
877 |
+
|
878 |
+
case 'pl_PL':
|
879 |
+
$text = "Mówisz po polsku? Jeśli masz pytania dotyczące wtyczki Ultimate Social Media, zadaj pytanie na Forum pomocy technicznej, postaramy się odpowiedzieć po polsku: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>Kliknij tutaj</a>";
|
880 |
+
break;
|
881 |
+
|
882 |
+
//Portuguese (Brazil), Portuguese (Portugal)
|
883 |
+
|
884 |
+
case 'pt_BR': case 'pt_PT':
|
885 |
+
|
886 |
+
$text = "Você fala português? Se você tiver dúvidas sobre o plug-in Ultimate Social Media, faça sua pergunta no Fórum de suporte, tentaremos responder em português: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>Clique aqui</a>";
|
887 |
+
|
888 |
+
break;
|
889 |
+
|
890 |
+
// Russian, Russian (Ukraine)
|
891 |
+
case 'ru_RU': case 'ru_UA':
|
892 |
+
|
893 |
+
$text = "Ты говоришь по-русски? Если у вас есть вопросы о плагине Ultimate Social Media, задайте свой вопрос в форуме поддержки, мы постараемся ответить на русский: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>Нажмите здесь</a>";
|
894 |
+
|
895 |
+
break;
|
896 |
+
|
897 |
+
/* Spanish (Argentina), Spanish (Chile), Spanish (Colombia), Spanish (Mexico),
|
898 |
+
Spanish (Peru), Spanish (Puerto Rico), Spanish (Spain), Spanish (Venezuela) */
|
899 |
+
|
900 |
+
case 'es_AR': case 'es_CL': case 'es_CO': case 'es_MX':case 'es_PE':case 'es_PR':
|
901 |
+
case 'es_ES': case 'es_VE':
|
902 |
+
|
903 |
+
$text = "¿Tu hablas español? Si tiene alguna pregunta sobre el complemento Ultimate Social Media, formule su pregunta en el foro de soporte, intentaremos responder en español: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>haga clic aquí</a>";
|
904 |
+
break;
|
905 |
+
|
906 |
+
// Swedish
|
907 |
+
|
908 |
+
case 'sv_SE':
|
909 |
+
|
910 |
+
$text = "Pratar du svenska? Om du har frågor om programmet Ultimate Social Media, fråga din fråga i supportforumet, vi försöker svara på svenska: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>Klicka här</a>";
|
911 |
+
break;
|
912 |
+
|
913 |
+
// Turkish
|
914 |
+
|
915 |
+
case 'tr_TR':
|
916 |
+
$text = "Sen Türkçe konuş? Nihai Sosyal Medya eklentisi hakkında sorularınız varsa, sorunuza Destek Forumu'nda sorun, Türkçe olarak cevap vermeye çalışacağız: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>Tıklayın</a>";
|
917 |
+
break;
|
918 |
+
|
919 |
+
// Ukrainian
|
920 |
+
|
921 |
+
case 'uk':
|
922 |
+
$text = "Ви говорите по-українськи? Якщо у вас є запитання про плагін Ultimate Social Media, задайте своє питання на Форумі підтримки, ми спробуємо відповісти українською: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>натисніть тут</a>";
|
923 |
+
break;
|
924 |
+
|
925 |
+
// Vietnamese
|
926 |
+
|
927 |
+
case 'vi':
|
928 |
+
$text = "Bạn nói tiếng việt không Nếu bạn có câu hỏi về plugin Ultimate Social Media, hãy đặt câu hỏi của bạn trong Diễn đàn hỗ trợ, chúng tôi sẽ cố gắng trả lời bằng tiếng Việt: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>Nhấp vào đây</a>";
|
929 |
+
break;
|
930 |
+
}
|
931 |
+
|
932 |
+
return $text;
|
933 |
+
}
|
934 |
+
|
935 |
+
function sfsi_language_notice(){
|
936 |
+
|
937 |
+
if (isset($_GET['page']) && "sfsi-options" == $_GET['page']) :
|
938 |
+
|
939 |
+
$langText = sfsi_get_language_notice_text();
|
940 |
+
$isDismissed = get_option('sfsi_lang_notice_dismissed');
|
941 |
+
|
942 |
+
if(!empty($langText) && false == $isDismissed) { ?>
|
943 |
+
|
944 |
+
<div id="sfsi_plus_langnotice" class="notice notice-info">
|
945 |
+
|
946 |
+
<p><?php echo $langText; ?></p>
|
947 |
+
|
948 |
+
<button type="button" class="sfsi-notice-dismiss notice-dismiss"></button>
|
949 |
+
|
950 |
+
</div>
|
951 |
+
|
952 |
+
<?php } ?>
|
953 |
+
|
954 |
+
<?php endif;
|
955 |
+
}
|
956 |
+
|
957 |
+
|
958 |
+
function sfsi_dismiss_lang_notice(){
|
959 |
+
echo update_option('sfsi_lang_notice_dismissed',true) ? "true" : "false";
|
960 |
+
die;
|
961 |
+
}
|
962 |
+
|
963 |
+
add_action( 'wp_ajax_sfsi_dismiss_lang_notice', 'sfsi_dismiss_lang_notice' );
|
964 |
+
|
965 |
+
// ********************************* Link to support forum for different languages CLOSES *******************************//
|
966 |
+
|
967 |
+
|
968 |
+
// ********************************* Link to support forum left of every Save button STARTS *******************************//
|
969 |
+
|
970 |
+
function sfsi_ask_for_help($viewNumber){ ?>
|
971 |
+
|
972 |
+
<div class="sfsi_askforhelp askhelpInview<?php echo $viewNumber; ?>">
|
973 |
+
|
974 |
+
<img src="<?php echo SFSI_PLUGURL."images/questionmark.png"?>"/>
|
975 |
+
|
976 |
+
<span>Questions? <a target="_blank" href="https://goo.gl/ctiyJM"><b>Ask us</b></a> — we will respond asap!</span>
|
977 |
+
|
978 |
+
</div>
|
979 |
+
|
980 |
+
<?php }
|
981 |
+
|
982 |
+
// ********************************* Link to support forum left of every Save button CLOSES *******************************//
|
views/sfsi_option_view1.php
CHANGED
@@ -393,6 +393,8 @@
|
|
393 |
<input type="hidden" value="<?php echo SFSI_PLUGURL ?>" id="plugin_url" />
|
394 |
<input type="hidden" value="" id="upload_id" />
|
395 |
|
|
|
|
|
396 |
<!-- SAVE BUTTON SECTION -->
|
397 |
<div class="save_button tab_1_sav">
|
398 |
<img src="<?php echo SFSI_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
|
393 |
<input type="hidden" value="<?php echo SFSI_PLUGURL ?>" id="plugin_url" />
|
394 |
<input type="hidden" value="" id="upload_id" />
|
395 |
|
396 |
+
<?php sfsi_ask_for_help(1); ?>
|
397 |
+
|
398 |
<!-- SAVE BUTTON SECTION -->
|
399 |
<div class="save_button tab_1_sav">
|
400 |
<img src="<?php echo SFSI_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
|
views/sfsi_option_view2.php
CHANGED
@@ -414,6 +414,9 @@ if("id"== $option2['sfsi_youtubeusernameorid'] && isset($option2['sfsi_youtubeus
|
|
414 |
</div>
|
415 |
</div>
|
416 |
<!-- END Custom icon section here -->
|
|
|
|
|
|
|
417 |
|
418 |
<!-- SAVE BUTTON SECTION -->
|
419 |
<div class="save_button tab_2_sav">
|
414 |
</div>
|
415 |
</div>
|
416 |
<!-- END Custom icon section here -->
|
417 |
+
|
418 |
+
<?php sfsi_ask_for_help(2); ?>
|
419 |
+
|
420 |
|
421 |
<!-- SAVE BUTTON SECTION -->
|
422 |
<div class="save_button tab_2_sav">
|
views/sfsi_option_view3.php
CHANGED
@@ -321,6 +321,8 @@ $option3['sfsi_shuffle_intervalTime'] = (isset($option3['sfsi_shuffle_intervalT
|
|
321 |
<!--END icon Animation section start -->
|
322 |
</div>
|
323 |
|
|
|
|
|
324 |
<!-- SAVE BUTTON SECTION -->
|
325 |
<div class="save_button tab_3_sav">
|
326 |
<img src="<?php echo SFSI_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
|
321 |
<!--END icon Animation section start -->
|
322 |
</div>
|
323 |
|
324 |
+
<?php sfsi_ask_for_help(3); ?>
|
325 |
+
|
326 |
<!-- SAVE BUTTON SECTION -->
|
327 |
<div class="save_button tab_3_sav">
|
328 |
<img src="<?php echo SFSI_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
|
views/sfsi_option_view4.php
CHANGED
@@ -610,6 +610,9 @@ $hide="display:none;";
|
|
610 |
</div>
|
611 |
<!-- END show/hide counts for all icons section -->
|
612 |
|
|
|
|
|
|
|
613 |
<!-- SAVE BUTTON SECTION -->
|
614 |
<div class="save_button">
|
615 |
<img src="<?php echo SFSI_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
|
610 |
</div>
|
611 |
<!-- END show/hide counts for all icons section -->
|
612 |
|
613 |
+
<?php sfsi_ask_for_help(4); ?>
|
614 |
+
|
615 |
+
|
616 |
<!-- SAVE BUTTON SECTION -->
|
617 |
<div class="save_button">
|
618 |
<img src="<?php echo SFSI_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
|
views/sfsi_option_view5.php
CHANGED
@@ -455,6 +455,9 @@ here what text will be displayed if a user moves his mouse over the icon:
|
|
455 |
</div>
|
456 |
<!-- END mouse over text section -->
|
457 |
|
|
|
|
|
|
|
458 |
<!-- SAVE BUTTON SECTION -->
|
459 |
<div class="save_button">
|
460 |
<img src="<?php echo SFSI_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
|
455 |
</div>
|
456 |
<!-- END mouse over text section -->
|
457 |
|
458 |
+
<?php sfsi_ask_for_help(5); ?>
|
459 |
+
|
460 |
+
|
461 |
<!-- SAVE BUTTON SECTION -->
|
462 |
<div class="save_button">
|
463 |
<img src="<?php echo SFSI_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
|
views/sfsi_option_view6.php
CHANGED
@@ -157,6 +157,8 @@ if(!isset($option6['sfsi_rectfbshare']))
|
|
157 |
<p><b>New:</b> In our Premium Plugin you have many more placement options, e.g. place the icons you selected under question 1, place them also on your homepage (instead of only post’s pages), place them before posts (instead of only after posts) etc. <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=more_placement_options&utm_medium=banner" target="_blank">See all features</a></p>
|
158 |
</div>
|
159 |
|
|
|
|
|
160 |
<!-- SAVE BUTTON SECTION -->
|
161 |
<div class="save_button">
|
162 |
<img src="<?php echo SFSI_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
|
157 |
<p><b>New:</b> In our Premium Plugin you have many more placement options, e.g. place the icons you selected under question 1, place them also on your homepage (instead of only post’s pages), place them before posts (instead of only after posts) etc. <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=more_placement_options&utm_medium=banner" target="_blank">See all features</a></p>
|
158 |
</div>
|
159 |
|
160 |
+
<?php sfsi_ask_for_help(6); ?>
|
161 |
+
|
162 |
<!-- SAVE BUTTON SECTION -->
|
163 |
<div class="save_button">
|
164 |
<img src="<?php echo SFSI_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
|
views/sfsi_option_view7.php
CHANGED
@@ -240,6 +240,9 @@ $option7['sfsi_Shown_popupOnceTime'] = (isset($option7['sfsi_Shown_popupOnceTim
|
|
240 |
</div>
|
241 |
|
242 |
</div>
|
|
|
|
|
|
|
243 |
<!-- SAVE BUTTON SECTION -->
|
244 |
<div class="save_button">
|
245 |
<img src="<?php echo SFSI_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
|
240 |
</div>
|
241 |
|
242 |
</div>
|
243 |
+
|
244 |
+
<?php sfsi_ask_for_help(7); ?>
|
245 |
+
|
246 |
<!-- SAVE BUTTON SECTION -->
|
247 |
<div class="save_button">
|
248 |
<img src="<?php echo SFSI_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
|
views/sfsi_option_view8.php
CHANGED
@@ -406,6 +406,9 @@ $option8['sfsi_form_button_background'] = (isset($option8['sfsi_form_button_back
|
|
406 |
<!--Section End-->
|
407 |
</div>
|
408 |
|
|
|
|
|
|
|
409 |
<!-- SAVE BUTTON SECTION -->
|
410 |
<div class="save_button">
|
411 |
<img src="<?php echo SFSI_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
|
406 |
<!--Section End-->
|
407 |
</div>
|
408 |
|
409 |
+
<?php sfsi_ask_for_help(8); ?>
|
410 |
+
|
411 |
+
|
412 |
<!-- SAVE BUTTON SECTION -->
|
413 |
<div class="save_button">
|
414 |
<img src="<?php echo SFSI_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
|
views/sfsi_options_view.php
CHANGED
@@ -12,6 +12,8 @@
|
|
12 |
<!-- START Admin view for plugin-->
|
13 |
<div class="wapper sfsi_mainContainer">
|
14 |
|
|
|
|
|
15 |
<!-- Get notification bar-->
|
16 |
<?php if(get_option("show_new_notification") == "yes") { ?>
|
17 |
<script type="text/javascript">
|
12 |
<!-- START Admin view for plugin-->
|
13 |
<div class="wapper sfsi_mainContainer">
|
14 |
|
15 |
+
<?php sfsi_language_notice(); ?>
|
16 |
+
|
17 |
<!-- Get notification bar-->
|
18 |
<?php if(get_option("show_new_notification") == "yes") { ?>
|
19 |
<script type="text/javascript">
|
views/sfsi_question3.php
CHANGED
@@ -31,6 +31,9 @@
|
|
31 |
In the Premium Plugin you can also <b>exclude icons</b> from showing on certain pages. <a target="_blank" href="https://www.ultimatelysocial.com/usm-premium/"><b>See all features</b></a>
|
32 |
</p>
|
33 |
|
|
|
|
|
|
|
34 |
|
35 |
<!-- SAVE BUTTON SECTION -->
|
36 |
<div class="save_button">
|
31 |
In the Premium Plugin you can also <b>exclude icons</b> from showing on certain pages. <a target="_blank" href="https://www.ultimatelysocial.com/usm-premium/"><b>See all features</b></a>
|
32 |
</p>
|
33 |
|
34 |
+
|
35 |
+
<?php sfsi_ask_for_help(9); ?>
|
36 |
+
|
37 |
|
38 |
<!-- SAVE BUTTON SECTION -->
|
39 |
<div class="save_button">
|