LittleDemon WebShell


Linux hkvL61zh9Vexzf 3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 29 14:49:43 UTC 2018 x86_64
Path : /www/wwwroot/fashion-kingdom.com/wp-content/plugins/kitify/assets/js/addons/
File Upload :
Command :
Current File : /www/wwwroot/fashion-kingdom.com/wp-content/plugins/kitify/assets/js/addons/social-share.js

( function( $, elementor ) {

    "use strict";

    $( window ).on( 'elementor/frontend/init', function (){
        elementor.hooks.addAction( 'frontend/element_ready/kitify-social-share.default', function ( $scope ){

            if(elementor.isEditMode()){
                return;
            }

            var elementSettings = $scope.data('settings');
            var isCustomURL = typeof elementSettings !== "undefined";
            var shareLinkSettings = {};

            if (isCustomURL) {
                shareLinkSettings.url = elementSettings.share_url.url;
            } else {
                shareLinkSettings.url = location.href;
                shareLinkSettings.title = elementorFrontend.config.post.title;
                shareLinkSettings.text = elementorFrontend.config.post.excerpt;
                shareLinkSettings.image = elementorFrontend.config.post.featuredImage;
            }
            shareLinkSettings.classPrefix = 'elementor-share-btn_';

            $scope.find('.elementor-share-btn').shareLink(shareLinkSettings);
        } );
    } );

}( jQuery, window.elementorFrontend ) );

LittleDemon - FACEBOOK
[ KELUAR ]