Changeset 2029975
- Timestamp:
- 02/13/2019 02:48:23 PM (7 years ago)
- Location:
- yeloni-free-exit-popup/trunk
- Files:
-
- 1 added
- 7 edited
-
admin-interface/dist/admin.min.js (modified) (8 diffs)
-
admin-interface/loader/admin_dev.json (modified) (1 diff)
-
admin-interface/src/partials/build.apikey.html (added)
-
admin-interface/src/partials/build.html (modified) (1 diff)
-
admin-interface/src/partials/list.html (modified) (1 diff)
-
client/dist/client.min.js (modified) (1 diff)
-
wordpress/admin-wordpress.js (modified) (6 diffs)
-
yetience-plugin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
yeloni-free-exit-popup/trunk/admin-interface/dist/admin.min.js
r2027421 r2029975 526 526 controller: 'widgetTypeController' 527 527 }) 528 529 528 .state('build.select', { 530 529 url: '/select', … … 541 540 templateUrl: yetience.adminPath + '/src/partials/build.integrate.html', 542 541 controller: 'buildIntegrateController' 542 }) 543 .state('build.apikey', { 544 url: '/apikey', 545 templateUrl: yetience.adminPath + '/src/partials/build.apikey.html', 546 controller: 'buildAPIKeyController' 543 547 }) 544 548 .state('extensions', { … … 2368 2372 2369 2373 angular.module('yetienceApp') 2374 .controller('buildAPIKeyController', ['$scope', 'SettingsService', '$state', '$rootScope', '$stateParams', '$location', 'WidgetUpdate', 'localStorageService', 'UtilsService', function ($scope, SettingsService, $state, $rootScope, $stateParams, $location, WidgetUpdate, localStorageService, UtilsService) { 2375 //console.log('INSIDE BUIlD APIKEY CONTROLLER') 2376 2377 $scope.SS = SettingsService 2378 2379 2380 $scope.submitCode = function (apikey) { 2381 if (apikey.trim() == SettingsService.setup().id) { 2382 //WidgetUpdate.operations.saveTemplate() 2383 console.log('widget is ', $scope.widget) 2384 WidgetUpdate.savePopup($scope.widget) 2385 } else { 2386 alert('Invalid API Key') 2387 } 2388 } 2389 }]) 2390 angular.module('yetienceApp') 2370 2391 .directive('tag', [function() { 2371 2392 // Runs during compile … … 4717 4738 show: true, 4718 4739 title: function (widget) { 4740 return (firstWidget()) ? 'Generate API Key' : 'Save my Design' 4741 4719 4742 /* 4720 4743 If email subscription theme, then button title is 'Integrate' 4721 4744 Otherwise, button title is 'Save my Design' 4722 4745 */ 4723 if (isEmailPopup(widget)) {4724 return 'Autoresponse'4725 } else {4726 return 'Save my Design'4727 }4746 // // if (isEmailPopup(widget)) { 4747 // // return 'Autoresponse' 4748 // // } else { 4749 // return 'Save my Design' 4750 // //} 4728 4751 }, 4729 4752 tabTitle: 'Customize', … … 4735 4758 //if it's an email widget, don't save 4736 4759 4737 if (isEmailPopup(widget)) { 4738 return false 4739 } else { 4740 return true 4741 } 4742 } 4743 }, 4744 integrate: { 4760 // if (isEmailPopup(widget)) { 4761 // return false 4762 // } else { 4763 //return true 4764 // } 4765 return !firstWidget() 4766 } 4767 }, 4768 apikey: { 4745 4769 show: false, 4746 title: 'Save Popup', 4747 operation: 'saveEmailTemplate', 4748 tabTitle: 'Autoresponse', 4749 create: function (widget) { 4750 //if email sub widget - retur 4751 if (widget) { 4752 $rootScope.isEmailTheme = ($rootScope.themes[widget.theme].categories.indexOf('subscribe') >= 0) 4753 return ($rootScope.themes[widget.theme].categories.indexOf('subscribe') >= 0) 4754 } else { 4755 $rootScope.isEmailTheme = false 4756 return false 4757 } 4770 tabTitle: 'Generate API Key', 4771 title: 'Save my Design', 4772 create: function () { 4773 //show this only if no widget has been created yet 4774 return SettingsService.setup().widgets.length == 0 4758 4775 }, 4759 edit: function (widget) { 4760 //if email sub widget - retur 4761 if (widget) { 4762 return ($rootScope.themes[widget.theme].categories.indexOf('subscribe') >= 0) 4763 } else { 4764 return false 4765 } 4766 }, 4767 saveOnCompletion: true 4768 } 4776 edit: false, 4777 saveOnCompletion: true, 4778 operation: 'saveAPIKey' 4779 } 4780 /*, 4781 integrate: { 4782 show: false, 4783 title: 'Save Popup', 4784 operation: 'saveEmailTemplate', 4785 tabTitle: 'Autoresponse', 4786 create: function (widget) { 4787 //if email sub widget - retur 4788 if (widget) { 4789 $rootScope.isEmailTheme = ($rootScope.themes[widget.theme].categories.indexOf('subscribe') >= 0) 4790 return ($rootScope.themes[widget.theme].categories.indexOf('subscribe') >= 0) 4791 } else { 4792 $rootScope.isEmailTheme = false 4793 return false 4794 } 4795 }, 4796 edit: function (widget) { 4797 //if email sub widget - retur 4798 if (widget) { 4799 return ($rootScope.themes[widget.theme].categories.indexOf('subscribe') >= 0) 4800 } else { 4801 return false 4802 } 4803 }, 4804 saveOnCompletion: true 4805 }*/ 4806 4769 4807 /*, 4770 4808 launch: { … … 4797 4835 "build.placement": "build.select", 4798 4836 "build.select": "build.design", 4799 "build.design": "build.integrate" 4837 "build.design": "build.apikey" 4838 //"build.design": "build.integrate" 4800 4839 4801 4840 //before we had goals … … 4895 4934 } 4896 4935 4936 this.operations = operations 4937 4897 4938 function getWidget() { 4898 4939 var html = document.getElementById('widget-design').innerHTML … … 4930 4971 } 4931 4972 4973 this.savePopup = savePopup 4974 4932 4975 this.isEmailPopup = isEmailPopup 4976 this.firstWidget = firstWidget 4977 4978 function firstWidget() { 4979 return SettingsService.setup().widgets.length == 0 4980 } 4933 4981 4934 4982 function isEmailPopup(widget) { -
yeloni-free-exit-popup/trunk/admin-interface/loader/admin_dev.json
r1927011 r2029975 9 9 }, { 10 10 "base": "/src/scripts/controllers", 11 "items": ["gopremium", "list", "main", "start", "auth.form", "build", "build.business.goal", "build.widget.type", "build.select", "build.design", "build.configure", "build.activate", "build.launch", "build.launch.statistics", "build.integrate", "build.launch.package", "email.list", "extension.sale", "modal.feedback", "affiliate" ],11 "items": ["gopremium", "list", "main", "start", "auth.form", "build", "build.business.goal", "build.widget.type", "build.select", "build.design", "build.configure", "build.activate", "build.launch", "build.launch.statistics", "build.integrate", "build.launch.package", "email.list", "extension.sale", "modal.feedback", "affiliate", "build.apikey"], 12 12 "suffix": ".controller" 13 13 }, { -
yeloni-free-exit-popup/trunk/admin-interface/src/partials/build.html
r1776621 r2029975 17 17 </a> 18 18 </li> 19 <button class="btn btn-primary pull-right btn-disabled" ng-disabled="disableSave()" ng-show="W.states[W.current.state].title && W.compute(W.states[W.current.state],'show') && !W.current.working" ng-click="W.nextFunction(widget,customer)"> 19 <button class="btn btn-primary pull-right btn-disabled" ng-disabled="disableSave()" ng-show="W.states[W.current.state].title && W.compute(W.states[W.current.state],'show') && !W.current.working" 20 ng-click="W.nextFunction(widget,customer)"> 20 21 <span>Next: {{W.compute(W.states[W.current.state],'title',widget)}} →</span> 21 22 </button> -
yeloni-free-exit-popup/trunk/admin-interface/src/partials/list.html
r2007742 r2029975 99 99 </div> 100 100 101 < div class="checkbox" class="add-yel-badge" ng-click="WU.changePoweredBy()" ng-show="!R.SETUP.poweredBy||R.SETUP.customPoweredBy">101 <!-- <div class="checkbox" class="add-yel-badge" ng-click="WU.changePoweredBy()" ng-show="!R.SETUP.poweredBy||R.SETUP.customPoweredBy"> 102 102 <label><input class="form-control" ng-model="R.SETUP.poweredBy" type="checkbox"> 103 103 Add Yeloni Badge 104 104 </label> 105 </div> 105 </div> --> 106 106 107 107 </div> -
yeloni-free-exit-popup/trunk/client/dist/client.min.js
r2027421 r2029975 807 807 }) 808 808 809 Autience.lifecycle.render.push(function (widget) { 810 var extensions = Autience.utils.nestedValue(Autience, ['setup', 'extensions']) 811 if (!extensions || Object.keys(extensions).length == 0) { 812 return 813 } 814 815 if (widget.goalType != 'subscribe') { 816 return 817 } 818 if (document.getElementsByClassName('logged-in').length > 0) { 819 return 820 } 821 822 var widget_element = document.getElementById(widget.code) 823 var poweredBy = document.createElement('div') 824 var url = 'https://convertiply.com' 825 url = url + '?utm_source=' + window.location.hostname + '&utm_campaign=poweredby' 826 poweredBy.innerHTML = "<a href='" + url + "' target='_blank'>Get an <b>Email Optin</b> for your Website</a>" 827 var style = poweredBy.style, 828 astyle = poweredBy.getElementsByTagName('a')[0].style 829 Object.assign(style, { 830 color: 'white', 831 fontSize: '15px', 832 fontFamily: 'arial', 833 textAlign: 'center' 834 }) 835 Object.assign(astyle, { 836 color: 'white' 837 }) 838 widget_element.appendChild(poweredBy) 839 }) 809 840 /* 810 841 //showing the affiliate link if applicable -
yeloni-free-exit-popup/trunk/wordpress/admin-wordpress.js
r1776621 r2029975 1 1 //this file has functions to read from the wp-config setting textbox 2 2 3 window.defineAdminYetience = function () {4 yetience.loadApp(yetience.path + "/admin-interface", function () {3 window.defineAdminYetience = function () { 4 yetience.loadApp(yetience.path + "/admin-interface", function () { 5 5 //console.log('Scripts and styles loaded in ' + (Date.now() - autience_initiated_at) + ' milliseconds') 6 angular.element(document).ready(function () {6 angular.element(document).ready(function () { 7 7 angular.bootstrap(document, ['yetienceApp']) 8 8 … … 14 14 15 15 yetience.website_saved = false 16 yetience.readFromPlatform = function () {16 yetience.readFromPlatform = function () { 17 17 var encoded_setup = yetience.encoded_setup //document.getElementById('yetience_setup').value 18 18 if (encoded_setup && encoded_setup.length > 1) { … … 23 23 } else { 24 24 return { 25 need_api_key: true, 25 26 widgets: [] 26 27 } … … 29 30 30 31 31 yetience.saveToPlatform = function (setup, message, label, disable_undo) {32 yetience.saveToPlatform = function (setup, message, label, disable_undo) { 32 33 //if (!yetience.isCyclic(setup)) { 33 34 document.getElementById('yetience_setup').value = window.btoa(encodeURIComponent(JSON.stringify(setup))) … … 41 42 document.getElementById('yetience_submit_button').getElementsByTagName('input')[0].value = label 42 43 yetience.readyToSave() 43 //}44 //} 44 45 45 46 } 46 47 47 yetience.readyToSave = function () {48 yetience.readyToSave = function () { 48 49 document.getElementById("yetience_submit_button").style.display = 'block' 49 50 … … 52 53 } 53 54 54 yetience.isCyclic = function (obj) {55 yetience.isCyclic = function (obj) { 55 56 var seenObjects = []; 56 57 -
yeloni-free-exit-popup/trunk/yetience-plugin.php
r2027421 r2029975 4 4 Plugin URI: # 5 5 Description: Exit Popups are the best way to engage visitors leaving your website. Show offers, social buttons, email signup forms or customize it as you like. 6 Version: 9.0. 16 Version: 9.0.2 7 7 Author: Jayasri Nagrale 8 8 Author URI: http://www.yeloni.com
Note: See TracChangeset
for help on using the changeset viewer.