Version Description
- Solved: Email validation for Offline chat.
- Solved: Premium notification breaking the dashboard structure.
- Solved: changed option for linkedin count.
- Solved: ajax_object conflict with themes.
Download this release
Release Info
Developer | socialdude |
Plugin | Social Media Share Buttons & Social Sharing Icons |
Version | 2.1.4 |
Comparing to | |
See all releases |
Code changes from version 2.1.2 to 2.1.4
- css/sfsi-style.css +6 -5
- images/Chat_with_us_bar.svg +0 -1
- js/custom-admin.js +43 -25
- js/custom.js +4 -4
- libs/controllers/sfsi_buttons_controller.php +92 -2
- libs/controllers/sfsi_class_theme_check.php +188 -2
- libs/controllers/sfsi_socialhelper.php +86 -64
- libs/sfsi_Init_JqueryCss.php +4 -4
- libs/sfsi_install_uninstall.php +99 -105
- libs/sfsi_widget.php +6 -11
- readme.txt +8 -3
- ultimate_social_media_icons.php +22 -25
- views/sfsi_chat_on_admin_pannel.php +2 -2
- views/sfsi_option_view2.php +2 -2
- views/sfsi_option_view8.php +1 -1
- views/sfsi_options_view.php +1 -1
- views/sfsi_pop_content.php +3 -3
css/sfsi-style.css
CHANGED
@@ -1395,14 +1395,14 @@ h2.optional {
|
|
1395 |
overflow: hidden;
|
1396 |
}
|
1397 |
.fb_tool_bdr .sfsi_inside .icon1 {
|
1398 |
-
margin:
|
1399 |
height: 28px;
|
1400 |
display: inline-block;
|
1401 |
float: none;
|
1402 |
width: 62px;
|
1403 |
}
|
1404 |
.fb_tool_bdr .sfsi_inside .icon2 {
|
1405 |
-
margin: 2px 0 2px 0 ;
|
1406 |
height: 20px;
|
1407 |
width: 49px;
|
1408 |
display: inline-block;
|
@@ -1508,7 +1508,7 @@ h2.optional {
|
|
1508 |
float: left;
|
1509 |
}
|
1510 |
.twt_tool_bdr .sfsi_inside .icon1 {
|
1511 |
-
margin: -4px 0
|
1512 |
display: inline-block;
|
1513 |
float: none;
|
1514 |
width: 61px;
|
@@ -1575,9 +1575,10 @@ h2.optional {
|
|
1575 |
.linkedin_tool_bdr .sfsi_inside {
|
1576 |
text-align: center;
|
1577 |
float: left;
|
1578 |
-
width: 100%
|
|
|
1579 |
.linkedin_tool_bdr .sfsi_inside .icon1{
|
1580 |
-
margin:
|
1581 |
display: inline-block;
|
1582 |
float: none;
|
1583 |
height: 20px;
|
1395 |
overflow: hidden;
|
1396 |
}
|
1397 |
.fb_tool_bdr .sfsi_inside .icon1 {
|
1398 |
+
margin: 0 0 -5px 0;
|
1399 |
height: 28px;
|
1400 |
display: inline-block;
|
1401 |
float: none;
|
1402 |
width: 62px;
|
1403 |
}
|
1404 |
.fb_tool_bdr .sfsi_inside .icon2 {
|
1405 |
+
margin: -2px 0 -2px 0 ;
|
1406 |
height: 20px;
|
1407 |
width: 49px;
|
1408 |
display: inline-block;
|
1508 |
float: left;
|
1509 |
}
|
1510 |
.twt_tool_bdr .sfsi_inside .icon1 {
|
1511 |
+
margin: -4px 0 -6px 0 !important;
|
1512 |
display: inline-block;
|
1513 |
float: none;
|
1514 |
width: 61px;
|
1575 |
.linkedin_tool_bdr .sfsi_inside {
|
1576 |
text-align: center;
|
1577 |
float: left;
|
1578 |
+
width: 100%
|
1579 |
+
}
|
1580 |
.linkedin_tool_bdr .sfsi_inside .icon1{
|
1581 |
+
margin: 4px 0;
|
1582 |
display: inline-block;
|
1583 |
float: none;
|
1584 |
height: 20px;
|
images/Chat_with_us_bar.svg
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 329 64"><defs><style>.cls-1{fill:#eee;}.cls-2{fill:#d6d6d6;}.cls-3{fill:#00b050;}.cls-4{fill:#8cd4ad;}.cls-5{fill:#272727;}.cls-6{fill:#9e9e9e;}</style></defs><title>Chat with us bar</title><path class="cls-1" d="M323.06,0H5.94A5.94,5.94,0,0,0,0,5.94V64H329V5.94A5.94,5.94,0,0,0,323.06,0Z"/><path class="cls-2" d="M323.06,2A4,4,0,0,1,327,5.94V62H2V5.94A4,4,0,0,1,5.94,2H323.06m0-2H5.94A5.94,5.94,0,0,0,0,5.94V64H329V5.94A5.94,5.94,0,0,0,323.06,0Z"/><path class="cls-3" d="M51.28,15H23.72A4.72,4.72,0,0,0,19,19.72V34.28A4.72,4.72,0,0,0,23.72,39h.22L22.5,44.5,30.44,39H51.28A4.72,4.72,0,0,0,56,34.28V19.72A4.72,4.72,0,0,0,51.28,15ZM28.5,28.5a2,2,0,1,1,2-2A2,2,0,0,1,28.5,28.5Zm9,0a2,2,0,1,1,2-2A2,2,0,0,1,37.5,28.5Zm9,0a2,2,0,1,1,2-2A2,2,0,0,1,46.5,28.5Z"/><path class="cls-2" d="M323.06,2A4,4,0,0,1,327,5.94V62H2V5.94A4,4,0,0,1,5.94,2H323.06m0-2H5.94A5.94,5.94,0,0,0,0,5.94V64H329V5.94A5.94,5.94,0,0,0,323.06,0Z"/><path class="cls-4" d="M59.5,24.09V36.78a4.72,4.72,0,0,1-4.72,4.72H31.66a4,4,0,0,0,3.86,3H53.26L59.87,49,58.8,44.47H59a4,4,0,0,0,4-4V28.05A4,4,0,0,0,59.5,24.09Z"/><path class="cls-5" d="M94.84,32.71l-2.31-1.77a7.11,7.11,0,0,1-3.77,1c-4.92,0-7.21-3.93-7.21-7.77,0-4.59,2.66-7.77,7.21-7.77S96,19.57,96,24.16a8.27,8.27,0,0,1-2.16,5.77l2,1.59Zm-4.43-5.44,2,1.54A6.35,6.35,0,0,0,94,24.16c0-3.52-1.92-6-5.23-6s-5.23,2.51-5.23,6,1.71,6,5.23,6A5.53,5.53,0,0,0,91,29.76L89.4,28.51Z"/><path class="cls-5" d="M106.93,31.55h-1.75v-1.5h0a3.93,3.93,0,0,1-3.3,1.83c-1.67,0-3.77-.68-3.77-3.75V20.78h1.85v6.67c0,1.88.54,2.82,2.31,2.82,1,0,2.84-.66,2.84-3.58V20.78h1.85Z"/><path class="cls-5" d="M118.76,28.12a4.64,4.64,0,0,1-4.7,3.77c-2.88,0-5-1.87-5-5.79s2.78-5.64,4.86-5.64c2.95,0,5,1.77,5,5.44v.93H111c0,2.1,1.15,3.46,3,3.46A2.86,2.86,0,0,0,117,28.12ZM117,25.33c0-2.1-1.22-3.28-3-3.28a3.17,3.17,0,0,0-3,3.28Z"/><path class="cls-5" d="M122.14,28.16c.08,1.59,1.17,2.25,2.84,2.25s2.55-.76,2.55-1.77c0-2.39-6.78-.95-6.78-4.74,0-2.25,1.75-3.44,4-3.44,2.66,0,4.14,1.46,4.16,3.38H127.2c-.1-1.21-.91-1.9-2.53-1.9-1.4,0-2.18.64-2.18,1.61,0,2.49,6.78.89,6.78,4.7,0,2-1.4,3.65-4.31,3.65-2.68,0-4.47-1.11-4.55-3.73Z"/><path class="cls-5" d="M133.57,22.26v7c0,.84.7.84,1.07.84h.64v1.46a11,11,0,0,1-1.36.14c-1.81,0-2.2-1-2.2-2.31V22.26h-1.44V20.78h1.44v-3h1.85v3h1.71v1.48Z"/><path class="cls-5" d="M137.07,16.89h1.85V19h-1.85Zm0,3.89h1.85V31.55h-1.85Z"/><path class="cls-5" d="M146,31.88c-3.13,0-5-2.21-5-5.73s1.87-5.71,5-5.71,5,2.21,5,5.71S149.14,31.88,146,31.88Zm0-9.83c-2.06,0-3.15,1.71-3.15,4.1S144,30.28,146,30.28s3.15-1.71,3.15-4.12S148.07,22.06,146,22.06Z"/><path class="cls-5" d="M153,20.78h1.75v1.5h0a3.93,3.93,0,0,1,3.3-1.83c1.67,0,3.77.68,3.77,3.75v7.35H160V24.88c0-1.87-.54-2.82-2.31-2.82-1,0-2.84.66-2.84,3.58v5.91H153Z"/><path class="cls-5" d="M165.65,28.16c.08,1.59,1.17,2.25,2.84,2.25s2.55-.76,2.55-1.77c0-2.39-6.78-.95-6.78-4.74,0-2.25,1.75-3.44,4-3.44,2.66,0,4.14,1.46,4.16,3.38h-1.73c-.1-1.21-.91-1.9-2.53-1.9-1.4,0-2.18.64-2.18,1.61,0,2.49,6.78.89,6.78,4.7,0,2-1.4,3.65-4.31,3.65-2.68,0-4.47-1.11-4.55-3.73Z"/><path class="cls-5" d="M175,21.4v-.56a4.34,4.34,0,0,1,4.61-4.28c2.66,0,4.47,1.59,4.47,4.06,0,3.11-3.79,3.54-3.79,6.63v.54h-1.85v-.58c0-3.5,3.67-4.1,3.67-6.57a2.32,2.32,0,0,0-2.53-2.47c-1.5,0-2.68.84-2.72,3.23Zm3.32,7.93h2.1v2.22h-2.1Z"/><path class="cls-5" d="M198.32,30.2a4.41,4.41,0,0,0,4.3-3.93h1.92a6.2,6.2,0,0,1-6.22,5.67c-2.7,0-6.84-1.48-6.84-7.58s3.67-8,6.9-8c4,0,5.89,2.68,6.06,4.76H202.5a4,4,0,0,0-4.06-3c-3,0-5,2.35-5,6S195.42,30.2,198.32,30.2Z"/><path class="cls-5" d="M206.85,16.76h1.85V22.2h0a3.82,3.82,0,0,1,3.19-1.75c1.67,0,3.77.68,3.77,3.75v7.35h-1.85V24.47c0-1.46-.41-2.41-2.14-2.41-1.48,0-3,.87-3,3.58v5.91h-1.85Z"/><path class="cls-5" d="M218.34,24c.08-2.64,1.9-3.56,4.43-3.56,2.08,0,4.1.82,4.1,3V29.7a.57.57,0,0,0,.6.64,3.14,3.14,0,0,0,.6-.08v1.28a3.39,3.39,0,0,1-1,.17c-1.28,0-1.85-.41-2-1.57a4.87,4.87,0,0,1-4,1.75,3.11,3.11,0,0,1-3.3-3.11,3.31,3.31,0,0,1,3.23-3.38l3-.37c.58-.06.93-.41.93-1.26,0-1.3-.89-1.83-2.47-1.83s-2.41.7-2.51,2.08ZM225,26.08a7.79,7.79,0,0,1-3,.68c-1.34.19-2.31.68-2.31,1.75a1.78,1.78,0,0,0,2,1.9c1.09,0,3.34-.74,3.34-2.6Z"/><path class="cls-5" d="M232,22.26v7c0,.84.7.84,1.07.84h.64v1.46a11,11,0,0,1-1.36.14c-1.81,0-2.2-1-2.2-2.31V22.26h-1.44V20.78h1.44v-3H232v3h1.71v1.48Z"/><path class="cls-5" d="M245.19,31.55h-1.87L240.2,20.78h2l2.06,8.47h0l2.08-8.47h2l2.1,8.47h0l2.18-8.47h1.81l-3.13,10.77h-1.87l-2.18-8.34h0Z"/><path class="cls-5" d="M256.15,16.89H258V19h-1.85Zm0,3.89H258V31.55h-1.85Z"/><path class="cls-5" d="M262.94,22.26v7c0,.84.7.84,1.07.84h.64v1.46a11,11,0,0,1-1.36.14c-1.81,0-2.2-1-2.2-2.31V22.26h-1.44V20.78h1.44v-3h1.85v3h1.71v1.48Z"/><path class="cls-5" d="M266.38,16.76h1.85V22.2h0a3.82,3.82,0,0,1,3.19-1.75c1.67,0,3.77.68,3.77,3.75v7.35h-1.85V24.47c0-1.46-.41-2.41-2.14-2.41-1.48,0-3,.87-3,3.58v5.91h-1.85Z"/><path class="cls-5" d="M292.42,31.55h-1.75v-1.5h0a3.93,3.93,0,0,1-3.3,1.83c-1.67,0-3.77-.68-3.77-3.75V20.78h1.85v6.67c0,1.88.54,2.82,2.31,2.82,1,0,2.84-.66,2.84-3.58V20.78h1.85Z"/><path class="cls-5" d="M296.17,28.16c.08,1.59,1.17,2.25,2.84,2.25s2.55-.76,2.55-1.77c0-2.39-6.78-.95-6.78-4.74,0-2.25,1.75-3.44,4-3.44,2.66,0,4.14,1.46,4.16,3.38h-1.73c-.1-1.21-.91-1.9-2.53-1.9-1.4,0-2.18.64-2.18,1.61,0,2.49,6.78.89,6.78,4.7,0,2-1.4,3.65-4.31,3.65-2.68,0-4.47-1.11-4.55-3.73Z"/><path class="cls-5" d="M305.83,29.33h2.1v2.22h-2.1Zm.06-12.57h2v4.88L307.4,28h-1l-.47-6.39Z"/><path class="cls-6" d="M82.39,40.44h6v.86H85.86v6.46h-1V41.3H82.39Z"/><path class="cls-6" d="M89.12,40.44H90v2.69h0a1.89,1.89,0,0,1,1.58-.87,1.69,1.69,0,0,1,1.87,1.86v3.64h-.92V44.25c0-.72-.2-1.19-1.06-1.19S90,43.49,90,44.83v2.93h-.92Z"/><path class="cls-6" d="M94.82,40.5h.92v1h-.92Zm0,1.93h.92v5.33h-.92Z"/><path class="cls-6" d="M97.63,46.08c0,.78.58,1.11,1.41,1.11s1.26-.38,1.26-.88c0-1.18-3.35-.47-3.35-2.34,0-1.11.87-1.7,2-1.7,1.31,0,2,.72,2.06,1.67h-.86c-.05-.6-.45-.94-1.25-.94s-1.08.32-1.08.79c0,1.23,3.35.44,3.35,2.32,0,1-.69,1.8-2.13,1.8s-2.21-.55-2.25-1.84Z"/><path class="cls-6" d="M107,47.76H106l-1.54-5.33h1l1,4.19h0l1-4.19h1l1,4.19h0l1.08-4.19h.9L110,47.76h-.93L108,43.63h0Z"/><path class="cls-6" d="M112.38,40.5h.92v1h-.92Zm0,1.93h.92v5.33h-.92Z"/><path class="cls-6" d="M115.57,47.76h-.92V40.44h.92Z"/><path class="cls-6" d="M117.83,47.76h-.92V40.44h.92Z"/><path class="cls-6" d="M126.55,46.06a2.29,2.29,0,0,1-2.32,1.87c-1.43,0-2.49-.93-2.49-2.86a2.55,2.55,0,0,1,2.41-2.79c1.46,0,2.47.88,2.47,2.69v.46h-3.89c0,1,.57,1.71,1.5,1.71a1.42,1.42,0,0,0,1.45-1.07Zm-.86-1.38a1.45,1.45,0,0,0-1.48-1.62,1.57,1.57,0,0,0-1.5,1.62Z"/><path class="cls-6" d="M128.22,46.08c0,.78.58,1.11,1.41,1.11s1.26-.38,1.26-.88c0-1.18-3.35-.47-3.35-2.34,0-1.11.87-1.7,2-1.7,1.31,0,2,.72,2.06,1.67h-.86c-.05-.6-.45-.94-1.25-.94s-1.08.32-1.08.79c0,1.23,3.35.44,3.35,2.32,0,1-.69,1.8-2.13,1.8s-2.21-.55-2.25-1.84Z"/><path class="cls-6" d="M133.88,43.16v3.46c0,.42.35.42.53.42h.32v.72a5.37,5.37,0,0,1-.67.07c-.9,0-1.09-.5-1.09-1.14V43.16h-.71v-.73H133V40.94h.92v1.49h.85v.73Z"/><path class="cls-6" d="M135.5,44c0-1.3.94-1.76,2.19-1.76,1,0,2,.41,2,1.48v3.1a.28.28,0,0,0,.3.32,1.58,1.58,0,0,0,.3,0v.63a1.72,1.72,0,0,1-.49.08c-.63,0-.92-.2-1-.77a2.41,2.41,0,0,1-2,.87,1.54,1.54,0,0,1-1.63-1.54,1.64,1.64,0,0,1,1.6-1.67l1.5-.18c.29,0,.46-.2.46-.62,0-.64-.44-.91-1.22-.91s-1.19.35-1.24,1Zm3.3,1a3.85,3.85,0,0,1-1.48.34c-.66.09-1.14.34-1.14.87a.88.88,0,0,0,1,.94c.54,0,1.65-.37,1.65-1.28Z"/><path class="cls-6" d="M141.08,40.44H142v2.73a1.84,1.84,0,0,1,1.6-.91c1.42,0,2.22,1.17,2.22,2.66,0,1.28-.53,3-2.34,3A1.61,1.61,0,0,1,142,47h0v.72h-.86Zm.92,4.88c0,1.42.89,1.8,1.47,1.8,1,0,1.44-.9,1.44-2.07,0-.68-.07-2-1.46-2S142,44.46,142,45.32Z"/><path class="cls-6" d="M147.77,47.76h-.92V40.44h.92Z"/><path class="cls-6" d="M149.12,40.5H150v1h-.92Zm0,1.93H150v5.33h-.92Z"/><path class="cls-6" d="M151.92,46.08c0,.78.58,1.11,1.41,1.11s1.26-.38,1.26-.88c0-1.18-3.35-.47-3.35-2.34,0-1.11.87-1.7,2-1.7,1.31,0,2,.72,2.06,1.67h-.86c-.05-.6-.45-.94-1.25-.94s-1.08.32-1.08.79c0,1.23,3.35.44,3.35,2.32,0,1-.69,1.8-2.13,1.8s-2.21-.55-2.25-1.84Z"/><path class="cls-6" d="M156.45,40.44h.92v2.69h0a1.89,1.89,0,0,1,1.58-.87,1.69,1.69,0,0,1,1.87,1.86v3.64h-.92V44.25c0-.72-.2-1.19-1.06-1.19s-1.49.43-1.49,1.77v2.93h-.92Z"/><path class="cls-6" d="M165,44c0-1.3.94-1.76,2.19-1.76,1,0,2,.41,2,1.48v3.1a.28.28,0,0,0,.29.32,1.57,1.57,0,0,0,.3,0v.63a1.72,1.72,0,0,1-.49.08c-.63,0-.92-.2-1-.77a2.41,2.41,0,0,1-2,.87,1.54,1.54,0,0,1-1.63-1.54,1.64,1.64,0,0,1,1.6-1.67l1.5-.18c.29,0,.46-.2.46-.62,0-.64-.44-.91-1.22-.91s-1.19.35-1.24,1Zm3.3,1a3.85,3.85,0,0,1-1.48.34c-.66.09-1.14.34-1.14.87a.88.88,0,0,0,1,.94c.54,0,1.65-.37,1.65-1.28Z"/><path class="cls-6" d="M177.68,45.88a2.14,2.14,0,0,1-2.28,2c-.95,0-2.22-.65-2.22-2.8,0-1.76,1.08-2.85,2.31-2.85a2,2,0,0,1,2.19,2h-.86a1.17,1.17,0,0,0-1.23-1.16c-1,0-1.5.86-1.5,2.11,0,1.41.54,2,1.44,2a1.36,1.36,0,0,0,1.29-1.3Z"/><path class="cls-6" d="M180.75,47.92c-1.55,0-2.48-1.09-2.48-2.83s.93-2.82,2.48-2.82,2.48,1.09,2.48,2.82S182.3,47.92,180.75,47.92Zm0-4.86c-1,0-1.56.85-1.56,2s.54,2,1.56,2,1.56-.85,1.56-2S181.77,43.06,180.75,43.06Z"/><path class="cls-6" d="M184.23,42.43h.87v.74h0a1.94,1.94,0,0,1,1.63-.91,1.69,1.69,0,0,1,1.87,1.86v3.64h-.92v-3.3c0-.93-.26-1.4-1.14-1.4-.51,0-1.41.33-1.41,1.77v2.93h-.92Z"/><path class="cls-6" d="M189.9,42.43h.87v.74h0a1.94,1.94,0,0,1,1.63-.91,1.69,1.69,0,0,1,1.87,1.86v3.64h-.92v-3.3c0-.93-.26-1.4-1.14-1.4-.51,0-1.41.33-1.41,1.77v2.93h-.92Z"/><path class="cls-6" d="M200.14,46.06a2.29,2.29,0,0,1-2.32,1.87c-1.43,0-2.49-.93-2.49-2.86a2.55,2.55,0,0,1,2.41-2.79c1.46,0,2.47.88,2.47,2.69v.46H196.3c0,1,.57,1.71,1.5,1.71a1.41,1.41,0,0,0,1.45-1.07Zm-.86-1.38a1.45,1.45,0,0,0-1.48-1.62,1.57,1.57,0,0,0-1.5,1.62Z"/><path class="cls-6" d="M205.46,45.88a2.14,2.14,0,0,1-2.28,2c-.95,0-2.22-.65-2.22-2.8,0-1.76,1.08-2.85,2.31-2.85a2,2,0,0,1,2.19,2h-.86a1.17,1.17,0,0,0-1.23-1.16c-1,0-1.5.86-1.5,2.11,0,1.41.54,2,1.44,2a1.36,1.36,0,0,0,1.29-1.3Z"/><path class="cls-6" d="M207.47,43.16v3.46c0,.42.35.42.53.42h.32v.72a5.35,5.35,0,0,1-.67.07c-.9,0-1.09-.5-1.09-1.14V43.16h-.71v-.73h.71V40.94h.92v1.49h.85v.73Z"/><path class="cls-6" d="M209.21,40.5h.92v1h-.92Zm0,1.93h.92v5.33h-.92Z"/><path class="cls-6" d="M213.63,47.92c-1.55,0-2.48-1.09-2.48-2.83s.93-2.82,2.48-2.82,2.48,1.09,2.48,2.82S215.18,47.92,213.63,47.92Zm0-4.86c-1,0-1.56.85-1.56,2s.54,2,1.56,2,1.56-.85,1.56-2S214.65,43.06,213.63,43.06Z"/><path class="cls-6" d="M217.11,42.43H218v.74h0a1.94,1.94,0,0,1,1.63-.91,1.69,1.69,0,0,1,1.87,1.86v3.64h-.92v-3.3c0-.93-.26-1.4-1.14-1.4-.51,0-1.41.33-1.41,1.77v2.93h-.92Z"/><path class="cls-6" d="M226.75,43.16v3.46c0,.42.35.42.53.42h.32v.72a5.35,5.35,0,0,1-.67.07c-.9,0-1.09-.5-1.09-1.14V43.16h-.71v-.73h.71V40.94h.92v1.49h.85v.73Z"/><path class="cls-6" d="M230.44,47.92c-1.55,0-2.48-1.09-2.48-2.83s.93-2.82,2.48-2.82,2.48,1.09,2.48,2.82S232,47.92,230.44,47.92Zm0-4.86c-1,0-1.56.85-1.56,2s.54,2,1.56,2,1.56-.85,1.56-2S231.46,43.06,230.44,43.06Z"/><path class="cls-6" d="M237.88,43.16v3.46c0,.42.35.42.53.42h.32v.72a5.35,5.35,0,0,1-.67.07c-.9,0-1.09-.5-1.09-1.14V43.16h-.71v-.73H237V40.94h.92v1.49h.85v.73Z"/><path class="cls-6" d="M239.59,40.44h.92v2.69h0a1.89,1.89,0,0,1,1.58-.87A1.69,1.69,0,0,1,244,44.12v3.64h-.92V44.25c0-.72-.2-1.19-1.06-1.19s-1.49.43-1.49,1.77v2.93h-.92Z"/><path class="cls-6" d="M249.82,46.06a2.29,2.29,0,0,1-2.32,1.87c-1.43,0-2.49-.93-2.49-2.86a2.55,2.55,0,0,1,2.41-2.79c1.46,0,2.47.88,2.47,2.69v.46H246c0,1,.57,1.71,1.5,1.71a1.41,1.41,0,0,0,1.45-1.07ZM249,44.68a1.45,1.45,0,0,0-1.48-1.62,1.57,1.57,0,0,0-1.5,1.62Z"/><path class="cls-6" d="M258,45.88a2.14,2.14,0,0,1-2.28,2c-.95,0-2.22-.65-2.22-2.8,0-1.76,1.08-2.85,2.31-2.85a2,2,0,0,1,2.19,2h-.86a1.17,1.17,0,0,0-1.23-1.16c-1,0-1.5.86-1.5,2.11,0,1.41.54,2,1.44,2a1.36,1.36,0,0,0,1.29-1.3Z"/><path class="cls-6" d="M258.86,40.44h.92v2.69h0a1.89,1.89,0,0,1,1.58-.87,1.69,1.69,0,0,1,1.87,1.86v3.64h-.92V44.25c0-.72-.2-1.19-1.06-1.19s-1.49.43-1.49,1.77v2.93h-.92Z"/><path class="cls-6" d="M264.55,44c0-1.3.94-1.76,2.19-1.76,1,0,2,.41,2,1.48v3.1a.28.28,0,0,0,.29.32,1.57,1.57,0,0,0,.3,0v.63a1.72,1.72,0,0,1-.49.08c-.63,0-.92-.2-1-.77a2.41,2.41,0,0,1-2,.87,1.54,1.54,0,0,1-1.63-1.54,1.64,1.64,0,0,1,1.6-1.67l1.5-.18c.29,0,.46-.2.46-.62,0-.64-.44-.91-1.22-.91s-1.19.35-1.24,1Zm3.3,1a3.85,3.85,0,0,1-1.48.34c-.66.09-1.14.34-1.14.87a.88.88,0,0,0,1,.94c.54,0,1.65-.37,1.65-1.28Z"/><path class="cls-6" d="M271.33,43.16v3.46c0,.42.35.42.53.42h.32v.72a5.35,5.35,0,0,1-.67.07c-.9,0-1.09-.5-1.09-1.14V43.16h-.71v-.73h.71V40.94h.92v1.49h.85v.73Z"/><path class="cls-6" d="M276.44,46.08c0,.78.58,1.11,1.41,1.11s1.26-.38,1.26-.88c0-1.18-3.35-.47-3.35-2.34,0-1.11.87-1.7,2-1.7,1.31,0,2,.72,2.06,1.67h-.86c-.05-.6-.45-.94-1.25-.94s-1.08.32-1.08.79c0,1.23,3.35.44,3.35,2.32,0,1-.69,1.8-2.13,1.8s-2.21-.55-2.25-1.84Z"/><path class="cls-6" d="M285.54,46.06a2.29,2.29,0,0,1-2.32,1.87c-1.43,0-2.49-.93-2.49-2.86a2.55,2.55,0,0,1,2.41-2.79c1.46,0,2.47.88,2.47,2.69v.46H281.7c0,1,.57,1.71,1.5,1.71a1.42,1.42,0,0,0,1.45-1.07Zm-.86-1.38a1.45,1.45,0,0,0-1.48-1.62,1.57,1.57,0,0,0-1.5,1.62Z"/><path class="cls-6" d="M286.77,42.43h.86v.88h0a1.73,1.73,0,0,1,1.5-1,.75.75,0,0,1,.23,0v.92H289a1.36,1.36,0,0,0-1.36,1.44v3.11h-.92Z"/><path class="cls-6" d="M293.43,42.43h1l-2,5.33h-1l-1.95-5.33h1l1.39,4.34h0Z"/><path class="cls-6" d="M299.5,46.06a2.29,2.29,0,0,1-2.32,1.87c-1.43,0-2.49-.93-2.49-2.86a2.55,2.55,0,0,1,2.41-2.79c1.46,0,2.47.88,2.47,2.69v.46h-3.89c0,1,.57,1.71,1.5,1.71a1.42,1.42,0,0,0,1.45-1.07Zm-.86-1.38a1.45,1.45,0,0,0-1.48-1.62,1.57,1.57,0,0,0-1.5,1.62Z"/><path class="cls-6" d="M300.73,42.43h.86v.88h0a1.73,1.73,0,0,1,1.5-1,.75.75,0,0,1,.23,0v.92H303a1.36,1.36,0,0,0-1.36,1.44v3.11h-.92Z"/><path class="cls-6" d="M304.36,46.08c0,.78.58,1.11,1.41,1.11s1.26-.38,1.26-.88c0-1.18-3.35-.47-3.35-2.34,0-1.11.87-1.7,2-1.7,1.32,0,2,.72,2.06,1.67h-.86c-.05-.6-.45-.94-1.25-.94s-1.08.32-1.08.79c0,1.23,3.35.44,3.35,2.32,0,1-.69,1.8-2.13,1.8s-2.21-.55-2.25-1.84Z"/></svg>
|
|
js/custom-admin.js
CHANGED
@@ -24,7 +24,7 @@ function sfsi_delete_CusIcon(s, i) {
|
|
24 |
icon_name:i.attr("name")
|
25 |
};
|
26 |
SFSI.ajax({
|
27 |
-
url:
|
28 |
type:"post",
|
29 |
data:e,
|
30 |
dataType:"json",
|
@@ -146,7 +146,7 @@ function sfsi_customskin_upload(s, ref)
|
|
146 |
};
|
147 |
|
148 |
SFSI.ajax({
|
149 |
-
url:
|
150 |
type:"post",
|
151 |
data:e,
|
152 |
success:function(msg) {
|
@@ -174,7 +174,7 @@ function deleteskin_icon(s)
|
|
174 |
};
|
175 |
|
176 |
SFSI.ajax({
|
177 |
-
url:
|
178 |
type:"post",
|
179 |
data:e,
|
180 |
dataType: "json",
|
@@ -200,7 +200,7 @@ function SFSI_done()
|
|
200 |
e = { action:"Iamdone" };
|
201 |
|
202 |
SFSI.ajax({
|
203 |
-
url:
|
204 |
type:"post",
|
205 |
data:e,
|
206 |
success:function(msg) {
|
@@ -219,7 +219,7 @@ function sfsi_newcustomicon_upload(s) {
|
|
219 |
custom_imgurl:i
|
220 |
};
|
221 |
SFSI.ajax({
|
222 |
-
url:
|
223 |
type:"post",
|
224 |
data:e,
|
225 |
dataType:"json",
|
@@ -261,7 +261,7 @@ function sfsi_update_step1() {
|
|
261 |
nonce:nonce
|
262 |
};
|
263 |
SFSI.ajax({
|
264 |
-
url:
|
265 |
type:"post",
|
266 |
data:I,
|
267 |
async:!0,
|
@@ -332,7 +332,7 @@ function sfsi_update_step2() {
|
|
332 |
nonce:nonce
|
333 |
};
|
334 |
SFSI.ajax({
|
335 |
-
url:
|
336 |
type:"post",
|
337 |
data:M,
|
338 |
async:!0,
|
@@ -383,7 +383,7 @@ function sfsi_update_step3() {
|
|
383 |
nonce:nonce
|
384 |
};
|
385 |
SFSI.ajax({
|
386 |
-
url:
|
387 |
type:"post",
|
388 |
data:d,
|
389 |
async:!0,
|
@@ -482,7 +482,7 @@ function sfsi_update_step4() {
|
|
482 |
nonce:nonce
|
483 |
};
|
484 |
return SFSI.ajax({
|
485 |
-
url:
|
486 |
type:"post",
|
487 |
data:$,
|
488 |
dataType:"json",
|
@@ -581,7 +581,7 @@ function sfsi_update_step5() {
|
|
581 |
nonce:nonce
|
582 |
};
|
583 |
SFSI.ajax({
|
584 |
-
url:
|
585 |
type:"post",
|
586 |
data:T,
|
587 |
dataType:"json",
|
@@ -632,7 +632,7 @@ function sfsi_update_step6() {
|
|
632 |
nonce:nonce
|
633 |
};
|
634 |
SFSI.ajax({
|
635 |
-
url:
|
636 |
type:"post",
|
637 |
data:n,
|
638 |
dataType:"json",
|
@@ -683,7 +683,7 @@ function sfsi_update_step7() {
|
|
683 |
nonce:nonce
|
684 |
};
|
685 |
SFSI.ajax({
|
686 |
-
url:
|
687 |
type:"post",
|
688 |
data:f,
|
689 |
dataType:"json",
|
@@ -772,7 +772,7 @@ function sfsi_update_step8()
|
|
772 |
nonce:nonce
|
773 |
};
|
774 |
SFSI.ajax({
|
775 |
-
url:
|
776 |
type:"post",
|
777 |
data:f,
|
778 |
dataType:"json",
|
@@ -828,7 +828,7 @@ function sfsi_update_step9()
|
|
828 |
nonce:nonce
|
829 |
};
|
830 |
SFSI.ajax({
|
831 |
-
url:
|
832 |
type:"post",
|
833 |
data:f,
|
834 |
dataType:"json",
|
@@ -1622,7 +1622,7 @@ function create_suscriber_form()
|
|
1622 |
button:SFSI('input[name="sfsi_form_button_text"]').val()
|
1623 |
};
|
1624 |
SFSI.ajax({
|
1625 |
-
url:
|
1626 |
type:"post",
|
1627 |
data:data,
|
1628 |
success:function(s) {
|
@@ -1642,7 +1642,7 @@ if(typeof SFSI != 'undefined'){
|
|
1642 |
SFSI(document).on("click", btnClass, function(){
|
1643 |
|
1644 |
SFSI.ajax({
|
1645 |
-
url:
|
1646 |
type:"post",
|
1647 |
data:{action: ajaxAction},
|
1648 |
success:function(e) {
|
@@ -1845,16 +1845,16 @@ SFSI(document).ready(function(s) {
|
|
1845 |
palettes: true
|
1846 |
}),
|
1847 |
SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseover(function() {
|
1848 |
-
SFSI(this).attr("src",
|
1849 |
}),
|
1850 |
SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseleave(function() {
|
1851 |
-
SFSI(this).attr("src",
|
1852 |
}),
|
1853 |
SFSI("div#sfsiid_youtube").find(".icon1").find("a").find("img").mouseover(function() {
|
1854 |
-
SFSI(this).attr("src",
|
1855 |
}),
|
1856 |
SFSI("div#sfsiid_youtube").find(".icon1").find("a").find("img").mouseleave(function() {
|
1857 |
-
SFSI(this).attr("src",
|
1858 |
}),
|
1859 |
SFSI("div#sfsiid_facebook").find(".icon1").find("a").find("img").mouseover(function() {
|
1860 |
SFSI(this).css("opacity", "0.9");
|
@@ -1968,7 +1968,7 @@ SFSI(document).ready(function(s) {
|
|
1968 |
nonce:nonce
|
1969 |
};
|
1970 |
SFSI.ajax({
|
1971 |
-
url:
|
1972 |
type:"post",
|
1973 |
data:s,
|
1974 |
dataType:"json",
|
@@ -1994,7 +1994,7 @@ SFSI(document).ready(function(s) {
|
|
1994 |
nonce:nonce
|
1995 |
};
|
1996 |
SFSI.ajax({
|
1997 |
-
url:
|
1998 |
type:"post",
|
1999 |
data:s,
|
2000 |
dataType:"json",
|
@@ -2470,13 +2470,31 @@ SFSI(document).ready(function(){
|
|
2470 |
event&event.preventDefault();
|
2471 |
// console.log(event);
|
2472 |
var target=SFSI(this).parents('.tab-content');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2473 |
SFSI.ajax({
|
2474 |
-
url:
|
2475 |
type:"post",
|
2476 |
data:{
|
2477 |
action: "sfsiOfflineChatMessage",
|
2478 |
-
message:
|
2479 |
-
email:
|
2480 |
}
|
2481 |
}).done(function(){
|
2482 |
target.find('.before_message_sent').hide();
|
24 |
icon_name:i.attr("name")
|
25 |
};
|
26 |
SFSI.ajax({
|
27 |
+
url:sfsi_icon_ajax_object.ajax_url,
|
28 |
type:"post",
|
29 |
data:e,
|
30 |
dataType:"json",
|
146 |
};
|
147 |
|
148 |
SFSI.ajax({
|
149 |
+
url:sfsi_icon_ajax_object.ajax_url,
|
150 |
type:"post",
|
151 |
data:e,
|
152 |
success:function(msg) {
|
174 |
};
|
175 |
|
176 |
SFSI.ajax({
|
177 |
+
url:sfsi_icon_ajax_object.ajax_url,
|
178 |
type:"post",
|
179 |
data:e,
|
180 |
dataType: "json",
|
200 |
e = { action:"Iamdone" };
|
201 |
|
202 |
SFSI.ajax({
|
203 |
+
url:sfsi_icon_ajax_object.ajax_url,
|
204 |
type:"post",
|
205 |
data:e,
|
206 |
success:function(msg) {
|
219 |
custom_imgurl:i
|
220 |
};
|
221 |
SFSI.ajax({
|
222 |
+
url:sfsi_icon_ajax_object.ajax_url,
|
223 |
type:"post",
|
224 |
data:e,
|
225 |
dataType:"json",
|
261 |
nonce:nonce
|
262 |
};
|
263 |
SFSI.ajax({
|
264 |
+
url:sfsi_icon_ajax_object.ajax_url,
|
265 |
type:"post",
|
266 |
data:I,
|
267 |
async:!0,
|
332 |
nonce:nonce
|
333 |
};
|
334 |
SFSI.ajax({
|
335 |
+
url:sfsi_icon_ajax_object.ajax_url,
|
336 |
type:"post",
|
337 |
data:M,
|
338 |
async:!0,
|
383 |
nonce:nonce
|
384 |
};
|
385 |
SFSI.ajax({
|
386 |
+
url:sfsi_icon_ajax_object.ajax_url,
|
387 |
type:"post",
|
388 |
data:d,
|
389 |
async:!0,
|
482 |
nonce:nonce
|
483 |
};
|
484 |
return SFSI.ajax({
|
485 |
+
url:sfsi_icon_ajax_object.ajax_url,
|
486 |
type:"post",
|
487 |
data:$,
|
488 |
dataType:"json",
|
581 |
nonce:nonce
|
582 |
};
|
583 |
SFSI.ajax({
|
584 |
+
url:sfsi_icon_ajax_object.ajax_url,
|
585 |
type:"post",
|
586 |
data:T,
|
587 |
dataType:"json",
|
632 |
nonce:nonce
|
633 |
};
|
634 |
SFSI.ajax({
|
635 |
+
url:sfsi_icon_ajax_object.ajax_url,
|
636 |
type:"post",
|
637 |
data:n,
|
638 |
dataType:"json",
|
683 |
nonce:nonce
|
684 |
};
|
685 |
SFSI.ajax({
|
686 |
+
url:sfsi_icon_ajax_object.ajax_url,
|
687 |
type:"post",
|
688 |
data:f,
|
689 |
dataType:"json",
|
772 |
nonce:nonce
|
773 |
};
|
774 |
SFSI.ajax({
|
775 |
+
url:sfsi_icon_ajax_object.ajax_url,
|
776 |
type:"post",
|
777 |
data:f,
|
778 |
dataType:"json",
|
828 |
nonce:nonce
|
829 |
};
|
830 |
SFSI.ajax({
|
831 |
+
url:sfsi_icon_ajax_object.ajax_url,
|
832 |
type:"post",
|
833 |
data:f,
|
834 |
dataType:"json",
|
1622 |
button:SFSI('input[name="sfsi_form_button_text"]').val()
|
1623 |
};
|
1624 |
SFSI.ajax({
|
1625 |
+
url:sfsi_icon_ajax_object.ajax_url,
|
1626 |
type:"post",
|
1627 |
data:data,
|
1628 |
success:function(s) {
|
1642 |
SFSI(document).on("click", btnClass, function(){
|
1643 |
|
1644 |
SFSI.ajax({
|
1645 |
+
url:sfsi_icon_ajax_object.ajax_url,
|
1646 |
type:"post",
|
1647 |
data:{action: ajaxAction},
|
1648 |
success:function(e) {
|
1845 |
palettes: true
|
1846 |
}),
|
1847 |
SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseover(function() {
|
1848 |
+
SFSI(this).attr("src", sfsi_icon_ajax_object.plugin_url + "images/visit_icons/linkedIn_hover.svg");
|
1849 |
}),
|
1850 |
SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseleave(function() {
|
1851 |
+
SFSI(this).attr("src", sfsi_icon_ajax_object.plugin_url + "images/visit_icons/linkedIn.svg");
|
1852 |
}),
|
1853 |
SFSI("div#sfsiid_youtube").find(".icon1").find("a").find("img").mouseover(function() {
|
1854 |
+
SFSI(this).attr("src", sfsi_icon_ajax_object.plugin_url + "images/visit_icons/youtube_hover.svg");
|
1855 |
}),
|
1856 |
SFSI("div#sfsiid_youtube").find(".icon1").find("a").find("img").mouseleave(function() {
|
1857 |
+
SFSI(this).attr("src", sfsi_icon_ajax_object.plugin_url + "images/visit_icons/youtube.svg");
|
1858 |
}),
|
1859 |
SFSI("div#sfsiid_facebook").find(".icon1").find("a").find("img").mouseover(function() {
|
1860 |
SFSI(this).css("opacity", "0.9");
|
1968 |
nonce:nonce
|
1969 |
};
|
1970 |
SFSI.ajax({
|
1971 |
+
url:sfsi_icon_ajax_object.ajax_url,
|
1972 |
type:"post",
|
1973 |
data:s,
|
1974 |
dataType:"json",
|
1994 |
nonce:nonce
|
1995 |
};
|
1996 |
SFSI.ajax({
|
1997 |
+
url:sfsi_icon_ajax_object.ajax_url,
|
1998 |
type:"post",
|
1999 |
data:s,
|
2000 |
dataType:"json",
|
2470 |
event&event.preventDefault();
|
2471 |
// console.log(event);
|
2472 |
var target=SFSI(this).parents('.tab-content');
|
2473 |
+
var message= SFSI(this).find('textarea[name="question"]').val();
|
2474 |
+
var email=SFSI(this).find('input[name="email"]').val();
|
2475 |
+
var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
2476 |
+
|
2477 |
+
if(""===email || false===re.test(String(email).toLowerCase())){
|
2478 |
+
// console.log(SFSI(this).find('input[name="email"]'));
|
2479 |
+
SFSI(this).find('input[name="email"]').css('background-color','red');
|
2480 |
+
SFSI(this).find('input[name="email"]').on('keyup',function(){
|
2481 |
+
var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
2482 |
+
var email = SFSI(this).val();
|
2483 |
+
// console.log(email,re.test(String(email).toLowerCase()) );
|
2484 |
+
if(""!==email && true===re.test(String(email).toLowerCase())){
|
2485 |
+
SFSI(this).css('background-color','#fff');
|
2486 |
+
}
|
2487 |
+
})
|
2488 |
+
return false;
|
2489 |
+
|
2490 |
+
}
|
2491 |
SFSI.ajax({
|
2492 |
+
url:sfsi_icon_ajax_object.ajax_url,
|
2493 |
type:"post",
|
2494 |
data:{
|
2495 |
action: "sfsiOfflineChatMessage",
|
2496 |
+
message: message,
|
2497 |
+
email: email,
|
2498 |
}
|
2499 |
}).done(function(){
|
2500 |
target.find('.before_message_sent').hide();
|
js/custom.js
CHANGED
@@ -184,13 +184,13 @@ SFSI(document).ready(function(s) {
|
|
184 |
var i = SFSI(".sfsi_FrntInner"), e = SFSI(".sfsi_wDiv"), t = SFSI("#at15s");
|
185 |
i.is(s.target) || 0 !== i.has(s.target).length || e.is(s.target) || 0 !== e.has(s.target).length || t.is(s.target) || 0 !== t.has(s.target).length || i.fadeOut();
|
186 |
}), SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseover(function() {
|
187 |
-
SFSI(this).attr("src",
|
188 |
}), SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseleave(function() {
|
189 |
-
SFSI(this).attr("src",
|
190 |
}), SFSI("div#sfsiid_youtube").find(".icon1").find("a").find("img").mouseover(function() {
|
191 |
-
SFSI(this).attr("src",
|
192 |
}), SFSI("div#sfsiid_youtube").find(".icon1").find("a").find("img").mouseleave(function() {
|
193 |
-
SFSI(this).attr("src",
|
194 |
}), SFSI("div#sfsiid_facebook").find(".icon1").find("a").find("img").mouseover(function() {
|
195 |
SFSI(this).css("opacity", "0.9");
|
196 |
}), SFSI("div#sfsiid_facebook").find(".icon1").find("a").find("img").mouseleave(function() {
|
184 |
var i = SFSI(".sfsi_FrntInner"), e = SFSI(".sfsi_wDiv"), t = SFSI("#at15s");
|
185 |
i.is(s.target) || 0 !== i.has(s.target).length || e.is(s.target) || 0 !== e.has(s.target).length || t.is(s.target) || 0 !== t.has(s.target).length || i.fadeOut();
|
186 |
}), SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseover(function() {
|
187 |
+
SFSI(this).attr("src", sfsi_icon_ajax_object.plugin_url + "images/visit_icons/linkedIn_hover.svg");
|
188 |
}), SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseleave(function() {
|
189 |
+
SFSI(this).attr("src", sfsi_icon_ajax_object.plugin_url + "images/visit_icons/linkedIn.svg");
|
190 |
}), SFSI("div#sfsiid_youtube").find(".icon1").find("a").find("img").mouseover(function() {
|
191 |
+
SFSI(this).attr("src", sfsi_icon_ajax_object.plugin_url + "images/visit_icons/youtube_hover.svg");
|
192 |
}), SFSI("div#sfsiid_youtube").find(".icon1").find("a").find("img").mouseleave(function() {
|
193 |
+
SFSI(this).attr("src", sfsi_icon_ajax_object.plugin_url + "images/visit_icons/youtube.svg");
|
194 |
}), SFSI("div#sfsiid_facebook").find(".icon1").find("a").find("img").mouseover(function() {
|
195 |
SFSI(this).css("opacity", "0.9");
|
196 |
}), SFSI("div#sfsiid_facebook").find(".icon1").find("a").find("img").mouseleave(function() {
|
libs/controllers/sfsi_buttons_controller.php
CHANGED
@@ -981,7 +981,97 @@ function sfsi_bannerOption(){
|
|
981 |
}
|
982 |
}
|
983 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
984 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
985 |
|
986 |
// if(!$matchFound){
|
987 |
|
@@ -1012,7 +1102,7 @@ function sfsi_bannerOption(){
|
|
1012 |
echo '<script type="text/javascript">
|
1013 |
jQuery("body").on("click", ".sfsi_new_notification_cross", function(){
|
1014 |
SFSI.ajax({
|
1015 |
-
url:
|
1016 |
type:"post",
|
1017 |
data: {action: "new_notification_read"},
|
1018 |
success:function(msg){
|
@@ -1025,7 +1115,7 @@ function sfsi_bannerOption(){
|
|
1025 |
});
|
1026 |
jQuery("body").on("click", ".sfsi_new_notification_cross_cat", function(){
|
1027 |
SFSI.ajax({
|
1028 |
-
url:
|
1029 |
type:"post",
|
1030 |
data: {action: "new_notification_read"},
|
1031 |
success:function(msg){
|
981 |
}
|
982 |
}
|
983 |
}
|
984 |
+
|
985 |
+
if(!$matchFound){
|
986 |
+
foreach ($themeDataArr as $themeDataObj) {
|
987 |
+
|
988 |
+
if(isset($themeDataObj->themeName) && strlen($themeDataObj->themeName)>0){
|
989 |
+
|
990 |
+
$themeName = $themeDataObj->themeName;
|
991 |
+
$noBrainerKeywords = $themeDataObj->noBrainerKeywords;
|
992 |
+
$separateKeywords = $themeDataObj->separateKeywords;
|
993 |
+
$negativeKeywords = $themeDataObj->negativeKeywords;
|
994 |
+
$noBrainerAndSeparateKeywords = array_merge($noBrainerKeywords,$separateKeywords);
|
995 |
+
|
996 |
+
|
997 |
+
if($objThemeCheck->sfsi_plus_check_type_of_metaTitleWithNoBrainerAndSeparateAndNegativeKeywords($themeName,$noBrainerKeywords,$separateKeywords,$noBrainerAndSeparateKeywords,$negativeKeywords,$domainname)==$themeName)
|
998 |
+
{
|
999 |
+
$matchFound = true;
|
1000 |
+
|
1001 |
+
$themeName = strtolower($themeName);
|
1002 |
+
|
1003 |
+
$objThemeCheck->sfsi_plus_bannereHtml(
|
1004 |
+
$themeDataObj->headline,
|
1005 |
+
$themeDataObj->themeLink,
|
1006 |
+
SFSI_PLUGURL.'images/website_theme/'.$themeName.'.png',
|
1007 |
+
$themeDataObj->bottomtext
|
1008 |
+
);
|
1009 |
+
|
1010 |
+
break;
|
1011 |
+
}
|
1012 |
+
}
|
1013 |
+
}
|
1014 |
+
}
|
1015 |
+
if(!$matchFound){
|
1016 |
+
foreach ($themeDataArr as $themeDataObj) {
|
1017 |
+
|
1018 |
+
if(isset($themeDataObj->themeName) && strlen($themeDataObj->themeName)>0){
|
1019 |
+
|
1020 |
+
$themeName = $themeDataObj->themeName;
|
1021 |
+
$noBrainerKeywords = $themeDataObj->noBrainerKeywords;
|
1022 |
+
$separateKeywords = $themeDataObj->separateKeywords;
|
1023 |
+
$negativeKeywords = $themeDataObj->negativeKeywords;
|
1024 |
+
$noBrainerAndSeparateKeywords = array_merge($noBrainerKeywords,$separateKeywords);
|
1025 |
+
|
1026 |
+
|
1027 |
+
if($objThemeCheck->sfsi_plus_check_type_of_metaKeywordsWithNoBrainerAndSeparateAndNegativeKeywords($themeName,$noBrainerKeywords,$separateKeywords,$noBrainerAndSeparateKeywords,$negativeKeywords,$domainname)==$themeName)
|
1028 |
+
{
|
1029 |
+
$matchFound = true;
|
1030 |
|
1031 |
+
$themeName = strtolower($themeName);
|
1032 |
+
|
1033 |
+
$objThemeCheck->sfsi_plus_bannereHtml(
|
1034 |
+
$themeDataObj->headline,
|
1035 |
+
$themeDataObj->themeLink,
|
1036 |
+
SFSI_PLUGURL.'images/website_theme/'.$themeName.'.png',
|
1037 |
+
$themeDataObj->bottomtext
|
1038 |
+
);
|
1039 |
+
|
1040 |
+
break;
|
1041 |
+
}
|
1042 |
+
}
|
1043 |
+
}
|
1044 |
+
}
|
1045 |
+
if(!$matchFound){
|
1046 |
+
foreach ($themeDataArr as $themeDataObj) {
|
1047 |
+
|
1048 |
+
if(isset($themeDataObj->themeName) && strlen($themeDataObj->themeName)>0) {
|
1049 |
+
|
1050 |
+
$themeName = $themeDataObj->themeName;
|
1051 |
+
$noBrainerKeywords = $themeDataObj->noBrainerKeywords;
|
1052 |
+
$separateKeywords = $themeDataObj->separateKeywords;
|
1053 |
+
$negativeKeywords = $themeDataObj->negativeKeywords;
|
1054 |
+
$noBrainerAndSeparateKeywords = array_merge($noBrainerKeywords,$separateKeywords);
|
1055 |
+
|
1056 |
+
|
1057 |
+
if($objThemeCheck->sfsi_plus_check_type_of_metaDescriptionWithNoBrainerAndSeparateAndNegativeKeywords($themeName,$noBrainerKeywords,$separateKeywords,$noBrainerAndSeparateKeywords,$negativeKeywords,$domainname)==$themeName)
|
1058 |
+
{
|
1059 |
+
$matchFound = true;
|
1060 |
+
|
1061 |
+
$themeName = strtolower($themeName);
|
1062 |
+
|
1063 |
+
$objThemeCheck->sfsi_plus_bannereHtml(
|
1064 |
+
$themeDataObj->headline,
|
1065 |
+
$themeDataObj->themeLink,
|
1066 |
+
SFSI_PLUGURL.'images/website_theme/'.$themeName.'.png',
|
1067 |
+
$themeDataObj->bottomtext
|
1068 |
+
);
|
1069 |
+
|
1070 |
+
break;
|
1071 |
+
}
|
1072 |
+
}
|
1073 |
+
}
|
1074 |
+
}
|
1075 |
|
1076 |
// if(!$matchFound){
|
1077 |
|
1102 |
echo '<script type="text/javascript">
|
1103 |
jQuery("body").on("click", ".sfsi_new_notification_cross", function(){
|
1104 |
SFSI.ajax({
|
1105 |
+
url:sfsi_icon_ajax_object.ajax_url,
|
1106 |
type:"post",
|
1107 |
data: {action: "new_notification_read"},
|
1108 |
success:function(msg){
|
1115 |
});
|
1116 |
jQuery("body").on("click", ".sfsi_new_notification_cross_cat", function(){
|
1117 |
SFSI.ajax({
|
1118 |
+
url:sfsi_icon_ajax_object.ajax_url,
|
1119 |
type:"post",
|
1120 |
data: {action: "new_notification_read"},
|
1121 |
success:function(msg){
|
libs/controllers/sfsi_class_theme_check.php
CHANGED
@@ -2,6 +2,7 @@
|
|
2 |
|
3 |
class sfsi_ThemeCheck
|
4 |
{
|
|
|
5 |
public function sfsi_plus_string_to_arr($str){
|
6 |
|
7 |
$arrSingleQuote = array();
|
@@ -288,6 +289,114 @@ class sfsi_ThemeCheck
|
|
288 |
return $boolSeparateWord;
|
289 |
}
|
290 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
291 |
|
292 |
public function sfsi_plus_noBrainerKeywordCheck($arrNoBrainerKeywords,$domainname){
|
293 |
|
@@ -303,6 +412,7 @@ class sfsi_ThemeCheck
|
|
303 |
}
|
304 |
|
305 |
|
|
|
306 |
public function sfsi_plus_check_type_of_websiteWithNoBrainerAndSeparateAndNegativeKeywords($strCheckForThemeType,$arrNoBrainerKeywords,$arrSeparateKeywords,$arrNoBrainerAndSeparateKeywords,$arrNegativeKeywords,$domainname){
|
307 |
|
308 |
$flag = false;
|
@@ -318,7 +428,7 @@ class sfsi_ThemeCheck
|
|
318 |
$explode = explode(".", $domainname);
|
319 |
$domainname = @$explode[0];
|
320 |
}
|
321 |
-
|
322 |
|
323 |
if($this->sfsi_plus_noBrainerKeywordCheck($arrNoBrainerKeywords, $domainname)){
|
324 |
$flag = true;
|
@@ -326,11 +436,87 @@ class sfsi_ThemeCheck
|
|
326 |
else if($this->sfsi_plus_SeparateKeywordCheck($arrSeparateKeywords,$domainname)){
|
327 |
$flag = true;
|
328 |
}
|
329 |
-
}
|
330 |
}
|
331 |
return ($flag)? $strCheckForThemeType:$flag;
|
332 |
}
|
333 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
334 |
public function sfsi_plus_bannereHtml($title, $siteLink, $bannerImage, $buttonTitle)
|
335 |
{
|
336 |
echo '<div class="sfsi_new_notification_cat">
|
2 |
|
3 |
class sfsi_ThemeCheck
|
4 |
{
|
5 |
+
public $metaArray = null;
|
6 |
public function sfsi_plus_string_to_arr($str){
|
7 |
|
8 |
$arrSingleQuote = array();
|
289 |
return $boolSeparateWord;
|
290 |
}
|
291 |
|
292 |
+
public function sfsi_plus_MetaKeywordCheck($arrSeparateKeywords,$domainname){
|
293 |
+
$keywordInMeta = false;
|
294 |
+
$metaArray = $this->sfsi_plus_GetMetaName($domainname);
|
295 |
+
foreach($metaArray as $index=>$meta){
|
296 |
+
if($this->sfsi_plus_noBrainerKeywordCheck($arrNoBrainerKeywords, $domainname)){
|
297 |
+
$flag = true;
|
298 |
+
}
|
299 |
+
else if($this->sfsi_plus_SeparateKeywordCheck($arrSeparateKeywords,$domainname)){
|
300 |
+
$flag = true;
|
301 |
+
}
|
302 |
+
}
|
303 |
+
return $keywordInMeta;
|
304 |
+
}
|
305 |
+
|
306 |
+
public function sfsi_plus_GetMetaKeywords($domainname){
|
307 |
+
$url = get_bloginfo('url');
|
308 |
+
$res= wp_remote_get($url);
|
309 |
+
$meta_local = ["title"=>[],"description"=>[],"keyword"=>[]];
|
310 |
+
if ( is_array( $res ) && ! is_wp_error( $res ) ) {
|
311 |
+
$body = $res['body']; // use the content
|
312 |
+
$meta = [];
|
313 |
+
if(false==class_exists("DomDocument")) {
|
314 |
+
$metas=[];
|
315 |
+
preg_match_all( '/\<meta.+name="(\w*)".+content="(.*)"/i', $body, $metas);
|
316 |
+
preg_match_all( '/\<meta.+property="og:(\w*)".+content="(.*)"/i', $body, $metas2);
|
317 |
+
// $metas[1]=array_merge($metas[1],$metas2[1]);
|
318 |
+
// $metas[2]=array_merge($metas[2],$metas2[2]);
|
319 |
+
if(isset($metas)&&is_array($metas)&&isset($metas[1])&&isset($metas[2])){
|
320 |
+
foreach($metas[1] as $index=>$meta_name){
|
321 |
+
if($meta_name==="keywords" && isset($metas[2][$index])) {
|
322 |
+
$meta['keywords']=$metas[2][$index];
|
323 |
+
}
|
324 |
+
if($meta_name === "description" && isset($metas[2][$index])){
|
325 |
+
$meta['description']=$metas[2][$index];
|
326 |
+
}
|
327 |
+
}
|
328 |
+
}
|
329 |
+
if(isset($metas2)&&is_array($metas2)&&isset($metas2[1])&&isset($metas2[2])){
|
330 |
+
foreach($metas2[1] as $index=>$meta_name){
|
331 |
+
// var_dump($meta_name,$meta_name === "description" ,$metas2[2][$index]);
|
332 |
+
if($meta_name==="keywords" && isset($metas2[2][$index])) {
|
333 |
+
$meta[$meta_name]=$metas2[2][$index];
|
334 |
+
}
|
335 |
+
if($meta_name === "description" && isset($metas2[2][$index])&&!isset($meta[$meta_name])){
|
336 |
+
$meta[$meta_name]=$metas2[2][$index];
|
337 |
+
}
|
338 |
+
}
|
339 |
+
}
|
340 |
+
// var_dump($meta);die();
|
341 |
+
if(isset($meta['keywords'])){
|
342 |
+
$meta_local["keyword"]=array_filter(explode(',',$meta['keywords']),function($data){
|
343 |
+
return $data!=="";
|
344 |
+
});
|
345 |
+
}
|
346 |
+
if(isset($meta['description'])){
|
347 |
+
$meta['description']=preg_replace("/[^A-Za-z ]/", '', strtolower($meta['description']));
|
348 |
+
$meta_local["description"]=array_filter(explode( '\s+',$meta['description']),function($data){
|
349 |
+
return $data!=="";
|
350 |
+
});
|
351 |
+
}
|
352 |
+
$preg_res=preg_match("/<title>(.+)<\/title>/i", $body, $matches);
|
353 |
+
if($preg_res){
|
354 |
+
$meta['title']=preg_replace("/[^A-Za-z ]/", '', strtolower($matches[1]));
|
355 |
+
$meta_local["title"]=array_filter(explode('\s+',$meta['title']),function($data){
|
356 |
+
return $data!=="";
|
357 |
+
});
|
358 |
+
}
|
359 |
+
|
360 |
+
}else{
|
361 |
+
$doc = new \DOMDocument();
|
362 |
+
@$doc->loadHTML($body);
|
363 |
+
$nodes = $doc->getElementsByTagName('meta');
|
364 |
+
foreach($nodes as $index=>$node){
|
365 |
+
if(null!==$node->getAttribute('name')) {
|
366 |
+
$meta[$node->getAttribute('name')]=$node->getAttribute('content');
|
367 |
+
}elseif(null!==$node->getAttribute('property')){
|
368 |
+
$meta[$node->getAttribute('property')]=$node->getAttribute('content');
|
369 |
+
}
|
370 |
+
}
|
371 |
+
$meta['title'] = (null!==$doc->getElementsByTagName('title'))&&count($doc->getElementsByTagName('title'))>0?$doc->getElementsByTagName('title')->item(0)->nodeValue:'';
|
372 |
+
if(isset($meta['keywords'])) {
|
373 |
+
$meta_local["keyword"]=array_filter(explode(',',$meta['keywords']),function($data){
|
374 |
+
return $data!=="";
|
375 |
+
});
|
376 |
+
}
|
377 |
+
if(isset($meta['description'])){
|
378 |
+
$meta['description']=preg_replace("/[^A-Za-z ]/", '', strtolower($meta['description']));
|
379 |
+
$meta_local["description"]=array_filter(explode( '\s+',$meta['description']),function($data){
|
380 |
+
return $data!=="";
|
381 |
+
});
|
382 |
+
}
|
383 |
+
if(count($meta_local["description"])==0 && isset($meta['og:description'])){
|
384 |
+
$meta['description']=preg_replace("/[^A-Za-z ]/", '', strtolower($meta['og:description']));
|
385 |
+
$meta_local["description"]=array_filter(explode( '\s+',$meta['description']),function($data){
|
386 |
+
return $data!=="";
|
387 |
+
});
|
388 |
+
}
|
389 |
+
if(isset($meta['title'])){
|
390 |
+
$meta['title']=preg_replace("/[^A-Za-z ]/", '', strtolower($meta['title']));
|
391 |
+
// var_dump($meta['title']);die();
|
392 |
+
$meta_local["title"]= array_filter(explode('\s+',$meta['title']),function($data){
|
393 |
+
return $data!=="";
|
394 |
+
});
|
395 |
+
}
|
396 |
+
}
|
397 |
+
}
|
398 |
+
return $meta_local;
|
399 |
+
}
|
400 |
|
401 |
public function sfsi_plus_noBrainerKeywordCheck($arrNoBrainerKeywords,$domainname){
|
402 |
|
412 |
}
|
413 |
|
414 |
|
415 |
+
|
416 |
public function sfsi_plus_check_type_of_websiteWithNoBrainerAndSeparateAndNegativeKeywords($strCheckForThemeType,$arrNoBrainerKeywords,$arrSeparateKeywords,$arrNoBrainerAndSeparateKeywords,$arrNegativeKeywords,$domainname){
|
417 |
|
418 |
$flag = false;
|
428 |
$explode = explode(".", $domainname);
|
429 |
$domainname = @$explode[0];
|
430 |
}
|
431 |
+
}
|
432 |
|
433 |
if($this->sfsi_plus_noBrainerKeywordCheck($arrNoBrainerKeywords, $domainname)){
|
434 |
$flag = true;
|
436 |
else if($this->sfsi_plus_SeparateKeywordCheck($arrSeparateKeywords,$domainname)){
|
437 |
$flag = true;
|
438 |
}
|
439 |
+
}
|
440 |
}
|
441 |
return ($flag)? $strCheckForThemeType:$flag;
|
442 |
}
|
443 |
|
444 |
+
public function sfsi_plus_check_type_of_metaTitleWithNoBrainerAndSeparateAndNegativeKeywords($strCheckForThemeType,$arrNoBrainerKeywords,$arrSeparateKeywords,$arrNoBrainerAndSeparateKeywords,$arrNegativeKeywords,$domainname){
|
445 |
+
$flag = false;
|
446 |
+
|
447 |
+
if(isset($arrNoBrainerAndSeparateKeywords) && is_array($arrNoBrainerAndSeparateKeywords) && count($arrNoBrainerAndSeparateKeywords)>0){
|
448 |
+
|
449 |
+
if(null==$this->metaArray){
|
450 |
+
$this->metaArray = $this->sfsi_plus_GetMetaKeywords($domainname);
|
451 |
+
}
|
452 |
+
foreach($this->metaArray["title"] as $index=>$keyword){
|
453 |
+
if(!empty($keyword))
|
454 |
+
{
|
455 |
+
if(isset($arrNegativeKeywords) && is_array($arrNegativeKeywords) && count($arrNegativeKeywords)){
|
456 |
+
$keyword = preg_replace($this->sfsi_plus_regex_forNegative_keywords($arrNegativeKeywords), '', $keyword);
|
457 |
+
}
|
458 |
+
}
|
459 |
+
if($this->sfsi_plus_noBrainerKeywordCheck($arrNoBrainerKeywords, $keyword)){
|
460 |
+
$flag = true;
|
461 |
+
}
|
462 |
+
else if($this->sfsi_plus_SeparateKeywordCheck($arrSeparateKeywords,$keyword)){
|
463 |
+
$flag = true;
|
464 |
+
}
|
465 |
+
}
|
466 |
+
}
|
467 |
+
return ($flag)? $strCheckForThemeType:$flag;
|
468 |
+
}
|
469 |
+
public function sfsi_plus_check_type_of_metaKeywordsWithNoBrainerAndSeparateAndNegativeKeywords($strCheckForThemeType,$arrNoBrainerKeywords,$arrSeparateKeywords,$arrNoBrainerAndSeparateKeywords,$arrNegativeKeywords,$domainname){
|
470 |
+
$flag = false;
|
471 |
+
|
472 |
+
if(isset($arrNoBrainerAndSeparateKeywords) && is_array($arrNoBrainerAndSeparateKeywords) && count($arrNoBrainerAndSeparateKeywords)>0){
|
473 |
+
|
474 |
+
if(null==$this->metaArray){
|
475 |
+
$this->metaArray = $this->sfsi_plus_GetMetaKeywords($domainname);
|
476 |
+
}
|
477 |
+
foreach($this->metaArray["keyword"] as $index=>$keyword){
|
478 |
+
if(!empty($keyword))
|
479 |
+
{
|
480 |
+
if(isset($arrNegativeKeywords) && is_array($arrNegativeKeywords) && count($arrNegativeKeywords)){
|
481 |
+
$keyword = preg_replace($this->sfsi_plus_regex_forNegative_keywords($arrNegativeKeywords), '', $keyword);
|
482 |
+
}
|
483 |
+
}
|
484 |
+
if($this->sfsi_plus_noBrainerKeywordCheck($arrNoBrainerKeywords, $keyword)){
|
485 |
+
$flag = true;
|
486 |
+
}
|
487 |
+
else if($this->sfsi_plus_SeparateKeywordCheck($arrSeparateKeywords,$keyword)){
|
488 |
+
$flag = true;
|
489 |
+
}
|
490 |
+
}
|
491 |
+
}
|
492 |
+
return ($flag)? $strCheckForThemeType:$flag;
|
493 |
+
}
|
494 |
+
public function sfsi_plus_check_type_of_metaDescriptionWithNoBrainerAndSeparateAndNegativeKeywords($strCheckForThemeType,$arrNoBrainerKeywords,$arrSeparateKeywords,$arrNoBrainerAndSeparateKeywords,$arrNegativeKeywords,$domainname){
|
495 |
+
$flag = false;
|
496 |
+
|
497 |
+
if(isset($arrNoBrainerAndSeparateKeywords) && is_array($arrNoBrainerAndSeparateKeywords) && count($arrNoBrainerAndSeparateKeywords)>0){
|
498 |
+
|
499 |
+
if(null==$this->metaArray){
|
500 |
+
$this->metaArray = $this->sfsi_plus_GetMetaKeywords($domainname);
|
501 |
+
}
|
502 |
+
foreach($this->metaArray["description"] as $index=>$keyword){
|
503 |
+
if(!empty($keyword))
|
504 |
+
{
|
505 |
+
if(isset($arrNegativeKeywords) && is_array($arrNegativeKeywords) && count($arrNegativeKeywords)){
|
506 |
+
$keyword = preg_replace($this->sfsi_plus_regex_forNegative_keywords($arrNegativeKeywords), '', $keyword);
|
507 |
+
}
|
508 |
+
}
|
509 |
+
if($this->sfsi_plus_noBrainerKeywordCheck($arrNoBrainerKeywords, $keyword)){
|
510 |
+
$flag = true;
|
511 |
+
}
|
512 |
+
else if($this->sfsi_plus_SeparateKeywordCheck($arrSeparateKeywords,$keyword)){
|
513 |
+
$flag = true;
|
514 |
+
}
|
515 |
+
}
|
516 |
+
}
|
517 |
+
return ($flag)? $strCheckForThemeType:$flag;
|
518 |
+
}
|
519 |
+
|
520 |
public function sfsi_plus_bannereHtml($title, $siteLink, $bannerImage, $buttonTitle)
|
521 |
{
|
522 |
echo '<div class="sfsi_new_notification_cat">
|
libs/controllers/sfsi_socialhelper.php
CHANGED
@@ -104,23 +104,23 @@ class sfsi_SocialHelper
|
|
104 |
|
105 |
/* get google+ likes */
|
106 |
function sfsi_getPlus1($url){
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
|
125 |
}
|
126 |
|
@@ -198,37 +198,50 @@ class sfsi_SocialHelper
|
|
198 |
{
|
199 |
$user_Agent = (isset($_SERVER['HTTP_USER_AGENT'])) ? $_SERVER['HTTP_USER_AGENT'] :'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)';
|
200 |
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
211 |
return false;
|
212 |
-
} else{
|
213 |
-
return $resp["body"];
|
214 |
}
|
|
|
215 |
}
|
216 |
|
217 |
private function get_content_curl($url)
|
218 |
{
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
229 |
return false;
|
230 |
-
} else{
|
231 |
-
return $resp["body"];
|
232 |
}
|
233 |
}
|
234 |
|
@@ -498,41 +511,50 @@ class sfsi_SocialHelper
|
|
498 |
/* get no of subscribers from specificfeeds for current blog count */
|
499 |
public function SFSI_getFeedSubscriberCount($feedid)
|
500 |
{
|
501 |
-
|
502 |
-
|
503 |
-
'feed_id' => $feedid,
|
504 |
-
'v' => 'newplugincount'
|
505 |
-
);
|
506 |
-
$args = array(
|
507 |
-
'body' => $postto_array,
|
508 |
-
'blocking' => true,
|
509 |
-
'user-agent' => 'sf rss request',
|
510 |
-
'header' => array("Content-Type"=>"application/x-www-form-urlencoded"),
|
511 |
-
'sslverify' => true
|
512 |
-
);
|
513 |
-
$resp = wp_remote_post( 'https://www.specificfeeds.com/wordpress/wpCountSubscriber', $args );
|
514 |
-
$httpcode = wp_remote_retrieve_response_code($resp);
|
515 |
|
516 |
-
|
517 |
|
518 |
-
|
519 |
-
|
520 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
521 |
|
522 |
-
|
|
|
|
|
|
|
|
|
523 |
|
524 |
-
|
|
|
|
|
|
|
|
|
|
|
525 |
}
|
526 |
else{
|
527 |
$sfsi_premium_instagram_sf_count = unserialize(get_option('sfsi_sf_count',false));
|
528 |
$feeddata = $sfsi_premium_instagram_sf_count["sfsi_sf_count"];
|
529 |
}
|
|
|
530 |
}
|
531 |
else{
|
532 |
-
|
533 |
-
$feeddata = $sfsi_premium_instagram_sf_count["sfsi_sf_count"];
|
534 |
}
|
535 |
-
return $this->format_num($feeddata);
|
536 |
|
537 |
exit;
|
538 |
}
|
104 |
|
105 |
/* get google+ likes */
|
106 |
function sfsi_getPlus1($url){
|
107 |
+
|
108 |
+
if(_is_curl_installed()){
|
109 |
+
$curl = curl_init();
|
110 |
+
curl_setopt($curl, CURLOPT_URL, "https://clients6.google.com/rpc");
|
111 |
+
curl_setopt($curl, CURLOPT_POST, 1);
|
112 |
+
curl_setopt($curl, CURLOPT_POSTFIELDS, '[{"method":"pos.plusones.get","id":"p","params":{"nolog":true,"id":"' . $url . '","source":"widget","userId":"@viewer","groupId":"@self"},"jsonrpc":"2.0","key":"p","apiVersion":"v1"}]');
|
113 |
+
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
|
114 |
+
curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-type: application/json'));
|
115 |
+
$curl_results = curl_exec ($curl);
|
116 |
+
curl_close ($curl);
|
117 |
+
$json = json_decode($curl_results, true);
|
118 |
+
|
119 |
+
return intval( $json[0]['result']['metadata']['globalCounts']['count'] );
|
120 |
+
}
|
121 |
+
else{
|
122 |
+
return 0;
|
123 |
+
}
|
124 |
|
125 |
}
|
126 |
|
198 |
{
|
199 |
$user_Agent = (isset($_SERVER['HTTP_USER_AGENT'])) ? $_SERVER['HTTP_USER_AGENT'] :'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)';
|
200 |
|
201 |
+
if(_is_curl_installed()){
|
202 |
+
|
203 |
+
$ch = curl_init();
|
204 |
+
curl_setopt($ch, CURLOPT_URL, $url);
|
205 |
+
curl_setopt($ch, CURLOPT_USERAGENT, $user_Agent);
|
206 |
+
curl_setopt($ch, CURLOPT_FAILONERROR, 1);
|
207 |
+
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
|
208 |
+
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
|
209 |
+
curl_setopt($ch, CURLOPT_TIMEOUT, $this->timeout);
|
210 |
+
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
211 |
+
$cont = curl_exec($ch);
|
212 |
+
if(curl_error($ch))
|
213 |
+
{
|
214 |
+
//die(curl_error($ch));
|
215 |
+
}
|
216 |
+
return $cont;
|
217 |
+
}
|
218 |
+
else{
|
219 |
return false;
|
|
|
|
|
220 |
}
|
221 |
+
|
222 |
}
|
223 |
|
224 |
private function get_content_curl($url)
|
225 |
{
|
226 |
+
if(_is_curl_installed()){
|
227 |
+
$curl = curl_init();
|
228 |
+
curl_setopt($curl, CURLOPT_HEADER, false);
|
229 |
+
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
|
230 |
+
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
|
231 |
+
curl_setopt($curl, CURLOPT_HTTPGET, 1);
|
232 |
+
curl_setopt($curl, CURLOPT_URL, $url );
|
233 |
+
curl_setopt($curl, CURLOPT_DNS_USE_GLOBAL_CACHE, false );
|
234 |
+
curl_setopt($curl, CURLOPT_DNS_CACHE_TIMEOUT, 2 );
|
235 |
+
$cont = curl_exec($curl);
|
236 |
+
|
237 |
+
if(curl_error($curl))
|
238 |
+
{
|
239 |
+
//die(curl_error($ch));
|
240 |
+
}
|
241 |
+
return $cont;
|
242 |
+
}
|
243 |
+
else{
|
244 |
return false;
|
|
|
|
|
245 |
}
|
246 |
}
|
247 |
|
511 |
/* get no of subscribers from specificfeeds for current blog count */
|
512 |
public function SFSI_getFeedSubscriberCount($feedid)
|
513 |
{
|
514 |
+
|
515 |
+
if(_is_curl_installed()){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
516 |
|
517 |
+
$curl = curl_init();
|
518 |
|
519 |
+
curl_setopt_array($curl, array(
|
520 |
+
|
521 |
+
CURLOPT_RETURNTRANSFER => 1,
|
522 |
+
CURLOPT_URL => 'http://www.specificfeeds.com/wordpress/wpCountSubscriber',
|
523 |
+
CURLOPT_USERAGENT => 'sf rss request',
|
524 |
+
CURLOPT_POST => 1,
|
525 |
+
CURLOPT_TIMEOUT => 30,
|
526 |
+
CURLOPT_POSTFIELDS => array('feed_id' => $feedid, 'v' => "newplugincount")
|
527 |
+
));
|
528 |
+
|
529 |
+
/* Send the request & save response to $resp */
|
530 |
+
$resp = curl_exec($curl);
|
531 |
+
|
532 |
+
$httpcode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
|
533 |
+
|
534 |
+
if($httpcode == 200){
|
535 |
|
536 |
+
if(!empty($resp))
|
537 |
+
{
|
538 |
+
$resp = json_decode($resp);
|
539 |
+
|
540 |
+
curl_close($curl);
|
541 |
|
542 |
+
$feeddata = stripslashes_deep($resp->subscriber_count);
|
543 |
+
}
|
544 |
+
else{
|
545 |
+
$sfsi_premium_instagram_sf_count = unserialize(get_option('sfsi_sf_count',false));
|
546 |
+
$feeddata = $sfsi_premium_instagram_sf_count["sfsi_sf_count"];
|
547 |
+
}
|
548 |
}
|
549 |
else{
|
550 |
$sfsi_premium_instagram_sf_count = unserialize(get_option('sfsi_sf_count',false));
|
551 |
$feeddata = $sfsi_premium_instagram_sf_count["sfsi_sf_count"];
|
552 |
}
|
553 |
+
return $this->format_num($feeddata);
|
554 |
}
|
555 |
else{
|
556 |
+
return 0;
|
|
|
557 |
}
|
|
|
558 |
|
559 |
exit;
|
560 |
}
|
libs/sfsi_Init_JqueryCss.php
CHANGED
@@ -51,8 +51,8 @@ function theme_back_enqueue_script()
|
|
51 |
/* end cusotm js */
|
52 |
|
53 |
/* initilaize the ajax url in javascript */
|
54 |
-
wp_localize_script( 'SFSICustomJs', '
|
55 |
-
wp_localize_script( 'SFSICustomJs', '
|
56 |
}
|
57 |
}
|
58 |
}
|
@@ -79,8 +79,8 @@ function theme_front_enqueue_script()
|
|
79 |
/* end cusotm js */
|
80 |
|
81 |
/* initilaize the ajax url in javascript */
|
82 |
-
wp_localize_script( 'SFSICustomJs', '
|
83 |
-
wp_localize_script( 'SFSICustomJs', '
|
84 |
|
85 |
/* include CSS for front-end and backend */
|
86 |
wp_enqueue_style("SFSImainCss", SFSI_PLUGURL . 'css/sfsi-style.css', true);
|
51 |
/* end cusotm js */
|
52 |
|
53 |
/* initilaize the ajax url in javascript */
|
54 |
+
wp_localize_script( 'SFSICustomJs', 'sfsi_icon_ajax_object', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) );
|
55 |
+
wp_localize_script( 'SFSICustomJs', 'sfsi_icon_ajax_object', array( 'ajax_url' => admin_url( 'admin-ajax.php' ),'plugin_url'=> SFSI_PLUGURL) );
|
56 |
}
|
57 |
}
|
58 |
}
|
79 |
/* end cusotm js */
|
80 |
|
81 |
/* initilaize the ajax url in javascript */
|
82 |
+
wp_localize_script( 'SFSICustomJs', 'sfsi_icon_ajax_object', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) );
|
83 |
+
wp_localize_script( 'SFSICustomJs', 'sfsi_icon_ajax_object', array( 'ajax_url' => admin_url( 'admin-ajax.php' ),'plugin_url'=> SFSI_PLUGURL) );
|
84 |
|
85 |
/* include CSS for front-end and backend */
|
86 |
wp_enqueue_style("SFSImainCss", SFSI_PLUGURL . 'css/sfsi-style.css', true);
|
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 |
{
|
@@ -668,23 +668,21 @@ function sfsi_deactivate_plugin()
|
|
668 |
|
669 |
function sfsi_updateFeedPing($status,$feed_id)
|
670 |
{
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
);
|
685 |
-
|
686 |
-
$resp = wp_remote_post( 'https://www.specificfeeds.com/wordpress/pingfeed', $args );
|
687 |
-
return $resp['body'];
|
688 |
}
|
689 |
/* unistall plugin function */
|
690 |
function sfsi_Unistall_plugin()
|
@@ -752,73 +750,70 @@ if ( is_admin() ){
|
|
752 |
/* fetch rss url from specificfeeds */
|
753 |
function SFSI_getFeedUrl()
|
754 |
{
|
755 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
756 |
'web_url' => get_bloginfo('url'),
|
757 |
'feed_url' => sfsi_get_bloginfo('rss2_url'),
|
758 |
'email' => '',
|
759 |
'subscriber_type' => 'OWP'
|
760 |
-
)
|
761 |
-
|
762 |
-
|
763 |
-
|
764 |
-
|
765 |
-
|
766 |
-
'header' => array("Content-Type"=>"application/x-www-form-urlencoded"),
|
767 |
-
'sslverify' => true
|
768 |
-
);
|
769 |
-
$resp = wp_remote_post( 'https://www.specificfeeds.com/wordpress/plugin_setup', $args );
|
770 |
-
if ( is_wp_error( $resp ) ) {
|
771 |
update_option("sfsi_curlErrorNotices", "yes");
|
772 |
-
update_option("sfsi_curlErrorMessage", $
|
773 |
-
} else {
|
774 |
-
$resp = json_decode($resp['body']);
|
775 |
-
// $feed_url = stripslashes_deep($resp->redirect_url);
|
776 |
-
// return $feed_url;
|
777 |
}
|
|
|
|
|
|
|
|
|
778 |
return $resp;exit;
|
779 |
}
|
780 |
/* fetch rss url from specificfeeds on */
|
781 |
function SFSI_updateFeedUrl()
|
782 |
{
|
783 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
784 |
'feed_id' => sanitize_text_field(get_option('sfsi_feed_id')),
|
785 |
'web_url' => get_bloginfo('url'),
|
786 |
'feed_url' => sfsi_get_bloginfo('rss2_url'),
|
787 |
'email' => ''
|
788 |
-
)
|
789 |
-
|
790 |
-
|
791 |
-
|
792 |
-
|
793 |
-
|
794 |
-
|
795 |
-
'sslverify' => true
|
796 |
-
);
|
797 |
-
$resp = wp_remote_post( 'https://www.specificfeeds.com/wordpress/updateFeedPlugin', $args );
|
798 |
-
if ( is_wp_error( $resp ) ) {
|
799 |
-
update_option("sfsi_curlErrorNotices", "yes");
|
800 |
-
update_option("sfsi_curlErrorMessage", $resp->get_error_message());
|
801 |
-
} else {
|
802 |
-
$resp = json_decode($resp['body']);
|
803 |
-
}
|
804 |
-
|
805 |
$feed_url = stripslashes_deep($resp->redirect_url);
|
806 |
return $resp;exit;
|
807 |
}
|
808 |
/* add sf tags */
|
809 |
function sfsi_setUpfeeds($feed_id)
|
810 |
{
|
811 |
-
$
|
812 |
-
|
813 |
-
|
814 |
-
'
|
815 |
-
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
-
|
820 |
-
update_option("sfsi_curlErrorMessage", $resp->get_error_message());
|
821 |
-
}
|
822 |
}
|
823 |
/* admin notice if wp_head is missing in active theme */
|
824 |
function sfsi_check_wp_head() {
|
@@ -1003,49 +998,48 @@ function sfsi_pingVendor( $post_id )
|
|
1003 |
return;
|
1004 |
$post_data=get_post($post_id,ARRAY_A);
|
1005 |
if($post_data['post_status']=='publish' && $post_data['post_type']=='post') :
|
1006 |
-
|
1007 |
-
|
1008 |
-
|
1009 |
-
|
1010 |
-
|
1011 |
-
|
1012 |
-
|
1013 |
-
|
1014 |
-
|
1015 |
-
|
1016 |
-
}
|
1017 |
-
else
|
1018 |
-
{
|
1019 |
-
$cats.=$cat_data->name.',';
|
1020 |
-
}
|
1021 |
-
$count++;
|
1022 |
}
|
1023 |
-
|
1024 |
-
|
1025 |
-
|
1026 |
-
'description'=> $post_data['post_content'],
|
1027 |
-
'link' => $post_data['guid'],
|
1028 |
-
'author' => get_the_author_meta('user_login', $post_data['post_author']),
|
1029 |
-
'category' => $cats,
|
1030 |
-
'pubDate' => $post_data['post_modified'],
|
1031 |
-
'rssurl' => sfsi_get_bloginfo('rss2_url')
|
1032 |
-
);
|
1033 |
-
$args = array(
|
1034 |
-
'body' => $postto_array,
|
1035 |
-
'blocking' => true,
|
1036 |
-
'user-agent' => 'sf rss request',
|
1037 |
-
'header' => array("Content-Type"=>"application/x-www-form-urlencoded"),
|
1038 |
-
'sslverify' => true
|
1039 |
-
);
|
1040 |
-
$resp = wp_remote_post( 'https://www.specificfeeds.com/wordpress/updateFeedPlugin', $args );
|
1041 |
-
if ( is_wp_error( $resp ) ) {
|
1042 |
-
update_option("sfsi_curlErrorNotices", "yes");
|
1043 |
-
update_option("sfsi_curlErrorMessage", $resp->get_error_message());
|
1044 |
-
return false;
|
1045 |
-
} else {
|
1046 |
-
$resp = json_decode($resp['body']);
|
1047 |
-
return true;
|
1048 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1049 |
endif;
|
1050 |
}
|
1051 |
add_action( 'save_post', 'sfsi_pingVendor' );
|
12 |
}
|
13 |
|
14 |
//Install version
|
15 |
+
update_option("sfsi_pluginVersion", "2.14");
|
16 |
|
17 |
if(!get_option('sfsi_serverphpVersionnotification'))
|
18 |
{
|
668 |
|
669 |
function sfsi_updateFeedPing($status,$feed_id)
|
670 |
{
|
671 |
+
$curl = curl_init();
|
672 |
+
curl_setopt_array($curl, array(
|
673 |
+
CURLOPT_RETURNTRANSFER => 1,
|
674 |
+
CURLOPT_URL => 'http://www.specificfeeds.com/wordpress/pingfeed',
|
675 |
+
CURLOPT_USERAGENT => 'sf rss request',
|
676 |
+
CURLOPT_POST => 1,
|
677 |
+
CURLOPT_POSTFIELDS => array(
|
678 |
+
'feed_id' => $feed_id,
|
679 |
+
'status' => $status
|
680 |
+
)
|
681 |
+
));
|
682 |
+
// Send the request & save response to $resp
|
683 |
+
$resp = curl_exec($curl);
|
684 |
+
$resp=json_decode($resp);
|
685 |
+
curl_close($curl);
|
|
|
|
|
686 |
}
|
687 |
/* unistall plugin function */
|
688 |
function sfsi_Unistall_plugin()
|
750 |
/* fetch rss url from specificfeeds */
|
751 |
function SFSI_getFeedUrl()
|
752 |
{
|
753 |
+
$curl = curl_init();
|
754 |
+
|
755 |
+
curl_setopt_array($curl, array(
|
756 |
+
CURLOPT_RETURNTRANSFER => 1,
|
757 |
+
CURLOPT_URL => 'http://www.specificfeeds.com/wordpress/plugin_setup',
|
758 |
+
CURLOPT_USERAGENT => 'sf rss request',
|
759 |
+
CURLOPT_POST => 1,
|
760 |
+
CURLOPT_POSTFIELDS => array(
|
761 |
'web_url' => get_bloginfo('url'),
|
762 |
'feed_url' => sfsi_get_bloginfo('rss2_url'),
|
763 |
'email' => '',
|
764 |
'subscriber_type' => 'OWP'
|
765 |
+
)
|
766 |
+
));
|
767 |
+
// Send the request & save response to $resp
|
768 |
+
$resp = curl_exec($curl);
|
769 |
+
if(curl_errno($curl))
|
770 |
+
{
|
|
|
|
|
|
|
|
|
|
|
771 |
update_option("sfsi_curlErrorNotices", "yes");
|
772 |
+
update_option("sfsi_curlErrorMessage", curl_errno($curl));
|
|
|
|
|
|
|
|
|
773 |
}
|
774 |
+
$resp = json_decode($resp);
|
775 |
+
curl_close($curl);
|
776 |
+
|
777 |
+
$feed_url = stripslashes_deep($resp->redirect_url);
|
778 |
return $resp;exit;
|
779 |
}
|
780 |
/* fetch rss url from specificfeeds on */
|
781 |
function SFSI_updateFeedUrl()
|
782 |
{
|
783 |
+
$curl = curl_init();
|
784 |
+
|
785 |
+
curl_setopt_array($curl, array(
|
786 |
+
CURLOPT_RETURNTRANSFER => 1,
|
787 |
+
CURLOPT_URL => 'http://www.specificfeeds.com/wordpress/updateFeedPlugin',
|
788 |
+
CURLOPT_USERAGENT => 'sf rss request',
|
789 |
+
CURLOPT_POST => 1,
|
790 |
+
CURLOPT_POSTFIELDS => array(
|
791 |
'feed_id' => sanitize_text_field(get_option('sfsi_feed_id')),
|
792 |
'web_url' => get_bloginfo('url'),
|
793 |
'feed_url' => sfsi_get_bloginfo('rss2_url'),
|
794 |
'email' => ''
|
795 |
+
)
|
796 |
+
));
|
797 |
+
// Send the request & save response to $resp
|
798 |
+
$resp = curl_exec($curl);
|
799 |
+
$resp = json_decode($resp);
|
800 |
+
curl_close($curl);
|
801 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
802 |
$feed_url = stripslashes_deep($resp->redirect_url);
|
803 |
return $resp;exit;
|
804 |
}
|
805 |
/* add sf tags */
|
806 |
function sfsi_setUpfeeds($feed_id)
|
807 |
{
|
808 |
+
$curl = curl_init();
|
809 |
+
curl_setopt_array($curl, array(
|
810 |
+
CURLOPT_RETURNTRANSFER => 1,
|
811 |
+
CURLOPT_URL => 'http://www.specificfeeds.com/rssegtcrons/download_rssmorefeed_data_single/'.$feed_id."/Y",
|
812 |
+
CURLOPT_USERAGENT => 'sf rss request',
|
813 |
+
CURLOPT_POST => 0
|
814 |
+
));
|
815 |
+
$resp = curl_exec($curl);
|
816 |
+
curl_close($curl);
|
|
|
|
|
817 |
}
|
818 |
/* admin notice if wp_head is missing in active theme */
|
819 |
function sfsi_check_wp_head() {
|
998 |
return;
|
999 |
$post_data=get_post($post_id,ARRAY_A);
|
1000 |
if($post_data['post_status']=='publish' && $post_data['post_type']=='post') :
|
1001 |
+
$categories = wp_get_post_categories($post_data['ID']);
|
1002 |
+
$cats='';
|
1003 |
+
$total=count($categories);
|
1004 |
+
$count=1;
|
1005 |
+
foreach($categories as $c)
|
1006 |
+
{
|
1007 |
+
$cat_data = get_category( $c );
|
1008 |
+
if($count==$total)
|
1009 |
+
{
|
1010 |
+
$cats.=$cat_data->name;
|
|
|
|
|
|
|
|
|
|
|
|
|
1011 |
}
|
1012 |
+
else
|
1013 |
+
{
|
1014 |
+
$cats.=$cat_data->name.',';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1015 |
}
|
1016 |
+
$count++;
|
1017 |
+
}
|
1018 |
+
$postto_array = array(
|
1019 |
+
'feed_id' => sanitize_text_field(get_option('sfsi_feed_id')),
|
1020 |
+
'title' => $post_data['post_title'],
|
1021 |
+
'description'=> $post_data['post_content'],
|
1022 |
+
'link' => $post_data['guid'],
|
1023 |
+
'author' => get_the_author_meta('user_login', $post_data['post_author']),
|
1024 |
+
'category' => $cats,
|
1025 |
+
'pubDate' => $post_data['post_modified'],
|
1026 |
+
'rssurl' => sfsi_get_bloginfo('rss2_url')
|
1027 |
+
);
|
1028 |
+
$curl = curl_init();
|
1029 |
+
|
1030 |
+
curl_setopt_array($curl, array(
|
1031 |
+
CURLOPT_RETURNTRANSFER => 1,
|
1032 |
+
CURLOPT_URL => 'http://www.specificfeeds.com/wordpress/addpostdata ',
|
1033 |
+
CURLOPT_USERAGENT => 'sf rss request',
|
1034 |
+
CURLOPT_POST => 1,
|
1035 |
+
CURLOPT_POSTFIELDS => $postto_array
|
1036 |
+
));
|
1037 |
+
// Send the request & save response to $resp
|
1038 |
+
$resp = curl_exec($curl);
|
1039 |
+
$resp=json_decode($resp);
|
1040 |
+
curl_close($curl);
|
1041 |
+
|
1042 |
+
return true;
|
1043 |
endif;
|
1044 |
}
|
1045 |
add_action( 'save_post', 'sfsi_pingVendor' );
|
libs/sfsi_widget.php
CHANGED
@@ -1124,11 +1124,11 @@ function sfsi_prepairIcons($icon_name,$is_front=0)
|
|
1124 |
}
|
1125 |
}
|
1126 |
|
1127 |
-
$cFrom = isset($
|
1128 |
|
1129 |
-
$disp = isset($
|
1130 |
|
1131 |
-
$dcount = isset($
|
1132 |
|
1133 |
/* fecth no of counts if active in admin section */
|
1134 |
if($disp=="yes" &&$dcount=="yes")
|
@@ -1221,8 +1221,7 @@ function sfsi_prepairIcons($icon_name,$is_front=0)
|
|
1221 |
}
|
1222 |
break;
|
1223 |
}
|
1224 |
-
$icons="";
|
1225 |
-
|
1226 |
/* apply size of icon */
|
1227 |
if($is_front==0)
|
1228 |
{
|
@@ -1299,8 +1298,6 @@ function sfsi_prepairIcons($icon_name,$is_front=0)
|
|
1299 |
{
|
1300 |
$margin_bot = "30px;";
|
1301 |
}
|
1302 |
-
|
1303 |
-
|
1304 |
if(isset($icon) && !empty($icon) && filter_var($icon, FILTER_VALIDATE_URL))
|
1305 |
{
|
1306 |
$icons.= "<div style='width:".$icon_width."px; height:".$icon_width."px;margin-left:".$icons_space."px;margin-bottom:".$margin_bot."' class='".$itemselector." ".$cmcls."'>";
|
@@ -1310,12 +1307,10 @@ function sfsi_prepairIcons($icon_name,$is_front=0)
|
|
1310 |
$icons.= "<a class='".$class." sficn' effect='".$mouse_hover_effect."' $new_window href='".$url."' id='sfsiid_".$icon_name."' alt='".$alt_text."' style='opacity:".$icon_opacity."' >";
|
1311 |
$icons.= "<img alt='".$alt_text."' title='".$alt_text."' src='".$icon."' width='".$icons_size."' height='".$icons_size."' style='".$border_radius.$padding_top."' class='sfcm sfsi_wicon' effect='".$mouse_hover_effect."' />";
|
1312 |
$icons.= '</a>';
|
1313 |
-
|
1314 |
if(isset($counts) && $counts!='')
|
1315 |
{
|
1316 |
$icons.= '<span class="bot_no '.$bt_class.'">'.$counts.'</span>';
|
1317 |
-
}
|
1318 |
-
|
1319 |
if($hoverSHow && !empty($hoverdiv))
|
1320 |
{
|
1321 |
$icons.= '<div class="sfsi_tool_tip_2 '.$toolClass.' '.$toolT_cls.'" style="width:'.$width.'px ;opacity:0;z-index:-1;margin-left:-'.$twt_margin.'px;" id="sfsiid_'.$icon_name.'">';
|
@@ -1324,7 +1319,7 @@ function sfsi_prepairIcons($icon_name,$is_front=0)
|
|
1324 |
$icons.= "</div>";
|
1325 |
}
|
1326 |
$icons.="</div>";
|
1327 |
-
$icons.="</div>";
|
1328 |
}
|
1329 |
return $icons;
|
1330 |
}
|
1124 |
}
|
1125 |
}
|
1126 |
|
1127 |
+
$cFrom = isset($sfsi_section4_options['sfsi_linkedIn_countsFrom']) && !empty($sfsi_section4_options['sfsi_linkedIn_countsFrom']) ? $sfsi_section4_options['sfsi_linkedIn_countsFrom'] : false;
|
1128 |
|
1129 |
+
$disp = isset($sfsi_section4_options['sfsi_linkedIn_countsDisplay']) && !empty($sfsi_section4_options['sfsi_linkedIn_countsDisplay']) ? $sfsi_section4_options['sfsi_linkedIn_countsDisplay'] : false;
|
1130 |
|
1131 |
+
$dcount = isset($sfsi_section4_options['sfsi_display_counts']) && !empty($sfsi_section4_options['sfsi_display_counts']) ? $sfsi_section4_options['sfsi_display_counts'] : false;
|
1132 |
|
1133 |
/* fecth no of counts if active in admin section */
|
1134 |
if($disp=="yes" &&$dcount=="yes")
|
1221 |
}
|
1222 |
break;
|
1223 |
}
|
1224 |
+
$icons="";
|
|
|
1225 |
/* apply size of icon */
|
1226 |
if($is_front==0)
|
1227 |
{
|
1298 |
{
|
1299 |
$margin_bot = "30px;";
|
1300 |
}
|
|
|
|
|
1301 |
if(isset($icon) && !empty($icon) && filter_var($icon, FILTER_VALIDATE_URL))
|
1302 |
{
|
1303 |
$icons.= "<div style='width:".$icon_width."px; height:".$icon_width."px;margin-left:".$icons_space."px;margin-bottom:".$margin_bot."' class='".$itemselector." ".$cmcls."'>";
|
1307 |
$icons.= "<a class='".$class." sficn' effect='".$mouse_hover_effect."' $new_window href='".$url."' id='sfsiid_".$icon_name."' alt='".$alt_text."' style='opacity:".$icon_opacity."' >";
|
1308 |
$icons.= "<img alt='".$alt_text."' title='".$alt_text."' src='".$icon."' width='".$icons_size."' height='".$icons_size."' style='".$border_radius.$padding_top."' class='sfcm sfsi_wicon' effect='".$mouse_hover_effect."' />";
|
1309 |
$icons.= '</a>';
|
|
|
1310 |
if(isset($counts) && $counts!='')
|
1311 |
{
|
1312 |
$icons.= '<span class="bot_no '.$bt_class.'">'.$counts.'</span>';
|
1313 |
+
}
|
|
|
1314 |
if($hoverSHow && !empty($hoverdiv))
|
1315 |
{
|
1316 |
$icons.= '<div class="sfsi_tool_tip_2 '.$toolClass.' '.$toolT_cls.'" style="width:'.$width.'px ;opacity:0;z-index:-1;margin-left:-'.$twt_margin.'px;" id="sfsiid_'.$icon_name.'">';
|
1319 |
$icons.= "</div>";
|
1320 |
}
|
1321 |
$icons.="</div>";
|
1322 |
+
$icons.="</div>";
|
1323 |
}
|
1324 |
return $icons;
|
1325 |
}
|
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: 3.0
|
5 |
Tested up to: 5.0.3
|
6 |
-
Stable tag: 2.1.
|
7 |
License: GPLv2
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -274,12 +274,17 @@ You cannot use the same plugin twice, however you can install both the USM as we
|
|
274 |
|
275 |
|
276 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
277 |
= 2.1.2 =
|
278 |
* Solved: Text optimized
|
279 |
|
280 |
= 2.1.1 =
|
281 |
* Solved: design changes for chat.
|
282 |
-
* Solved: curl calls to wp_remote calls.
|
283 |
* Solved: unexpected charactor "[" error for php version 5.3.
|
284 |
|
285 |
= 2.1.0 =
|
@@ -744,5 +749,5 @@ You cannot use the same plugin twice, however you can install both the USM as we
|
|
744 |
|
745 |
== Upgrade Notice ==
|
746 |
|
747 |
-
= 2.1.
|
748 |
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: 3.0
|
5 |
Tested up to: 5.0.3
|
6 |
+
Stable tag: 2.1.4
|
7 |
License: GPLv2
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
274 |
|
275 |
|
276 |
== Changelog ==
|
277 |
+
= 2.1.4 =
|
278 |
+
* Solved: Email validation for Offline chat.
|
279 |
+
* Solved: Premium notification breaking the dashboard structure.
|
280 |
+
* Solved: changed option for linkedin count.
|
281 |
+
* Solved: ajax_object conflict with themes.
|
282 |
+
|
283 |
= 2.1.2 =
|
284 |
* Solved: Text optimized
|
285 |
|
286 |
= 2.1.1 =
|
287 |
* Solved: design changes for chat.
|
|
|
288 |
* Solved: unexpected charactor "[" error for php version 5.3.
|
289 |
|
290 |
= 2.1.0 =
|
749 |
|
750 |
== Upgrade Notice ==
|
751 |
|
752 |
+
= 2.1.4 =
|
753 |
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.1.
|
9 |
License: GPLv2 or later
|
10 |
*/
|
11 |
|
@@ -65,7 +65,7 @@ register_activation_hook(__FILE__, 'sfsi_activate_plugin' );
|
|
65 |
register_deactivation_hook(__FILE__, 'sfsi_deactivate_plugin');
|
66 |
register_uninstall_hook(__FILE__, 'sfsi_Unistall_plugin');
|
67 |
|
68 |
-
if(!get_option('sfsi_pluginVersion') || get_option('sfsi_pluginVersion') < 2.
|
69 |
{
|
70 |
add_action("init", "sfsi_update_plugin");
|
71 |
}
|
@@ -255,25 +255,21 @@ if(is_admin())
|
|
255 |
function sfsi_getverification_code()
|
256 |
{
|
257 |
$feed_id = sanitize_text_field(get_option('sfsi_feed_id'));
|
258 |
-
$
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
}else{
|
274 |
-
$resp = json_decode($request['body']);
|
275 |
-
update_option('sfsi_plus_verificatiom_code', $resp->code);
|
276 |
-
}
|
277 |
}
|
278 |
|
279 |
//checking for the youtube username and channel id option
|
@@ -525,8 +521,9 @@ function sfsi_admin_notice()
|
|
525 |
<style type="text/css">
|
526 |
|
527 |
div.sfsi_show_premium_notification{
|
528 |
-
float:
|
529 |
-
|
|
|
530 |
margin-left: 37px;
|
531 |
margin-top: 15px;
|
532 |
padding: 8px;
|
@@ -553,7 +550,7 @@ function sfsi_admin_notice()
|
|
553 |
</style>
|
554 |
<div class="updated sfsi_show_premium_notification" style="<?php //echo $style; ?>">
|
555 |
<div class="alignleft" style="margin: 9px 0;">
|
556 |
-
BIG NEWS: There is now a <b><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=notification_banner&utm_medium=banner" target="_blank">Premium Ultimate Social Media Plugin</a></b> available with many more cool features: <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=notification_banner&utm_medium=banner" target="_blank">Check it out</a>
|
557 |
</div>
|
558 |
<div class="alignright">
|
559 |
<form method="post" class="sfsi_premiumNoticeDismiss">
|
@@ -1059,7 +1056,7 @@ function sfsi_curl_error_notification()
|
|
1059 |
jQuery(document).ready(function(e) {
|
1060 |
jQuery(".sfsi_curlerror_cross").click(function(){
|
1061 |
SFSI.ajax({
|
1062 |
-
url:
|
1063 |
type:"post",
|
1064 |
data: {action: "sfsi_curlerrornotification"},
|
1065 |
success:function(msg)
|
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.1.4
|
9 |
License: GPLv2 or later
|
10 |
*/
|
11 |
|
65 |
register_deactivation_hook(__FILE__, 'sfsi_deactivate_plugin');
|
66 |
register_uninstall_hook(__FILE__, 'sfsi_Unistall_plugin');
|
67 |
|
68 |
+
if(!get_option('sfsi_pluginVersion') || get_option('sfsi_pluginVersion') < 2.14)
|
69 |
{
|
70 |
add_action("init", "sfsi_update_plugin");
|
71 |
}
|
255 |
function sfsi_getverification_code()
|
256 |
{
|
257 |
$feed_id = sanitize_text_field(get_option('sfsi_feed_id'));
|
258 |
+
$curl = curl_init();
|
259 |
+
curl_setopt_array($curl, array(
|
260 |
+
CURLOPT_RETURNTRANSFER => 1,
|
261 |
+
CURLOPT_URL => 'http://www.specificfeeds.com/wordpress/getVerifiedCode_plugin',
|
262 |
+
CURLOPT_USERAGENT => 'sf get verification',
|
263 |
+
CURLOPT_POST => 1,
|
264 |
+
CURLOPT_POSTFIELDS => array(
|
265 |
+
'feed_id' => $feed_id
|
266 |
+
)
|
267 |
+
));
|
268 |
+
// Send the request & save response to $resp
|
269 |
+
$resp = curl_exec($curl);
|
270 |
+
$resp = json_decode($resp);
|
271 |
+
update_option('sfsi_verificatiom_code', $resp->code);
|
272 |
+
curl_close($curl);
|
|
|
|
|
|
|
|
|
273 |
}
|
274 |
|
275 |
//checking for the youtube username and channel id option
|
521 |
<style type="text/css">
|
522 |
|
523 |
div.sfsi_show_premium_notification{
|
524 |
+
float: none;
|
525 |
+
display:inline-block;
|
526 |
+
width: 98.2%;
|
527 |
margin-left: 37px;
|
528 |
margin-top: 15px;
|
529 |
padding: 8px;
|
550 |
</style>
|
551 |
<div class="updated sfsi_show_premium_notification" style="<?php //echo $style; ?>">
|
552 |
<div class="alignleft" style="margin: 9px 0;">
|
553 |
+
BIG NEWS : There is now a <b><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=notification_banner&utm_medium=banner" target="_blank">Premium Ultimate Social Media Plugin</a></b> available with many more cool features : <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=notification_banner&utm_medium=banner" target="_blank">Check it out</a>
|
554 |
</div>
|
555 |
<div class="alignright">
|
556 |
<form method="post" class="sfsi_premiumNoticeDismiss">
|
1056 |
jQuery(document).ready(function(e) {
|
1057 |
jQuery(".sfsi_curlerror_cross").click(function(){
|
1058 |
SFSI.ajax({
|
1059 |
+
url:sfsi_icon_ajax_object.ajax_url,
|
1060 |
type:"post",
|
1061 |
data: {action: "sfsi_curlerrornotification"},
|
1062 |
success:function(msg)
|
views/sfsi_chat_on_admin_pannel.php
CHANGED
@@ -5,7 +5,7 @@ $current_user=wp_get_current_user();
|
|
5 |
$email = $current_user->user_email;
|
6 |
?>
|
7 |
<div id="sfsi_jivo_offline_chat" style="display:none">
|
8 |
-
<a href="" style="float:right;font-size:
|
9 |
<p style="text-align:center" class="heading-text">No chat agent are available, However <span style="text-decoration: underline">we'll still respond quickly</span>.
|
10 |
<!-- <a target="_blank" href="https://goo.gl/MU6pTN#no-topic-0" >we'll still respond quickly</a> -->
|
11 |
</p>
|
@@ -70,7 +70,7 @@ var sfsi_jivo_init=function(){ var widget_id =window.sfsi_plus_jivo_widget_id= '
|
|
70 |
var sfsi_dummy_chat_icon={};
|
71 |
sfsi_dummy_chat_icon.element=document.createElement('div');
|
72 |
sfsi_dummy_chat_icon.element.id="sfsi_dummy_chat_icon";
|
73 |
-
sfsi_dummy_chat_icon.element.style="position:fixed; bottom:0;right:10px;width:350px;height:74px;cursor:pointer;background-image:url('<?php echo SFSI_PLUGURL.'images/
|
74 |
function sfsi_open_chat(){
|
75 |
if(window.jivo_api){
|
76 |
if( window.jivo_api.chatMode()==='online'){
|
5 |
$email = $current_user->user_email;
|
6 |
?>
|
7 |
<div id="sfsi_jivo_offline_chat" style="display:none">
|
8 |
+
<a href="" style="float:right;font-size:20px;margin-right:5px;color:#888;text-decoration: none;" onclick="sfsi_close_offline_chat(event)">X</a>
|
9 |
<p style="text-align:center" class="heading-text">No chat agent are available, However <span style="text-decoration: underline">we'll still respond quickly</span>.
|
10 |
<!-- <a target="_blank" href="https://goo.gl/MU6pTN#no-topic-0" >we'll still respond quickly</a> -->
|
11 |
</p>
|
70 |
var sfsi_dummy_chat_icon={};
|
71 |
sfsi_dummy_chat_icon.element=document.createElement('div');
|
72 |
sfsi_dummy_chat_icon.element.id="sfsi_dummy_chat_icon";
|
73 |
+
sfsi_dummy_chat_icon.element.style="position:fixed; bottom:0;right:10px;width:350px;height:74px;cursor:pointer;background-image:url('<?php echo SFSI_PLUGURL.'images/Chat_with_us_bar_light_green.png' ?>');background-position: -12.5px -11.5px;background-size: 374px 101px;border-top-left-radius: 8px;border-top-right-radius: 8px;";
|
74 |
function sfsi_open_chat(){
|
75 |
if(window.jivo_api){
|
76 |
if( window.jivo_api.chatMode()==='online'){
|
views/sfsi_option_view2.php
CHANGED
@@ -150,7 +150,7 @@ if("id"== $option2['sfsi_youtubeusernameorid'] && isset($option2['sfsi_youtubeus
|
|
150 |
<!-- EMAIL ICON -->
|
151 |
<?php
|
152 |
$feedId = sanitize_text_field(get_option('sfsi_feed_id',false));
|
153 |
-
$connectToFeed = "
|
154 |
?>
|
155 |
<div class="row email_section">
|
156 |
<h2 class="sfsicls_email">Email</h2>
|
@@ -158,7 +158,7 @@ if("id"== $option2['sfsi_youtubeusernameorid'] && isset($option2['sfsi_youtubeus
|
|
158 |
|
159 |
<div class="inr_cont">
|
160 |
<p>
|
161 |
-
Allows your visitors to subscribe to your site (on <a href="
|
162 |
</p>
|
163 |
<p>Please pick which icon type you want to use:</p>
|
164 |
<ul class="tab_2_email_sec">
|
150 |
<!-- EMAIL ICON -->
|
151 |
<?php
|
152 |
$feedId = sanitize_text_field(get_option('sfsi_feed_id',false));
|
153 |
+
$connectToFeed = "http://www.specificfeeds.com/?".base64_encode("userprofile=wordpress&feed_id=".$feedId);
|
154 |
?>
|
155 |
<div class="row email_section">
|
156 |
<h2 class="sfsicls_email">Email</h2>
|
158 |
|
159 |
<div class="inr_cont">
|
160 |
<p>
|
161 |
+
Allows your visitors to subscribe to your site (on <a href="http://www.specificfeeds.com/widgets/emailSubscribeEncFeed/<?php echo $feedId; ?>/<?php echo base64_encode(8); ?>" target="_new">this screen</a>) and receive new posts automatically by email.
|
162 |
</p>
|
163 |
<p>Please pick which icon type you want to use:</p>
|
164 |
<ul class="tab_2_email_sec">
|
views/sfsi_option_view8.php
CHANGED
@@ -44,7 +44,7 @@ $option8['sfsi_form_button_background'] = (isset($option8['sfsi_form_button_back
|
|
44 |
<?php sfsi_curl_error_notification(); ?>
|
45 |
</div>
|
46 |
<?php
|
47 |
-
$connectToFeed = "
|
48 |
?>
|
49 |
<p>
|
50 |
In addition to the email- and follow-icon you can also show a subscription form which maximizes chances that people subscribe to your site.
|
44 |
<?php sfsi_curl_error_notification(); ?>
|
45 |
</div>
|
46 |
<?php
|
47 |
+
$connectToFeed = "http://www.specificfeeds.com/?".base64_encode("userprofile=wordpress&feed_id=".$feedId);
|
48 |
?>
|
49 |
<p>
|
50 |
In addition to the email- and follow-icon you can also show a subscription form which maximizes chances that people subscribe to your site.
|
views/sfsi_options_view.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
jQuery(document).ready(function(e) {
|
19 |
jQuery(".sfsi_show_notification").click(function(){
|
20 |
SFSI.ajax({
|
21 |
-
url:
|
22 |
type:"post",
|
23 |
data: {action: "notification_read"},
|
24 |
success:function(msg){
|
18 |
jQuery(document).ready(function(e) {
|
19 |
jQuery(".sfsi_show_notification").click(function(){
|
20 |
SFSI.ajax({
|
21 |
+
url:sfsi_icon_ajax_object.ajax_url,
|
22 |
type:"post",
|
23 |
data: {action: "notification_read"},
|
24 |
success:function(msg){
|
views/sfsi_pop_content.php
CHANGED
@@ -9,8 +9,8 @@ define('ress_readmore_button', $ress_readmore_button);
|
|
9 |
define('rss_readmore_text2', $rss_readmore_text2);
|
10 |
|
11 |
$feedId = sanitize_text_field(get_option('sfsi_feed_id',false));
|
12 |
-
$connectToFeed = "
|
13 |
-
$connectFeedLgn = "
|
14 |
?>
|
15 |
|
16 |
<div class="pop-overlay read-overlay sfsi_feedClaimingOverlay" >
|
@@ -259,7 +259,7 @@ $pin_url= isset($option2['sfsi_pinterest_pageUrl']) && !empty($option2['sfsi_pin
|
|
259 |
|
260 |
<div class="pop-overlay read-overlay demail-1" >
|
261 |
<div class="pop_up_box sfsi_pop_up " >
|
262 |
-
<h4>Note: Also if you already offer a newsletter it makes sense to offer this option too, because it will get you <span class="mediam_txt">more readers</span>, as explained <a href="
|
263 |
<div class="button"><a href="javascript:;" class="hideemailpop" title="Ok, keep it active for the time being,I want to see how it works">Ok, keep it active for the time being, <br />
|
264 |
I want to see how it works</a></div>
|
265 |
<a href="javascript:;" id="deac_email2" title="Deactivate it">Deactivate it</a>
|
9 |
define('rss_readmore_text2', $rss_readmore_text2);
|
10 |
|
11 |
$feedId = sanitize_text_field(get_option('sfsi_feed_id',false));
|
12 |
+
$connectToFeed = "http://www.specificfeeds.com/?".base64_encode("userprofile=wordpress&feed_id=".$feedId);
|
13 |
+
$connectFeedLgn = "http://www.specificfeeds.com/?".base64_encode("userprofile=wordpress&feed_id=".$feedId."&logintype=login");
|
14 |
?>
|
15 |
|
16 |
<div class="pop-overlay read-overlay sfsi_feedClaimingOverlay" >
|
259 |
|
260 |
<div class="pop-overlay read-overlay demail-1" >
|
261 |
<div class="pop_up_box sfsi_pop_up " >
|
262 |
+
<h4>Note: Also if you already offer a newsletter it makes sense to offer this option too, because it will get you <span class="mediam_txt">more readers</span>, as explained <a href="http://www.specificfeeds.com/rss" target="_new" style="color:#5A6570;display: inline;text-decoration:underline">here</a>. </h4>
|
263 |
<div class="button"><a href="javascript:;" class="hideemailpop" title="Ok, keep it active for the time being,I want to see how it works">Ok, keep it active for the time being, <br />
|
264 |
I want to see how it works</a></div>
|
265 |
<a href="javascript:;" id="deac_email2" title="Deactivate it">Deactivate it</a>
|