Social Share Icons & Social Share Buttons - Version 3.0.3

Version Description

  • Update: solved Undefined constant notice resolved.
  • Update: ROUND SHORTCODE sharing error solved.
  • Update: curl errors in backend solved.
  • Update: ajax_object conflict solved and updated sfsi_plus_ajax.
Download this release

Release Info

Developer socialdude
Plugin Icon 128x128 Social Share Icons & Social Share Buttons
Version 3.0.3
Comparing to
See all releases

Code changes from version 3.0.2 to 3.0.3

dist/blocks.build.js CHANGED
@@ -1,110 +1 @@
1
- /******/ (function(modules) { // webpackBootstrap
2
- /******/ // The module cache
3
- /******/ var installedModules = {};
4
- /******/
5
- /******/ // The require function
6
- /******/ function __webpack_require__(moduleId) {
7
- /******/
8
- /******/ // Check if module is in cache
9
- /******/ if(installedModules[moduleId]) {
10
- /******/ return installedModules[moduleId].exports;
11
- /******/ }
12
- /******/ // Create a new module (and put it into the cache)
13
- /******/ var module = installedModules[moduleId] = {
14
- /******/ i: moduleId,
15
- /******/ l: false,
16
- /******/ exports: {}
17
- /******/ };
18
- /******/
19
- /******/ // Execute the module function
20
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
21
- /******/
22
- /******/ // Flag the module as loaded
23
- /******/ module.l = true;
24
- /******/
25
- /******/ // Return the exports of the module
26
- /******/ return module.exports;
27
- /******/ }
28
- /******/
29
- /******/
30
- /******/ // expose the modules object (__webpack_modules__)
31
- /******/ __webpack_require__.m = modules;
32
- /******/
33
- /******/ // expose the module cache
34
- /******/ __webpack_require__.c = installedModules;
35
- /******/
36
- /******/ // define getter function for harmony exports
37
- /******/ __webpack_require__.d = function(exports, name, getter) {
38
- /******/ if(!__webpack_require__.o(exports, name)) {
39
- /******/ Object.defineProperty(exports, name, {
40
- /******/ configurable: false,
41
- /******/ enumerable: true,
42
- /******/ get: getter
43
- /******/ });
44
- /******/ }
45
- /******/ };
46
- /******/
47
- /******/ // getDefaultExport function for compatibility with non-harmony modules
48
- /******/ __webpack_require__.n = function(module) {
49
- /******/ var getter = module && module.__esModule ?
50
- /******/ function getDefault() { return module['default']; } :
51
- /******/ function getModuleExports() { return module; };
52
- /******/ __webpack_require__.d(getter, 'a', getter);
53
- /******/ return getter;
54
- /******/ };
55
- /******/
56
- /******/ // Object.prototype.hasOwnProperty.call
57
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
58
- /******/
59
- /******/ // __webpack_public_path__
60
- /******/ __webpack_require__.p = "";
61
- /******/
62
- /******/ // Load entry module and return exports
63
- /******/ return __webpack_require__(__webpack_require__.s = 0);
64
- /******/ })
65
- /************************************************************************/
66
- /******/ ([
67
- /* 0 */
68
- /*!***********************!*\
69
- !*** ./src/blocks.js ***!
70
- \***********************/
71
- /*! no exports provided */
72
- /*! all exports used */
73
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
74
-
75
- "use strict";
76
- eval("Object.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__block_block_js__ = __webpack_require__(/*! ./block/block.js */ 1);\n/**\n * Gutenberg Blocks\n *\n * All blocks related JavaScript files should be imported here.\n * You can create a new block folder in this dir and include code\n * for that block here as well.\n *\n * All blocks should be included here since this is the file that\n * Webpack is compiling as the input file.\n */\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9ibG9ja3MuanM/N2I1YiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEd1dGVuYmVyZyBCbG9ja3NcbiAqXG4gKiBBbGwgYmxvY2tzIHJlbGF0ZWQgSmF2YVNjcmlwdCBmaWxlcyBzaG91bGQgYmUgaW1wb3J0ZWQgaGVyZS5cbiAqIFlvdSBjYW4gY3JlYXRlIGEgbmV3IGJsb2NrIGZvbGRlciBpbiB0aGlzIGRpciBhbmQgaW5jbHVkZSBjb2RlXG4gKiBmb3IgdGhhdCBibG9jayBoZXJlIGFzIHdlbGwuXG4gKlxuICogQWxsIGJsb2NrcyBzaG91bGQgYmUgaW5jbHVkZWQgaGVyZSBzaW5jZSB0aGlzIGlzIHRoZSBmaWxlIHRoYXRcbiAqIFdlYnBhY2sgaXMgY29tcGlsaW5nIGFzIHRoZSBpbnB1dCBmaWxlLlxuICovXG5cbmltcG9ydCAnLi9ibG9jay9ibG9jay5qcyc7XG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gLi9zcmMvYmxvY2tzLmpzXG4vLyBtb2R1bGUgaWQgPSAwXG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Iiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///0\n");
77
-
78
- /***/ }),
79
- /* 1 */
80
- /*!****************************!*\
81
- !*** ./src/block/block.js ***!
82
- \****************************/
83
- /*! no exports provided */
84
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
85
-
86
- "use strict";
87
- eval("/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style_scss__ = __webpack_require__(/*! ./style.scss */ 2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__style_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__editor_scss__ = __webpack_require__(/*! ./editor.scss */ 3);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__editor_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__editor_scss__);\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n/**\n * BLOCK: social-share-block\n *\n * Registering a basic block with Gutenberg.\n * Simple block, renders and saves the same content without any interactivity.\n */\n\n// Import CSS.\n\n\n\nvar __ = wp.i18n.__; // Import __() from wp.i18n\n\nvar _wp$blocks = wp.blocks,\n registerBlockType = _wp$blocks.registerBlockType,\n RichText = _wp$blocks.RichText,\n TextControl = _wp$blocks.TextControl,\n AlignmentToolbar = _wp$blocks.AlignmentToolbar,\n BlockControls = _wp$blocks.BlockControls,\n InspectorControls = _wp$blocks.InspectorControls; // Import registerBlockType() from wp.blocks\n\n// const {\n// TextControl\n// } = wp.components;\n\nvar el = wp.element.createElement;\n/**\n * Register: aa Gutenberg Block.\n *\n * Registers a new block provided a unique name and an object defining its\n * behavior. Once registered, the block is made editor as an option to any\n * editor interface where blocks are implemented.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/\n * @param {string} name Block name.\n * @param {Object} settings Block settings.\n * @return {?WPBlock} The block, if it has been successfully\n * registered; otherwise `undefined`.\n */\n\nvar iconEl = el('svg', { width: 20, height: 20 }, el('g', { 'transform': \"translate(0.000000,20.000000) scale(0.0062,-0.0070)\", 'fill': \"#000000\", 'stroke': \"none\" }, el('path', { d: \"M2055 2721 c-284 -83 -461 -332 -442 -624 l6 -89 -72 6 c-406 39 -818 246 -1090 548 l-66 73 -26 -60 c-101 -227 -55 -484 120 -661 l72 -74 -32 0 c-39 0 -127 26 -179 52 l-39 20 6 -74 c18 -224 178 -428 395 -504 58 -20 61 -22 35 -29 -15 -4 -72 -6 -126 -6 -98 1 -98 1 -92 -21 19 -62 77 -150 141 -214 88 -89 200 -148 317 -166 43 -7 77 -15 77 -18 0 -7 -152 -102 -205 -128 -72 -36 -216 -82 -302 -97 -46 -8 -146 -15 -221 -16 -159 -1 -160 2 10 -85 257 -131 542 -193 838 -181 209 8 392 45 572 115 l68 26 0 393 0 393 -100 0 c-93 0 -100 1 -100 20 0 11 -1 90 -1 175 0 85 1 160 1 165 0 6 40 10 100 10 l100 0 1 138 c1 144 3 170 20 241 34 147 165 265 319 288 49 8 174 9 358 5 l62 -2 0 -175 0 -175 -127 0 c-83 0 -137 -5 -153 -13 -35 -18 -46 -61 -49 -193 l-2 -114 165 0 166 0 0 -37 c0 -21 -7 -96 -15 -168 -8 -71 -15 -138 -15 -147 0 -16 -14 -18 -150 -18 l-150 0 0 -332 c1 -686 3 -637 -22 -642 -13 -3 -90 -8 -172 -12 -82 -3 -143 -10 -136 -14 6 -4 93 -8 191 -9 l179 -2 0 272 0 271 63 72 c119 134 198 250 273 397 113 225 184 512 184 745 l0 101 79 66 c64 54 226 235 217 244 -1 1 -26 -6 -55 -17 -59 -23 -176 -55 -235 -65 l-40 -7 50 39 c86 69 147 149 184 242 l19 49 -88 -43 c-69 -34 -199 -81 -276 -99 -5 -2 -37 19 -70 46 -150 122 -366 170 -540 119z\" })));\n\nregisterBlockType('ultimate-social-media-plus/sfsi-plus-share-block', {\n\t// Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.\n\ttitle: __('Social Icons'), // Block title.\n\ticon: iconEl, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.\n\tcategory: 'common', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.\n\tkeywords: [__('Social Icons'), __('Social share'), __('Gutenberg Share')],\n\tattributes: {\n\t\t\"jscode\": {\n\t\t\t\"default\": \"\\n\\t\\tjQuery(document).ready(function($) {\\n\\t\\t\\tjQuery.ajax({\\n\\t\\t\\t\\t'url': '/wp-json/ultimate-social-media-plus/v1/icons/?share_url='+window.location.href,\\n\\t\\t\\t\\t'method': 'GET'\\n\\t\\t\\t}).done( function(response){\\n\\t\\t\\t\\t$('.sfsi_plus_block_wrapper .sfsi_plus_block').html(response);sfsi_plus_update_iconcount();if(window.gapi){window.gapi.plusone.go();window.gapi.plus.go();window.gapi.ytsubscribe.go();};if(window.twttr){window.twttr.widgets.load();};if(window.IN){window.IN.parse();};if(window.addthis){if(window.addthis.toolbox){window.addthis.toolbox('.addthis_button.sficn');}else{window.addthis.init();window.addthis.toolbox('.addthis_button.sficn');}};if(window.PinUtils){window.PinUtils.build();};if(jQuery('.sfsi_plus_wDiv').length > 0) {setTimeout(function() { var s = parseInt(jQuery('.sfsi_plus_wDiv').height()) + 15 + 'px';jQuery('.sfsi_plus_holders').each(function() {jQuery(this).css('height', s);});jQuery('.sfsi_plus_widget').css('min-height', 'auto');}, 200);};if(window.FB){if(window.FB.XFBML){window.FB.XFBML.parse();}};\\n\\t\\t\\t});\\n\\t\\t});\\n\\t\",\n\t\t\ttype: 'string'\n\t\t},\n\t\tshowTextBeforeShare: {\n\t\t\ttype: 'string',\n\t\t\t// source: 'text',\n\t\t\tdefault: 'yes'\n\t\t\t// meta: 'sfsi_plus_gutenberg_show_text_before_share'\n\t\t},\n\t\ttextBeforeShare: {\n\t\t\ttype: 'string',\n\t\t\t// source: 'text',\n\t\t\tdefault: 'Please Share:'\n\t\t},\n\t\ticonType: {\n\t\t\ttype: 'string',\n\t\t\t// source: 'text',\n\t\t\tdefault: 'round'\n\t\t},\n\t\ticonAlignemt: {\n\t\t\ttype: 'string',\n\t\t\t// source: 'text',\n\t\t\tdefault: 'left'\n\t\t},\n\t\tmaxPerRow: {\n\t\t\ttype: 'string',\n\t\t\t// source: 'text',\n\t\t\tdefault: '5'\n\n\t\t}\n\t},\n\t/**\n * The edit function describes the structure of your block in the context of the editor.\n * This represents what the editor will render when the block is used.\n *\n * The \"edit\" property must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n\tedit: function edit(props) {\n\t\tfunction onAttrChange(meta, value) {\n\t\t\tprops.setAttributes(_defineProperty({}, meta, value));\n\t\t}\n\t\tvar setAttributes = props.setAttributes;\n\t\t// var focus = props.isSelected;\n\t\tvar attributes = props.attributes;\n\t\t// console.log('attributes',attributes,wp.element);\n\t\tvar showTextBeforeShare = \"yes\";\n\t\tvar textBeforeShare = \"Please Share:\";\n\t\tif (attributes.showTextBeforeShare || '' !== attributes.showTextBeforeShare) {\n\t\t\tshowTextBeforeShare = attributes.showTextBeforeShare;\n\t\t} else {\n\t\t\tonAttrChange('showTextBeforeShare', 'yes');\n\t\t}\n\t\tif (attributes.textBeforeShare || '' !== attributes.textBeforeShare) {\n\t\t\ttextBeforeShare = attributes.textBeforeShare;\n\t\t} else {\n\t\t\tonAttrChange('textBeforeShare', 'Please Share:');\n\t\t}\n\n\t\t// Creates a <p class='wp-block-cgb-block-social-share-block'></p>.\n\t\t// return renderButtons(props.attributes);\n\t\tvar target = jQuery('div[data-block=\"' + props.clientId + '\"]').find('.sfsi_plus_block_container');\n\t\t// console.log(props,target,target.length);\n\t\tif (target.length > 0) {\n\t\t\tvar buttons = target.find('.sfsi_plus_block>div');\n\t\t\tif (buttons.length === 0) {\n\t\t\t\tfetchButtons(attributes.iconType, attributes, target);\n\t\t\t}\n\t\t} else {\n\t\t\tsetTimeout(function () {\n\t\t\t\tvar target = jQuery('div[data-block=\"' + props.clientId + '\"]').find('.sfsi_plus_block_container');\n\t\t\t\tvar buttons = target.find('.sfsi_plus_block>div');\n\t\t\t\tif (buttons.length === 0) {\n\t\t\t\t\tfetchButtons(attributes.iconType, attributes, target);\n\t\t\t\t}\n\t\t\t}, 3000);\n\t\t}\n\n\t\treturn [el(wp.editor.InspectorControls, { key: 'sfsi-plus-block-inspector' }, el('div', { className: \"sfsi_plus_block_inspector\" }, el('h3', { className: 'sfsi_plus_block_icontype_header' }, __('Type')), el('select', { className: 'form-control sfsi_plus_block_icontype_selector',\n\t\t\tvalue: attributes.iconType,\n\t\t\tonChange: function onChange(event) {\n\t\t\t\tvar target = jQuery('.wp-block.is-selected').find('.sfsi_plus_block_container');\n\t\t\t\tsetAttributes({ iconType: event.target.value });\n\t\t\t\tfetchButtons(event.target.value, attributes, target);\n\t\t\t}\n\t\t}, el('option', {\n\t\t\t'value': 'round'\n\t\t}, 'Round / «main» icons'), el('option', {\n\t\t\t'value': 'rectangle'\n\t\t}, 'Rectangle icons')), (props.attributes.iconType === \"round\" || undefined === props.attributes.iconType) && el('p', { className: 'sfsi_plus_block_icontype_desc' }, __(' Those are the icons you selected under question 1 on the plugin‘s '), el('a', { 'target': '_blank', 'href': '/wp-admin/admin.php?page=sfsi-plus-options#ui-id-1' }, __(' settings page.'))), props.attributes.iconType === \"rectangle\" && el('p', { className: 'sfsi_plus_block_icontype_desc' }, __('Those are the icons you selected '), el('a', { 'target': '_blank', 'href': '/wp-admin/admin.php?page=sfsi-plus-options#ui-id-5' }, __('here.'))), el('h3', { className: 'sfsi_plus_block_icontype_header' }, __('Alignment')), el('select', { className: 'form-control sfsi_plus_block_iconalignment_selector',\n\t\t\tvalue: attributes.iconAlignemt,\n\t\t\tonChange: function onChange(event) {\n\t\t\t\tsetAttributes({ iconAlignemt: event.target.value });\n\t\t\t\tvar target = jQuery('.wp-block.is-selected .sfsi_plus_block_container');\n\t\t\t\tif ('center' === event.target.value) {\n\t\t\t\t\tjQuery(target).find('.sfsi_plus_block_text_before_icon').css({ 'display': 'inherit' });\n\t\t\t\t}\n\t\t\t\tjQuery(target).css({ 'text-align': event.target.value });\n\t\t\t}\n\t\t}, el('option', {\n\t\t\t'value': 'left'\n\t\t}, 'Left'), el('option', {\n\t\t\t'value': 'right'\n\t\t}, 'Right'), el('option', {\n\t\t\t'value': 'center'\n\t\t}, 'Center')), (props.attributes.iconType === \"round\" || undefined === props.attributes.iconType) && el('div', { className: 'sfsi_plus_block_iconperrow_body' }, el('span', { className: 'label' }, __('Max. icons per row')), el('input', {\n\t\t\ttype: 'text',\n\t\t\tvalue: attributes.maxPerRow,\n\t\t\tonChange: function onChange(event) {\n\t\t\t\t// console.log(event.target,event.target.value);\n\t\t\t\tsetAttributes({ maxPerRow: (parseInt(event.target.value) || 0) + '' });\n\t\t\t\tchangeIconWidth(event.target.value);\n\t\t\t}\n\t\t})), el('label', {\n\t\t\thtmlFor: 'sfsi-plus-text-before-icons',\n\t\t\tclassName: 'sfsi_plus_block_textbeforeicons'\n\t\t}, el('input', {\n\t\t\tclassName: \"form-control\",\n\t\t\tchecked: attributes.showTextBeforeShare == 'yes',\n\t\t\ttype: 'checkbox',\n\t\t\tonChange: function onChange(event) {\n\t\t\t\tsetAttributes({ showTextBeforeShare: event.target.checked ? 'yes' : 'no' });\n\t\t\t}\n\t\t}), 'Text before icons?'), attributes.showTextBeforeShare == 'yes' && el('input', {\n\t\t\tclassName: 'form-input sfsi_plus_block_textbeforeicons_header',\n\t\t\tvalue: attributes.textBeforeShare,\n\t\t\tstyle: {\n\t\t\t\t'padding-top': '3px'\n\t\t\t},\n\t\t\tonChange: function onChange(event) {\n\t\t\t\tsetAttributes({ textBeforeShare: event.target.value });\n\t\t\t}\n\t\t}), attributes.showTextBeforeShare === 'yes' && el('div', { className: 'form-input sfsi_plus_block_textbeforeicons_body' }, __('Define the font size & type in our '), el('a', { 'href': 'https://www.ultimatelysocial.com/usm-premium/', 'target': '_blank' }, __('Premium plugin'))), el('h3', { className: 'sfsi_plus_block_notes_heading' }, __('Notes')), el('hr'), el('ul', { className: 'sfsi_plus_block_notes_list' }, el('li', { className: 'sfsi_plus_block_notes_item' }, __('For all other selections ( What the icons should do etc.) please go to '), el('a', { 'href': (window.sfsi_plus_links ? window.sfsi_plus_links.admin_url : '/wp-admin/admin.php') + '?page=sfsi-plus-options', 'target': '_blank' }, __('settings page'))), el('li', { className: 'sfsi_plus_block_notes_item' }, __('To see the icons in ‚full action‘ (with all features) please open the page in live or preview mode.')), el('li', { className: 'sfsi_plus_block_notes_item' }, __('If questions remain, please ask them in the '), el('a', {\n\t\t\t'href': 'https://goo.gl/ktAeDv',\n\t\t\t'target': '_blank'\n\t\t}, __('support forum')), __(' – we‘ll try to respond quickly.'), el('img', { src: (window.sfsi_plus_links ? window.sfsi_plus_links.plugin_dir_url : '/wp-content/plugins/ultimate-social-media-plus') + '/images/Ic_insert_emoticon_48px.svg', style: { width: '18px', 'vertical-align': 'text-bottom' } }))), el('h3', { className: 'sfsi_plus_block_ad_heading' }, 'Want (much) more?'), el('div', { className: 'sfsi_plus_block_ad_body' }, el('div', {}, __('Check out our '), el('a', { 'href': 'https://www.ultimatelysocial.com/usm-premium/?utm_source=plus_gutenberg_page&utm_campaign=side_widget&utm_medium=link', 'target': '_blank' }, __('premium plugin‘s features')), __('. Watch a teaser: '))), el('div', { style: { 'text-align': 'center' } }, el('iframe', { src: 'https://player.vimeo.com/video/269140798', width: '640', frameborder: 0, 'webkitallowfullscreen': \"\", 'mozallowfullscreen': \"\", 'allowfullscreen': \"\" }), el('a', { href: \"https://www.ultimatelysocial.com/usm-premium/?utm_source=plus_gutenberg_page&utm_campaign=side_widget&utm_medium=link\", 'target': '_blank', style: { 'display': 'inline-block', padding: '4px 10px', 'text-decoration': 'none', 'background': '#00A15A', 'color': '#fff', 'font-size': '11px', 'font-weight': '900' } }, __('Check out the Premium Plugin >>'))), el('br'), el('span', { className: 'sfsi_plus_block_ad_footer' }, __('..from 24.98 USD (includes support and updates for 1 year, and after that it will not be deactivated, so you can just keep using it!)')))), el('div', { key: 'sfsi-plus-block-content', className: 'sfsi_plus_block_container sfsi_plus_block_wrapper' }, '\\t', showTextBeforeShare == \"yes\" && el('span', { className: 'sfsi_plus_block_text_before_icon', 'data-align': attributes.iconAlignemt }, textBeforeShare), el('div', { className: 'sfsi_plus_block', 'data-count': attributes.maxPerRow, 'data-align': attributes.iconAlignemt, 'data-icon-type': attributes.iconType }, 'loading....'))];\n\t},\n\n\t/**\n * The save function defines the way in which the different attributes should be combined\n * into the final markup, which is then serialized by Gutenberg into post_content.\n *\n * The \"save\" property must be specified and must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n\tdeprecated: [{\n\t\tattributes: {\n\t\t\t\"jscode\": {\n\t\t\t\t\"default\": \"\\n\\t\\tjQuery(document).ready(function($) {\\n\\t\\t\\tjQuery.ajax({\\n\\t\\t\\t\\t'url': '/wp-json/ultimate-social-media-plus/v1/icons/?share_url='+window.location.href,\\n\\t\\t\\t\\t'method': 'GET'\\n\\t\\t\\t}).done( function(response){\\n\\t\\t\\t\\t$('.sfsi_plus_block_container .sfsi_plus_block').html(response);if(window.gapi){window.gapi.plusone.go();window.gapi.plus.go();window.gapi.ytsubscribe.go();};if(window.twttr){window.twttr.widgets.load();};if(window.IN){window.IN.parse();};if(window.addthis){if(window.addthis.toolbox){window.addthis.toolbox('.addthis_button.sficn');}else{window.addthis.init();window.addthis.toolbox('.addthis_button.sficn');}};if(window.PinUtils){window.PinUtils.build();};if(jQuery('.sfsi_plus_wDiv').length > 0) {setTimeout(function() { var s = parseInt(jQuery('.sfsi_plus_wDiv').height()) + 15 + 'px';jQuery('.sfsi_plus_holders').each(function() {jQuery(this).css('height', s);});jQuery('.sfsi_plus_widget').css('min-height', 'auto');}, 200);};if(window.FB){if(window.FB.XFBML){window.FB.XFBML.parse();}};\\n\\t\\t\\t});\\n\\t\\t});\\n\\t\",\n\t\t\t\ttype: 'string'\n\t\t\t}\n\t\t},\n\n\t\tisEligible: function isEligible(attributes) {\n\t\t\tconsole.log(attributes);\n\t\t\treturn true;\n\t\t\t// return (attributes.jscode===\"\\n\\t\\tjQuery(document).ready(function($) {\\n\\t\\t\\tjQuery.ajax({\\n\\t\\t\\t\\t'url': '/wp-json/ultimate-social-media-plus/v1/icons/?share_url='+window.location.href,\\n\\t\\t\\t\\t'method': 'GET'\\n\\t\\t\\t}).done( function(response){\\n\\t\\t\\t\\t$('.sfsi_plus_block_container .sfsi_plus_block').html(response);if(window.gapi){window.gapi.plusone.go();window.gapi.plus.go();window.gapi.ytsubscribe.go();};if(window.twttr){window.twttr.widgets.load();};if(window.IN){window.IN.parse();};if(window.addthis){if(window.addthis.toolbox){window.addthis.toolbox('.addthis_button.sficn');}else{window.addthis.init();window.addthis.toolbox('.addthis_button.sficn');}};if(window.PinUtils){window.PinUtils.build();};if(jQuery('.sfsi_plus_wDiv').length > 0) {setTimeout(function() { var s = parseInt(jQuery('.sfsi_plus_wDiv').height()) + 15 + 'px';jQuery('.sfsi_plus_holders').each(function() {jQuery(this).css('height', s);});jQuery('.sfsi_plus_widget').css('min-height', 'auto');}, 200);};if(window.FB){if(window.FB.XFBML){window.FB.XFBML.parse();}};\\n\\t\\t\\t});\\n\\t\\t});\\n\\t\");\n\t\t},\n\t\tmigrate: function migrate(attributes) {\n\t\t\tconsole.log('migrate', attributes);\n\t\t\treturn [{\n\t\t\t\t\"jscode\": \"\\n\\t\\tjQuery(document).ready(function($) {\\n\\t\\t\\tjQuery.ajax({\\n\\t\\t\\t\\t'url': '/wp-json/ultimate-social-media-plus/v1/icons/?share_url='+window.location.href,\\n\\t\\t\\t\\t'method': 'GET'\\n\\t\\t\\t}).done( function(response){\\n\\t\\t\\t\\t$('.sfsi_plus_block_wrapper .sfsi_plus_block').html(response);sfsi_plus_update_iconcount();if(window.gapi){window.gapi.plusone.go();window.gapi.plus.go();window.gapi.ytsubscribe.go();};if(window.twttr){window.twttr.widgets.load();};if(window.IN){window.IN.parse();};if(window.addthis){if(window.addthis.toolbox){window.addthis.toolbox('.addthis_button.sficn');}else{window.addthis.init();window.addthis.toolbox('.addthis_button.sficn');}};if(window.PinUtils){window.PinUtils.build();};if(jQuery('.sfsi_plus_wDiv').length > 0) {setTimeout(function() { var s = parseInt(jQuery('.sfsi_plus_wDiv').height()) + 15 + 'px';jQuery('.sfsi_plus_holders').each(function() {jQuery(this).css('height', s);});jQuery('.sfsi_plus_widget').css('min-height', 'auto');}, 200);};if(window.FB){if(window.FB.XFBML){window.FB.XFBML.parse();}};\\n\\t\\t\\t});\\n\\t\\t});\\n\\t\",\n\t\t\t\tshowTextBeforeShare: 'yes',\n\t\t\t\ttextBeforeShare: 'Please Share:',\n\t\t\t\ticonType: 'round',\n\t\t\t\ticonAlignemt: 'left',\n\t\t\t\tmaxPerRow: '5'\n\t\t\t}];\n\t\t},\n\t\tsave: function save(props) {\n\t\t\tconsole.log(props);\n\t\t\tvar attributes = props.attributes;\n\t\t\treturn renderButtons(attributes);\n\t\t}\n\t}],\n\n\t// deprecated: [\n\t// \t{\n\t// \t\tattributes: {\n\t// \t\t\t\"jscode\":{\n\t// \t\t\t\t\t\t\"default\":\"\\n\\t\\tjQuery(document).ready(function($) {\\n\\t\\t\\tjQuery.ajax({\\n\\t\\t\\t\\t'url': '/wp-json/ultimate-social-media-plus/v1/icons/?share_url='+window.location.href,\\n\\t\\t\\t\\t'method': 'GET'\\n\\t\\t\\t}).done( function(response){\\n\\t\\t\\t\\t$('.sfsi_plus_block_container .sfsi_plus_block').html(response);if(window.gapi){window.gapi.plusone.go();window.gapi.plus.go();window.gapi.ytsubscribe.go();};if(window.twttr){window.twttr.widgets.load();};if(window.IN){window.IN.parse();};if(window.addthis){if(window.addthis.toolbox){window.addthis.toolbox('.addthis_button.sficn');}else{window.addthis.init();window.addthis.toolbox('.addthis_button.sficn');}};if(window.PinUtils){window.PinUtils.build();};if(jQuery('.sfsi_plus_wDiv').length > 0) {setTimeout(function() { var s = parseInt(jQuery('.sfsi_plus_wDiv').height()) + 15 + 'px';jQuery('.sfsi_plus_holders').each(function() {jQuery(this).css('height', s);});jQuery('.sfsi_plus_widget').css('min-height', 'auto');}, 200);};if(window.FB){if(window.FB.XFBML){window.FB.XFBML.parse();}};\\n\\t\\t\\t});\\n\\t\\t});\\n\\t\",\n\t// \t\t\t\t\t\ttype: 'string'\n\t// \t\t\t}\n\t// \t\t},\n\t// \t\tsave: function( props ) {\n\t// \t\t\tvar attributes = props.attributes;\n\t// \t\t\treturn renderButtons(attributes);\n\t// \t\t}\n\t// \t\tmigrate: function(){\n\t// \t\t\treturn \n\t// \t\t}\n\t// \t}\n\t// ],\n\n\n\tsave: function save(props) {\n\t\t// console.log(props);\n\t\tvar attributes = props.attributes;\n\t\tsetTimeout(function () {\n\t\t\tchangeIconWidth(attributes.maxPerRow);\n\t\t\t// console.log('changedIconWidth');\n\t\t}, 300);\n\t\treturn renderButtons_new(attributes);\n\t}\n\n});\n\nfunction renderButtons(attributes) {\n\tvar jscode = attributes.jscode;\n\t// if(attributes.iconType===\"rectangle\"){\n\t// \tjscode=jscode.replace(/window.location.href/gi,'window.location.href+\"&ractangle_icon=1\"')\n\t// }\n\treturn el('div', { 'className': 'sfsi_plus_block_container' }, \"\\n\t\", el('div', { className: 'sfsi_plus_block' }, \"\"), \"\\n\t\", el('script', {}, jscode), \"\\n\");\n}\n\nfunction renderButtons_new(attributes) {\n\t// console.log(attributes);\n\tvar jscode = attributes.jscode;\n\tif (attributes.iconType === \"rectangle\") {\n\t\tjscode = jscode.replace(/window.location.href/gi, 'window.location.href+\"&ractangle_icon=1\"');\n\t}\n\tvar showTextBeforeShare = \"yes\";\n\tvar textBeforeShare = \"Please Share:\";\n\tif (attributes.showTextBeforeShare || '' !== attributes.showTextBeforeShare) {\n\t\tshowTextBeforeShare = attributes.showTextBeforeShare;\n\t} else {\n\t\tonAttrChange('showTextBeforeShare', 'yes');\n\t}\n\tif (attributes.textBeforeShare || '' !== attributes.textBeforeShare) {\n\t\ttextBeforeShare = attributes.textBeforeShare;\n\t} else {\n\t\tonAttrChange('textBeforeShare', 'Please Share:');\n\t}\n\treturn el('div', { 'className': 'sfsi_plus_block_wrapper' }, \"\\n\t\", showTextBeforeShare == \"yes\" && el('span', { className: 'sfsi_plus_block_text_before_icon' }, textBeforeShare), \"\\n\", el('div', { className: 'sfsi_plus_block', 'data-count': attributes.maxPerRow, 'data-align': attributes.iconAlignemt, 'data-icon-type': attributes.iconType }, \"\"), \"\\n\\t\"\n\t// el('script',{},jscode\n\t// ),\"\\n\"\n\t);\n}\nfunction changeIconWidth() {\n\tvar per_row = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n\n\t// console.log('iconchangecalled');\n\t// jQuery(document).ready(function($){\n\t// console.log('iconchangecalled and doc ready');\n\tvar iconWidth = parseInt(jQuery('.sfsi_plus_block_wrapper .sfsi_plus_wDiv div').css('width')) || 40;\n\t// console.log('iconwidth',iconWidth);\n\n\tvar iconMargin = parseInt(jQuery('.sfsi_plus_block_wrapper .sfsi_plus_wDiv div').css('margin-left')) || 0;\n\t// console.log('iconMargin',iconMargin);\n\n\tvar wrapperWidth = (iconWidth + iconMargin) * per_row;\n\t// console.log('in icon change ',iconWidth,iconMargin,wrapperWidth);\n\tvar iconHeight = jQuery('.sfsi_plus_block_wrapper .sfsi_plus_wDiv img').first().height();\n\tvar textHeight = jQuery('.sfsi_plus_block_text_before_icon').height();\n\t// console.log('wrapperWidth',wrapperWidth);\n\tjQuery('.sfsi_plus_block_text_before_icon').css({ 'margin-top': (textHeight - iconHeight) / 2 - 2 + 'px' });\n\tif (jQuery('.sfsi_plus_block_wrapper .sfsiplus_norm_row').length < 1) {\n\t\t// console.log('setTimeout',jQuery('.sfsi_plus_block_wrapper .sfsiplus_norm_row'));\n\t\tsetTimeout(function () {\n\t\t\tjQuery('.sfsi_plus_block_wrapper .sfsiplus_norm_row').css({ 'width': wrapperWidth + 'px' });\n\t\t}, 1000);\n\t} else {}\n\t// console.log('didnot setTimeout',jQuery('.sfsi_plus_block_wrapper .sfsiplus_norm_row'));\n\n\t// var target=jQuery('.sfsi_plus_block_container');\n\t// console.log(target,icon_alignment);\n\tjQuery('.sfsi_plus_block_wrapper .sfsiplus_norm_row').css({ 'width': wrapperWidth + 'px' });\n\tsetIconBlockAlignment();\n\n\t// })\n}\n\nfunction setIconBlockAlignment() {\n\tvar target = jQuery('.wp-block.is-selected .sfsi_plus_block_container');\n\tvar icon_alignment = target.find('.sfsi_plus_block').attr('data-align');\n\t// if('center'===icon_alignment){\n\tjQuery(target).find('.sfsi_plus_block_text_before_icon').css({ 'display': 'inherit' });\n\t// }\n\tjQuery(target).css({ 'text-align': icon_alignment });\n}\n\nfunction fetchButtons() {\n\tvar iconType = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n\tvar attributes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n\tvar target = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n\n\tif (null === iconType || undefined === iconType) {\n\t\ticonType = \"round\";\n\t}\n\t// console.log(iconType);\n\t// return jQuery(document).ready(function($){\n\t// console.log(iconType);\n\tif (null == target) {\n\t\ttarget = $(document);\n\t}\n\t// console.log(target);\n\treturn jQuery.ajax({\n\t\t'url': '/wp-json/ultimate-social-media-plus/v1/icons/?admin_refereal=true&ractangle_icon=' + ('round' == iconType ? 0 : 1),\n\t\t'method': 'GET'\n\t\t// 'data':{'is_admin':true,'share_url':'/'}\n\t}).done(function (response) {\n\t\t// console.log(response,$('.sfsi_plus_block'));\n\n\t\tif (jQuery(target).find('.sfsi_plus_block').length > 0) {\n\t\t\tjQuery(target).find('.sfsi_plus_block').html(response);\n\t\t\tjQuery(target).find('.sfsi_plus_block_text_before_icon').css({ 'display': 'inherit' });\n\t\t\tchangeIconWidth(attributes.maxPerRow);\n\t\t\tif (iconType !== 'round') {\n\t\t\t\trenderAutoSocialIcons();\n\t\t\t}\n\t\t\t// console.log('updated');\n\t\t} else {\n\t\t\tsetTimeout(function () {\n\t\t\t\tjQuery('.sfsi_plus_block').html(response);\n\t\t\t\tchangeIconWidth(attributes.maxPerRow);\n\t\t\t\tjQuery(target).find('.sfsi_plus_block_text_before_icon').css({ 'display': 'inherit' });\n\t\t\t\tconsole.log('now updated');\n\t\t\t}, 5000);\n\t\t\tconsole.log('timeset');\n\t\t}\n\t}).fail(function (response) {\n\t\t// console.log(response,$('.sfsi_plus_block'));\n\t\tjQuery(target).find('.sfsi_plus_block').html(response.responseText.replace('/\\\\/g', ''));\n\t});\n\t// });\n}\nfunction renderAutoSocialIcons() {\n\tif (window.gapi) {\n\t\twindow.gapi.plusone.go();window.gapi.plus.go();window.gapi.ytsubscribe.go();\n\t};\n\tif (window.twttr) {\n\t\twindow.twttr.widgets.load();\n\t};\n\tif (window.IN && window.IN.parse) {\n\t\twindow.IN.parse();\n\t};\n\tif (window.addthis) {\n\t\tif (window.addthis.toolbox) {\n\t\t\twindow.addthis.toolbox('.addthis_button.sficn');\n\t\t} else {\n\t\t\twindow.addthis.init();window.addthis.toolbox('.addthis_button.sficn');\n\t\t}\n\t};\n\tif (window.PinUtils) {\n\t\twindow.PinUtils.build();\n\t};\n\tif (window.FB) {\n\t\tif (window.FB.XFBML) {\n\t\t\twindow.FB.XFBML.parse();\n\t\t}\n\t};\n}\nif (undefined === window.sfsi_plus_float_widget) {\n\tvar sfsi_plus_float_widget = function sfsi_plus_float_widget() {\n\t\treturn;\n\t};\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMS5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9ibG9jay9ibG9jay5qcz85MjFkIl0sInNvdXJjZXNDb250ZW50IjpbImZ1bmN0aW9uIF9kZWZpbmVQcm9wZXJ0eShvYmosIGtleSwgdmFsdWUpIHsgaWYgKGtleSBpbiBvYmopIHsgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwga2V5LCB7IHZhbHVlOiB2YWx1ZSwgZW51bWVyYWJsZTogdHJ1ZSwgY29uZmlndXJhYmxlOiB0cnVlLCB3cml0YWJsZTogdHJ1ZSB9KTsgfSBlbHNlIHsgb2JqW2tleV0gPSB2YWx1ZTsgfSByZXR1cm4gb2JqOyB9XG5cbi8qKlxuICogQkxPQ0s6IHNvY2lhbC1zaGFyZS1ibG9ja1xuICpcbiAqIFJlZ2lzdGVyaW5nIGEgYmFzaWMgYmxvY2sgd2l0aCBHdXRlbmJlcmcuXG4gKiBTaW1wbGUgYmxvY2ssIHJlbmRlcnMgYW5kIHNhdmVzIHRoZSBzYW1lIGNvbnRlbnQgd2l0aG91dCBhbnkgaW50ZXJhY3Rpdml0eS5cbiAqL1xuXG4vLyAgSW1wb3J0IENTUy5cbmltcG9ydCAnLi9zdHlsZS5zY3NzJztcbmltcG9ydCAnLi9lZGl0b3Iuc2Nzcyc7XG5cbnZhciBfXyA9IHdwLmkxOG4uX187IC8vIEltcG9ydCBfXygpIGZyb20gd3AuaTE4blxuXG52YXIgX3dwJGJsb2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E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///1\n");
88
-
89
- /***/ }),
90
- /* 2 */
91
- /*!******************************!*\
92
- !*** ./src/block/style.scss ***!
93
- \******************************/
94
- /*! dynamic exports provided */
95
- /***/ (function(module, exports) {
96
-
97
- eval("// removed by extract-text-webpack-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMi5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9ibG9jay9zdHlsZS5zY3NzPzgwZjMiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gcmVtb3ZlZCBieSBleHRyYWN0LXRleHQtd2VicGFjay1wbHVnaW5cblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAuL3NyYy9ibG9jay9zdHlsZS5zY3NzXG4vLyBtb2R1bGUgaWQgPSAyXG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///2\n");
98
-
99
- /***/ }),
100
- /* 3 */
101
- /*!*******************************!*\
102
- !*** ./src/block/editor.scss ***!
103
- \*******************************/
104
- /*! dynamic exports provided */
105
- /***/ (function(module, exports) {
106
-
107
- eval("// removed by extract-text-webpack-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9ibG9jay9lZGl0b3Iuc2Nzcz80OWQyIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIHJlbW92ZWQgYnkgZXh0cmFjdC10ZXh0LXdlYnBhY2stcGx1Z2luXG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gLi9zcmMvYmxvY2svZWRpdG9yLnNjc3Ncbi8vIG1vZHVsZSBpZCA9IDNcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///3\n");
108
-
109
- /***/ })
110
- /******/ ]);
1
+ !function(e){function t(i){if(s[i])return s[i].exports;var o=s[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var s={};t.m=e,t.c=s,t.d=function(e,s,i){t.o(e,s)||Object.defineProperty(e,s,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var s=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(s,"a",s),s},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});s(1)},function(e,t,s){"use strict";function i(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function o(e){var t=e.jscode;return f("div",{className:"sfsi_plus_block_container"},"\n\t",f("div",{className:"sfsi_plus_block"},""),"\n\t",f("script",{},t),"\n")}function n(e){var t=e.jscode;"rectangle"===e.iconType&&(t=t.replace(/window.location.href/gi,'window.location.href+"&ractangle_icon=1"'));var s="yes",i="Please Share:";return e.showTextBeforeShare||""!==e.showTextBeforeShare?s=e.showTextBeforeShare:onAttrChange("showTextBeforeShare","yes"),e.textBeforeShare||""!==e.textBeforeShare?i=e.textBeforeShare:onAttrChange("textBeforeShare","Please Share:"),f("div",{className:"sfsi_plus_block_wrapper"},"\n\t","yes"==s&&f("span",{className:"sfsi_plus_block_text_before_icon"},i),"\n",f("div",{className:"sfsi_plus_block","data-count":e.maxPerRow,"data-align":e.iconAlignemt,"data-icon-type":e.iconType},""),"\n\t")}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=parseInt(jQuery(".wp-block.is-selected .sfsi_plus_block_wrapper .sfsi_plus_wDiv div").css("width"))||40,s=parseInt(jQuery(".wp-block.is-selected .sfsi_plus_block_wrapper .sfsi_plus_wDiv div").css("margin-left"))||0,i=(t+s)*e;console.log(t,s,e);var o=jQuery(".wp-block.is-selected .sfsi_plus_block_wrapper .sfsi_plus_wDiv img").first().height(),n=jQuery(".wp-block.is-selected .sfsi_plus_block_text_before_icon").height();jQuery(".wp-block.is-selected .sfsi_plus_block_text_before_icon").css({"margin-top":(n-o)/2-2+"px"});var l=jQuery(".wp-block.is-selected .sfsi_plus_block_wrapper .sfsiplus_norm_row");jQuery(".wp-block.is-selected .sfsi_plus_block_wrapper .sfsiplus_norm_row").length<1?setTimeout(function(){l.css({width:i+"px"})},1e3):l.css({width:i+"px"}),a()}function a(){var e=jQuery(".wp-block.is-selected .sfsi_plus_block_container"),t=e.find(".sfsi_plus_block").attr("data-align");jQuery(e).find(".sfsi_plus_block_text_before_icon").css({display:"inherit"}),jQuery(e).css({"text-align":t})}function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;null!==e&&void 0!==e||(e="round"),null==s&&(s=$(document));var i="";return i=window.sfsi_plus_links&&window.sfsi_plus_links.rest_url?window.sfsi_plus_links.rest_url:window.sfsi_plus_links&&window.sfsi_plus_links.pretty_perma&&"no"===window.sfsi_plus_links.pretty_perma?"/index.php?rest_route=/":"/wp-json/",window.sfsi_plus_links&&window.sfsi_plus_links.pretty_perma&&"no"===window.sfsi_plus_links.pretty_perma?(i=i.replace(/\/$/,""),i+=encodeURI("/ultimate-social-media-plus/v1/icons/"),i+="&"):i+="ultimate-social-media-plus/v1/icons/?",i+="admin_refereal=true&ractangle_icon="+("round"==e?0:1),jQuery.ajax({url:i,method:"GET"}).done(function(i){jQuery(s).find(".sfsi_plus_block").length>0?(jQuery(s).find(".sfsi_plus_block").html(i),jQuery(s).find(".sfsi_plus_block_text_before_icon").css({display:"inherit"}),console.log(t.maxPerRow),l(t.maxPerRow),"round"!==e&&u()):(setTimeout(function(){jQuery(".sfsi_plus_block").html(i),console.log(t.maxPerRow),l(t.maxPerRow),jQuery(s).find(".sfsi_plus_block_text_before_icon").css({display:"inherit"}),console.log("now updated")},5e3),console.log("timeset"))}).fail(function(e){jQuery(s).find(".sfsi_plus_block").html(e.responseText.replace("/\\/g",""))})}function u(){window.gapi&&(window.gapi.plusone.go(),window.gapi.plus.go(),window.gapi.ytsubscribe.go()),window.twttr&&window.twttr.widgets.load(),window.IN&&window.IN.parse&&window.IN.parse(),window.addthis&&(window.addthis.toolbox?window.addthis.toolbox(".addthis_button.sficn"):(window.addthis.init(),window.addthis.toolbox(".addthis_button.sficn"))),window.PinUtils&&window.PinUtils.build(),window.FB&&window.FB.XFBML&&window.FB.XFBML.parse()}var c=s(2),d=(s.n(c),s(3)),p=(s.n(d),wp.i18n.__),_=wp.blocks,w=_.registerBlockType,f=(_.RichText,_.TextControl,_.AlignmentToolbar,_.BlockControls,_.InspectorControls,wp.element.createElement),h=f("svg",{width:20,height:20},f("g",{transform:"translate(0.000000,20.000000) scale(0.0062,-0.0070)",fill:"#000000",stroke:"none"},f("path",{d:"M2055 2721 c-284 -83 -461 -332 -442 -624 l6 -89 -72 6 c-406 39 -818 246 -1090 548 l-66 73 -26 -60 c-101 -227 -55 -484 120 -661 l72 -74 -32 0 c-39 0 -127 26 -179 52 l-39 20 6 -74 c18 -224 178 -428 395 -504 58 -20 61 -22 35 -29 -15 -4 -72 -6 -126 -6 -98 1 -98 1 -92 -21 19 -62 77 -150 141 -214 88 -89 200 -148 317 -166 43 -7 77 -15 77 -18 0 -7 -152 -102 -205 -128 -72 -36 -216 -82 -302 -97 -46 -8 -146 -15 -221 -16 -159 -1 -160 2 10 -85 257 -131 542 -193 838 -181 209 8 392 45 572 115 l68 26 0 393 0 393 -100 0 c-93 0 -100 1 -100 20 0 11 -1 90 -1 175 0 85 1 160 1 165 0 6 40 10 100 10 l100 0 1 138 c1 144 3 170 20 241 34 147 165 265 319 288 49 8 174 9 358 5 l62 -2 0 -175 0 -175 -127 0 c-83 0 -137 -5 -153 -13 -35 -18 -46 -61 -49 -193 l-2 -114 165 0 166 0 0 -37 c0 -21 -7 -96 -15 -168 -8 -71 -15 -138 -15 -147 0 -16 -14 -18 -150 -18 l-150 0 0 -332 c1 -686 3 -637 -22 -642 -13 -3 -90 -8 -172 -12 -82 -3 -143 -10 -136 -14 6 -4 93 -8 191 -9 l179 -2 0 272 0 271 63 72 c119 134 198 250 273 397 113 225 184 512 184 745 l0 101 79 66 c64 54 226 235 217 244 -1 1 -26 -6 -55 -17 -59 -23 -176 -55 -235 -65 l-40 -7 50 39 c86 69 147 149 184 242 l19 49 -88 -43 c-69 -34 -199 -81 -276 -99 -5 -2 -37 19 -70 46 -150 122 -366 170 -540 119z"})));if(w("ultimate-social-media-plus/sfsi-plus-share-block",{title:p("Social Icons"),icon:h,category:"common",keywords:[p("Social Icons"),p("Social share"),p("Gutenberg Share")],attributes:{jscode:{default:"\n\t\tjQuery(document).ready(function($) {\n\t\t\tjQuery.ajax({\n\t\t\t\t'url': '/wp-json/ultimate-social-media-plus/v1/icons/?share_url='+window.location.href,\n\t\t\t\t'method': 'GET'\n\t\t\t}).done( function(response){\n\t\t\t\t$('.sfsi_plus_block_wrapper .sfsi_plus_block').html(response);sfsi_plus_update_iconcount();if(window.gapi){window.gapi.plusone.go();window.gapi.plus.go();window.gapi.ytsubscribe.go();};if(window.twttr){window.twttr.widgets.load();};if(window.IN){window.IN.parse();};if(window.addthis){if(window.addthis.toolbox){window.addthis.toolbox('.addthis_button.sficn');}else{window.addthis.init();window.addthis.toolbox('.addthis_button.sficn');}};if(window.PinUtils){window.PinUtils.build();};if(jQuery('.sfsi_plus_wDiv').length > 0) {setTimeout(function() { var s = parseInt(jQuery('.sfsi_plus_wDiv').height()) + 15 + 'px';jQuery('.sfsi_plus_holders').each(function() {jQuery(this).css('height', s);});jQuery('.sfsi_plus_widget').css('min-height', 'auto');}, 200);};if(window.FB){if(window.FB.XFBML){window.FB.XFBML.parse();}};\n\t\t\t});\n\t\t});\n\t",type:"string"},showTextBeforeShare:{type:"string",default:"yes"},textBeforeShare:{type:"string",default:"Please Share:"},iconType:{type:"string",default:"round"},iconAlignemt:{type:"string",default:"left"},maxPerRow:{type:"string",default:"5"}},edit:function(e){function t(t,s){e.setAttributes(i({},t,s))}var s=e.setAttributes,o=e.attributes,n="yes",a="Please Share:";o.showTextBeforeShare||""!==o.showTextBeforeShare?n=o.showTextBeforeShare:t("showTextBeforeShare","yes"),o.textBeforeShare||""!==o.textBeforeShare?a=o.textBeforeShare:t("textBeforeShare","Please Share:");var u=jQuery('div[data-block="'+e.clientId+'"]').find(".sfsi_plus_block_container");if(u.length>0){0===u.find(".sfsi_plus_block>div").length&&r(o.iconType,o,u)}else setTimeout(function(){var t=jQuery('div[data-block="'+e.clientId+'"]').find(".sfsi_plus_block_container");0===t.find(".sfsi_plus_block>div").length&&r(o.iconType,o,t)},3e3);return[f(wp.editor.InspectorControls,{key:"sfsi-plus-block-inspector"},f("div",{className:"sfsi_plus_block_inspector"},f("h3",{className:"sfsi_plus_block_icontype_header"},p("Type")),f("select",{className:"form-control sfsi_plus_block_icontype_selector",value:o.iconType,onChange:function(e){var t=jQuery(".wp-block.is-selected").find(".sfsi_plus_block_container");s({iconType:e.target.value}),r(e.target.value,o,t)}},f("option",{value:"round"},"Round / \xabmain\xbb icons"),f("option",{value:"rectangle"},"Rectangle icons")),("round"===e.attributes.iconType||void 0===e.attributes.iconType)&&f("p",{className:"sfsi_plus_block_icontype_desc"},p(" Those are the icons you selected under question 1 on the plugin\u2018s "),f("a",{target:"_blank",href:window.sfsi_plus_links.admin_url+"admin.php?page=sfsi-plus-options#ui-id-1"},p(" settings page."))),"rectangle"===e.attributes.iconType&&f("p",{className:"sfsi_plus_block_icontype_desc"},p("Those are the icons you selected "),f("a",{target:"_blank",href:window.sfsi_plus_links.admin_url+"admin.php?page=sfsi-plus-options#ui-id-5"},p("here."))),f("h3",{className:"sfsi_plus_block_icontype_header"},p("Alignment")),f("select",{className:"form-control sfsi_plus_block_iconalignment_selector",value:o.iconAlignemt,onChange:function(e){s({iconAlignemt:e.target.value});var t=jQuery(".wp-block.is-selected .sfsi_plus_block_container");"center"===e.target.value&&jQuery(t).find(".sfsi_plus_block_text_before_icon").css({display:"inherit"}),jQuery(t).css({"text-align":e.target.value})}},f("option",{value:"left"},"Left"),f("option",{value:"right"},"Right"),f("option",{value:"center"},"Center")),("round"===e.attributes.iconType||void 0===e.attributes.iconType)&&f("div",{className:"sfsi_plus_block_iconperrow_body"},f("span",{className:"label"},p("Max. icons per row")),f("input",{type:"text",value:o.maxPerRow,onChange:function(e){s({maxPerRow:(parseInt(e.target.value)||0)+""}),l(e.target.value)}})),f("label",{htmlFor:"sfsi-plus-text-before-icons",className:"sfsi_plus_block_textbeforeicons"},f("input",{className:"form-control",checked:"yes"==o.showTextBeforeShare,type:"checkbox",onChange:function(e){s({showTextBeforeShare:e.target.checked?"yes":"no"})}}),"Text before icons?"),"yes"==o.showTextBeforeShare&&f("input",{className:"form-input sfsi_plus_block_textbeforeicons_header",value:o.textBeforeShare,style:{"padding-top":"3px"},onChange:function(e){s({textBeforeShare:e.target.value})}}),"yes"===o.showTextBeforeShare&&f("div",{className:"form-input sfsi_plus_block_textbeforeicons_body"},p("Define the font size & type in our "),f("a",{href:"https://www.ultimatelysocial.com/usm-premium/",target:"_blank"},p("Premium plugin"))),f("h3",{className:"sfsi_plus_block_notes_heading"},p("Notes")),f("hr"),f("ul",{className:"sfsi_plus_block_notes_list"},f("li",{className:"sfsi_plus_block_notes_item"},p("For all other selections ( What the icons should do etc.) please go to "),f("a",{href:(window.sfsi_plus_links?window.sfsi_plus_links.admin_url:"/wp-admin/admin.php")+"?page=sfsi-plus-options",target:"_blank"},p("settings page"))),f("li",{className:"sfsi_plus_block_notes_item"},p("To see the icons in \u201afull action\u2018 (with all features) please open the page in live or preview mode.")),f("li",{className:"sfsi_plus_block_notes_item"},p("If questions remain, please ask them in the "),f("a",{href:"https://goo.gl/ktAeDv",target:"_blank"},p("support forum")),p(" \u2013 we\u2018ll try to respond quickly."),f("img",{src:(window.sfsi_plus_links?window.sfsi_plus_links.plugin_dir_url:"/wp-content/plugins/ultimate-social-media-plus")+"/images/Ic_insert_emoticon_48px.svg",style:{width:"18px","vertical-align":"text-bottom"}}))),f("h3",{className:"sfsi_plus_block_ad_heading"},"Want (much) more?"),f("div",{className:"sfsi_plus_block_ad_body"},f("div",{},p("Check out our "),f("a",{href:"https://www.ultimatelysocial.com/usm-premium/?utm_source=plus_gutenberg_page&utm_campaign=side_widget&utm_medium=link",target:"_blank"},p("premium plugin\u2018s features")),p(". Watch a teaser: "))),f("div",{style:{"text-align":"center"}},f("iframe",{src:"https://player.vimeo.com/video/269140798",width:"640",frameborder:0,webkitallowfullscreen:"",mozallowfullscreen:"",allowfullscreen:""}),f("a",{href:"https://www.ultimatelysocial.com/usm-premium/?utm_source=plus_gutenberg_page&utm_campaign=side_widget&utm_medium=link",target:"_blank",style:{display:"inline-block",padding:"4px 10px","text-decoration":"none",background:"#00A15A",color:"#fff","font-size":"11px","font-weight":"900"}},p("Check out the Premium Plugin >>"))),f("br"),f("span",{className:"sfsi_plus_block_ad_footer"},p("..from 24.98 USD (includes support and updates for 1 year, and after that it will not be deactivated, so you can just keep using it!)")))),f("div",{key:"sfsi-plus-block-content",className:"sfsi_plus_block_container sfsi_plus_block_wrapper"},"\t","yes"==n&&f("span",{className:"sfsi_plus_block_text_before_icon","data-align":o.iconAlignemt},a),f("div",{className:"sfsi_plus_block","data-count":o.maxPerRow,"data-align":o.iconAlignemt,"data-icon-type":o.iconType},"loading...."))]},deprecated:[{attributes:{jscode:{default:"\n\t\tjQuery(document).ready(function($) {\n\t\t\tjQuery.ajax({\n\t\t\t\t'url': '/wp-json/ultimate-social-media-plus/v1/icons/?share_url='+window.location.href,\n\t\t\t\t'method': 'GET'\n\t\t\t}).done( function(response){\n\t\t\t\t$('.sfsi_plus_block_container .sfsi_plus_block').html(response);if(window.gapi){window.gapi.plusone.go();window.gapi.plus.go();window.gapi.ytsubscribe.go();};if(window.twttr){window.twttr.widgets.load();};if(window.IN){window.IN.parse();};if(window.addthis){if(window.addthis.toolbox){window.addthis.toolbox('.addthis_button.sficn');}else{window.addthis.init();window.addthis.toolbox('.addthis_button.sficn');}};if(window.PinUtils){window.PinUtils.build();};if(jQuery('.sfsi_plus_wDiv').length > 0) {setTimeout(function() { var s = parseInt(jQuery('.sfsi_plus_wDiv').height()) + 15 + 'px';jQuery('.sfsi_plus_holders').each(function() {jQuery(this).css('height', s);});jQuery('.sfsi_plus_widget').css('min-height', 'auto');}, 200);};if(window.FB){if(window.FB.XFBML){window.FB.XFBML.parse();}};\n\t\t\t});\n\t\t});\n\t",type:"string"}},isEligible:function(e){return console.log(e),!0},migrate:function(e){return console.log("migrate",e),[{jscode:"\n\t\tjQuery(document).ready(function($) {\n\t\t\tjQuery.ajax({\n\t\t\t\t'url': '/wp-json/ultimate-social-media-plus/v1/icons/?share_url='+window.location.href,\n\t\t\t\t'method': 'GET'\n\t\t\t}).done( function(response){\n\t\t\t\t$('.sfsi_plus_block_wrapper .sfsi_plus_block').html(response);sfsi_plus_update_iconcount();if(window.gapi){window.gapi.plusone.go();window.gapi.plus.go();window.gapi.ytsubscribe.go();};if(window.twttr){window.twttr.widgets.load();};if(window.IN){window.IN.parse();};if(window.addthis){if(window.addthis.toolbox){window.addthis.toolbox('.addthis_button.sficn');}else{window.addthis.init();window.addthis.toolbox('.addthis_button.sficn');}};if(window.PinUtils){window.PinUtils.build();};if(jQuery('.sfsi_plus_wDiv').length > 0) {setTimeout(function() { var s = parseInt(jQuery('.sfsi_plus_wDiv').height()) + 15 + 'px';jQuery('.sfsi_plus_holders').each(function() {jQuery(this).css('height', s);});jQuery('.sfsi_plus_widget').css('min-height', 'auto');}, 200);};if(window.FB){if(window.FB.XFBML){window.FB.XFBML.parse();}};\n\t\t\t});\n\t\t});\n\t",showTextBeforeShare:"yes",textBeforeShare:"Please Share:",iconType:"round",iconAlignemt:"left",maxPerRow:"5"}]},save:function(e){return console.log(e),o(e.attributes)}}],save:function(e){var t=e.attributes;return setTimeout(function(){l(t.maxPerRow)},300),n(t)}}),void 0===window.sfsi_plus_float_widget);},function(e,t){},function(e,t){}]);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dist/blocks.editor.build.css CHANGED
@@ -1,165 +1 @@
1
- /**
2
- * #.# Common SCSS
3
- *
4
- * Can include things like variables and mixins
5
- * that are used across the project.
6
- */
7
- /**
8
- * #.# Editor Styles
9
- *
10
- * CSS for just Backend enqueued after style.scss
11
- * which makes it higher in priority.
12
- */
13
- .sfsi_plus_block {
14
- min-height: 55px; }
15
- .sfsi_plus_block.sfsi_plus_block.sfsi_plus_block img {
16
- padding: 0;
17
- border: none;
18
- max-width: 90%; }
19
- .sfsi_plus_block .sfsi_plus_widget .sfsi_plus_linkedin_tool_bdr .sfsi_plus_inside .icon4,
20
- .sfsi_plus_block .sfsi_plus_widget .sfsi_plus_gpls_tool_bdr .sfsi_plus_inside .icon1,
21
- .sfsi_plus_block .sfsi_plus_widget .sfsi_plus_fb_tool_bdr .sfsi_plus_inside .icon1 {
22
- height: auto; }
23
- .sfsi_plus_block .sfsi_plus_widget {
24
- min-height: 55px; }
25
- .sfsi_plus_block .sfsi_plus_widget a img {
26
- -webkit-box-shadow: none !important;
27
- box-shadow: none !important;
28
- outline: 0;
29
- padding: 0 !important;
30
- border: none !important;
31
- max-width: 100%; }
32
- .sfsi_plus_block .sfsiplus_inerCnt {
33
- position: relative;
34
- z-index: inherit !important;
35
- float: left;
36
- width: 100%;
37
- float: left; }
38
- .sfsi_plus_block .sfsi_plus_widget .sfsi_plus_wDiv .sfsi_plus_wicons .sfsiplus_inerCnt a, .sfsi_plus_block .sfsi_plus_widget .sfsi_plus_wDiv .sfsi_plus_wicons .sfsiplus_inerCnt a.sficn {
39
- padding: 0px;
40
- margin: 0px;
41
- width: 100%;
42
- /*float: left;*/
43
- border: medium none; }
44
- .sfsi_plus_block .sfsiplus_norm_row {
45
- float: left;
46
- min-width: 25px; }
47
- .sfsi_plus_block .sfsiplus_norm_row a {
48
- border: none;
49
- display: inline-block;
50
- position: relative; }
51
- .sfsi_plus_block .sfsiplus_norm_row .cbtn_vsmall {
52
- font-size: 9px;
53
- left: -28%;
54
- top: 4px; }
55
- .sfsi_plus_block .sfsiplus_norm_row .cbtn_vsmall:before {
56
- left: 31%;
57
- top: -9px;
58
- margin-left: -31%; }
59
- .sfsi_plus_block .sfsiplus_norm_row {
60
- position: relative !important; }
61
- .sfsi_plus_block .sfsi_plus_wicons {
62
- margin-bottom: 30px;
63
- position: relative;
64
- padding-top: 5px;
65
- display: inline-block; }
66
- .sfsi_plus_block .sfsiplus_norm_row .bot_no {
67
- padding: 1px 0;
68
- font-size: 12px !important;
69
- text-align: center;
70
- line-height: 12px !important;
71
- background: #fff;
72
- border-radius: 5px;
73
- z-index: 9;
74
- border: 1px solid #333;
75
- white-space: pre;
76
- -webkit-box-sizing: border-box;
77
- box-sizing: border-box;
78
- width: 40px;
79
- display: inline-block; }
80
- .sfsi_plus_block .sfsiplus_norm_row .bot_no:before {
81
- content: url("../css/images/count_top_arow.png");
82
- position: absolute;
83
- height: 9px;
84
- margin-left: -7.5px;
85
- margin-top: -11px;
86
- left: 50%;
87
- width: 15px; }
88
- .sfsi_plus_block .sfsi_plus_widget.sfsi_plus_widget.sfsi_plus_widget img {
89
- border: none;
90
- padding: 0; }
91
- .sfsi_plus_block .sfsi_plus_Sicons .sf_fb {
92
- margin-top: -4px;
93
- margin-right: 4px; }
94
- .sfsi_plus_block .sfsi_plus_Sicons .sf_twiter {
95
- margin-right: 4px; }
96
- .sfsi_plus_block .sfsi_plus_Sicons .sf_pinit {
97
- margin-top: -3px;
98
- margin-right: 4px; }
99
-
100
- .gutenberg__editor .sfsi_new_prmium_follw {
101
- height: auto !important;
102
- min-height: 63px; }
103
-
104
- .gutenberg__editor .sfsi_plus_block_text_before_icon {
105
- display: inline-block;
106
- vertical-align: top; }
107
-
108
- .gutenberg__editor .sfsi_plus_block {
109
- display: inline-block; }
110
- .gutenberg__editor .sfsi_plus_block[data-icon-type="rectangle"] .fb_iframe_widget > span {
111
- vertical-align: top !important; }
112
- .gutenberg__editor .sfsi_plus_block[data-icon-type="rectangle"] .sf_pinit > span {
113
- vertical-align: top !important; }
114
-
115
- .sfsi_plus_block_inspector h3, .sfsi_plus_block_inspector label {
116
- padding-top: 12px;
117
- margin-bottom: 5px; }
118
-
119
- .sfsi_plus_block_inspector select, .sfsi_plus_block_inspector input[type="text"], .sfsi_plus_block_inspector input[type="number"], .sfsi_plus_block_inspector input[type="email"], .sfsi_plus_block_inspector textarea {
120
- width: 100%; }
121
-
122
- .sfsi_plus_block_inspector .sfsi_plus_block_iconperrow_body {
123
- padding-top: 20px;
124
- font-weight: 600; }
125
- .sfsi_plus_block_inspector .sfsi_plus_block_iconperrow_body .label {
126
- display: inline-block;
127
- width: 69%; }
128
- .sfsi_plus_block_inspector .sfsi_plus_block_iconperrow_body input {
129
- display: inline-block;
130
- width: 30%; }
131
-
132
- .sfsi_plus_block_inspector .sfsi_plus_block_textbeforeicons {
133
- display: inline-block; }
134
-
135
- .sfsi_plus_block_inspector .sfsi_plus_block_textbeforeicons_header {
136
- padding-top: 10px; }
137
-
138
- .sfsi_plus_block_inspector hr {
139
- margin: .3em 0; }
140
-
141
- .sfsi_plus_block_inspector ul {
142
- margin-top: 0; }
143
- .sfsi_plus_block_inspector ul.sfsi_plus_block_notes_list {
144
- list-style-type: disc;
145
- -webkit-padding-start: 20px;
146
- padding-inline-start: 20px; }
147
-
148
- .sfsi_plus_block_inspector .sfsi_plus_block_ad_heading, .sfsi_plus_block_inspector .sfsi_plus_block_ad_body {
149
- text-align: center; }
150
-
151
- .sfsi_plus_block_inspector .sfsi_plus_block_icontype_desc {
152
- margin-bottom: 0; }
153
-
154
- .sfsi_plus_block_inspector input[type=checkbox] {
155
- margin-right: 5px !important; }
156
-
157
- .sfsi_plus_block_inspector .sfsi_plus_block_notes_list {
158
- color: #000; }
159
-
160
- .sfsi_plus_block_wrapper .sfsi_plus_block, .sfsi_plus_block_wrapper .sfsi_plus_block_text_before_icon {
161
- display: inline-block; }
162
-
163
- .sfsi_plus_block_wrapper .sfsi_plus_block_text_before_icon {
164
- vertical-align: top;
165
- margin-top: 10px; }
1
+ .sfsi_plus_block{min-height:55px}.sfsi_plus_block.sfsi_plus_block.sfsi_plus_block img{padding:0;border:none;max-width:90%}.sfsi_plus_block .sfsi_plus_widget .sfsi_plus_linkedin_tool_bdr .sfsi_plus_inside .icon4,.sfsi_plus_block .sfsi_plus_widget .sfsi_plus_gpls_tool_bdr .sfsi_plus_inside .icon1,.sfsi_plus_block .sfsi_plus_widget .sfsi_plus_fb_tool_bdr .sfsi_plus_inside .icon1{height:auto}.sfsi_plus_block .sfsi_plus_widget{min-height:55px}.sfsi_plus_block .sfsi_plus_widget a img{-webkit-box-shadow:none !important;box-shadow:none !important;outline:0;padding:0 !important;border:none !important;max-width:100%}.sfsi_plus_block .sfsiplus_inerCnt{position:relative;z-index:inherit !important;float:left;width:100%;float:left}.sfsi_plus_block .sfsi_plus_widget .sfsi_plus_wDiv .sfsi_plus_wicons .sfsiplus_inerCnt a,.sfsi_plus_block .sfsi_plus_widget .sfsi_plus_wDiv .sfsi_plus_wicons .sfsiplus_inerCnt a.sficn{padding:0px;margin:0px;width:100%;border:medium none}.sfsi_plus_block .sfsiplus_norm_row{float:left;min-width:25px}.sfsi_plus_block .sfsiplus_norm_row a{border:none;display:inline-block;position:relative}.sfsi_plus_block .sfsiplus_norm_row .cbtn_vsmall{font-size:9px;left:-28%;top:4px}.sfsi_plus_block .sfsiplus_norm_row .cbtn_vsmall:before{left:31%;top:-9px;margin-left:-31%}.sfsi_plus_block .sfsiplus_norm_row{position:relative !important}.sfsi_plus_block .sfsi_plus_wicons{margin-bottom:30px;position:relative;padding-top:5px;display:inline-block}.sfsi_plus_block .sfsiplus_norm_row .bot_no{padding:1px 0;font-size:12px !important;text-align:center;line-height:12px !important;background:#fff;border-radius:5px;z-index:9;border:1px solid #333;white-space:pre;-webkit-box-sizing:border-box;box-sizing:border-box;width:40px;display:inline-block}.sfsi_plus_block .sfsiplus_norm_row .bot_no:before{content:url("../css/images/count_top_arow.png");position:absolute;height:9px;margin-left:-7.5px;margin-top:-11px;left:50%;width:15px}.sfsi_plus_block .sfsi_plus_widget.sfsi_plus_widget.sfsi_plus_widget img{border:none;padding:0}.sfsi_plus_block .sfsi_plus_Sicons .sf_fb{margin-top:-4px;margin-right:4px}.sfsi_plus_block .sfsi_plus_Sicons .sf_twiter{margin-right:4px}.sfsi_plus_block .sfsi_plus_Sicons .sf_pinit{margin-top:-3px;margin-right:4px}.gutenberg__editor .sfsi_new_prmium_follw{height:auto !important;min-height:63px}.gutenberg__editor .sfsi_plus_block_text_before_icon{display:inline-block;vertical-align:top}.gutenberg__editor .sfsi_plus_block{display:inline-block}.gutenberg__editor .sfsi_plus_block[data-icon-type="rectangle"] .fb_iframe_widget>span{vertical-align:top !important}.gutenberg__editor .sfsi_plus_block[data-icon-type="rectangle"] .sf_pinit>span{vertical-align:top !important}.sfsi_plus_block_inspector h3,.sfsi_plus_block_inspector label{padding-top:12px;margin-bottom:5px}.sfsi_plus_block_inspector select,.sfsi_plus_block_inspector input[type="text"],.sfsi_plus_block_inspector input[type="number"],.sfsi_plus_block_inspector input[type="email"],.sfsi_plus_block_inspector textarea{width:100%}.sfsi_plus_block_inspector .sfsi_plus_block_iconperrow_body{padding-top:20px;font-weight:600}.sfsi_plus_block_inspector .sfsi_plus_block_iconperrow_body .label{display:inline-block;width:69%}.sfsi_plus_block_inspector .sfsi_plus_block_iconperrow_body input{display:inline-block;width:30%}.sfsi_plus_block_inspector .sfsi_plus_block_textbeforeicons{display:inline-block}.sfsi_plus_block_inspector .sfsi_plus_block_textbeforeicons_header{padding-top:10px}.sfsi_plus_block_inspector hr{margin:.3em 0}.sfsi_plus_block_inspector ul{margin-top:0}.sfsi_plus_block_inspector ul.sfsi_plus_block_notes_list{list-style-type:disc;-webkit-padding-start:20px;padding-inline-start:20px}.sfsi_plus_block_inspector .sfsi_plus_block_ad_heading,.sfsi_plus_block_inspector .sfsi_plus_block_ad_body{text-align:center}.sfsi_plus_block_inspector .sfsi_plus_block_icontype_desc{margin-bottom:0}.sfsi_plus_block_inspector input[type=checkbox]{margin-right:5px !important}.sfsi_plus_block_inspector .sfsi_plus_block_notes_list{color:#000}.sfsi_plus_block_wrapper .sfsi_plus_block,.sfsi_plus_block_wrapper .sfsi_plus_block_text_before_icon{display:inline-block}.sfsi_plus_block_wrapper .sfsi_plus_block_text_before_icon{vertical-align:top;margin-top:10px}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/custom-admin.js CHANGED
@@ -24,7 +24,7 @@ function sfsi_plus_delete_CusIcon(s, i)
24
  icon_name:i.attr("name")
25
  };
26
  SFSI.ajax({
27
- url:ajax_object.ajax_url,
28
  type:"post",
29
  data:e,
30
  dataType:"json",
@@ -150,7 +150,7 @@ function plus_sfsi_customskin_upload(s, ref)
150
  custom_imgurl:i
151
  };
152
  SFSI.ajax({
153
- url:ajax_object.ajax_url,
154
  type:"post",
155
  data:e,
156
  success:function(msg) {
@@ -177,7 +177,7 @@ function sfsiplus_deleteskin_icon(s)
177
  };
178
 
179
  SFSI.ajax({
180
- url:ajax_object.ajax_url,
181
  type:"post",
182
  data:e,
183
  dataType: "json",
@@ -202,7 +202,7 @@ function SFSI_plus_done()
202
  e = { action:"plus_Iamdone" };
203
 
204
  SFSI.ajax({
205
- url:ajax_object.ajax_url,
206
  type:"post",
207
  data:e,
208
  success:function(msg) {
@@ -221,7 +221,7 @@ function plus_sfsi_newcustomicon_upload(s)
221
  custom_imgurl:i
222
  };
223
  SFSI.ajax({
224
- url:ajax_object.ajax_url,
225
  type:"post",
226
  data:e,
227
  dataType:"json",
@@ -264,7 +264,7 @@ function sfsi_plus_update_step1()
264
  nonce:nonce
265
  };
266
  SFSI.ajax({
267
- url:ajax_object.ajax_url,
268
  type:"post",
269
  data:I,
270
  async:!0,
@@ -336,7 +336,7 @@ function sfsi_plus_update_step2()
336
  nonce:nonce
337
  };
338
  SFSI.ajax({
339
- url:ajax_object.ajax_url,
340
  type:"post",
341
  data:M,
342
  async:!0,
@@ -389,7 +389,7 @@ function sfsi_plus_update_step3()
389
  nonce:nonce
390
  };
391
  SFSI.ajax({
392
- url:ajax_object.ajax_url,
393
  type:"post",
394
  data:d,
395
  async:!0,
@@ -492,7 +492,7 @@ function sfsi_plus_update_step4()
492
  nonce:nonce
493
  };
494
  return SFSI.ajax({
495
- url:ajax_object.ajax_url,
496
  type:"post",
497
  data:$,
498
  dataType:"json",
@@ -587,7 +587,7 @@ function sfsi_plus_update_step5()
587
  nonce:nonce
588
  };
589
  SFSI.ajax({
590
- url:ajax_object.ajax_url,
591
  type:"post",
592
  data:T,
593
  dataType:"json",
@@ -620,7 +620,7 @@ function sfsi_plus_update_step6()
620
  nonce:nonce
621
  };
622
  SFSI.ajax({
623
- url:ajax_object.ajax_url,
624
  type:"post",
625
  data:n,
626
  dataType:"json",
@@ -669,7 +669,7 @@ function sfsi_plus_update_step7()
669
  nonce:nonce
670
  };
671
  SFSI.ajax({
672
- url:ajax_object.ajax_url,
673
  type:"post",
674
  data:f,
675
  dataType:"json",
@@ -759,7 +759,7 @@ function sfsi_plus_update_step8()
759
  nonce:nonce
760
  };
761
  SFSI.ajax({
762
- url: ajax_object.ajax_url,
763
  type: "post",
764
  data: f,
765
  dataType: "json",
@@ -846,7 +846,7 @@ function sfsi_plus_update_step9()
846
  nonce:nonce
847
  };
848
  SFSI.ajax({
849
- url:ajax_object.ajax_url,
850
  type:"post",
851
  data:f,
852
  dataType:"json",
@@ -1121,7 +1121,7 @@ function sfsi_plus_create_suscriber_form()
1121
  button:SFSI('input[name="sfsi_plus_form_button_text"]').val()
1122
  };
1123
  SFSI.ajax({
1124
- url:ajax_object.ajax_url,
1125
  type:"post",
1126
  data:data,
1127
  success:function(s) {
@@ -1137,7 +1137,7 @@ SFSI(document).ready(function(s) {
1137
  SFSI(document).on("click", ".sfsi-notice-dismiss", function(){
1138
 
1139
  SFSI.ajax({
1140
- url:ajax_object.ajax_url,
1141
  type:"post",
1142
  data:{action: "sfsi_plus_dismiss_lang_notice"},
1143
  success:function(e) {
@@ -1157,7 +1157,7 @@ SFSI(document).ready(function(s) {
1157
  iconname: SFSI(this).attr( "data-iconUrl" )
1158
  };
1159
  SFSI.ajax({
1160
- url:ajax_object.ajax_url,
1161
  type:"post",
1162
  data:data,
1163
  success:function(s) {
@@ -1477,16 +1477,16 @@ SFSI(document).ready(function(s) {
1477
  }
1478
  }),*/
1479
  SFSI("div#sfsiplusid_linkedin").find(".icon4").find("a").find("img").mouseover(function() {
1480
- SFSI(this).attr("src", ajax_object.plugin_url + "images/visit_icons/linkedIn_hover.svg");
1481
  }),
1482
  SFSI("div#sfsiplusid_linkedin").find(".icon4").find("a").find("img").mouseleave(function() {
1483
- SFSI(this).attr("src", ajax_object.plugin_url + "images/visit_icons/linkedIn.svg");
1484
  }),
1485
  SFSI("div#sfsiplusid_youtube").find(".icon1").find("a").find("img").mouseover(function() {
1486
- SFSI(this).attr("src", ajax_object.plugin_url + "images/visit_icons/youtube_hover.svg");
1487
  }),
1488
  SFSI("div#sfsiplusid_youtube").find(".icon1").find("a").find("img").mouseleave(function() {
1489
- SFSI(this).attr("src", ajax_object.plugin_url + "images/visit_icons/youtube.svg");
1490
  }),
1491
  SFSI("div#sfsiplusid_facebook").find(".icon1").find("a").find("img").mouseover(function() {
1492
  SFSI(this).css("opacity", "0.9");
@@ -1645,7 +1645,7 @@ SFSI(document).ready(function(s) {
1645
  nonce:nonce
1646
  };
1647
  SFSI.ajax({
1648
- url:ajax_object.ajax_url,
1649
  type:"post",
1650
  data:s,
1651
  dataType:"json",
@@ -1671,7 +1671,7 @@ SFSI(document).ready(function(s) {
1671
  nonce:nonce
1672
  };
1673
  SFSI.ajax({
1674
- url:ajax_object.ajax_url,
1675
  type:"post",
1676
  data:s,
1677
  dataType:"json",
@@ -1965,7 +1965,7 @@ SFSI(document).ready(function(s) {
1965
  });*/
1966
  SFSI(document).on("click", ".sfsi_plus-AddThis-notice-dismiss", function(){
1967
  SFSI.ajax({
1968
- url:ajax_object.ajax_url,
1969
  type:"post",
1970
  data:{action: "sfsi_plus_dismiss_addThis_icon_notice"},
1971
  success:function(e) {
@@ -2144,13 +2144,31 @@ SFSI(document).ready(function(){
2144
  event&event.preventDefault();
2145
  // console.log(event);
2146
  var target=SFSI(this).parents('.tab-content');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2147
  SFSI.ajax({
2148
- url:ajax_object.ajax_url,
2149
  type:"post",
2150
  data:{
2151
  action: "sfsiplusOfflineChatMessage",
2152
- message: SFSI(this).find('textarea[name="question"]').val(),
2153
- email: SFSI(this).find('input[name="email"]').val(),
2154
  }
2155
  }).done(function(){
2156
  target.find('.before_message_sent').hide();
24
  icon_name:i.attr("name")
25
  };
26
  SFSI.ajax({
27
+ url:sfsi_plus_ajax_object.ajax_url,
28
  type:"post",
29
  data:e,
30
  dataType:"json",
150
  custom_imgurl:i
151
  };
152
  SFSI.ajax({
153
+ url:sfsi_plus_ajax_object.ajax_url,
154
  type:"post",
155
  data:e,
156
  success:function(msg) {
177
  };
178
 
179
  SFSI.ajax({
180
+ url:sfsi_plus_ajax_object.ajax_url,
181
  type:"post",
182
  data:e,
183
  dataType: "json",
202
  e = { action:"plus_Iamdone" };
203
 
204
  SFSI.ajax({
205
+ url:sfsi_plus_ajax_object.ajax_url,
206
  type:"post",
207
  data:e,
208
  success:function(msg) {
221
  custom_imgurl:i
222
  };
223
  SFSI.ajax({
224
+ url:sfsi_plus_ajax_object.ajax_url,
225
  type:"post",
226
  data:e,
227
  dataType:"json",
264
  nonce:nonce
265
  };
266
  SFSI.ajax({
267
+ url:sfsi_plus_ajax_object.ajax_url,
268
  type:"post",
269
  data:I,
270
  async:!0,
336
  nonce:nonce
337
  };
338
  SFSI.ajax({
339
+ url:sfsi_plus_ajax_object.ajax_url,
340
  type:"post",
341
  data:M,
342
  async:!0,
389
  nonce:nonce
390
  };
391
  SFSI.ajax({
392
+ url:sfsi_plus_ajax_object.ajax_url,
393
  type:"post",
394
  data:d,
395
  async:!0,
492
  nonce:nonce
493
  };
494
  return SFSI.ajax({
495
+ url:sfsi_plus_ajax_object.ajax_url,
496
  type:"post",
497
  data:$,
498
  dataType:"json",
587
  nonce:nonce
588
  };
589
  SFSI.ajax({
590
+ url:sfsi_plus_ajax_object.ajax_url,
591
  type:"post",
592
  data:T,
593
  dataType:"json",
620
  nonce:nonce
621
  };
622
  SFSI.ajax({
623
+ url:sfsi_plus_ajax_object.ajax_url,
624
  type:"post",
625
  data:n,
626
  dataType:"json",
669
  nonce:nonce
670
  };
671
  SFSI.ajax({
672
+ url:sfsi_plus_ajax_object.ajax_url,
673
  type:"post",
674
  data:f,
675
  dataType:"json",
759
  nonce:nonce
760
  };
761
  SFSI.ajax({
762
+ url: sfsi_plus_ajax_object.ajax_url,
763
  type: "post",
764
  data: f,
765
  dataType: "json",
846
  nonce:nonce
847
  };
848
  SFSI.ajax({
849
+ url:sfsi_plus_ajax_object.ajax_url,
850
  type:"post",
851
  data:f,
852
  dataType:"json",
1121
  button:SFSI('input[name="sfsi_plus_form_button_text"]').val()
1122
  };
1123
  SFSI.ajax({
1124
+ url:sfsi_plus_ajax_object.ajax_url,
1125
  type:"post",
1126
  data:data,
1127
  success:function(s) {
1137
  SFSI(document).on("click", ".sfsi-notice-dismiss", function(){
1138
 
1139
  SFSI.ajax({
1140
+ url:sfsi_plus_ajax_object.ajax_url,
1141
  type:"post",
1142
  data:{action: "sfsi_plus_dismiss_lang_notice"},
1143
  success:function(e) {
1157
  iconname: SFSI(this).attr( "data-iconUrl" )
1158
  };
1159
  SFSI.ajax({
1160
+ url:sfsi_plus_ajax_object.ajax_url,
1161
  type:"post",
1162
  data:data,
1163
  success:function(s) {
1477
  }
1478
  }),*/
1479
  SFSI("div#sfsiplusid_linkedin").find(".icon4").find("a").find("img").mouseover(function() {
1480
+ SFSI(this).attr("src", sfsi_plus_ajax_object.plugin_url + "images/visit_icons/linkedIn_hover.svg");
1481
  }),
1482
  SFSI("div#sfsiplusid_linkedin").find(".icon4").find("a").find("img").mouseleave(function() {
1483
+ SFSI(this).attr("src", sfsi_plus_ajax_object.plugin_url + "images/visit_icons/linkedIn.svg");
1484
  }),
1485
  SFSI("div#sfsiplusid_youtube").find(".icon1").find("a").find("img").mouseover(function() {
1486
+ SFSI(this).attr("src", sfsi_plus_ajax_object.plugin_url + "images/visit_icons/youtube_hover.svg");
1487
  }),
1488
  SFSI("div#sfsiplusid_youtube").find(".icon1").find("a").find("img").mouseleave(function() {
1489
+ SFSI(this).attr("src", sfsi_plus_ajax_object.plugin_url + "images/visit_icons/youtube.svg");
1490
  }),
1491
  SFSI("div#sfsiplusid_facebook").find(".icon1").find("a").find("img").mouseover(function() {
1492
  SFSI(this).css("opacity", "0.9");
1645
  nonce:nonce
1646
  };
1647
  SFSI.ajax({
1648
+ url:sfsi_plus_ajax_object.ajax_url,
1649
  type:"post",
1650
  data:s,
1651
  dataType:"json",
1671
  nonce:nonce
1672
  };
1673
  SFSI.ajax({
1674
+ url:sfsi_plus_ajax_object.ajax_url,
1675
  type:"post",
1676
  data:s,
1677
  dataType:"json",
1965
  });*/
1966
  SFSI(document).on("click", ".sfsi_plus-AddThis-notice-dismiss", function(){
1967
  SFSI.ajax({
1968
+ url:sfsi_plus_ajax_object.ajax_url,
1969
  type:"post",
1970
  data:{action: "sfsi_plus_dismiss_addThis_icon_notice"},
1971
  success:function(e) {
2144
  event&event.preventDefault();
2145
  // console.log(event);
2146
  var target=SFSI(this).parents('.tab-content');
2147
+ var message= SFSI(this).find('textarea[name="question"]').val();
2148
+ var email=SFSI(this).find('input[name="email"]').val();
2149
+ 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,}))$/;
2150
+
2151
+ if(""===email || false===re.test(String(email).toLowerCase())){
2152
+ // console.log(SFSI(this).find('input[name="email"]'));
2153
+ SFSI(this).find('input[name="email"]').css('background-color','red');
2154
+ SFSI(this).find('input[name="email"]').on('keyup',function(){
2155
+ 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,}))$/;
2156
+ var email = SFSI(this).val();
2157
+ // console.log(email,re.test(String(email).toLowerCase()) );
2158
+ if(""!==email && true===re.test(String(email).toLowerCase())){
2159
+ SFSI(this).css('background-color','#fff');
2160
+ }
2161
+ })
2162
+ return false;
2163
+
2164
+ }
2165
  SFSI.ajax({
2166
+ url:sfsi_plus_ajax_object.ajax_url,
2167
  type:"post",
2168
  data:{
2169
  action: "sfsiplusOfflineChatMessage",
2170
+ message: message,
2171
+ email: email,
2172
  }
2173
  }).done(function(){
2174
  target.find('.before_message_sent').hide();
js/custom.js CHANGED
@@ -173,16 +173,16 @@ SFSI(document).ready(function(s) {
173
  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();
174
  }),
175
  SFSI("div#sfsiplusid_linkedin").find(".icon4").find("a").find("img").mouseover(function() {
176
- SFSI(this).attr("src", ajax_object.plugin_url + "images/visit_icons/linkedIn_hover.svg");
177
  }),
178
  SFSI("div#sfsiplusid_linkedin").find(".icon4").find("a").find("img").mouseleave(function() {
179
- SFSI(this).attr("src", ajax_object.plugin_url + "images/visit_icons/linkedIn.svg");
180
  }),
181
  SFSI("div#sfsiplusid_youtube").find(".icon1").find("a").find("img").mouseover(function() {
182
- SFSI(this).attr("src", ajax_object.plugin_url + "images/visit_icons/youtube_hover.svg");
183
  }),
184
  SFSI("div#sfsiplusid_youtube").find(".icon1").find("a").find("img").mouseleave(function() {
185
- SFSI(this).attr("src", ajax_object.plugin_url + "images/visit_icons/youtube.svg");
186
  }),
187
  SFSI("div#sfsiplusid_facebook").find(".icon1").find("a").find("img").mouseover(function() {
188
  SFSI(this).css("opacity", "0.9");
173
  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();
174
  }),
175
  SFSI("div#sfsiplusid_linkedin").find(".icon4").find("a").find("img").mouseover(function() {
176
+ SFSI(this).attr("src", sfsi_plus_ajax_object.plugin_url + "images/visit_icons/linkedIn_hover.svg");
177
  }),
178
  SFSI("div#sfsiplusid_linkedin").find(".icon4").find("a").find("img").mouseleave(function() {
179
+ SFSI(this).attr("src", sfsi_plus_ajax_object.plugin_url + "images/visit_icons/linkedIn.svg");
180
  }),
181
  SFSI("div#sfsiplusid_youtube").find(".icon1").find("a").find("img").mouseover(function() {
182
+ SFSI(this).attr("src", sfsi_plus_ajax_object.plugin_url + "images/visit_icons/youtube_hover.svg");
183
  }),
184
  SFSI("div#sfsiplusid_youtube").find(".icon1").find("a").find("img").mouseleave(function() {
185
+ SFSI(this).attr("src", sfsi_plus_ajax_object.plugin_url + "images/visit_icons/youtube.svg");
186
  }),
187
  SFSI("div#sfsiplusid_facebook").find(".icon1").find("a").find("img").mouseover(function() {
188
  SFSI(this).css("opacity", "0.9");
libs/controllers/sfsi_buttons_controller.php CHANGED
@@ -1124,7 +1124,7 @@ function sfsi_plus_bannerOption(){
1124
  echo '<script type="text/javascript">
1125
  jQuery("body").on("click", ".sfsi_plus_new_notification_cross_cat", function(){
1126
  SFSI.ajax({
1127
- url:ajax_object.ajax_url,
1128
  type:"post",
1129
  data: {action: "sfsiPlus_new_notification_read"},
1130
  success:function(msg){
1124
  echo '<script type="text/javascript">
1125
  jQuery("body").on("click", ".sfsi_plus_new_notification_cross_cat", function(){
1126
  SFSI.ajax({
1127
+ url:sfsi_plus_ajax_object.ajax_url,
1128
  type:"post",
1129
  data: {action: "sfsiPlus_new_notification_read"},
1130
  success:function(msg){
libs/controllers/sfsi_socialhelper.php CHANGED
@@ -89,8 +89,12 @@ class sfsi_plus_SocialHelper
89
  {
90
  $data = $this->file_get_contents_curl("https://www.googleapis.com/plus/v1/people/$page_id?key=$google_api_key");
91
  $data = json_decode($data, true);
92
-
93
- return $this->format_num($data['circledByCount']);
 
 
 
 
94
  }
95
  else
96
  {
@@ -126,17 +130,18 @@ class sfsi_plus_SocialHelper
126
  $args = array(
127
  'body' => $body,
128
  'blocking' => true,
129
- 'header' => array('Content-type: application/json'),
130
  'sslverify' => true
131
  );
132
  // var_dump($args);
 
133
  $resp = wp_remote_post( "https://clients6.google.com/rpc", $args );
134
  if ( is_wp_error( $resp ) ) {
135
- var_dump($resp->get_error_message());
136
  return 0;
137
  } else{
138
  $json = json_decode($resp['body'], true);
139
- // var_dump($resp);
140
  if(isset($json[0]['error'])){return 0;}
141
  return intval( $json[0]['result']['metadata']['globalCounts']['count'] );
142
  }
@@ -240,8 +245,8 @@ class sfsi_plus_SocialHelper
240
  );
241
  $resp = wp_remote_get( $url, $args );
242
  if ( is_wp_error( $resp ) ) {
243
- update_option("sfsi_plus_curlErrorNotices", "yes");
244
- update_option("sfsi_plus_curlErrorMessage", $resp->get_error_message());
245
  return null;
246
  } else {
247
  // var_dump($resp['body']);
@@ -260,8 +265,8 @@ class sfsi_plus_SocialHelper
260
  );
261
  $resp = wp_remote_get( $url, $args );
262
  if ( is_wp_error( $resp ) ) {
263
- update_option("sfsi_plus_curlErrorNotices", "yes");
264
- update_option("sfsi_plus_curlErrorMessage", $resp->get_error_message());
265
  return null;
266
  } else {
267
  return $resp['body'];
@@ -300,12 +305,12 @@ class sfsi_plus_SocialHelper
300
  return $fb_like_html;exit;
301
  }
302
 
303
- /*subscribe like*/
304
- function sfsi_plus_Subscribelike($permalink, $show_count)
305
- {
306
 
307
- }
308
- /*subscribe like*/
309
 
310
  /*twitter like*/
311
  function sfsi_plus_twitterlike($permalink, $show_count)
89
  {
90
  $data = $this->file_get_contents_curl("https://www.googleapis.com/plus/v1/people/$page_id?key=$google_api_key");
91
  $data = json_decode($data, true);
92
+
93
+ if(isset($data['circledByCount'])){
94
+ return $this->format_num($data['circledByCount']);
95
+ }else{
96
+ return 0;
97
+ }
98
  }
99
  else
100
  {
130
  $args = array(
131
  'body' => $body,
132
  'blocking' => true,
133
+ 'headers' => array('content-type'=>'application/json'),
134
  'sslverify' => true
135
  );
136
  // var_dump($args);
137
+ // $resp = wp_remote_post( "http://requestbin.fullcontact.com/s4wpp0s4", $args );
138
  $resp = wp_remote_post( "https://clients6.google.com/rpc", $args );
139
  if ( is_wp_error( $resp ) ) {
140
+ // var_dump($resp->get_error_message());
141
  return 0;
142
  } else{
143
  $json = json_decode($resp['body'], true);
144
+ // var_dump($json[0]['result']['metadata']['globalCounts']['count']);
145
  if(isset($json[0]['error'])){return 0;}
146
  return intval( $json[0]['result']['metadata']['globalCounts']['count'] );
147
  }
245
  );
246
  $resp = wp_remote_get( $url, $args );
247
  if ( is_wp_error( $resp ) ) {
248
+ // update_option("sfsi_plus_curlErrorNotices", "yes");
249
+ // update_option("sfsi_plus_curlErrorMessage", $resp->get_error_message());
250
  return null;
251
  } else {
252
  // var_dump($resp['body']);
265
  );
266
  $resp = wp_remote_get( $url, $args );
267
  if ( is_wp_error( $resp ) ) {
268
+ // update_option("sfsi_plus_curlErrorNotices", "yes");
269
+ // update_option("sfsi_plus_curlErrorMessage", $resp->get_error_message());
270
  return null;
271
  } else {
272
  return $resp['body'];
305
  return $fb_like_html;exit;
306
  }
307
 
308
+ // /*subscribe like*/
309
+ // function sfsi_plus_Subscribelike($permalink, $show_count)
310
+ // {
311
 
312
+ // }
313
+ // /*subscribe like*/
314
 
315
  /*twitter like*/
316
  function sfsi_plus_twitterlike($permalink, $show_count)
libs/sfsi_Init_JqueryCss.php CHANGED
@@ -63,10 +63,10 @@ function sfsiplus_plugin_back_enqueue_script()
63
  /* end cusotm js */
64
 
65
  /* initilaize the ajax url in javascript */
66
- wp_localize_script( 'SFSIPLUSCustomJs', 'ajax_object', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) );
67
- wp_localize_script( 'SFSIPLUSCustomValidateJs', 'ajax_object', array( 'ajax_url' => admin_url( 'admin-ajax.php' ),'plugin_url'=> SFSI_PLUS_PLUGURL) );
68
- wp_localize_script( 'SFSIPLUSCustomJs', 'sfsi_plus_links', array( 'admin_url' => admin_url('/'),'plugin_dir_url'=> SFSI_PLUS_PLUGURL) );
69
- wp_localize_script( 'SFSIPLUSCustomValidateJs', 'sfsi_plus_links', array( 'admin_url' => admin_url('/'),'plugin_dir_url'=> SFSI_PLUS_PLUGURL) );
70
  }
71
  }
72
  }
@@ -99,8 +99,8 @@ function sfsiplus_plugin_front_enqueue_script()
99
  /* end cusotm js */
100
 
101
  /* initilaize the ajax url in javascript */
102
- wp_localize_script( 'SFSIPLUSCustomJs', 'ajax_object', array( 'ajax_url' => admin_url( 'admin-ajax.php' ),'plugin_url'=> SFSI_PLUS_PLUGURL) );
103
- wp_localize_script( 'SFSIPLUSCustomJs', 'sfsi_plus_links', array( 'admin_url' => admin_url('/'),'plugin_dir_url'=> SFSI_PLUS_PLUGURL) );
104
  }
105
  add_action( 'wp_enqueue_scripts', 'sfsiplus_plugin_front_enqueue_script' );
106
  ?>
63
  /* end cusotm js */
64
 
65
  /* initilaize the ajax url in javascript */
66
+ wp_localize_script( 'SFSIPLUSCustomJs', 'sfsi_plus_ajax_object', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) );
67
+ wp_localize_script( 'SFSIPLUSCustomValidateJs', 'sfsi_plus_ajax_object', array( 'ajax_url' => admin_url( 'admin-ajax.php' ),'plugin_url'=> SFSI_PLUS_PLUGURL,'rest_url'=>get_rest_url()) );
68
+ wp_localize_script( 'SFSIPLUSCustomJs', 'sfsi_plus_links', array( 'admin_url' => admin_url('/'),'plugin_dir_url'=> SFSI_PLUS_PLUGURL,'rest_url'=>get_rest_url(),'pretty_perma'=>(get_option('permalink_structure')==""?'no':'yes')) );
69
+ wp_localize_script( 'SFSIPLUSCustomValidateJs', 'sfsi_plus_links', array( 'admin_url' => admin_url('/'),'plugin_dir_url'=> SFSI_PLUS_PLUGURL,'rest_url'=>get_rest_url(),'pretty_perma'=>(get_option('permalink_structure')==""?'no':'yes')) );
70
  }
71
  }
72
  }
99
  /* end cusotm js */
100
 
101
  /* initilaize the ajax url in javascript */
102
+ wp_localize_script( 'SFSIPLUSCustomJs', 'sfsi_plus_ajax_object', array( 'ajax_url' => admin_url( 'admin-ajax.php' ),'plugin_url'=> SFSI_PLUS_PLUGURL,'rest_url'=>get_rest_url()) );
103
+ wp_localize_script( 'SFSIPLUSCustomJs', 'sfsi_plus_links', array( 'admin_url' => admin_url('/'),'plugin_dir_url'=> SFSI_PLUS_PLUGURL,'rest_url'=>get_rest_url(),'pretty_perma'=>(get_option('permalink_structure')==""?'no':'yes')) );
104
  }
105
  add_action( 'wp_enqueue_scripts', 'sfsiplus_plugin_front_enqueue_script' );
106
  ?>
libs/sfsi_gutenberg_block.php CHANGED
@@ -28,7 +28,7 @@ function sfsi_plus_share_block_editor_assets() {
28
  '1'
29
  // filemtime( plugin_dir_path( 'js/block.js', __FILE__ ) )
30
  );
31
- wp_localize_script( 'sfsi-plus-share-block', 'sfsi_plus_links', array( 'admin_url' => admin_url('/'),'plugin_dir_url'=> SFSI_PLUS_PLUGURL) );
32
  wp_enqueue_style(
33
  'sfsi-plus-share-block-editor', // Handle.
34
  plugins_url( 'dist/blocks.editor.build.css', dirname( __FILE__ ) ), // Block editor CSS.
28
  '1'
29
  // filemtime( plugin_dir_path( 'js/block.js', __FILE__ ) )
30
  );
31
+ wp_localize_script( 'sfsi-plus-share-block', 'sfsi_plus_links', array( 'admin_url' => admin_url('/'),'plugin_dir_url'=> SFSI_PLUS_PLUGURL,'rest_url'=>get_rest_url(),'pretty_perma'=>(get_option('permalink_structure')==""?'no':'yes')) );
32
  wp_enqueue_style(
33
  'sfsi-plus-share-block-editor', // Handle.
34
  plugins_url( 'dist/blocks.editor.build.css', dirname( __FILE__ ) ), // Block editor CSS.
libs/sfsi_install_uninstall.php CHANGED
@@ -12,7 +12,7 @@ function sfsi_plus_update_plugin()
12
  }
13
 
14
  //Install version
15
- update_option("sfsi_plus_pluginVersion", "3.02");
16
 
17
  if(!get_option('sfsi_plus_serverphpVersionnotification'))
18
  {
@@ -652,6 +652,7 @@ function SFSI_PLUS_getFeedUrl()
652
  );
653
  $resp = wp_remote_post( 'https://www.specificfeeds.com/wordpress/plugin_setup', $args );
654
  if ( is_wp_error( $resp ) ) {
 
655
  update_option("sfsi_plus_curlErrorNotices", "yes");
656
  update_option("sfsi_plus_curlErrorMessage", $resp->get_error_message());
657
  } else {
@@ -679,6 +680,7 @@ function SFSI_PLUS_updateFeedUrl()
679
  );
680
  $resp = wp_remote_post( 'https://www.specificfeeds.com/wordpress/updateFeedPlugin', $args );
681
  if ( is_wp_error( $resp ) ) {
 
682
  update_option("sfsi_plus_curlErrorNotices", "yes");
683
  update_option("sfsi_plus_curlErrorMessage", $resp->get_error_message());
684
  } else {
@@ -699,8 +701,9 @@ function sfsi_plus_setUpfeeds($feed_id)
699
  );
700
  $resp = wp_remote_get( 'https//www.specificfeeds.com/rssegtcrons/download_rssmorefeed_data_single/'.$feed_id."/Y", $args );
701
  if ( is_wp_error( $resp ) ) {
702
- update_option("sfsi_plus_curlErrorNotices", "yes");
703
- update_option("sfsi_plus_curlErrorMessage", $resp->get_error_message());
 
704
  }
705
  }
706
  /* admin notice if wp_head is missing in active theme */
12
  }
13
 
14
  //Install version
15
+ update_option("sfsi_plus_pluginVersion", "3.03");
16
 
17
  if(!get_option('sfsi_plus_serverphpVersionnotification'))
18
  {
652
  );
653
  $resp = wp_remote_post( 'https://www.specificfeeds.com/wordpress/plugin_setup', $args );
654
  if ( is_wp_error( $resp ) ) {
655
+ // var_dump($resp);
656
  update_option("sfsi_plus_curlErrorNotices", "yes");
657
  update_option("sfsi_plus_curlErrorMessage", $resp->get_error_message());
658
  } else {
680
  );
681
  $resp = wp_remote_post( 'https://www.specificfeeds.com/wordpress/updateFeedPlugin', $args );
682
  if ( is_wp_error( $resp ) ) {
683
+ // var_dump($resp);
684
  update_option("sfsi_plus_curlErrorNotices", "yes");
685
  update_option("sfsi_plus_curlErrorMessage", $resp->get_error_message());
686
  } else {
701
  );
702
  $resp = wp_remote_get( 'https//www.specificfeeds.com/rssegtcrons/download_rssmorefeed_data_single/'.$feed_id."/Y", $args );
703
  if ( is_wp_error( $resp ) ) {
704
+ // var_dump($resp);
705
+ // update_option("sfsi_plus_curlErrorNotices", "yes");
706
+ // update_option("sfsi_plus_curlErrorMessage", $resp->get_error_message());
707
  }
708
  }
709
  /* admin notice if wp_head is missing in active theme */
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: socialsharepro
3
  Tags: Share, sharing, share buttons, share button, share social media, share icons, social buttons, sharing buttons, sharing icons, social media icons, social share, social sharing
4
  Requires at least: 3.0
5
- Tested up to: 5.0.2
6
- Stable tag: 3.0.2
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -445,10 +445,19 @@ The premium plugin offrs many more social buttons from other social media platfo
445
 
446
  == Changelog ==
447
 
 
 
 
 
 
448
 
449
  = 3.0.2 =
450
- * Design updates for Gutenberg
451
- * Security updates
 
 
 
 
452
 
453
  = 3.0.0 =
454
  * Update: Updated gutenberg block to incorporate current changes. Added support for multiple controls on block inspector controls.
@@ -806,5 +815,5 @@ The premium plugin offrs many more social buttons from other social media platfo
806
 
807
  == Upgrade Notice ==
808
 
809
- = 3.0.2 =
810
  * Please update
2
  Contributors: socialsharepro
3
  Tags: Share, sharing, share buttons, share button, share social media, share icons, social buttons, sharing buttons, sharing icons, social media icons, social share, social sharing
4
  Requires at least: 3.0
5
+ Tested up to: 5.0.4
6
+ Stable tag: 3.0.3
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
445
 
446
  == Changelog ==
447
 
448
+ = 3.0.3 =
449
+ * Update: solved Undefined constant notice resolved.
450
+ * Update: ROUND SHORTCODE sharing error solved.
451
+ * Update: curl errors in backend solved.
452
+ * Update: ajax_object conflict solved and updated sfsi_plus_ajax.
453
 
454
  = 3.0.2 =
455
+ * Update: Conflict solved.
456
+
457
+ = 3.0.1 =
458
+ * Update: design changes in gutenberg.
459
+ * Update: Dashboard chat updated.
460
+ * Update: Security updates.
461
 
462
  = 3.0.0 =
463
  * Update: Updated gutenberg block to incorporate current changes. Added support for multiple controls on block inspector controls.
815
 
816
  == Upgrade Notice ==
817
 
818
+ = 3.0.3 =
819
  * Please update
ultimate_social_media_icons.php CHANGED
@@ -7,7 +7,7 @@ Author: social share pro
7
  Text Domain: ultimate-social-media-plus
8
  Domain Path: /languages
9
  Author URI: http://socialshare.pro/
10
- Version: 3.0.2
11
  License: GPLv2
12
  */
13
 
@@ -103,7 +103,7 @@ register_deactivation_hook(__FILE__, 'sfsi_plus_deactivate_plugin');
103
  //register_uninstall_hook(__FILE__, 'sfsi_plus_Unistall_plugin');
104
 
105
  /*Plugin version setup*/
106
- if(!get_option('sfsi_plus_pluginVersion') || get_option('sfsi_plus_pluginVersion') < 3.01)
107
  {
108
  add_action("init", "sfsi_plus_update_plugin");
109
  }
@@ -131,6 +131,9 @@ function sfsi_plus_error_reporting(){
131
  add_shortcode("DISPLAY_ULTIMATE_PLUS", "DISPLAY_ULTIMATE_PLUS");
132
  function DISPLAY_ULTIMATE_PLUS($args = null, $content = null,$share_url=null)
133
  {
 
 
 
134
  $instance = array("showf" => 1, "title" => '');
135
  $sfsi_plus_section8_options = get_option("sfsi_plus_section8_options");
136
  $sfsi_plus_section8_options = unserialize($sfsi_plus_section8_options);
@@ -314,6 +317,7 @@ function sfsi_plus_getverification_code()
314
  $request = wp_remote_post( $url, $args );
315
 
316
  if ( is_wp_error( $request ) ) {
 
317
  update_option("sfsi_plus_curlErrorNotices", "yes");
318
  update_option("sfsi_plus_curlErrorMessage", $request->get_error_message());
319
  }else{
@@ -984,7 +988,7 @@ function sfsi_plus_curl_error_notification()
984
  jQuery(document).ready(function(e) {
985
  jQuery(".sfsi_plus_curlerror_cross").click(function(){
986
  SFSI.ajax({
987
- url:ajax_object.ajax_url,
988
  type:"post",
989
  data: {action: "sfsiplus_curlerrornotification"},
990
  success:function(msg)
7
  Text Domain: ultimate-social-media-plus
8
  Domain Path: /languages
9
  Author URI: http://socialshare.pro/
10
+ Version: 3.0.3
11
  License: GPLv2
12
  */
13
 
103
  //register_uninstall_hook(__FILE__, 'sfsi_plus_Unistall_plugin');
104
 
105
  /*Plugin version setup*/
106
+ if(!get_option('sfsi_plus_pluginVersion') || get_option('sfsi_plus_pluginVersion') < 3.03)
107
  {
108
  add_action("init", "sfsi_plus_update_plugin");
109
  }
131
  add_shortcode("DISPLAY_ULTIMATE_PLUS", "DISPLAY_ULTIMATE_PLUS");
132
  function DISPLAY_ULTIMATE_PLUS($args = null, $content = null,$share_url=null)
133
  {
134
+ if("DISPLAY_ULTIMATE_PLUS"===$share_url){
135
+ $share_url = null;
136
+ }
137
  $instance = array("showf" => 1, "title" => '');
138
  $sfsi_plus_section8_options = get_option("sfsi_plus_section8_options");
139
  $sfsi_plus_section8_options = unserialize($sfsi_plus_section8_options);
317
  $request = wp_remote_post( $url, $args );
318
 
319
  if ( is_wp_error( $request ) ) {
320
+ // var_dump($request);
321
  update_option("sfsi_plus_curlErrorNotices", "yes");
322
  update_option("sfsi_plus_curlErrorMessage", $request->get_error_message());
323
  }else{
988
  jQuery(document).ready(function(e) {
989
  jQuery(".sfsi_plus_curlerror_cross").click(function(){
990
  SFSI.ajax({
991
+ url:sfsi_plus_ajax_object.ajax_url,
992
  type:"post",
993
  data: {action: "sfsiplus_curlerrornotification"},
994
  success:function(msg)
views/deactivation/sfsi_deactivation_popup.php CHANGED
@@ -309,7 +309,7 @@
309
  <p class="sfsi-please-other-text">Cool - if it was a reason we colud learn from, please let us know in the Support Forum.</p>
310
  </div>
311
  <div class="sfsi-go-to-support">
312
- <a target="_blank" href="<?php echo SFSI_SUPPORT_FORM; ?>" class="go-to-support-forum">Go to Support Forum ></a>
313
  </div>
314
  </div>
315
  </div>
309
  <p class="sfsi-please-other-text">Cool - if it was a reason we colud learn from, please let us know in the Support Forum.</p>
310
  </div>
311
  <div class="sfsi-go-to-support">
312
+ <a target="_blank" href="<?php echo SFSI_PLUS_SUPPORT_FORM; ?>" class="go-to-support-forum">Go to Support Forum ></a>
313
  </div>
314
  </div>
315
  </div>
views/sfsi_chat_on_admin_pannel.php CHANGED
@@ -59,7 +59,31 @@ $email = $current_user->user_email;
59
  <!-- Start jivo chat code -->
60
 
61
  <script type='text/javascript'>
62
- var sfsi_plus_jivo_init=function(){ var widget_id =window.sfsi_plus_jivo_widget_id= 'heGfAHWfsn';var d=document;var w=window;function l(){var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true;s.src = '//code.jivosite.com/script/widget/'+widget_id; var ss = document.getElementsByTagName('script')[0]; ss.parentNode.insertBefore(s, ss);}if(d.readyState=='complete'){l();}else{if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}};
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
  var sfsi_dummy_chat_icon={};
64
  sfsi_dummy_chat_icon.element=document.createElement('div');
65
  sfsi_dummy_chat_icon.element.id="sfsi_dummy_chat_icon";
@@ -76,22 +100,25 @@ function sfsi_plus_open_chat(){
76
  jQuery('script[src="//code.jivosite.com/script/widget/'+sfsi_plus_jivo_widget_id+'"]').remove();
77
  jQuery('#sfsi_plus_jivo_offline_chat').show();
78
  }
 
79
  }else{
80
  sfsi_plus_jivo_init();
 
 
81
  }
82
  // jQuery(sfsi_dummy_chat_icon.element).html("<p style='text-align: center;font-size: 18px;'>Loading...</p>");
83
- jQuery(sfsi_dummy_chat_icon.element).hide();
84
  }
85
  sfsi_dummy_chat_icon.element.onclick=sfsi_plus_open_chat;
86
  var jivo_onLoadCallback = function(){
87
- if(jivo_api.chatMode()==='online'){
88
  jivo_api.showProactiveInvitation('How can I help you?');
89
  }else{
90
  jQuery('#jivo-iframe-container').remove();
91
  jQuery('script[src="//code.jivosite.com/script/widget/'+sfsi_plus_jivo_widget_id+'"]').remove();
92
  jQuery('#sfsi_plus_jivo_offline_chat').show();
93
  }
94
- // jQuery(sfsi_dummy_chat_icon.element).hide();
95
  };
96
  // sfsi_dummy_chat_icon.heading= document.createElement('p');
97
  // sfsi_dummy_chat_icon.warning= document.createElement('p');
59
  <!-- Start jivo chat code -->
60
 
61
  <script type='text/javascript'>
62
+ var sfsi_plus_jivo_init=function(){
63
+ var widget_id =window.sfsi_plus_jivo_widget_id= 'heGfAHWfsn';
64
+ var d=document;
65
+ var w=window;
66
+ function l(){
67
+ var s = document.createElement('script');
68
+ s.type = 'text/javascript';
69
+ s.async = false;
70
+ s.src = '//code.jivosite.com/script/widget/'+widget_id;
71
+ var ss = document.getElementsByTagName('script')[0];
72
+ ss.parentNode.insertBefore(s, ss);
73
+ }
74
+ if(d.readyState=='complete'){
75
+ l();
76
+ console.log('already loaded');
77
+ }else{
78
+ if(w.attachEvent){
79
+ w.attachEvent('onload',l);
80
+ console.log('attachEvent');
81
+ }else{
82
+ console.log('addEventListener');
83
+ w.addEventListener('load',l,false);
84
+ }
85
+ }
86
+ };
87
  var sfsi_dummy_chat_icon={};
88
  sfsi_dummy_chat_icon.element=document.createElement('div');
89
  sfsi_dummy_chat_icon.element.id="sfsi_dummy_chat_icon";
100
  jQuery('script[src="//code.jivosite.com/script/widget/'+sfsi_plus_jivo_widget_id+'"]').remove();
101
  jQuery('#sfsi_plus_jivo_offline_chat').show();
102
  }
103
+ jQuery(sfsi_dummy_chat_icon.element).hide();
104
  }else{
105
  sfsi_plus_jivo_init();
106
+ console.log('hey');
107
+ jQuery(sfsi_dummy_chat_icon.element).hide();
108
  }
109
  // jQuery(sfsi_dummy_chat_icon.element).html("<p style='text-align: center;font-size: 18px;'>Loading...</p>");
110
+ // jQuery(sfsi_dummy_chat_icon.element).hide();
111
  }
112
  sfsi_dummy_chat_icon.element.onclick=sfsi_plus_open_chat;
113
  var jivo_onLoadCallback = function(){
114
+ if(jivo_api && jivo_api.chatMode()==='online'){
115
  jivo_api.showProactiveInvitation('How can I help you?');
116
  }else{
117
  jQuery('#jivo-iframe-container').remove();
118
  jQuery('script[src="//code.jivosite.com/script/widget/'+sfsi_plus_jivo_widget_id+'"]').remove();
119
  jQuery('#sfsi_plus_jivo_offline_chat').show();
120
  }
121
+ jQuery(sfsi_dummy_chat_icon.element).hide();
122
  };
123
  // sfsi_dummy_chat_icon.heading= document.createElement('p');
124
  // sfsi_dummy_chat_icon.warning= document.createElement('p');
views/sfsi_option_view4.php CHANGED
@@ -747,7 +747,7 @@
747
  <li>
748
  <a title="Houzz">
749
  <img src="<?php echo SFSI_PLUS_PLUGURL ?>images/houzz.png" alt="Houzz" />
750
- <span><?php echo $counts['houzz_count']; ?></span>
751
  </a>
752
  </li>
753
  </ul>
747
  <li>
748
  <a title="Houzz">
749
  <img src="<?php echo SFSI_PLUS_PLUGURL ?>images/houzz.png" alt="Houzz" />
750
+ <span><?php echo isset($counts['houzz_count'])?$counts['houzz_count']:0; ?></span>
751
  </a>
752
  </li>
753
  </ul>
views/sfsi_options_view.php CHANGED
@@ -24,7 +24,7 @@
24
  jQuery(document).ready(function(e) {
25
  jQuery(".sfsi_plus_show_notification").click(function(){
26
  SFSI.ajax({
27
- url:ajax_object.ajax_url,
28
  type:"post",
29
  data: {action: "sfsiPlus_notification_read"},
30
  success:function(msg){
24
  jQuery(document).ready(function(e) {
25
  jQuery(".sfsi_plus_show_notification").click(function(){
26
  SFSI.ajax({
27
+ url:sfsi_plus_ajax_object.ajax_url,
28
  type:"post",
29
  data: {action: "sfsiPlus_notification_read"},
30
  success:function(msg){