Changeset 1828212
- Timestamp:
- 02/24/2018 10:35:03 AM (8 years ago)
- Location:
- optinpoint-lite
- Files:
-
- 218 added
- 86 edited
-
tags/1.0.5 (added)
-
tags/1.0.5/LICENSE.txt (added)
-
tags/1.0.5/README.txt (added)
-
tags/1.0.5/admin (added)
-
tags/1.0.5/admin/assets (added)
-
tags/1.0.5/admin/assets/css (added)
-
tags/1.0.5/admin/assets/css/admin.css (added)
-
tags/1.0.5/admin/assets/css/index.php (added)
-
tags/1.0.5/admin/assets/css/multi-select.png (added)
-
tags/1.0.5/admin/assets/js (added)
-
tags/1.0.5/admin/assets/js/admin.js (added)
-
tags/1.0.5/admin/assets/js/index.php (added)
-
tags/1.0.5/admin/class-optinpoint-admin.php (added)
-
tags/1.0.5/admin/includes (added)
-
tags/1.0.5/admin/includes/addon0.php (added)
-
tags/1.0.5/admin/includes/addon1.php (added)
-
tags/1.0.5/admin/includes/addon8.php (added)
-
tags/1.0.5/admin/includes/addon9.php (added)
-
tags/1.0.5/admin/includes/lightbox0.php (added)
-
tags/1.0.5/admin/includes/lightbox1.php (added)
-
tags/1.0.5/admin/includes/lightbox8.php (added)
-
tags/1.0.5/admin/includes/lightbox9.php (added)
-
tags/1.0.5/admin/includes/slider0.php (added)
-
tags/1.0.5/admin/includes/slider1.php (added)
-
tags/1.0.5/admin/includes/slider8.php (added)
-
tags/1.0.5/admin/includes/slider9.php (added)
-
tags/1.0.5/admin/includes/widget0.php (added)
-
tags/1.0.5/admin/includes/widget1.php (added)
-
tags/1.0.5/admin/includes/widget8.php (added)
-
tags/1.0.5/admin/includes/widget9.php (added)
-
tags/1.0.5/admin/views (added)
-
tags/1.0.5/admin/views/admin.php (added)
-
tags/1.0.5/admin/views/admin_addon.php (added)
-
tags/1.0.5/admin/views/admin_advanced.php (added)
-
tags/1.0.5/admin/views/admin_general.php (added)
-
tags/1.0.5/admin/views/admin_lightbox.php (added)
-
tags/1.0.5/admin/views/admin_slider.php (added)
-
tags/1.0.5/admin/views/admin_theme.php (added)
-
tags/1.0.5/admin/views/admin_theme_opt.php (added)
-
tags/1.0.5/admin/views/admin_widget.php (added)
-
tags/1.0.5/admin/views/index.php (added)
-
tags/1.0.5/assets (added)
-
tags/1.0.5/assets/index.php (added)
-
tags/1.0.5/assets/ms-oauth.php (added)
-
tags/1.0.5/assets/pat1.png (added)
-
tags/1.0.5/assets/pat2.png (added)
-
tags/1.0.5/assets/pat3.png (added)
-
tags/1.0.5/assets/pat4.png (added)
-
tags/1.0.5/assets/pat5.png (added)
-
tags/1.0.5/assets/pt1.png (added)
-
tags/1.0.5/assets/pt2.png (added)
-
tags/1.0.5/assets/pt3.png (added)
-
tags/1.0.5/assets/pt4.png (added)
-
tags/1.0.5/assets/pt5.png (added)
-
tags/1.0.5/assets/unlockpat.png (added)
-
tags/1.0.5/index.php (added)
-
tags/1.0.5/languages (added)
-
tags/1.0.5/languages/index.php (added)
-
tags/1.0.5/languages/optinpoint.pot (added)
-
tags/1.0.5/optinpoint.php (added)
-
tags/1.0.5/public (added)
-
tags/1.0.5/public/assets (added)
-
tags/1.0.5/public/assets/css (added)
-
tags/1.0.5/public/assets/css/index.php (added)
-
tags/1.0.5/public/assets/icon (added)
-
tags/1.0.5/public/assets/icon/optinpoint.svg (added)
-
tags/1.0.5/public/assets/index.php (added)
-
tags/1.0.5/public/assets/js (added)
-
tags/1.0.5/public/assets/js/index.php (added)
-
tags/1.0.5/public/assets/js/public.js (added)
-
tags/1.0.5/public/class-optinpoint.php (added)
-
tags/1.0.5/public/includes (added)
-
tags/1.0.5/public/includes/addon0.php (added)
-
tags/1.0.5/public/includes/addon1.php (added)
-
tags/1.0.5/public/includes/addon8.php (added)
-
tags/1.0.5/public/includes/addon9.php (added)
-
tags/1.0.5/public/includes/bottom_content.php (added)
-
tags/1.0.5/public/includes/flipbox0.php (added)
-
tags/1.0.5/public/includes/flipbox1.php (added)
-
tags/1.0.5/public/includes/flipbox8.php (added)
-
tags/1.0.5/public/includes/flipbox9.php (added)
-
tags/1.0.5/public/includes/flipbox_content.php (added)
-
tags/1.0.5/public/includes/index.php (added)
-
tags/1.0.5/public/includes/litebox0.php (added)
-
tags/1.0.5/public/includes/litebox1.php (added)
-
tags/1.0.5/public/includes/litebox8.php (added)
-
tags/1.0.5/public/includes/litebox9.php (added)
-
tags/1.0.5/public/includes/litebox_content.php (added)
-
tags/1.0.5/public/includes/slide0.php (added)
-
tags/1.0.5/public/includes/slide1.php (added)
-
tags/1.0.5/public/includes/slide8.php (added)
-
tags/1.0.5/public/includes/slide9.php (added)
-
tags/1.0.5/public/includes/slide_content.php (added)
-
tags/1.0.5/public/includes/topbar0.php (added)
-
tags/1.0.5/public/includes/topbar1.php (added)
-
tags/1.0.5/public/includes/topbar8.php (added)
-
tags/1.0.5/public/includes/topbar9.php (added)
-
tags/1.0.5/public/includes/topbar_content.php (added)
-
tags/1.0.5/public/views (added)
-
tags/1.0.5/public/views/index.php (added)
-
tags/1.0.5/service (added)
-
tags/1.0.5/service/ac (added)
-
tags/1.0.5/service/ac/Account.class.php (added)
-
tags/1.0.5/service/ac/ActiveCampaign.class.php (added)
-
tags/1.0.5/service/ac/Auth.class.php (added)
-
tags/1.0.5/service/ac/Automation.class.php (added)
-
tags/1.0.5/service/ac/Campaign.class.php (added)
-
tags/1.0.5/service/ac/Connector.class.php (added)
-
tags/1.0.5/service/ac/Contact.class.php (added)
-
tags/1.0.5/service/ac/Deal.class.php (added)
-
tags/1.0.5/service/ac/Design.class.php (added)
-
tags/1.0.5/service/ac/Form.class.php (added)
-
tags/1.0.5/service/ac/Group.class.php (added)
-
tags/1.0.5/service/ac/List.class.php (added)
-
tags/1.0.5/service/ac/Message.class.php (added)
-
tags/1.0.5/service/ac/Segment.class.php (added)
-
tags/1.0.5/service/ac/Settings.class.php (added)
-
tags/1.0.5/service/ac/Subscriber.class.php (added)
-
tags/1.0.5/service/ac/Tag.class.php (added)
-
tags/1.0.5/service/ac/Tracking.class.php (added)
-
tags/1.0.5/service/ac/User.class.php (added)
-
tags/1.0.5/service/ac/Webhook.class.php (added)
-
tags/1.0.5/service/ac/config.php (added)
-
tags/1.0.5/service/ac/exceptions (added)
-
tags/1.0.5/service/ac/exceptions/RequestException.php (added)
-
tags/1.0.5/service/aw (added)
-
tags/1.0.5/service/aw/aweber.php (added)
-
tags/1.0.5/service/aw/aweber_api.php (added)
-
tags/1.0.5/service/aw/aweber_collection.php (added)
-
tags/1.0.5/service/aw/aweber_entry.php (added)
-
tags/1.0.5/service/aw/aweber_entry_data_array.php (added)
-
tags/1.0.5/service/aw/aweber_response.php (added)
-
tags/1.0.5/service/aw/curl_object.php (added)
-
tags/1.0.5/service/aw/curl_response.php (added)
-
tags/1.0.5/service/aw/exceptions.php (added)
-
tags/1.0.5/service/aw/oauth_adapter.php (added)
-
tags/1.0.5/service/aw/oauth_application.php (added)
-
tags/1.0.5/service/be (added)
-
tags/1.0.5/service/be/BenchmarkEmail.php (added)
-
tags/1.0.5/service/be/cacert.pem (added)
-
tags/1.0.5/service/cc (added)
-
tags/1.0.5/service/cc/ConstantContact.class.php (added)
-
tags/1.0.5/service/cc/cacert.pem (added)
-
tags/1.0.5/service/cc/redirect.php (added)
-
tags/1.0.5/service/ck (added)
-
tags/1.0.5/service/ck/ConvertKit.class.php (added)
-
tags/1.0.5/service/ck/cacert.pem (added)
-
tags/1.0.5/service/cm (added)
-
tags/1.0.5/service/cm/.gitignore (added)
-
tags/1.0.5/service/cm/.travis.yml (added)
-
tags/1.0.5/service/cm/CONTRIBUTING.md (added)
-
tags/1.0.5/service/cm/HISTORY.md (added)
-
tags/1.0.5/service/cm/LICENSE (added)
-
tags/1.0.5/service/cm/README.md (added)
-
tags/1.0.5/service/cm/RELEASE.md (added)
-
tags/1.0.5/service/cm/class (added)
-
tags/1.0.5/service/cm/class/base_classes.php (added)
-
tags/1.0.5/service/cm/class/cacert.pem (added)
-
tags/1.0.5/service/cm/class/exceptions.php (added)
-
tags/1.0.5/service/cm/class/log.php (added)
-
tags/1.0.5/service/cm/class/serialisation.php (added)
-
tags/1.0.5/service/cm/class/services_json.php (added)
-
tags/1.0.5/service/cm/class/transport.php (added)
-
tags/1.0.5/service/cm/composer.json (added)
-
tags/1.0.5/service/cm/composer.lock (added)
-
tags/1.0.5/service/cm/csrest_administrators.php (added)
-
tags/1.0.5/service/cm/csrest_campaigns.php (added)
-
tags/1.0.5/service/cm/csrest_clients.php (added)
-
tags/1.0.5/service/cm/csrest_general.php (added)
-
tags/1.0.5/service/cm/csrest_lists.php (added)
-
tags/1.0.5/service/cm/csrest_people.php (added)
-
tags/1.0.5/service/cm/csrest_segments.php (added)
-
tags/1.0.5/service/cm/csrest_subscribers.php (added)
-
tags/1.0.5/service/cm/csrest_templates.php (added)
-
tags/1.0.5/service/cm/csrest_transactional_classicemail.php (added)
-
tags/1.0.5/service/cm/csrest_transactional_smartemail.php (added)
-
tags/1.0.5/service/cm/csrest_transactional_timeline.php (added)
-
tags/1.0.5/service/dp (added)
-
tags/1.0.5/service/dp/DripEmail.class.php (added)
-
tags/1.0.5/service/dp/cacert.pem (added)
-
tags/1.0.5/service/gr (added)
-
tags/1.0.5/service/gr/GetResponseAPI3.class.php (added)
-
tags/1.0.5/service/gr/cacert.pem (added)
-
tags/1.0.5/service/hs (added)
-
tags/1.0.5/service/hs/Hubspot.php (added)
-
tags/1.0.5/service/hs/cacert.pem (added)
-
tags/1.0.5/service/ic (added)
-
tags/1.0.5/service/ic/iContactApi.php (added)
-
tags/1.0.5/service/ml (added)
-
tags/1.0.5/service/ml/MailerLite.class.php (added)
-
tags/1.0.5/service/ml/cacert.pem (added)
-
tags/1.0.5/service/mm (added)
-
tags/1.0.5/service/mm/MadMimi.class.php (added)
-
tags/1.0.5/service/mm/cacert.pem (added)
-
tags/1.0.5/service/optinpoint-service.php (added)
-
tags/1.0.5/service/sg (added)
-
tags/1.0.5/service/sg/SendGrid.php (added)
-
tags/1.0.5/service/sg/cacert.pem (added)
-
tags/1.0.5/service/vr (added)
-
tags/1.0.5/service/vr/VerticalResponse.class.php (added)
-
tags/1.0.5/service/vr/cacert.pem (added)
-
tags/1.0.5/service/vr/redirect.php (added)
-
tags/1.0.5/src (added)
-
tags/1.0.5/src/default.json (added)
-
tags/1.0.5/src/google_fonts.json (added)
-
tags/1.0.5/uninstall.php (added)
-
tags/1.0.5/widget (added)
-
tags/1.0.5/widget/class-optinpoint-widget.php (added)
-
tags/1.0.5/widget/lang (added)
-
tags/1.0.5/widget/lang/plugin.po (added)
-
tags/1.0.5/widget/views (added)
-
tags/1.0.5/widget/views/admin.php (added)
-
tags/1.0.5/widget/views/widget.php (added)
-
tags/1.0.5/widget/views/widget0.php (added)
-
tags/1.0.5/widget/views/widget1.php (added)
-
tags/1.0.5/widget/views/widget8.php (added)
-
tags/1.0.5/widget/views/widget9.php (added)
-
tags/1.0.5/wpml-config.xml (added)
-
trunk/README.txt (modified) (5 diffs)
-
trunk/admin/assets/css/admin.css (modified) (2 diffs)
-
trunk/admin/assets/js/admin.js (modified) (4 diffs)
-
trunk/admin/class-optinpoint-admin.php (modified) (6 diffs)
-
trunk/admin/includes/addon0.php (modified) (2 diffs)
-
trunk/admin/includes/addon1.php (modified) (2 diffs)
-
trunk/admin/includes/addon8.php (modified) (2 diffs)
-
trunk/admin/includes/addon9.php (modified) (2 diffs)
-
trunk/admin/includes/lightbox0.php (modified) (2 diffs)
-
trunk/admin/includes/lightbox1.php (modified) (2 diffs)
-
trunk/admin/includes/lightbox8.php (modified) (1 diff)
-
trunk/admin/includes/lightbox9.php (modified) (1 diff)
-
trunk/admin/includes/slider0.php (modified) (2 diffs)
-
trunk/admin/includes/slider1.php (modified) (3 diffs)
-
trunk/admin/includes/slider8.php (modified) (2 diffs)
-
trunk/admin/includes/slider9.php (modified) (2 diffs)
-
trunk/admin/includes/widget0.php (modified) (2 diffs)
-
trunk/admin/includes/widget8.php (modified) (1 diff)
-
trunk/admin/includes/widget9.php (modified) (1 diff)
-
trunk/admin/views/admin.php (modified) (3 diffs)
-
trunk/admin/views/admin_addon.php (modified) (1 diff)
-
trunk/admin/views/admin_advanced.php (modified) (2 diffs)
-
trunk/admin/views/admin_general.php (modified) (2 diffs)
-
trunk/admin/views/admin_lightbox.php (modified) (5 diffs)
-
trunk/admin/views/admin_slider.php (modified) (2 diffs)
-
trunk/admin/views/admin_theme_opt.php (modified) (1 diff)
-
trunk/optinpoint.php (modified) (1 diff)
-
trunk/public/assets/js/public.js (modified) (3 diffs)
-
trunk/public/class-optinpoint.php (modified) (20 diffs)
-
trunk/public/includes/addon0.php (modified) (17 diffs)
-
trunk/public/includes/addon1.php (modified) (17 diffs)
-
trunk/public/includes/addon8.php (modified) (15 diffs)
-
trunk/public/includes/addon9.php (modified) (15 diffs)
-
trunk/public/includes/bottom_content.php (modified) (1 diff)
-
trunk/public/includes/flipbox0.php (modified) (13 diffs)
-
trunk/public/includes/flipbox1.php (modified) (11 diffs)
-
trunk/public/includes/flipbox8.php (modified) (11 diffs)
-
trunk/public/includes/flipbox9.php (modified) (11 diffs)
-
trunk/public/includes/flipbox_content.php (modified) (1 diff)
-
trunk/public/includes/litebox0.php (modified) (23 diffs)
-
trunk/public/includes/litebox1.php (modified) (23 diffs)
-
trunk/public/includes/litebox8.php (modified) (15 diffs)
-
trunk/public/includes/litebox9.php (modified) (15 diffs)
-
trunk/public/includes/slide0.php (modified) (20 diffs)
-
trunk/public/includes/slide1.php (modified) (19 diffs)
-
trunk/public/includes/slide8.php (modified) (15 diffs)
-
trunk/public/includes/slide9.php (modified) (16 diffs)
-
trunk/public/includes/slide_content.php (modified) (1 diff)
-
trunk/public/includes/topbar0.php (modified) (10 diffs)
-
trunk/public/includes/topbar1.php (modified) (8 diffs)
-
trunk/public/includes/topbar8.php (modified) (7 diffs)
-
trunk/public/includes/topbar9.php (modified) (7 diffs)
-
trunk/public/includes/topbar_content.php (modified) (1 diff)
-
trunk/service/aw/aweber_collection.php (modified) (2 diffs)
-
trunk/service/aw/aweber_entry.php (modified) (5 diffs)
-
trunk/service/aw/aweber_response.php (modified) (3 diffs)
-
trunk/service/aw/curl_object.php (modified) (7 diffs)
-
trunk/service/aw/exceptions.php (modified) (7 diffs)
-
trunk/service/aw/oauth_application.php (modified) (3 diffs)
-
trunk/service/cc/ConstantContact.class.php (modified) (1 diff)
-
trunk/service/cc/redirect.php (modified) (1 diff)
-
trunk/service/cm/README.md (modified) (2 diffs)
-
trunk/service/cm/class/serialisation.php (modified) (7 diffs)
-
trunk/service/cm/class/services_json.php (modified) (3 diffs)
-
trunk/service/cm/class/transport.php (modified) (11 diffs)
-
trunk/service/cm/csrest_administrators.php (modified) (1 diff)
-
trunk/service/cm/csrest_campaigns.php (modified) (10 diffs)
-
trunk/service/cm/csrest_clients.php (modified) (8 diffs)
-
trunk/service/cm/csrest_general.php (modified) (2 diffs)
-
trunk/service/cm/csrest_lists.php (modified) (13 diffs)
-
trunk/service/cm/csrest_people.php (modified) (2 diffs)
-
trunk/service/cm/csrest_segments.php (modified) (6 diffs)
-
trunk/service/cm/csrest_subscribers.php (modified) (2 diffs)
-
trunk/service/cm/csrest_templates.php (modified) (1 diff)
-
trunk/service/ic/iContactApi.php (modified) (24 diffs)
-
trunk/service/optinpoint-service.php (modified) (19 diffs)
-
trunk/service/sg/SendGrid.php (modified) (1 diff)
-
trunk/service/vr/redirect.php (modified) (1 diff)
-
trunk/src/google_fonts.json (modified) (1 diff)
-
trunk/uninstall.php (modified) (1 diff)
-
trunk/widget/class-optinpoint-widget.php (modified) (5 diffs)
-
trunk/widget/views/widget.php (modified) (1 diff)
-
trunk/widget/views/widget0.php (modified) (15 diffs)
-
trunk/widget/views/widget1.php (modified) (14 diffs)
-
trunk/widget/views/widget8.php (modified) (12 diffs)
-
trunk/widget/views/widget9.php (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
optinpoint-lite/trunk/README.txt
r1719216 r1828212 6 6 Tags: plugin, newsletter, newsletter signup, checkbox, newsletter, optin, opt-in, registration form, shortcode, sign-up form, subscribe, subscriptions, widget, analytics, automatic, collect email, double optin, email, exit popup, exit-intent, growth, hellobar, lightbox, links, mail, newsletters, optin forms, popover, popup, pop-up, popup domination, popupdomination, post, posts, subscribe, subscribers, subscription, referrer, search engine, social sharing, cookie, customizable, responsive, aweber, getresponse, icontact, campaign monitor, constant contact, vertical response, active campaign, mad mimi, campaign, form, wordpress, sendgrid, hubspot, benchmark email, woocommerce, wpml, visual composer, vc, vc addon, visual composer addon, convertkit, mailster, mymail, mailer lite, mailerlite, drip 7 7 Requires at least: 3.8 8 Tested up to: 4. 89 Stable tag: 1.0. 48 Tested up to: 4.9 9 Stable tag: 1.0.5 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 42 42 * Subscription on Light box, Widgets, Slider, Topbar, Flipbox and On Page 43 43 * Custom Forms 44 * Built in Editor 44 * Built in Editor 45 45 * 650+ Google fonts 46 46 * 100+ Icons … … 52 52 * Button Customization 53 53 * Live Editor 54 * Search engine Target 54 * Search engine Target 55 55 * User Status Based Filter 56 56 * Cookie Based Lightbox 57 * Scroll Toggle Detection 58 * Fully Responsive 57 * Scroll Toggle Detection 58 * Fully Responsive 59 59 * Multi-Device Filter 60 * Filter By Page Type 60 * Filter By Page Type 61 61 * Light Box Open Delay 62 62 * Inactivity based events … … 82 82 > * Scroll Toggle % Custamization 83 83 > * Slider Behaviour 84 > * Post/Page Level Targeting 84 > * Post/Page Level Targeting 85 85 > * Targeting Social Networking Vistors 86 86 > * Targeting URL Shorteners 87 > * Targeting Specific URLs 87 > * Targeting Specific URLs 88 88 > * Scrollable Lightbox for long forms 89 89 > * Custom CSS editor … … 132 132 == Changelog == 133 133 134 = 1.0.5 = 135 * Added support for Zoho Campaigns 136 * Added support for MailPoet 3 137 * Updated Google Fonts List 138 * Fixed responsive designs for lightbox 139 * Fixed class bug in Leo theme of Addon 140 * Fixed Widget selection bug 141 * Fixed MSIE field label issue 142 * Fixed Spinner bug 143 * Fixed PHP 7 issue 144 * Fixed Minor Bugs 145 * Fixed Responsive design when softkeyboard activated 146 134 147 = 1.0.4 = 135 148 * Added support for Drip -
optinpoint-lite/trunk/admin/assets/css/admin.css
r1719216 r1828212 2692 2692 -ms-transform: rotate(45deg); 2693 2693 -webkit-transform: rotate(45deg); 2694 -moz-transform: rotate(45deg); 2694 -moz-transform: rotate(45deg); 2695 2695 transform: rotate(45deg); 2696 2696 background:#CD3E2D; … … 2713 2713 color: #bdbdbd; 2714 2714 } 2715 .featbox::before{ 2715 .featbox::before{ 2716 2716 content:''; 2717 2717 height: 28px; -
optinpoint-lite/trunk/admin/assets/js/admin.js
r1719216 r1828212 660 660 extfill:1 661 661 }, 662 mp: {name:'MailPoet 3', 663 ltype:1, 664 extfill:0, 665 disable: (optpointset.mailpoet ? 0 : 1) 666 }, 662 667 ms: {name:'Mailster (formerly MyMail)', 663 668 ltype:1, … … 717 722 ltype:1, 718 723 extfill:1 724 }, 725 zc: {name:'Zoho Campaigns', 726 func:[ 727 function(){ 728 if($scope.remote.chk())return; 729 if(!isset($scope.mailserv.config.key) || !isset($scope.mailserv.config.key[0]) || $scope.mailserv.config.key[0].length == 0){ 730 $scope.addErr('Enter API Key'); 731 return; 732 } 733 $scope.remote.lock(); 734 $http.post(optinpint_script.ajaxurl+'?action=optinpoint_mailserv_connect&step=0&optinpoint_service=1',$scope.mailserv.config) 735 .then(function (a) { 736 if(a.status == 200 && a.data.data.code == 0){ 737 $scope.mailserv.isConfig = 3; 738 $scope.remote.unlock(2); 739 } 740 else{ 741 $scope.addErr('Incorrect API Key'); 742 $scope.remote.unlock(3); 743 } 744 },function (a) { 745 $scope.remote.unlock(3); 746 $scope.addErr('Error'); 747 }); 748 } 749 ], 750 ltype:1, 751 extfill:1 719 752 } 720 753 }, … … 925 958 add:function(i){ 926 959 if(!isset($scope.form.tform.fields[i].extras))$scope.form.tform.fields[i].extras = []; 927 $scope.form.tform.fields[i].extras.push({"name":"New Option"}); 960 if($scope.form.tform.fields[i].type !== "singlecheck")$scope.form.tform.fields[i].extras.push({"name":"New Option"}); 961 else $scope.form.tform.fields[i].extras.push({"name":"1","label":"New Option"}); 928 962 }, 929 963 del:function(i,j){ … … 1019 1053 if($scope.remote.chk())return; 1020 1054 1021 var files = evt.target.files; 1055 var files = evt.target.files; 1022 1056 var f = files[0]; 1023 var reader = new FileReader(); 1057 var reader = new FileReader(); 1024 1058 reader.readAsText(f); 1025 1059 reader.onload = function() { -
optinpoint-lite/trunk/admin/class-optinpoint-admin.php
r1719216 r1828212 1 1 <?php 2 /** 2 /** 3 3 * OptinPoint Lite - Advanced Subscription Hub For Wordpress 4 4 * … … 13 13 * @package OptinPoint Lite - Advanced Subscription Hub For Wordpress 14 14 * @author Voltroid<care@voltroid.com> 15 * 15 * 16 16 */ 17 17 class OptinPoint_Lite_Assistant_Admin { … … 123 123 } 124 124 $opt['mymail'] = ( function_exists( 'mailster' ) )?true:false; 125 $opt['mailpoet'] = ( MAILPOET_VERSION !== null)?true:false; 125 126 $opt['goog_fonts']=json_decode(file_get_contents(OPPOINT_PLUGIN_PATH.'src/google_fonts.json'),true); 126 127 $opt['web_fonts']=$this->plugin->webfont(); … … 250 251 * Ajax call for one Click Backup and Restore 251 252 * @since 1.0.0 252 * 253 * 253 254 */ 254 255 public function restorebackup(){ … … 289 290 * Voltroid Control Panel Icon 290 291 * @since 1.0.0 291 * 292 * 292 293 */ 293 294 public function admin_css() { … … 315 316 * Function to remove Null Value 316 317 * @since 1.0.0 317 * 318 * 318 319 */ 319 320 function myFilter($var){ -
optinpoint-lite/trunk/admin/includes/addon0.php
r1606342 r1828212 23 23 .optinpointb p{ 24 24 margin-bottom: 10px; 25 line-height: 20px; 25 line-height: 20px; 26 26 font-size: {{theme.msg_f.s||'14'}}px; 27 27 font-family: {{theme.msg_f.f | livepf}}; … … 177 177 position: relative; 178 178 } 179 .optinpointb .optinpoint-signal { 179 .optinpointb .optinpoint-signal { 180 180 181 181 } -
optinpoint-lite/trunk/admin/includes/addon1.php
r1606342 r1828212 269 269 </div> 270 270 </div> 271 <div class="optinpoint" id="optinpoint"> 271 <div class="optinpoint" id="optinpoint"> 272 272 <div><div class="optpoint-live-sc righthov" ng-click="prev.goto(2)" data-optno="4" data-lhint="Go to Text Box Settings" style="right: -50px;">2</div> 273 273 <div class="addon_tbox"><div class="in-name">Name</div></div> … … 300 300 <div class="addon_spinner" ng-bind-html="getSpin('7','optinpointb',theme.spinner_c||'#000')"></div> 301 301 </div> 302 302 303 303 </div> 304 304 </div> -
optinpoint-lite/trunk/admin/includes/addon8.php
r1606342 r1828212 240 240 <div id="optinpointb" class="optinpointb" ng-class="{'wosoc':theme.addon_dissoc}"> 241 241 <div class="optpoint-live-sc" ng-click="prev.goto(8)" data-lhint="Go to Additional Theme Options" style="margin:-30px">7</div> 242 242 243 243 <div><div class="optpoint-live-sc" ng-click="prev.goto(1)" data-lhint="Go to Custom Message Settings">1</div> 244 244 <div class="addon_heading">{{theme.heading}}</div> 245 245 <div class="addon_msg"><p ng-bind-html="theme.msg | safe"></p></div> 246 246 </div> 247 <div class="optinpoint" id="optinpoint"> 247 <div class="optinpoint" id="optinpoint"> 248 248 <div class="optinpoint_formbox"> 249 249 250 250 <div><div class="optpoint-live-sc righthov" ng-click="prev.goto(2)" data-lhint="Go to Text Box Settings" style="right: -50px;">2</div> 251 251 <div class="addon_tbox">Name</div> … … 286 286 </div> 287 287 </div> 288 288 289 289 </div> 290 290 291 292 291 292 293 293 </div> 294 294 </div> -
optinpoint-lite/trunk/admin/includes/addon9.php
r1606342 r1828212 209 209 <div id="optinpointb" class="optinpointb"> 210 210 <div class="optpoint-live-sc" ng-click="prev.goto(8)" data-lhint="Go to Additional Theme Options" style="margin:-30px">7</div> 211 211 212 212 <div><div class="optpoint-live-sc" ng-click="prev.goto(1)" data-lhint="Go to Custom Message Settings">1</div> 213 213 <div class="addon_heading">{{theme.heading}}</div> 214 214 <div class="addon_msg"><p ng-bind-html="theme.msg | safe"></p></div> 215 215 </div> 216 <div class="optinpoint" id="optinpoint"> 216 <div class="optinpoint" id="optinpoint"> 217 217 <div><div class="optpoint-live-sc righthov" ng-click="prev.goto(2)" data-lhint="Go to Text Box Settings" style="right: -50px;">2</div> 218 218 <div class="addon_tbox pericon"><div class="in-text in-name">Name</div></div> … … 247 247 </div> 248 248 </div> 249 <div><div class=" wpmc-live-sc" ng-click="gotos($event)" data-optno="9" data-lhint="Go to Tag Settings">6</div>250 <div class=" wpmchimpa-tag" ng-bind-html="data.theme.a9.addon_tag||'Secure and Spam free...' | safe"></div></div>249 <div><div class="optpoint-live-sc" ng-click="gotos($event)" data-optno="9" data-lhint="Go to Tag Settings">6</div> 250 <div class="optinpoint-tag" ng-bind-html="data.theme.a9.addon_tag||'Secure and Spam free...' | safe"></div></div> 251 251 </div> 252 252 </div> -
optinpoint-lite/trunk/admin/includes/lightbox0.php
r1620057 r1828212 146 146 top: 2em; 147 147 right:2em; 148 -moz-transform: rotate(45deg); 148 -moz-transform: rotate(45deg); 149 149 -o-transform: rotate(45deg); 150 150 -ms-transform: rotate(45deg); … … 176 176 } 177 177 .optinpoint-overlay-bg .optinpoint-close-button:hover { 178 background-color: #fff; 178 background-color: #fff; 179 179 -ms-transform: rotate(225deg); 180 180 -webkit-transform: rotate(225deg); 181 -moz-transform: rotate(225deg); 182 -o-transform: rotate(225deg); 183 transform: rotate(225deg); 184 } 181 -moz-transform: rotate(225deg); 182 -o-transform: rotate(225deg); 183 transform: rotate(225deg); 184 } 185 185 .optinpoint-overlay-bg .optinpoint-close-button:hover::after { 186 186 background-color: #7e7e7e; -
optinpoint-lite/trunk/admin/includes/lightbox1.php
r1606342 r1828212 225 225 background-image: url({{theme.lite_img1||'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIxMjBweCIgaGVpZ2h0PSIxMjBweCIgdmlld0JveD0iMCAwIDEyMCAxMjAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDEyMCAxMjAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxnPjxwYXRoIG9wYWNpdHk9IjAuMiIgZmlsbD0iIzAyMDIwMiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAgICAiIGQ9Ik0xMTkuNiw5Mi45YzAsNC40LTMuNiw3LjktOCw3LjloLTEwMWMtNC40LDAtOC0zLjUtOC03LjlWMjQuMmMwLTQuNCwzLjYtNy45LDgtNy45aDEwMWM0LjQsMCw4LDMuNSw4LDcuOVY5Mi45eiIvPjxwYXRoIGZpbGw9IiNDNjMyM0QiIGQ9Ik0xLjgsMjljLTAuMywwLjgtMC40LDEuOC0wLjQsMi43djU4LjljMCw1LjEsNC4xLDkuMiw5LjIsOS4yaDk5YzUuMSwwLDkuMi00LjEsOS4yLTkuMlYzMS43YzAtMC45LTAuMi0xLjgtMC40LTIuN0gxLjh6Ii8+PGxpbmVhckdyYWRpZW50IGlkPSJTVkdJRF8xXyIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIHgxPSIyNDIuMTYxNCIgeTE9Ii0yOTcuMDQyIiB4Mj0iMzU1LjE3MzgiIHkyPSItMjk3LjA0MiIgZ3JhZGllbnRUcmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAtMSAtMjM3LjYgLTIzOC44NCkiPjxzdG9wICBvZmZzZXQ9IjAiIHN0eWxlPSJzdG9wLWNvbG9yOiNGRkZGRkY7c3RvcC1vcGFjaXR5OjAiLz48c3RvcCAgb2Zmc2V0PSIwLjE0MzQiIHN0eWxlPSJzdG9wLWNvbG9yOiNENEQ0RDQ7c3RvcC1vcGFjaXR5OjAuMTI5MSIvPjxzdG9wICBvZmZzZXQ9IjAuNDYiIHN0eWxlPSJzdG9wLWNvbG9yOiM3QTdBN0E7c3RvcC1vcGFjaXR5OjAuNDE0Ii8+PHN0b3AgIG9mZnNldD0iMC43MTgiIHN0eWxlPSJzdG9wLWNvbG9yOiMzODM4Mzg7c3RvcC1vcGFjaXR5OjAuNjQ2MiIvPjxzdG9wICBvZmZzZXQ9IjAuOTA0MiIgc3R5bGU9InN0b3AtY29sb3I6IzEwMTAxMDtzdG9wLW9wYWNpdHk6MC44MTM4Ii8+PHN0b3AgIG9mZnNldD0iMSIgc3R5bGU9InN0b3AtY29sb3I6IzAwMDAwMDtzdG9wLW9wYWNpdHk6MC45Ii8+PC9saW5lYXJHcmFkaWVudD48cGF0aCBvcGFjaXR5PSI2LjAwMDAwMGUtMDAyIiBmaWxsPSJ1cmwoI1NWR0lEXzFfKSIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAgICAiIGQ9Ik0xMTIuNiw5NC40TDkuNCwyMy40Yy0xLjktMS4zLTMuMy0yLjktNC4yLTQuOGMtMC40LDEuMS0wLjcsMi4zLTAuNywzLjV2NjYuNWMwLDUuMSw0LjEsOS4yLDkuMiw5LjJoOTljMS44LDAsMy40LTAuNSw0LjgtMS40QzExNS45LDk2LjEsMTE0LjEsOTUuNSwxMTIuNiw5NC40eiIvPjxwYXRoIGZpbGw9IiNENkQ2RDYiIGQ9Ik0xMC44LDk2LjNsMTAzLjItNzFjMS45LTEuMywzLjMtMi45LDQuMi00LjhjMC40LDEuMSwwLjcsMi4zLDAuNywzLjV2NjYuNWMwLDUuMS00LjEsOS4yLTkuMiw5LjJoLTk5Yy0xLjgsMC0zLjQtMC41LTQuOC0xLjRDNy41LDk4LjEsOS4zLDk3LjMsMTAuOCw5Ni4zeiIvPjxwYXRoIGZpbGw9IiNFRkVGRUYiIGQ9Ik0xMDguOSw5Ni43TDUuNywyNS43Yy0xLjktMS4zLTMuMy0yLjktNC4yLTQuOGMtMC40LDEuMS0wLjcsMi4zLTAuNywzLjV2NjYuNWMwLDUuMSw0LjEsOS4yLDkuMiw5LjJoOTljMS44LDAsMy40LTAuNSw0LjgtMS40QzExMi4xLDk4LjUsMTEwLjQsOTcuNywxMDguOSw5Ni43eiIvPjxwYXRoIG9wYWNpdHk9IjAuOCIgZmlsbD0iI0U1RTVFNSIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAgICAiIGQ9Ik0xMDguOSw5Ni43TDU5LjYsNjIuN0wxMC4zLDk2LjdjLTEuNSwxLjEtMy4zLDEuOC00LjksMi4xYzEuNCwwLjgsMywxLjQsNC44LDEuNGg0My43aDU1LjJjMS44LDAsMy40LTAuNSw0LjgtMS40QzExMi4xLDk4LjUsMTEwLjQsOTcuNywxMDguOSw5Ni43eiIvPjxwYXRoIG9wYWNpdHk9IjAuMSIgZmlsbD0iIzAyMDIwMiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAgICAiIGQ9Ik0xMTguNywyNS4zYzAtMC42LTAuMS0xLjEtMC4yLTEuNmMwLjMtMC4xLDAuNy0wLjIsMS0wLjNjLTAuNC0wLjItMC44LTAuNC0xLjItMC43Yy0xLjEtMy44LTQuNi02LjUtOC43LTYuNUgxMS4yYy00LjMsMC03LjksMi45LTguOCw2LjljLTAuMiwwLjEtMC40LDAuMi0wLjYsMC4zYzAuMiwwLjEsMC4zLDAuMSwwLjQsMC4xYy0wLjEsMC42LTAuMiwxLjItMC4yLDEuN2MwLDAsMC4yLTAuNCwwLjctMS41YzAuOSwxLjgsMi4zLDMuNCw0LjEsNC42bDUzLjUsMzYuNGw1My41LTM2LjNjMS44LTEuMiwzLjItMi45LDQuMS00LjZoMC4xQzExOC41LDI0LjksMTE4LjcsMjUuMywxMTguNywyNS4zeiIvPjxwYXRoIGZpbGw9IiNFOEU4RTgiIGQ9Ik0xMDkuNiwxNC42SDEwLjNjLTUuMSwwLTkuMiw0LjEtOS4yLDkuMmMwLDAsMC4yLTAuNCwwLjctMS41QzIuNywyNC4xLDQuMSwyNS43LDYsMjdsNTMuOSwzNy4ybDU0LTM3LjFjMS45LTEuMywzLjMtMi45LDQuMi00LjhjMC40LDEuMSwwLjcsMS41LDAuNywxLjVDMTE4LjcsMTguOCwxMTQuNiwxNC42LDEwOS42LDE0LjZ6Ii8+PC9nPjwvc3ZnPg=='}}); 226 226 background-repeat: no-repeat; 227 background-position: center; 227 background-position: center; 228 228 border: 15px solid {{theme.bg_c || '#fff'}}; 229 229 height: 170px; … … 422 422 </div> 423 423 <div class="optinpoint-close-button"></div> 424 </div> 424 </div> 425 425 </div> 426 426 </div> -
optinpoint-lite/trunk/admin/includes/lightbox8.php
r1606342 r1828212 324 324 </div> 325 325 </div> 326 327 326 327 328 328 </div> 329 329 </div> 330 330 </div> 331 331 <div class="optinpoint-close-button"></div> 332 </div> 332 </div> 333 333 </div> -
optinpoint-lite/trunk/admin/includes/lightbox9.php
r1606342 r1828212 288 288 </div> 289 289 <div class="optinpoint-close-button"></div> 290 </div> 290 </div> 291 291 </div> -
optinpoint-lite/trunk/admin/includes/slider0.php
r1606342 r1828212 38 38 #optinpoints .optinpoint-groups{ 39 39 display: inline-block; 40 overflow:auto; 40 overflow:auto; 41 41 } 42 42 #optinpoints .optinpoint-item{ … … 183 183 background: {{theme.slider_trigger_bg || '#000'}}; 184 184 } 185 #optinpoints-trig:before{ 185 #optinpoints-trig:before{ 186 186 content:{{getIcon('a01',32,theme.slider_trigger_c||'#fff')}}; 187 187 height: 32px; -
optinpoint-lite/trunk/admin/includes/slider1.php
r1606342 r1828212 253 253 background: {{theme.slider_trigger_bg || '#0066CB'}}; 254 254 } 255 #optinpoints-trig:before{ 255 #optinpoints-trig:before{ 256 256 content:{{getIcon('a04',32,theme.slider_trigger_c||'#fff')}}; 257 257 height: 32px; … … 287 287 </div> 288 288 <div class="optinpoints"> 289 289 290 290 <div><div class="optpoint-live-sc righthov" ng-click="prev.goto(2)" data-lhint="Go to Text Box Settings" style="right: -20px;">2</div> 291 291 <div class="slider_tbox"><div class="in-name">Name</div></div> … … 319 319 <div class="slider_spinner" ng-bind-html="getSpin('7','optinpoints',theme.spinner_c||'#000')"></div> 320 320 </div> 321 321 322 322 </div> 323 323 324 324 </div> 325 325 </div> -
optinpoint-lite/trunk/admin/includes/slider8.php
r1606342 r1828212 259 259 background: {{theme.slider_trigger_bg || '#262E43'}}; 260 260 } 261 #optinpoints-trig:before{ 261 #optinpoints-trig:before{ 262 262 content:{{getIcon('b05',32,theme.slider_trigger_c||'#fff')}}; 263 263 height: 32px; … … 326 326 </div> 327 327 </div> 328 328 329 329 </div> 330 330 </div> -
optinpoint-lite/trunk/admin/includes/slider9.php
r1606342 r1828212 226 226 background: {{theme.slider_trigger_bg || '#27313B'}}; 227 227 } 228 #optinpoints-trig:before{ 228 #optinpoints-trig:before{ 229 229 content:{{getIcon('b06',32,theme.slider_trigger_c||'#fff')}}; 230 230 height: 32px; … … 256 256 <div class="slider_tbox pericon"><div class="in-text in-name">Name</div></div> 257 257 </div> 258 <div class="optinpoint_formbox"> 258 <div class="optinpoint_formbox"> 259 259 <div class="slider_tbox mailicon"><div class="in-text in-mail">Email address</div> 260 260 <div> -
optinpoint-lite/trunk/admin/includes/widget0.php
r1606342 r1828212 19 19 #optinpointw .optinpoint-groups{ 20 20 display: block; 21 overflow:auto; 21 overflow:auto; 22 22 } 23 23 #optinpointw .optinpoint-item{ … … 189 189 <div class="widget_tbox"><div class="in-name">Name</div></div> 190 190 <div class="widget_tbox"><div class="in-mail">Email address</div></div> 191 </div> 191 </div> 192 192 <div><div class="optpoint-live-sc righthov" ng-click="prev.goto(4)" data-lhint="Go to Button Settings" style="left:30px;">3</div> 193 193 <div class="optinpoint-subs-button">{{theme.button}}</div> -
optinpoint-lite/trunk/admin/includes/widget8.php
r1606342 r1828212 233 233 <div id="optinpointw" ng-class="{'wosoc':theme.widget_dissoc}"> 234 234 <div class="optpoint-live-sc" ng-click="prev.goto(8)" data-lhint="Go to Additional Theme Options" style="margin:-25px">7</div> 235 235 236 236 <div class="optinpointw"> 237 237 <div><div class="optpoint-live-sc" ng-click="prev.goto(1)" data-lhint="Go to Custom Message Settings">1</div> -
optinpoint-lite/trunk/admin/includes/widget9.php
r1606342 r1828212 210 210 <div id="optinpointw"> 211 211 <div class="optpoint-live-sc" ng-click="prev.goto(8)" data-lhint="Go to Additional Theme Options" style="margin:-25px">7</div> 212 212 213 213 <div class="optinpointw"> 214 214 <div><div class="optpoint-live-sc" ng-click="prev.goto(1)" data-lhint="Go to Custom Message Settings">1</div> -
optinpoint-lite/trunk/admin/views/admin.php
r1719216 r1828212 1 1 <?php 2 /** 2 /** 3 3 * OptinPoint - Advanced Subscription Hub For Wordpress 4 4 * … … 13 13 <div class="optpoint_header"> 14 14 <div class="h_mid"></div> 15 </div> 15 </div> 16 16 <div class="optpoint_toolbar"> 17 17 <div class="optpoint_tabs"> … … 33 33 </svg> 34 34 </div> 35 <div class="optpoint_status optpoint_updated" ng-if="isLoading == 2"></div> 36 <div class="optpoint_status optpoint_error" ng-if="isLoading == 3"></div> 35 <div class="optpoint_status optpoint_updated" ng-if="isLoading == 2"></div> 36 <div class="optpoint_status optpoint_error" ng-if="isLoading == 3"></div> 37 37 </div> 38 </div> 38 </div> 39 39 40 40 <div class="optpoint_content"> -
optinpoint-lite/trunk/admin/views/admin_addon.php
r1700646 r1828212 212 212 <div class="optpoint_compac"> 213 213 <input id="ao2" type="radio" ng-model="data.addon_orient" value="mid"> 214 <label for="ao2">Mid <div class="orientvdemo mido"></div></label> 214 <label for="ao2">Mid <div class="orientvdemo mido"></div></label> 215 215 </div> 216 216 <div class="optpoint_compac"> 217 217 <input id="ao3" type="radio" ng-model="data.addon_orient" value="bot"> 218 <label for="ao3">Bottom <div class="orientvdemo boto"></div></label> 218 <label for="ao3">Bottom <div class="orientvdemo boto"></div></label> 219 219 </div> 220 220 <div style="clear:both"></div> -
optinpoint-lite/trunk/admin/views/admin_advanced.php
r1611096 r1828212 54 54 </div> 55 55 <div class="optpoint_group"> 56 <div class="optpoint_para">One click backup and restore 56 <div class="optpoint_para">One click backup and restore 57 57 <span class="optpoint_hint" data-hint="You can save your settings and restore it later"></span> 58 58 </div> … … 69 69 </div> 70 70 <div class="optpoint_group"> 71 <div class="optpoint_para">One click plugin reset 71 <div class="optpoint_para">One click plugin reset 72 72 <span class="optpoint_hint" data-hint="Reset your plugin to default values"></span> 73 73 </div> -
optinpoint-lite/trunk/admin/views/admin_general.php
r1719216 r1828212 301 301 <div ng-click="cfield.type = 'radio'" ng-show="cfield.not || cfield.typesel == 'choice' || cfield.typesel == 'single_select' || cfield.typesel == 'single'">radio</div> 302 302 <div ng-click="cfield.type = 'select'" ng-show="cfield.not || cfield.typesel == 'choice' || cfield.typesel == 'single_select' || cfield.typesel == 'single'">select</div> 303 <div ng-click="cfield.type = 'singlecheck'" ng-show="cfield.not || cfield.typesel == 'choice' || cfield.typesel == 'single_select' || cfield.typesel == 'single'">single checkbox</div> 303 304 <div ng-click="cfield.type = 'multiselect'" ng-show="cfield.not || cfield.typesel == 'choice' || cfield.typesel == 'multi_select'">multiselect</div> 304 305 </div> … … 323 324 </div> 324 325 </div> 325 <div class="optpoint_tablefed_row" ng-if=" field.extra.fill() && ['checkbox','radio','select','multiselect'].indexOf(cfield.type) >= 0">326 <div class="optpoint_tablefed_row" ng-if="(field.extra.fill() || cfield.type == 'singlecheck') && ['checkbox','radio','select','multiselect','singlecheck'].indexOf(cfield.type) >= 0"> 326 327 <label>Options</label> 327 328 <div class="optpoint_tablefed_col"> 328 329 <div class="optpoint_tablefed_opt" ng-repeat="(k,v) in cfield.extras track by k"> 329 <div ng-if="field.extra.fill() ">330 <div ng-if="field.extra.fill() || cfield.type == 'singlecheck'"> 330 331 <input type="text" class="optpoint_tabtext" required ng-model="cfield.extras[k].label" ng-if="cfield.extras[k].label"> 331 332 <input type="text" class="optpoint_tabtext" required ng-model="cfield.extras[k].name" ng-if="!cfield.extras[k].label"> 332 333 <div class="bar"></div> 333 <div class="fed_ico mul_del" ng-click="field.extra.del($parent.$parent.$index, $index)" ></div>334 </div> 335 <div ng-if="!field.extra.fill() ">334 <div class="fed_ico mul_del" ng-click="field.extra.del($parent.$parent.$index, $index)" ng-if="cfield.type !== 'singlecheck'"></div> 335 </div> 336 <div ng-if="!field.extra.fill() && cfield.type !== 'singlecheck'"> 336 337 {{cfield.extras[k].label || cfield.extras[k].name}} 337 338 </div> 338 339 </div> 339 <div class="optpoint_tablefed_optadd" ng-click="field.extra.add($parent.$index)" ng-if="field.extra.fill() "></div>340 <div class="optpoint_tablefed_optadd" ng-click="field.extra.add($parent.$index)" ng-if="field.extra.fill() || (cfield.extras.length == 0 && cfield.type == 'singlecheck')"></div> 340 341 <div ng-if="!cfield.extras || cfield.extras.length == 0" class="optpoint_tablefed_optemp">Empty</div> 341 342 </div> -
optinpoint-lite/trunk/admin/views/admin_lightbox.php
r1700646 r1828212 42 42 </div> 43 43 <div class="optpoint_group optpoint_cb"> 44 <label><input type="checkbox" ng-model="data.lite_desktop" ng-true-value="'1'"> 44 <label><input type="checkbox" ng-model="data.lite_desktop" ng-true-value="'1'"> 45 45 <div class="mcheckbox"></div>Desktop</label> 46 46 </div> 47 47 <div class="optpoint_group optpoint_cb"> 48 <label><input type="checkbox" ng-model="data.lite_tablet" ng-true-value="'1'"> 48 <label><input type="checkbox" ng-model="data.lite_tablet" ng-true-value="'1'"> 49 49 <div class="mcheckbox"></div>Tablet</label> 50 50 </div> 51 51 <div class="optpoint_group optpoint_cb"> 52 <label><input type="checkbox" ng-model="data.lite_mobile" ng-true-value="'1'"> 52 <label><input type="checkbox" ng-model="data.lite_mobile" ng-true-value="'1'"> 53 53 <div class="mcheckbox"></div>Mobile</label> 54 54 </div> … … 93 93 <span class="optpoint_hint headhint" data-hint="Adjust the behaviour"></span> 94 94 </div> 95 <div class="optpoint_group optpoint_txts optpoint_cb"> 95 <div class="optpoint_group optpoint_txts optpoint_cb"> 96 96 <label>Appear after</label> 97 97 <input type="text" class="optpoint_texts" ng-model="data.lite_behave_time"> … … 100 100 <div class="mcheckbox"></div>of Inactivity</label> 101 101 </div> 102 <div class="optpoint_group optpoint_txts optpoint_cb"> 102 <div class="optpoint_group optpoint_txts optpoint_cb"> 103 103 <label><input type="checkbox" ng-model="data.lite_behave_scroll" ng-true-value="'1'"> 104 104 <div class="mcheckbox"></div>Appear after</label> … … 106 106 <span>% of the page scrolled</span> 107 107 </div> 108 <div class="optpoint_group optpoint_txts optpoint_cb"> 108 <div class="optpoint_group optpoint_txts optpoint_cb"> 109 109 <label><input type="checkbox" ng-model="data.lite_behave_cookie" ng-true-value="'1'"> 110 110 <div class="mcheckbox"></div>Reappear after</label> … … 118 118 <span class="optpoint_hint headhint" data-hint="When to close the lightbox"></span> 119 119 </div> 120 <div class="optpoint_group optpoint_txts"> 120 <div class="optpoint_group optpoint_txts"> 121 121 <label>Disappear after</label> 122 122 <input type="text" class="optpoint_texts" ng-model="data.lite_close_time"> -
optinpoint-lite/trunk/admin/views/admin_slider.php
r1700646 r1828212 101 101 <div class="optpoint_compac"> 102 102 <input id="so2" type="radio" ng-model="data.slider_orient" value="right"> 103 <label for="so2">Right <div class="orientdemo righto"></div></label> 103 <label for="so2">Right <div class="orientdemo righto"></div></label> 104 104 </div> 105 105 <div style="clear:both"></div> 106 106 </div> 107 <div class="optpoint_group optpoint_txts optpoint_cb"> 107 <div class="optpoint_group optpoint_txts optpoint_cb"> 108 108 <label>Appear after</label> 109 109 <input type="text" class="optpoint_texts" ng-model="data.slider_behave_time"> … … 117 117 <span class="optpoint_hint" data-hint="If not selected, visitors need to click close button to exit the slider"></span> 118 118 </div> 119 <div class="optpoint_group optpoint_txts optpoint_cb"> 120 <label><input type="checkbox" ng-model="slider_trigger_scroll" ng-true-value="'1'"> 119 <div class="optpoint_group optpoint_txts optpoint_cb"> 120 <label><input type="checkbox" ng-model="slider_trigger_scroll" ng-true-value="'1'"> 121 121 <div class="mcheckbox"></div>Trigger appear after</label> 122 122 <input type="text" class="optpoint_texts" value="50" disabled> -
optinpoint-lite/trunk/admin/views/admin_theme_opt.php
r1700646 r1828212 39 39 <optfont ng-model="theme.heading_f"></optfont> 40 40 <optcolor ng-model="theme.heading_fc" optlab="Font Color"></optcolor> 41 <div class="optpoint_group"> 41 <div class="optpoint_group"> 42 42 <div class="optpoint_para">Message 43 43 <span class="optpoint_hint" data-hint="Sub-heading"></span> -
optinpoint-lite/trunk/optinpoint.php
r1719216 r1828212 12 12 * Plugin URI: http://voltroid.com/optinpoint 13 13 * Description: All-in-one Subscription Plugin 14 * Version: 1.0. 414 * Version: 1.0.5 15 15 * Author: Voltroid 16 16 * Author URI: http://voltroid.com -
optinpoint-lite/trunk/public/assets/js/public.js
r1719216 r1828212 325 325 success:function(data){ 326 326 oppo_subing = 0; 327 $(optpo).removeClass('signalshow');328 327 if(data >= 1){ 329 328 if(opposucurl()){$('.optinpoint-overlay-bg').hide();} … … 341 340 else 342 341 $(optpo).find('[oppoerr="gen"]').html(oppo_errmsg[4]); 342 $(optpo).removeClass('signalshow'); 343 343 } 344 344 }); … … 474 474 } 475 475 }; 476 msieversion = function() { 477 var ua = window.navigator.userAgent; 478 var msie = ua.indexOf("MSIE "); 479 if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) 480 return true; 481 return false; 482 } 483 if(msieversion()){ 484 $(".optinpoint-field input").on("keyup", function() { 485 var label = $(this).parent().find(".inputlabel"); 486 if($(this).val()) { 487 $(label).hide(); 488 } else { 489 $(label).show(); 490 } 491 }); 492 } 476 493 function show_oppo_litebox(){ 477 494 if(x==1)return; -
optinpoint-lite/trunk/public/class-optinpoint.php
r1719216 r1828212 13 13 * @package OptinPoint Lite - Advanced Subscription Hub For Wordpress 14 14 * @author Voltroid<care@voltroid.com> 15 * 15 * 16 16 */ 17 17 class OptinPoint_Lite_Assistant { … … 21 21 * @var string 22 22 */ 23 const VERSION = '1.0. 4';23 const VERSION = '1.0.5'; 24 24 25 25 /** … … 65 65 66 66 add_action('wp_ajax_optinpoint_lite_add_email_ajax', array( $this, 'subscribe' )); 67 add_action('wp_ajax_nopriv_optinpoint_lite_add_email_ajax', array( $this, 'subscribe' )); 67 add_action('wp_ajax_nopriv_optinpoint_lite_add_email_ajax', array( $this, 'subscribe' )); 68 68 69 69 add_filter( 'comment_form_field_comment', array($this,'commentfield' )); … … 257 257 break; 258 258 case 'multi_select': 259 case 'singlecheck': 259 260 case 'checkbox': 260 261 $t = ''; … … 435 436 break; 436 437 case 'multi_select': 438 case 'singlecheck': 437 439 case 'checkbox': 438 440 if($set['type']==1 || $set['type']==2 || $set['type']==4){ … … 866 868 867 869 if (function_exists('curl_init') && function_exists('curl_setopt')){ 868 $cSession = curl_init(); 870 $cSession = curl_init(); 869 871 curl_setopt($cSession,CURLOPT_URL,$url); 870 872 curl_setopt($cSession,CURLOPT_RETURNTRANSFER,true); 871 curl_setopt($cSession,CURLOPT_HEADER, false); 873 curl_setopt($cSession,CURLOPT_HEADER, false); 872 874 $result = curl_exec($cSession); 873 875 curl_close($cSession); … … 913 915 * Ajax call to add email to list 914 916 * @since 1.0.0 915 * 917 * 916 918 */ 917 919 public function subscribe($a){ … … 930 932 * Render the addon and append to the content 931 933 * @since 1.0.0 932 * 934 * 933 935 */ 934 936 public function addon_adder($content){ … … 943 945 $temppos = strpos($content,$tempseek); 944 946 if(strpos($content,$tempseek)) return $content; 945 ob_start(); 947 ob_start(); 946 948 include('includes/bottom_content.php'); 947 949 $msg = ob_get_clean(); … … 952 954 $sch = "</p>"; 953 955 $content = str_replace("</P>", $sch, $content); 954 $arr = explode($sch, $content); 956 $arr = explode($sch, $content); 955 957 $nn = 0; $mm = strlen($content)/2; 956 958 for($i=0;$i<count($arr);$i++) { … … 958 960 if($nn>$mm) { 959 961 if( ($mm - ($nn - strlen($arr[$i]))) > ($nn - $mm) && $i+1<count($arr) ) { 960 $arr[$i+1] = stripslashes( $msg).$arr[$i+1]; 962 $arr[$i+1] = stripslashes( $msg).$arr[$i+1]; 961 963 } else { 962 964 $arr[$i] = stripslashes( $msg).$arr[$i]; … … 976 978 977 979 /** 978 * Register shortcodes 980 * Register shortcodes 979 981 * addon_scode 980 982 * addon_unlock 981 983 * @since 1.0.0 982 * 984 * 983 985 */ 984 986 function register_shortcodes(){ … … 989 991 * Render the addon as shortcode and append to the content 990 992 * @since 1.0.0 991 * 993 * 992 994 */ 993 995 function addon_scode($atts, $content = null) { … … 996 998 return $content; 997 999 $this->loadscripts(); 998 ob_start(); 1000 ob_start(); 999 1001 include('includes/bottom_content.php'); 1000 1002 $msg = ob_get_clean(); … … 1040 1042 * Return SVG icons for the themes 1041 1043 * @since 1.0.0 1042 * 1044 * 1043 1045 */ 1044 1046 public function getIcon($icon,$size='250',$color='#000',$attr='1'){ … … 1577 1579 * Render the spinners for the themes 1578 1580 * @since 1.0.0 1579 * 1581 * 1580 1582 */ 1581 1583 public function getSpin($spin,$pre,$color='#000'){ … … 1598 1600 * Add field to comment box 1599 1601 * @since 1.0.0 1600 * 1602 * 1601 1603 */ 1602 1604 public function commentfield( $comment_field ) { … … 1625 1627 * Subscribe user from comment 1626 1628 * @since 1.0.0 1627 * 1629 * 1628 1630 */ 1629 1631 public function commentpost($comment_ID){ … … 1652 1654 * Add field to Registration box 1653 1655 * @since 1.0.0 1654 * 1656 * 1655 1657 */ 1656 1658 public function regfield(){ … … 1661 1663 * Subscribe user from registration 1662 1664 * @since 1.0.0 1663 * 1665 * 1664 1666 */ 1665 1667 public function regpost(){ -
optinpoint-lite/trunk/public/includes/addon0.php
r1719216 r1828212 1 <?php 1 <?php 2 2 $theme['msg'] = htmlspecialchars_decode($theme['msg']); 3 3 ?> … … 12 12 padding: 50px; 13 13 display: none; 14 <?php 14 <?php 15 15 if(isset($theme["bg_c"])){ 16 16 echo 'background:'.$theme["bg_c"].';'; … … 20 20 .optinpointb h3{ 21 21 font-size: 18px; 22 <?php 22 <?php 23 23 if(isset($theme["heading_f"]['f'])){ 24 24 array_push($oppo_font, $theme["heading_f"]['f']); … … 45 45 font-size: 14px; 46 46 line-height: 20px; 47 <?php 47 <?php 48 48 if(isset($theme["msg_f"]['f'])){ 49 49 array_push($oppo_font, $theme["msg_f"]['f']); … … 60 60 width:80%; 61 61 margin: 0 auto 12px auto; 62 <?php 62 <?php 63 63 if(isset($theme["tbox_w"])){ 64 64 echo 'width:'.$theme["tbox_w"].'px;'; … … 77 77 left: 0; 78 78 pointer-events: none; 79 <?php 79 <?php 80 80 if(isset($theme["tbox_h"])){ 81 81 echo 'width:'.$theme["tbox_h"].'px;'; … … 87 87 .optinpointb .oppo-ficon .inputlabel{ 88 88 padding-left: 45px; 89 <?php 89 <?php 90 90 if(isset($theme["tbox_h"])){ 91 91 echo 'padding-left:'.$theme["tbox_h"].'px;'; … … 118 118 box-sizing: border-box; 119 119 font-size: 16px; 120 <?php 120 <?php 121 121 if(isset($theme["tbox_f"]['f'])){ 122 122 array_push($oppo_font, $theme["tbox_f"]['f']); … … 160 160 background: no-repeat center; 161 161 background-image: <?=$this->getIcon('dd',16,'#000');?>; 162 <?php 162 <?php 163 163 if(isset($theme["tbox_h"])){ 164 164 echo 'width:'.$theme["tbox_h"].'px;'; … … 180 180 white-space: nowrap; 181 181 text-align: center; 182 <?php 182 <?php 183 183 if(isset($theme["tbox_f"]['f'])){ 184 184 array_push($oppo_font, $theme["tbox_f"]['f']); … … 230 230 } 231 231 .optinpointb .optinpoint-item{ 232 <?php 232 <?php 233 233 $pline = 2; 234 234 if(isset($pline))echo 'width:'.(100/$pline).'%;'; … … 290 290 background-image: <?php 291 291 $tfi='ch1'; 292 292 293 293 $tfc='#fff'; 294 294 if(isset($theme["check_ic"])){$tfc=$theme["check_ic"];} … … 402 402 403 403 background:#8BD331; 404 404 405 405 color:#fff; 406 <?php 406 <?php 407 407 if(isset($theme["button_bch"])){ 408 408 echo 'background:'.$theme["button_bch"].';'; 409 409 } 410 else{ ?> 410 else{ ?> 411 411 background: -moz-linear-gradient(left, #8BD331 0%, #8bd331 100%); 412 412 background: -webkit-gradient(linear, left top, right top, color-stop(0%,#8BD331), color-stop(100%,#8bd331)); … … 426 426 .optinpointb .optinpoint-subs-button.subsicon:before{ 427 427 padding-left: 45px; 428 <?php 428 <?php 429 429 if(isset($theme["button_w"])){ 430 430 echo 'padding-left:'.$theme["button_h"].'px;'; … … 440 440 left: 0; 441 441 pointer-events: none; 442 <?php 442 <?php 443 443 if(isset($theme["button_h"])){ 444 444 echo 'width:'.$theme["button_h"].'px;'; … … 548 548 'type' => 1 549 549 ); 550 $this->stfield($form['fields'],$set); 550 $this->stfield($form['fields'],$set); 551 551 ?> 552 552 <div class="optinpoint-subs-button<?php echo (isset($theme['button_i']) && $theme['button_i'] != 'inone' && $theme['button_i'] != 'idef')? ' subsicon' : '';?>"></div> … … 556 556 echo '<div class="optinpoint-tag">'.$tagtxt.'</div>'; 557 557 }?> 558 <div class="optinpoint-signalc"><div class="optinpoint-signal"><?php 558 <div class="optinpoint-signalc"><div class="optinpoint-signal"><?php 559 559 echo $this->getSpin('1','optinpointb',isset($theme["spinner_c"])?$theme["spinner_c"]:'#000');?></div></div> 560 560 </form> -
optinpoint-lite/trunk/public/includes/addon1.php
r1719216 r1828212 1 <?php 1 <?php 2 2 $theme['msg'] = htmlspecialchars_decode($theme['msg']); 3 3 $this->social=true; … … 25 25 display: inline-block; 26 26 float: left; 27 <?php 27 <?php 28 28 if(isset($theme["addon_dissoc"])){ 29 29 echo 'display:none;'; … … 40 40 .optinpointb h3{ 41 41 font-size: 18px; 42 <?php 42 <?php 43 43 if(isset($theme["heading_f"]['f'])){ 44 44 array_push($oppo_font, $theme["heading_f"]['f']); … … 72 72 width:100%; 73 73 margin: 0 auto 12px auto; 74 <?php 74 <?php 75 75 if(isset($theme["tbox_w"])){ 76 76 echo 'width:'.$theme["tbox_w"].'px;'; … … 89 89 left: 0; 90 90 pointer-events: none; 91 <?php 91 <?php 92 92 if(isset($theme["tbox_h"])){ 93 93 echo 'width:'.$theme["tbox_h"].'px;'; … … 99 99 .optinpointb .oppo-ficon input[type="text"] ~ .inputlabel{ 100 100 padding-left: 45px; 101 <?php 101 <?php 102 102 if(isset($theme["tbox_h"])){ 103 103 echo 'padding-left:'.$theme["tbox_h"].'px;'; … … 128 128 outline:0; 129 129 display: block; 130 <?php 130 <?php 131 131 if(isset($theme["tbox_f"]['f'])){ 132 132 array_push($oppo_font, $theme["tbox_f"]['f']); … … 170 170 background: no-repeat center; 171 171 background-image: <?=$this->getIcon('dd',16,'#000');?>; 172 <?php 172 <?php 173 173 if(isset($theme["tbox_h"])){ 174 174 echo 'width:'.$theme["tbox_h"].'px;'; … … 190 190 font-weight:500; 191 191 white-space: nowrap; 192 <?php 192 <?php 193 193 if(isset($theme["tbox_f"]['f'])){ 194 194 array_push($oppo_font, $theme["tbox_f"]['f']); … … 238 238 } 239 239 .optinpointb .optinpoint-item{ 240 <?php 240 <?php 241 241 $pline = 2; 242 242 if(isset($pline))echo 'width:'.(100/$pline).'%;'; … … 286 286 background-image: <?php 287 287 $tfi='ch6'; 288 288 289 289 $tfc='#000'; 290 290 if(isset($theme["check_ic"])){$tfc=$theme["check_ic"];} … … 401 401 <?php if(isset($theme["button_fch"])){ 402 402 echo 'color:'.$theme["button_fch"].';'; 403 } 403 } 404 404 if(isset($theme["button_bch"])){ 405 405 echo 'background-color:'.$theme["button_bch"].';'; … … 414 414 .optinpointb .optinpoint-subs-button.subsicon:before{ 415 415 padding-left: 45px; 416 <?php 416 <?php 417 417 if(isset($theme["button_w"])){ 418 418 echo 'padding-left:'.$theme["button_h"].'px;'; … … 428 428 left: 0; 429 429 pointer-events: none; 430 <?php 430 <?php 431 431 if(isset($theme["button_h"])){ 432 432 echo 'width:'.$theme["button_h"].'px;'; … … 579 579 margin: 0; 580 580 } 581 @media only screen 581 @media only screen 582 582 and (max-width : 900px) { 583 583 .optinpointb form{ … … 650 650 'type' => 1 651 651 ); 652 $this->stfield($form['fields'],$set); 652 $this->stfield($form['fields'],$set); 653 653 ?> 654 654 <div class="optinpoint-subs-button<?php echo (isset($theme['button_i']) && $theme['button_i'] != 'inone' && $theme['button_i'] != 'idef')? ' subsicon' : '';?>"></div> … … 658 658 echo '<div class="optinpoint-tag">'.$tagtxt.'</div>'; 659 659 }?> 660 <div class="optinpoint-signalc"><div class="optinpoint-signal"><?php 660 <div class="optinpoint-signalc"><div class="optinpoint-signal"><?php 661 661 echo $this->getSpin('7','optinpointb',isset($theme["spinner_c"])?$theme["spinner_c"]:'#000');?></div></div> 662 662 </form> -
optinpoint-lite/trunk/public/includes/addon8.php
r1719216 r1828212 1 <?php 1 <?php 2 2 $theme['msg'] = htmlspecialchars_decode($theme['msg']); 3 3 $this->social=true; … … 30 30 color: #fff; 31 31 font-size: 20px; 32 <?php 32 <?php 33 33 if(isset($theme["heading_f"]['f'])){ 34 34 array_push($oppo_font, $theme["heading_f"]['f']); … … 89 89 left: 0; 90 90 pointer-events: none; 91 <?php 91 <?php 92 92 if(isset($theme["tbox_h"])){ 93 93 echo 'width:'.$theme["tbox_h"].'px;'; … … 99 99 .optinpointb .optinpoint-field.oppo-ficon .inputlabel{ 100 100 padding-left: 40px; 101 <?php 101 <?php 102 102 if(isset($theme["tbox_h"])){ 103 103 echo 'padding-left:'.$theme["tbox_h"].'px;'; … … 127 127 display: block; 128 128 border: 1px solid #efefef; 129 <?php 129 <?php 130 130 if(isset($theme["tbox_f"]['f'])){ 131 131 array_push($oppo_font, $theme["tbox_f"]['f']); … … 173 173 background: no-repeat center; 174 174 background-image: <?=$this->getIcon('dd',16,'#000');?>; 175 <?php 175 <?php 176 176 if(isset($theme["tbox_h"])){ 177 177 echo 'width:'.$theme["tbox_h"].'px;'; … … 193 193 padding: 0 10px; 194 194 white-space: nowrap; 195 <?php 195 <?php 196 196 if(isset($theme["tbox_f"]['f'])){ 197 197 array_push($oppo_font, $theme["tbox_f"]['f']); … … 246 246 } 247 247 .optinpointb .optinpoint-item{ 248 <?php 248 <?php 249 249 $pline = 2; 250 250 if(isset($pline))echo 'width:'.(100/$pline).'%;'; … … 294 294 background-image: <?php 295 295 $tfi='ch2'; 296 296 297 297 $tfc='#000'; 298 298 if(isset($theme["check_ic"])){$tfc=$theme["check_ic"];} … … 397 397 <?php if(isset($theme["button_fch"])){ 398 398 echo 'color:'.$theme["button_fch"].';'; 399 } 399 } 400 400 if(isset($theme["button_bch"])){ 401 401 echo 'background-color:'.$theme["button_bch"].';'; … … 405 405 .optinpointb .optinpoint-subs-button.subsicon:before{ 406 406 padding-left: 42px; 407 <?php 407 <?php 408 408 if(isset($theme["button_w"])){ 409 409 echo 'padding-left:'.$theme["button_h"].'px;'; … … 419 419 left: 0; 420 420 pointer-events: none; 421 <?php 421 <?php 422 422 if(isset($theme["button_h"])){ 423 423 echo 'width:'.$theme["button_h"].'px;'; … … 626 626 <?php if(isset($theme['heading'])) echo '<h3>'.$theme['heading'].'</h3>';?> 627 627 <?php if(isset($theme['msg'])) echo '<div class="optinpoint_para">'.$theme['msg'].'</div>';?> 628 628 629 629 <form action="" method="post"> 630 630 <div class="formbox"> … … 635 635 'type' => 1 636 636 ); 637 $this->stfield($form['fields'],$set); 637 $this->stfield($form['fields'],$set); 638 638 ?> 639 639 <div class="optinpoint-subsc"> 640 640 <div class="optinpoint-subs-button<?php echo (isset($theme['button_i']) && $theme['button_i'] != 'inone' && $theme['button_i'] != 'idef')? ' subsicon' : '';?>"></div> 641 <div class="optinpoint-signal"><?php 641 <div class="optinpoint-signal"><?php 642 642 echo $this->getSpin('3','optinpointb',isset($theme["spinner_c"])?$theme["spinner_c"]:'#000');?></div> 643 643 644 644 </div> 645 645 646 646 </div> 647 647 <?php if(isset($theme['tag_en'])){ … … 661 661 </form> 662 662 <div class="optinpoint-feedback" oppoerr="gen"></div> 663 663 664 664 </div> -
optinpoint-lite/trunk/public/includes/addon9.php
r1719216 r1828212 1 <?php 1 <?php 2 2 $theme['msg'] = htmlspecialchars_decode($theme['msg']); 3 3 ?> … … 37 37 color: #F4233C; 38 38 font-size: 24px; 39 <?php 39 <?php 40 40 if(isset($theme["heading_f"]['f'])){ 41 41 array_push($oppo_font, $theme["heading_f"]['f']); … … 89 89 margin: 0 auto 10px auto; 90 90 text-align: left; 91 <?php 91 <?php 92 92 if(isset($theme["tbox_w"])){ 93 93 echo 'width:'.$theme["tbox_w"].'px;'; … … 106 106 left: 0; 107 107 pointer-events: none; 108 <?php 108 <?php 109 109 if(isset($theme["tbox_h"])){ 110 110 echo 'width:'.$theme["tbox_h"].'px;'; … … 116 116 .optinpointb .oppo-ficon input[type="text"] ~ .inputlabel{ 117 117 padding-left: 40px; 118 <?php 118 <?php 119 119 if(isset($theme["tbox_h"])){ 120 120 echo 'padding-left:'.$theme["tbox_h"].'px;'; … … 151 151 display: block; 152 152 border: 1px solid #efefef; 153 <?php 153 <?php 154 154 if(isset($theme["tbox_f"]['f'])){ 155 155 array_push($oppo_font, $theme["tbox_f"]['f']); … … 197 197 background: no-repeat center; 198 198 background-image: <?=$this->getIcon('dd',16,'#000');?>; 199 <?php 199 <?php 200 200 if(isset($theme["tbox_h"])){ 201 201 echo 'width:'.$theme["tbox_h"].'px;'; … … 217 217 padding: 0 10px; 218 218 white-space: nowrap; 219 <?php 219 <?php 220 220 if(isset($theme["tbox_f"]['f'])){ 221 221 array_push($oppo_font, $theme["tbox_f"]['f']); … … 267 267 } 268 268 .optinpointb .optinpoint-item{ 269 <?php 269 <?php 270 270 $pline = 2; 271 271 if(isset($pline))echo 'width:'.(100/$pline).'%;'; … … 315 315 background-image: <?php 316 316 $tfi='ch2'; 317 317 318 318 $tfc='#000'; 319 319 if(isset($theme["check_ic"])){$tfc=$theme["check_ic"];} … … 418 418 <?php if(isset($theme["button_fch"])){ 419 419 echo 'color:'.$theme["button_fch"].';'; 420 } 420 } 421 421 if(isset($theme["button_bch"])){ 422 422 echo 'background-color:'.$theme["button_bch"].';'; … … 428 428 .optinpointb .optinpoint-subs-button.subsicon:before{ 429 429 padding-left: 40px; 430 <?php 430 <?php 431 431 if(isset($theme["button_w"])){ 432 432 echo 'padding-left:'.$theme["button_h"].'px;'; … … 442 442 left: 0; 443 443 pointer-events: none; 444 <?php 444 <?php 445 445 if(isset($theme["button_h"])){ 446 446 echo 'width:'.$theme["button_h"].'px;'; … … 554 554 <?php if(isset($theme['heading'])) echo '<h3>'.$theme['heading'].'</h3>';?> 555 555 <?php if(isset($theme['msg'])) echo '<div class="optinpoint_para">'.$theme['msg'].'</div>';?> 556 556 557 557 <form action="" method="post"> 558 558 <input type="hidden" name="action" value="optinpoint_lite_add_email_ajax"/> … … 566 566 $this->stfield($form['fields'],$set); 567 567 ?> 568 568 569 569 <div style="clear:both"></div> 570 570 -
optinpoint-lite/trunk/public/includes/bottom_content.php
r1702811 r1828212 1 <?php 1 <?php 2 2 $settings = $this->settings; 3 3 $cmeta = $this->cmeta; -
optinpoint-lite/trunk/public/includes/flipbox0.php
r1719216 r1828212 1 <?php 1 <?php 2 2 $theme['msg'] = htmlspecialchars_decode($theme['msg']); 3 3 ?> … … 11 11 -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.785, 0.135, 0.15, 0.86); 12 12 transition: transform 0.3s cubic-bezier(0.785, 0.135, 0.15, 0.86); 13 <?php 13 <?php 14 14 if(isset($theme["bg_c"])){ 15 15 echo 'background:'.$theme["bg_c"].';'; … … 44 44 width: 100%; 45 45 text-align: center; 46 <?php 46 <?php 47 47 if(isset($theme["heading_f"]['f'])){ 48 48 array_push($oppo_font, $theme["heading_f"]['f']); … … 122 122 box-sizing: border-box; 123 123 font-size: 16px; 124 <?php 124 <?php 125 125 if(isset($theme["tbox_f"]['f'])){ 126 126 array_push($oppo_font, $theme["tbox_f"]['f']); … … 173 173 white-space: nowrap; 174 174 text-align: center; 175 <?php 175 <?php 176 176 if(isset($theme["tbox_f"]['f'])){ 177 177 array_push($oppo_font, $theme["tbox_f"]['f']); … … 223 223 } 224 224 .optinpointf .optinpoint-item{ 225 <?php 225 <?php 226 226 $pline = 2; 227 227 if(isset($pline))echo 'width:'.(100/$pline).'%;'; … … 283 283 background-image: <?php 284 284 $tfi='ch1'; 285 285 286 286 $tfc='#fff'; 287 287 if(isset($theme["check_ic"])){$tfc=$theme["check_ic"];} … … 316 316 .optinpointf input[type="email"]:focus,.optinpointf input[type="text"]:focus { 317 317 border:2px solid #ddd; 318 <?php 318 <?php 319 319 if(isset($theme["tbox_bor"]) && isset($theme["tbox_borc"])){ 320 320 echo ' border:'.$theme["tbox_bor"].'px solid '.$theme["tbox_borc"].';'; … … 389 389 } 390 390 .optinpointf .optinpoint-subs-button:hover{ 391 background:#8BD331; 391 background:#8BD331; 392 392 color:#fff; 393 <?php 393 <?php 394 394 if(isset($theme["button_bch"])){ 395 395 echo 'background:'.$theme["button_bch"].';'; 396 396 } 397 else{ ?> 397 else{ ?> 398 398 background: -moz-linear-gradient(left, #8BD331 0%, #8bd331 100%); 399 399 background: -webkit-gradient(linear, left top, right top, color-stop(0%,#8BD331), color-stop(100%,#8bd331)); … … 422 422 left: 0; 423 423 pointer-events: none; 424 <?php 424 <?php 425 425 if($theme["button_i"] != 'inone' && $theme["button_i"] != 'idef'){ 426 426 $col = ((isset($theme["button_fc"]))? $theme["button_fc"] : '#fff'); … … 472 472 cursor:pointer; 473 473 background-color: #7e7e7e; 474 -moz-transform: rotate(45deg); 474 -moz-transform: rotate(45deg); 475 475 -o-transform: rotate(45deg); 476 476 -ms-transform: rotate(45deg); … … 503 503 } 504 504 .optinpointf .optinpointf-close-button:hover { 505 background-color: #fff; 505 background-color: #fff; 506 506 -ms-transform: rotate(225deg); 507 507 -webkit-transform: rotate(225deg); 508 -moz-transform: rotate(225deg); 509 -o-transform: rotate(225deg); 510 transform: rotate(225deg); 511 } 508 -moz-transform: rotate(225deg); 509 -o-transform: rotate(225deg); 510 transform: rotate(225deg); 511 } 512 512 513 513 .optinpointf .optinpointf-close-button:hover::after { … … 550 550 'type' => 1 551 551 ); 552 $this->stfield($form['fields'],$set); 552 $this->stfield($form['fields'],$set); 553 553 ?> 554 554 <div class="optinpoint-subs-button<?php echo (isset($theme['button_i']) && $theme['button_i'] != 'inone' && $theme['button_i'] != 'idef')? ' subsicon' : '';?>"></div> -
optinpoint-lite/trunk/public/includes/flipbox1.php
r1719216 r1828212 1 <?php 1 <?php 2 2 $theme['msg'] = htmlspecialchars_decode($theme['msg']); 3 3 $this->social=true; … … 13 13 -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.785, 0.135, 0.15, 0.86); 14 14 transition: transform 0.3s cubic-bezier(0.785, 0.135, 0.15, 0.86); 15 <?php 15 <?php 16 16 if(isset($theme["bg_c"])){ 17 17 echo 'background:'.$theme["bg_c"].';'; … … 43 43 text-align: center; 44 44 float: left; 45 <?php 45 <?php 46 46 if(isset($theme["heading_f"]['f'])){ 47 47 array_push($oppo_font, $theme["heading_f"]['f']); … … 118 118 outline:0; 119 119 font-size: 16px; 120 <?php 120 <?php 121 121 if(isset($theme["tbox_f"]['f'])){ 122 122 array_push($oppo_font, $theme["tbox_f"]['f']); … … 169 169 font-weight:500; 170 170 white-space: nowrap; 171 <?php 171 <?php 172 172 if(isset($theme["tbox_f"]['f'])){ 173 173 array_push($oppo_font, $theme["tbox_f"]['f']); … … 217 217 } 218 218 .optinpointf .optinpoint-item{ 219 <?php 219 <?php 220 220 $pline = 2; 221 221 if(isset($pline))echo 'width:'.(100/$pline).'%;'; … … 265 265 background-image: <?php 266 266 $tfi='ch6'; 267 267 268 268 $tfc='#000'; 269 269 if(isset($theme["check_ic"])){$tfc=$theme["check_ic"];} … … 310 310 } 311 311 .optinpointf input[type="text"]:focus { 312 <?php 312 <?php 313 313 if(isset($theme["tbox_bor"]) && isset($theme["tbox_borc"])){ 314 314 echo ' border:'.$theme["tbox_bor"].'px solid '.$theme["tbox_borc"].';'; … … 372 372 } 373 373 .optinpointf .optinpoint-subs-button:hover{ 374 background:#8BD331; 374 background:#8BD331; 375 375 color:#fff; 376 <?php 376 <?php 377 377 if(isset($theme["button_bch"])){ 378 378 echo 'background:'.$theme["button_bch"].';'; 379 379 } 380 else{ ?> 380 else{ ?> 381 381 background-image: -webkit-linear-gradient(top,#4d90fe,#4787ed); 382 382 background-image: -moz-linear-gradient(top,#4d90fe,#4787ed); … … 404 404 left: 0; 405 405 pointer-events: none; 406 <?php 406 <?php 407 407 if($theme["button_i"] != 'inone' && $theme["button_i"] != 'idef'){ 408 408 $col = ((isset($theme["button_fc"]))? $theme["button_fc"] : '#fff'); … … 493 493 'type' => 1 494 494 ); 495 $this->stfield($form['fields'],$set); 495 $this->stfield($form['fields'],$set); 496 496 ?> 497 497 <div class="optinpoint-subs-button<?php echo (isset($theme['button_i']) && $theme['button_i'] != 'inone' && $theme['button_i'] != 'idef')? ' subsicon' : '';?>"></div> -
optinpoint-lite/trunk/public/includes/flipbox8.php
r1719216 r1828212 1 <?php 1 <?php 2 2 $theme['msg'] = htmlspecialchars_decode($theme['msg']); 3 3 $this->social=true; … … 16 16 -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.785, 0.135, 0.15, 0.86); 17 17 transition: transform 0.3s cubic-bezier(0.785, 0.135, 0.15, 0.86); 18 <?php 18 <?php 19 19 if(isset($theme["bg_c"])){ 20 20 echo 'background:'.$theme["bg_c"].';'; … … 39 39 color: #fff; 40 40 font-size: 20px; 41 <?php 41 <?php 42 42 if(isset($theme["heading_f"]['f'])){ 43 43 array_push($oppo_font, $theme["heading_f"]['f']); … … 124 124 display: block; 125 125 border: 1px solid #efefef; 126 <?php 126 <?php 127 127 if(isset($theme["tbox_f"]['f'])){ 128 128 array_push($oppo_font, $theme["tbox_f"]['f']); … … 178 178 padding: 0 10px; 179 179 white-space: nowrap; 180 <?php 180 <?php 181 181 if(isset($theme["tbox_f"]['f'])){ 182 182 array_push($oppo_font, $theme["tbox_f"]['f']); … … 231 231 } 232 232 .optinpointf .optinpoint-item{ 233 <?php 233 <?php 234 234 $pline = 2; 235 235 if(isset($pline))echo 'width:'.(100/$pline).'%;'; … … 279 279 background-image: <?php 280 280 $tfi='ch2'; 281 281 282 282 $tfc='#000'; 283 283 if(isset($theme["check_ic"])){$tfc=$theme["check_ic"];} … … 370 370 } 371 371 .optinpointf .optinpoint-subs-button:hover{ 372 background-color: #50B059; 373 <?php 372 background-color: #50B059; 373 <?php 374 374 if(isset($theme["button_bch"])){ 375 375 echo 'background:'.$theme["button_bch"].';'; … … 393 393 left: 0; 394 394 pointer-events: none; 395 <?php 395 <?php 396 396 397 397 if($theme["button_i"] != 'inone' && $theme["button_i"] != 'idef'){ … … 585 585 <?php echo isset($theme['heading'])?'<h3>'.$theme['heading'].'</h3>' : '<h3>Subscribe Now</h3>';?> 586 586 <div class="optinpointf-close-button"></div> 587 587 588 588 <?php if(isset($theme['msg'])) echo '<div class="optinpoint_para">'.$theme['msg'].'</div>';?> 589 589 <form action="" method="post"> … … 595 595 'type' => 1 596 596 ); 597 $this->stfield($form['fields'],$set); 597 $this->stfield($form['fields'],$set); 598 598 ?> 599 599 <div class="optinpoint-subsc"> 600 600 <div class="optinpoint-subs-button<?php echo (isset($theme['button_i']) && $theme['button_i'] != 'inone' && $theme['button_i'] != 'idef')? ' subsicon' : '';?>"></div> 601 <div class="optinpoint-signal"><?php 601 <div class="optinpoint-signal"><?php 602 602 echo $this->getSpin('3','optinpointf',isset($theme["spinner_c"])?$theme["spinner_c"]:'#000');?></div> 603 603 604 604 </div> 605 605 606 606 </div> 607 607 -
optinpoint-lite/trunk/public/includes/flipbox9.php
r1719216 r1828212 1 <?php 1 <?php 2 2 $theme['msg'] = htmlspecialchars_decode($theme['msg']); 3 3 ?> … … 16 16 -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.785, 0.135, 0.15, 0.86); 17 17 transition: transform 0.3s cubic-bezier(0.785, 0.135, 0.15, 0.86); 18 <?php 18 <?php 19 19 if(isset($theme["bg_c"])){ 20 20 echo 'background:'.$theme["bg_c"].';'; … … 42 42 padding-top:18px; 43 43 font-size: 20px; 44 <?php 44 <?php 45 45 if(isset($theme["heading_f"]['f'])){ 46 46 array_push($oppo_font, $theme["heading_f"]['f']); … … 138 138 display: block; 139 139 border: 1px solid #efefef; 140 <?php 140 <?php 141 141 if(isset($theme["tbox_f"]['f'])){ 142 142 array_push($oppo_font, $theme["tbox_f"]['f']); … … 193 193 padding: 0 10px; 194 194 white-space: nowrap; 195 <?php 195 <?php 196 196 if(isset($theme["tbox_f"]['f'])){ 197 197 array_push($oppo_font, $theme["tbox_f"]['f']); … … 243 243 } 244 244 .optinpointf .optinpoint-item{ 245 <?php 245 <?php 246 246 $pline = 2; 247 247 if(isset($pline))echo 'width:'.(100/$pline).'%;'; … … 291 291 background-image: <?php 292 292 $tfi='ch2'; 293 293 294 294 $tfc='#000'; 295 295 if(isset($theme["check_ic"])){$tfc=$theme["check_ic"];} … … 383 383 } 384 384 .optinpointf .optinpoint-subs-button:hover{ 385 background-color: #FA0B38; 386 <?php 385 background-color: #FA0B38; 386 <?php 387 387 if(isset($theme["button_bch"])){ 388 388 echo 'background:'.$theme["button_bch"].';'; … … 408 408 left: 0; 409 409 pointer-events: none; 410 <?php 410 <?php 411 411 412 412 if($theme["button_i"] != 'inone' && $theme["button_i"] != 'idef'){ … … 509 509 <div class="optinpoint-reset optinpointf optinpointf-close"> 510 510 <?php if(isset($theme['heading'])) echo '<h3>'.$theme['heading'].'</h3>';?> 511 511 512 512 <div class="optinpointf-close-button"></div> 513 513 514 514 <?php if(isset($theme['msg'])) echo '<div class="optinpoint_para">'.$theme['msg'].'</div>';?> 515 515 <form action="" method="post"> … … 523 523 $this->stfield($form['fields'],$set); 524 524 ?> 525 525 526 526 <div style="clear:both"></div> 527 527 -
optinpoint-lite/trunk/public/includes/flipbox_content.php
r1702811 r1828212 1 <?php 1 <?php 2 2 $settings = $this->settings; 3 3 $cmeta = $this->cmeta; -
optinpoint-lite/trunk/public/includes/litebox0.php
r1719216 r1828212 1 <?php 1 <?php 2 2 $theme['msg'] = htmlspecialchars_decode($theme['msg']); 3 3 ?><style> … … 63 63 border-bottom:1px solid #fff; 64 64 width:60%; 65 <?php 65 <?php 66 66 if(isset($theme["heading_f"]['f'])){ 67 67 array_push($oppo_font, $theme["heading_f"]['f']); … … 90 90 line-height:26px; 91 91 color:#fff; 92 <?php 92 <?php 93 93 if(isset($theme["msg_f"]['f'])){ 94 94 array_push($oppo_font, $theme["msg_f"]['f']); … … 103 103 #optinpoint form { 104 104 position: relative; 105 width:55%; 106 margin: 0 auto; 105 107 } 106 108 107 109 #optinpoint .optinpoint-field{ 108 110 position: relative; 109 width:55%;110 margin: 0 auto 12px auto; 111 <?php 111 margin-bottom: 12px; 112 113 <?php 112 114 if(isset($theme["tbox_w"])){ 113 115 echo 'width:'.$theme["tbox_w"].'px;'; … … 126 128 left: 0; 127 129 pointer-events: none; 128 <?php 130 <?php 129 131 if(isset($theme["tbox_h"])){ 130 132 echo 'width:'.$theme["tbox_h"].'px;'; … … 136 138 #optinpoint .oppo-ficon .inputlabel{ 137 139 padding-left: 50px; 138 <?php 140 <?php 139 141 if(isset($theme["tbox_h"])){ 140 142 echo 'padding-left:'.$theme["tbox_h"].'px;'; … … 167 169 box-sizing: border-box; 168 170 transition: all 0.5s ease; 169 <?php 171 <?php 170 172 if(isset($theme["tbox_f"]['f'])){ 171 173 array_push($oppo_font, $theme["tbox_f"]['f']); … … 209 211 background: no-repeat center; 210 212 background-image: <?=$this->getIcon('dd',16,'#000');?>; 211 <?php 213 <?php 212 214 if(isset($theme["tbox_h"])){ 213 215 echo 'width:'.$theme["tbox_h"].'px;'; … … 228 230 font-weight:500; 229 231 white-space: nowrap; 230 <?php 232 <?php 231 233 if(isset($theme["tbox_f"]['f'])){ 232 234 array_push($oppo_font, $theme["tbox_f"]['f']); … … 253 255 #optinpoint input[type="text"].oppoerror{ 254 256 border-color: red; 257 } 258 #optinpoint .optinpoint-field.optinpoint-check, 259 #optinpoint .optinpoint-field.optinpoint-radio{ 260 clear: both; 255 261 } 256 262 #optinpoint .optinpoint-check *, … … 279 285 } 280 286 #optinpoint .optinpoint-item{ 281 <?php 287 <?php 282 288 $pline = 2; 283 289 if(isset($pline))echo 'width:'.(100/$pline).'%;'; … … 373 379 374 380 #optinpoint .optinpoint-subs-button{ 375 width: 40%;381 width:80%; 376 382 height:45px; 377 383 cursor: pointer; … … 444 450 background:#8BD331; 445 451 color:#fff; 446 <?php 452 <?php 447 453 if(isset($theme["button_bch"])){ 448 454 echo 'background-color:'.$theme["button_bch"].';'; … … 466 472 #optinpoint .optinpoint-subs-button.subsicon:before{ 467 473 padding-left: 45px; 468 <?php 474 <?php 469 475 if(isset($theme["button_h"])){ 470 476 echo 'padding-left:'.$theme["button_h"].'px;'; … … 480 486 left: 0; 481 487 pointer-events: none; 482 <?php 488 <?php 483 489 if(isset($theme["button_h"])){ 484 490 echo 'width:'.$theme["button_h"].'px;'; … … 532 538 top: 2em; 533 539 right:2em; 534 -moz-transform: rotate(45deg); 540 -moz-transform: rotate(45deg); 535 541 -o-transform: rotate(45deg); 536 542 -ms-transform: rotate(45deg); … … 565 571 } 566 572 .optinpoint-overlay-bg .optinpoint-close-button:hover { 567 background-color: #fff; 573 background-color: #fff; 568 574 -ms-transform: rotate(225deg); 569 575 -webkit-transform: rotate(225deg); 570 -moz-transform: rotate(225deg); 571 -o-transform: rotate(225deg); 572 transform: rotate(225deg); 573 } 576 -moz-transform: rotate(225deg); 577 -o-transform: rotate(225deg); 578 transform: rotate(225deg); 579 } 574 580 575 581 .optinpoint-overlay-bg .optinpoint-close-button:hover::after { … … 654 660 655 661 #optinpoint .optinpoint-field { 656 width:100%;657 662 margin-bottom:7px; 658 663 } 659 664 660 .optinpoint-overlay-bg #optinpoint .optinpoint-subs-button { 661 width:100%; 662 } 665 .optinpoint-overlay-bg #optinpoint .optinpoint-subs-button, 663 666 .optinpoint-overlay-bg #optinpoint h3 { 664 667 width: 100%; … … 667 670 668 671 @media only screen and (max-width:600px) { 672 673 #optinpoint form{ 674 width:100%; 675 } 669 676 670 677 .optinpoint-overlay-bg #optinpoint h3 { … … 716 723 } 717 724 } 718 @media only screen 725 @media only screen 726 and (min-width : 480px) 719 727 and (max-width : 650px) 720 728 and (orientation : landscape) { … … 724 732 -ms-transform:scale(0.75) translate(-50%, -50%); 725 733 -o-transform:scale(0.75) translate(-50%, -50%); 726 transform:scale(0.75) translate(-50%, -50%); 734 transform:scale(0.75) translate(-50%, -50%); 727 735 -webkit-transform-origin:top left; 728 736 -moz-transform-origin:top left; … … 749 757 'type' => 1 750 758 ); 751 $this->stfield($form['fields'],$set); 759 $this->stfield($form['fields'],$set); 752 760 ?> 753 761 <div class="optinpoint-subs-button<?php echo (isset($theme['button_i']) && $theme['button_i'] != 'inone' && $theme['button_i'] != 'idef')? ' subsicon' : '';?>"></div> … … 757 765 echo '<div class="optinpoint-tag">'.$tagtxt.'</div>'; 758 766 }?> 759 <div class="optinpoint-signalc"><div class="optinpoint-signal"><?php 767 <div class="optinpoint-signalc"><div class="optinpoint-signal"><?php 760 768 echo $this->getSpin('1','optinpoint-main',isset($theme["spinner_c"])?$theme["spinner_c"]:'#fff');?></div></div> 761 769 </form> -
optinpoint-lite/trunk/public/includes/litebox1.php
r1719216 r1828212 1 <?php 1 <?php 2 2 $theme['msg'] = htmlspecialchars_decode($theme['msg']); 3 3 $this->social=true; … … 64 64 color: #454545; 65 65 font-size: 36px; 66 <?php 66 <?php 67 67 if(isset($theme["heading_f"]['f'])){ 68 68 array_push($oppo_font, $theme["heading_f"]['f']); … … 100 100 width:100%; 101 101 margin: 0 auto 12px auto; 102 <?php 102 <?php 103 103 if(isset($theme["tbox_w"])){ 104 104 echo 'width:'.$theme["tbox_w"].'px;'; … … 117 117 left: 0; 118 118 pointer-events: none; 119 <?php 119 <?php 120 120 if(isset($theme["tbox_h"])){ 121 121 echo 'width:'.$theme["tbox_h"].'px;'; … … 127 127 #optinpoint .oppo-ficon input[type="text"] ~ .inputlabel{ 128 128 padding-left: 62px; 129 <?php 129 <?php 130 130 if(isset($theme["tbox_h"])){ 131 131 echo 'padding-left:'.$theme["tbox_h"].'px;'; … … 152 152 outline:0; 153 153 display: block; 154 <?php 154 <?php 155 155 if(isset($theme["tbox_f"]['f'])){ 156 156 array_push($oppo_font, $theme["tbox_f"]['f']); … … 194 194 background: no-repeat center; 195 195 background-image: <?=$this->getIcon('dd',16,'#000');?>; 196 <?php 196 <?php 197 197 if(isset($theme["tbox_h"])){ 198 198 echo 'width:'.$theme["tbox_h"].'px;'; … … 214 214 padding: 0 20px; 215 215 white-space: nowrap; 216 <?php 216 <?php 217 217 if(isset($theme["tbox_f"]['f'])){ 218 218 array_push($oppo_font, $theme["tbox_f"]['f']); … … 262 262 } 263 263 #optinpoint .optinpoint-item{ 264 <?php 264 <?php 265 265 $pline = 2; 266 266 if(isset($pline))echo 'width:'.(100/$pline).'%;'; … … 310 310 background-image: <?php 311 311 $tfi='ch6'; 312 312 313 313 $tfc='#000'; 314 314 if(isset($theme["check_ic"])){$tfc=$theme["check_ic"];} … … 424 424 <?php if(isset($theme["button_fch"])){ 425 425 echo 'color:'.$theme["button_fch"].';'; 426 } 426 } 427 427 if(isset($theme["button_bch"])){ 428 428 echo 'background-color:'.$theme["button_bch"].';'; … … 437 437 #optinpoint .optinpoint-subs-button.subsicon:before{ 438 438 padding-left: 56px; 439 <?php 439 <?php 440 440 if(isset($theme["button_w"])){ 441 441 echo 'padding-left:'.$theme["button_h"].'px;'; … … 451 451 left: 0; 452 452 pointer-events: none; 453 <?php 453 <?php 454 454 if(isset($theme["button_h"])){ 455 455 echo 'width:'.$theme["button_h"].'px;'; … … 532 532 url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIxMjBweCIgaGVpZ2h0PSIxMjBweCIgdmlld0JveD0iMCAwIDEyMCAxMjAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDEyMCAxMjAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxnPjxwYXRoIG9wYWNpdHk9IjAuMiIgZmlsbD0iIzAyMDIwMiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAgICAiIGQ9Ik0xMTkuNiw5Mi45YzAsNC40LTMuNiw3LjktOCw3LjloLTEwMWMtNC40LDAtOC0zLjUtOC03LjlWMjQuMmMwLTQuNCwzLjYtNy45LDgtNy45aDEwMWM0LjQsMCw4LDMuNSw4LDcuOVY5Mi45eiIvPjxwYXRoIGZpbGw9IiNDNjMyM0QiIGQ9Ik0xLjgsMjljLTAuMywwLjgtMC40LDEuOC0wLjQsMi43djU4LjljMCw1LjEsNC4xLDkuMiw5LjIsOS4yaDk5YzUuMSwwLDkuMi00LjEsOS4yLTkuMlYzMS43YzAtMC45LTAuMi0xLjgtMC40LTIuN0gxLjh6Ii8+PGxpbmVhckdyYWRpZW50IGlkPSJTVkdJRF8xXyIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIHgxPSIyNDIuMTYxNCIgeTE9Ii0yOTcuMDQyIiB4Mj0iMzU1LjE3MzgiIHkyPSItMjk3LjA0MiIgZ3JhZGllbnRUcmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAtMSAtMjM3LjYgLTIzOC44NCkiPjxzdG9wICBvZmZzZXQ9IjAiIHN0eWxlPSJzdG9wLWNvbG9yOiNGRkZGRkY7c3RvcC1vcGFjaXR5OjAiLz48c3RvcCAgb2Zmc2V0PSIwLjE0MzQiIHN0eWxlPSJzdG9wLWNvbG9yOiNENEQ0RDQ7c3RvcC1vcGFjaXR5OjAuMTI5MSIvPjxzdG9wICBvZmZzZXQ9IjAuNDYiIHN0eWxlPSJzdG9wLWNvbG9yOiM3QTdBN0E7c3RvcC1vcGFjaXR5OjAuNDE0Ii8+PHN0b3AgIG9mZnNldD0iMC43MTgiIHN0eWxlPSJzdG9wLWNvbG9yOiMzODM4Mzg7c3RvcC1vcGFjaXR5OjAuNjQ2MiIvPjxzdG9wICBvZmZzZXQ9IjAuOTA0MiIgc3R5bGU9InN0b3AtY29sb3I6IzEwMTAxMDtzdG9wLW9wYWNpdHk6MC44MTM4Ii8+PHN0b3AgIG9mZnNldD0iMSIgc3R5bGU9InN0b3AtY29sb3I6IzAwMDAwMDtzdG9wLW9wYWNpdHk6MC45Ii8+PC9saW5lYXJHcmFkaWVudD48cGF0aCBvcGFjaXR5PSI2LjAwMDAwMGUtMDAyIiBmaWxsPSJ1cmwoI1NWR0lEXzFfKSIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAgICAiIGQ9Ik0xMTIuNiw5NC40TDkuNCwyMy40Yy0xLjktMS4zLTMuMy0yLjktNC4yLTQuOGMtMC40LDEuMS0wLjcsMi4zLTAuNywzLjV2NjYuNWMwLDUuMSw0LjEsOS4yLDkuMiw5LjJoOTljMS44LDAsMy40LTAuNSw0LjgtMS40QzExNS45LDk2LjEsMTE0LjEsOTUuNSwxMTIuNiw5NC40eiIvPjxwYXRoIGZpbGw9IiNENkQ2RDYiIGQ9Ik0xMC44LDk2LjNsMTAzLjItNzFjMS45LTEuMywzLjMtMi45LDQuMi00LjhjMC40LDEuMSwwLjcsMi4zLDAuNywzLjV2NjYuNWMwLDUuMS00LjEsOS4yLTkuMiw5LjJoLTk5Yy0xLjgsMC0zLjQtMC41LTQuOC0xLjRDNy41LDk4LjEsOS4zLDk3LjMsMTAuOCw5Ni4zeiIvPjxwYXRoIGZpbGw9IiNFRkVGRUYiIGQ9Ik0xMDguOSw5Ni43TDUuNywyNS43Yy0xLjktMS4zLTMuMy0yLjktNC4yLTQuOGMtMC40LDEuMS0wLjcsMi4zLTAuNywzLjV2NjYuNWMwLDUuMSw0LjEsOS4yLDkuMiw5LjJoOTljMS44LDAsMy40LTAuNSw0LjgtMS40QzExMi4xLDk4LjUsMTEwLjQsOTcuNywxMDguOSw5Ni43eiIvPjxwYXRoIG9wYWNpdHk9IjAuOCIgZmlsbD0iI0U1RTVFNSIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAgICAiIGQ9Ik0xMDguOSw5Ni43TDU5LjYsNjIuN0wxMC4zLDk2LjdjLTEuNSwxLjEtMy4zLDEuOC00LjksMi4xYzEuNCwwLjgsMywxLjQsNC44LDEuNGg0My43aDU1LjJjMS44LDAsMy40LTAuNSw0LjgtMS40QzExMi4xLDk4LjUsMTEwLjQsOTcuNywxMDguOSw5Ni43eiIvPjxwYXRoIG9wYWNpdHk9IjAuMSIgZmlsbD0iIzAyMDIwMiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAgICAiIGQ9Ik0xMTguNywyNS4zYzAtMC42LTAuMS0xLjEtMC4yLTEuNmMwLjMtMC4xLDAuNy0wLjIsMS0wLjNjLTAuNC0wLjItMC44LTAuNC0xLjItMC43Yy0xLjEtMy44LTQuNi02LjUtOC43LTYuNUgxMS4yYy00LjMsMC03LjksMi45LTguOCw2LjljLTAuMiwwLjEtMC40LDAuMi0wLjYsMC4zYzAuMiwwLjEsMC4zLDAuMSwwLjQsMC4xYy0wLjEsMC42LTAuMiwxLjItMC4yLDEuN2MwLDAsMC4yLTAuNCwwLjctMS41YzAuOSwxLjgsMi4zLDMuNCw0LjEsNC42bDUzLjUsMzYuNGw1My41LTM2LjNjMS44LTEuMiwzLjItMi45LDQuMS00LjZoMC4xQzExOC41LDI0LjksMTE4LjcsMjUuMywxMTguNywyNS4zeiIvPjxwYXRoIGZpbGw9IiNFOEU4RTgiIGQ9Ik0xMDkuNiwxNC42SDEwLjNjLTUuMSwwLTkuMiw0LjEtOS4yLDkuMmMwLDAsMC4yLTAuNCwwLjctMS41QzIuNywyNC4xLDQuMSwyNS43LDYsMjdsNTMuOSwzNy4ybDU0LTM3LjFjMS45LTEuMywzLjMtMi45LDQuMi00LjhjMC40LDEuMSwwLjcsMS41LDAuNywxLjVDMTE4LjcsMTguOCwxMTQuNiwxNC42LDEwOS42LDE0LjZ6Ii8+PC9nPjwvc3ZnPg==);<?php } ?> 533 533 background-repeat: no-repeat; 534 background-position: center; 534 background-position: center; 535 535 box-sizing: content-box; 536 536 } … … 758 758 position:relative; 759 759 } 760 @media only screen 760 @media only screen 761 761 and (max-width : 1024px) { 762 762 .optinpoint-overlay-bg #optinpoint-main{ … … 774 774 } 775 775 } 776 @media only screen 776 @media only screen 777 777 and (max-width : 768px) 778 778 and (orientation : portrait) { … … 860 860 } 861 861 } 862 @media only screen 862 @media only screen 863 and (min-width : 480px) 863 864 and (max-width : 768px) 864 865 and (orientation : landscape) { … … 868 869 -ms-transform:scale(0.5) translate(-50%, -50%); 869 870 -o-transform:scale(0.5) translate(-50%, -50%); 870 transform:scale(0.5) translate(-50%, -50%); 871 transform:scale(0.5) translate(-50%, -50%); 871 872 -webkit-transform-origin:top left; 872 873 -moz-transform-origin:top left; … … 876 877 } 877 878 } 878 @media only screen 879 @media only screen 879 880 only screen and (-webkit-min-device-pixel-ratio : 1.5), 880 881 only screen and (min-device-pixel-ratio : 1.5) { … … 884 885 } 885 886 } 886 @media only screen 887 @media only screen 887 888 and (max-width : 480px) 888 889 and (orientation : portrait) { … … 900 901 #optinpoint h3{ 901 902 margin-bottom: 10px; 902 }903 }904 @media only screen905 and (max-device-width : 480px)906 and (orientation : landscape) {907 .optinpoint-overlay-bg #optinpoint-main{908 -webkit-transform:scale(0.25) translate(-50%, -50%);909 -moz-transform:scale(0.25) translate(-50%, -50%);910 -ms-transform:scale(0.25) translate(-50%, -50%);911 -o-transform:scale(0.25) translate(-50%, -50%);912 transform:scale(0.25) translate(-50%, -50%);913 903 } 914 904 } … … 942 932 'type' => 1 943 933 ); 944 $this->stfield($form['fields'],$set); 934 $this->stfield($form['fields'],$set); 945 935 ?> 946 936 <div class="optinpoint-subs-button<?php echo (isset($theme['button_i']) && $theme['button_i'] != 'inone' && $theme['button_i'] != 'idef')? ' subsicon' : '';?>"></div> … … 950 940 echo '<div class="optinpoint-tag">'.$tagtxt.'</div>'; 951 941 }?> 952 <div class="optinpoint-signalc"><div class="optinpoint-signal"><?php 942 <div class="optinpoint-signalc"><div class="optinpoint-signal"><?php 953 943 echo $this->getSpin('7','optinpoint-main',isset($theme["spinner_c"])?$theme["spinner_c"]:'#000');?></div></div> 954 944 </form> -
optinpoint-lite/trunk/public/includes/litebox8.php
r1719216 r1828212 1 <?php 1 <?php 2 2 $theme['msg'] = htmlspecialchars_decode($theme['msg']); 3 3 $this->social=true; … … 49 49 color: #fff; 50 50 font-size: 20px; 51 <?php 51 <?php 52 52 if(isset($theme["heading_f"]['f'])){ 53 53 array_push($oppo_font, $theme["heading_f"]['f']); … … 109 109 left: 0; 110 110 pointer-events: none; 111 <?php 111 <?php 112 112 if(isset($theme["tbox_h"])){ 113 113 echo 'width:'.$theme["tbox_h"].'px;'; … … 119 119 #optinpoint .optinpoint-field.oppo-ficon .inputlabel{ 120 120 padding-left: 40px; 121 <?php 121 <?php 122 122 if(isset($theme["tbox_h"])){ 123 123 echo 'padding-left:'.$theme["tbox_h"].'px;'; … … 147 147 display: block; 148 148 border: 1px solid #efefef; 149 <?php 149 <?php 150 150 if(isset($theme["tbox_f"]['f'])){ 151 151 array_push($oppo_font, $theme["tbox_f"]['f']); … … 193 193 background: no-repeat center; 194 194 background-image: <?=$this->getIcon('dd',16,'#000');?>; 195 <?php 195 <?php 196 196 if(isset($theme["tbox_h"])){ 197 197 echo 'width:'.$theme["tbox_h"].'px;'; … … 213 213 padding: 0 10px; 214 214 white-space: nowrap; 215 <?php 215 <?php 216 216 if(isset($theme["tbox_f"]['f'])){ 217 217 array_push($oppo_font, $theme["tbox_f"]['f']); … … 242 242 #optinpoint .optinpoint-field.optinpoint-radio{ 243 243 text-align: left; 244 clear: both; 244 245 } 245 246 #optinpoint .optinpoint-check *, … … 266 267 } 267 268 #optinpoint .optinpoint-item{ 268 <?php 269 <?php 269 270 $pline = 2; 270 271 if(isset($pline))echo 'width:'.(100/$pline).'%;'; … … 314 315 background-image: <?php 315 316 $tfi='ch2'; 316 317 317 318 $tfc='#000'; 318 319 if(isset($theme["check_ic"])){$tfc=$theme["check_ic"];} … … 417 418 <?php if(isset($theme["button_fch"])){ 418 419 echo 'color:'.$theme["button_fch"].';'; 419 } 420 } 420 421 if(isset($theme["button_bch"])){ 421 422 echo 'background-color:'.$theme["button_bch"].';'; 422 423 }?> 423 424 } 424 #optinpoint .optinpoint-subsc{position: relative; }425 #optinpoint .optinpoint-subsc{position: relative;max-width: 350px;margin: 0 auto;clear: both;} 425 426 #optinpoint .optinpoint-subs-button.subsicon:before{ 426 427 padding-left: 42px; 427 <?php 428 <?php 428 429 if(isset($theme["button_w"])){ 429 430 echo 'padding-left:'.$theme["button_h"].'px;'; … … 439 440 left: 0; 440 441 pointer-events: none; 441 <?php 442 <?php 442 443 if(isset($theme["button_h"])){ 443 444 echo 'width:'.$theme["button_h"].'px;'; … … 660 661 height: 100%; 661 662 } 662 663 @media only screen and (max-device-width : 750px) and (orientation : landscape) { 663 @media only screen 664 and (min-width : 480px) 665 and (max-width : 750px) 666 and (orientation : landscape) { 664 667 .optinpoint-overlay-bg #optinpoint-main{ 665 668 -webkit-transform:translate(-50%, -50%) scale(0.8); … … 686 689 'type' => 1 687 690 ); 688 $this->stfield($form['fields'],$set); 691 $this->stfield($form['fields'],$set); 689 692 ?> 690 693 <div class="optinpoint-subsc"> 691 694 <div class="optinpoint-subs-button<?php echo (isset($theme['button_i']) && $theme['button_i'] != 'inone' && $theme['button_i'] != 'idef')? ' subsicon' : '';?>"></div> 692 <div class="optinpoint-signal"><?php 695 <div class="optinpoint-signal"><?php 693 696 echo $this->getSpin('3','optinpoint-main',isset($theme["spinner_c"])?$theme["spinner_c"]:'#000');?></div> 694 697 695 698 </div> 696 699 <?php if(isset($theme['tag_en'])){ … … 710 713 <div class="optinpoint-soc optinpoint-ms"></div> 711 714 </div> 712 715 713 716 </div> 714 717 <div class="optinpoint-close-button"></div> -
optinpoint-lite/trunk/public/includes/litebox9.php
r1719216 r1828212 1 <?php 1 <?php 2 2 $theme['msg'] = htmlspecialchars_decode($theme['msg']); 3 3 ?><style type="text/css"> … … 56 56 color: #F4233C; 57 57 font-size: 24px; 58 <?php 58 <?php 59 59 if(isset($theme["heading_f"]['f'])){ 60 60 array_push($oppo_font, $theme["heading_f"]['f']); … … 110 110 margin: 0 auto 10px auto; 111 111 text-align: left; 112 <?php 112 <?php 113 113 if(isset($theme["tbox_w"])){ 114 114 echo 'width:'.$theme["tbox_w"].'px;'; … … 127 127 left: 0; 128 128 pointer-events: none; 129 <?php 129 <?php 130 130 if(isset($theme["tbox_h"])){ 131 131 echo 'width:'.$theme["tbox_h"].'px;'; … … 137 137 #optinpoint .oppo-ficon input[type="text"] ~ .inputlabel{ 138 138 padding-left: 40px; 139 <?php 139 <?php 140 140 if(isset($theme["tbox_h"])){ 141 141 echo 'padding-left:'.$theme["tbox_h"].'px;'; … … 172 172 display: block; 173 173 border: 1px solid #efefef; 174 <?php 174 <?php 175 175 if(isset($theme["tbox_f"]['f'])){ 176 176 array_push($oppo_font, $theme["tbox_f"]['f']); … … 218 218 background: no-repeat center; 219 219 background-image: <?=$this->getIcon('dd',16,'#000');?>; 220 <?php 220 <?php 221 221 if(isset($theme["tbox_h"])){ 222 222 echo 'width:'.$theme["tbox_h"].'px;'; … … 238 238 padding: 0 10px; 239 239 white-space: nowrap; 240 <?php 240 <?php 241 241 if(isset($theme["tbox_f"]['f'])){ 242 242 array_push($oppo_font, $theme["tbox_f"]['f']); … … 265 265 } 266 266 267 #optinpoint .optinpoint-check, 268 #optinpoint .optinpoint-radio{ 269 clear: both; 270 } 267 271 #optinpoint .optinpoint-check *, 268 272 #optinpoint .optinpoint-radio *{ … … 288 292 } 289 293 #optinpoint .optinpoint-item{ 290 <?php 294 <?php 291 295 $pline = 2; 292 296 if(isset($pline))echo 'width:'.(100/$pline).'%;'; … … 336 340 background-image: <?php 337 341 $tfi='ch2'; 338 342 339 343 $tfc='#000'; 340 344 if(isset($theme["check_ic"])){$tfc=$theme["check_ic"];} … … 439 443 <?php if(isset($theme["button_fch"])){ 440 444 echo 'color:'.$theme["button_fch"].';'; 441 } 445 } 442 446 if(isset($theme["button_bch"])){ 443 447 echo 'background-color:'.$theme["button_bch"].';'; … … 446 450 #optinpoint .optinpoint-subs-button.subsicon:before{ 447 451 padding-left: 40px; 448 <?php 452 <?php 449 453 if(isset($theme["button_w"])){ 450 454 echo 'padding-left:'.$theme["button_h"].'px;'; … … 460 464 left: 0; 461 465 pointer-events: none; 462 <?php 466 <?php 463 467 if(isset($theme["button_h"])){ 464 468 echo 'width:'.$theme["button_h"].'px;'; … … 699 703 'sig' => $this->getSpin('8','optinpoint-main',isset($theme["spinner_c"])?$theme["spinner_c"]:'#000') 700 704 ); 701 $this->stfield($form['fields'],$set); 702 ?> 703 705 $this->stfield($form['fields'],$set); 706 ?> 707 704 708 <div style="clear:both"></div> 705 709 -
optinpoint-lite/trunk/public/includes/slide0.php
r1719216 r1828212 1 <?php 1 <?php 2 2 $theme['msg'] = htmlspecialchars_decode($theme['msg']); 3 3 ?> … … 22 22 line-height: 18px; 23 23 margin: 40px 0 20px; 24 <?php 24 <?php 25 25 if(isset($theme["heading_f"]['f'])){ 26 26 array_push($oppo_font, $theme["heading_f"]['f']); … … 48 48 line-height: 20px; 49 49 text-align: center; 50 <?php 50 <?php 51 51 if(isset($theme["msg_f"]['f'])){ 52 52 array_push($oppo_font, $theme["msg_f"]['f']); … … 63 63 width:80%; 64 64 margin: 0 auto 12px auto; 65 <?php 65 <?php 66 66 if(isset($theme["tbox_w"])){ 67 67 echo 'width:'.$theme["tbox_w"].'px;'; … … 80 80 left: 0; 81 81 pointer-events: none; 82 <?php 82 <?php 83 83 if(isset($theme["tbox_h"])){ 84 84 echo 'width:'.$theme["tbox_h"].'px;'; … … 90 90 .optinpoints .oppo-ficon .inputlabel{ 91 91 padding-left: 45px; 92 <?php 92 <?php 93 93 if(isset($theme["tbox_h"])){ 94 94 echo 'padding-left:'.$theme["tbox_h"].'px;'; … … 117 117 box-sizing: border-box; 118 118 font-size: 16px; 119 <?php 119 <?php 120 120 if(isset($theme["tbox_f"]['f'])){ 121 121 array_push($oppo_font, $theme["tbox_f"]['f']); … … 159 159 background: no-repeat center; 160 160 background-image: <?=$this->getIcon('dd',16,'#000');?>; 161 <?php 161 <?php 162 162 if(isset($theme["tbox_h"])){ 163 163 echo 'width:'.$theme["tbox_h"].'px;'; … … 178 178 font-weight:500; 179 179 white-space: nowrap; 180 <?php 180 <?php 181 181 if(isset($theme["tbox_f"]['f'])){ 182 182 array_push($oppo_font, $theme["tbox_f"]['f']); … … 229 229 } 230 230 .optinpoints .optinpoint-item{ 231 <?php 231 <?php 232 232 $pline = 2; 233 233 if(isset($pline))echo 'width:'.(100/$pline).'%;'; … … 289 289 background-image: <?php 290 290 $tfi='ch1'; 291 291 292 292 $tfc='#fff'; 293 293 if(isset($theme["check_ic"])){$tfc=$theme["check_ic"];} … … 322 322 .optinpoints input[type="text"]:focus { 323 323 border:2px solid #ddd; 324 <?php 324 <?php 325 325 if(isset($theme["tbox_bor"]) && isset($theme["tbox_borc"])){ 326 326 echo ' border:'.$theme["tbox_bor"].'px solid '.$theme["tbox_borc"].';'; … … 408 408 409 409 background:#8BD331; 410 410 411 411 color:#fff; 412 <?php 412 <?php 413 413 if(isset($theme["button_bch"])){ 414 414 echo 'background:'.$theme["button_bch"].';'; 415 415 } 416 else{ ?> 416 else{ ?> 417 417 background: -moz-linear-gradient(left, #8BD331 0%, #8bd331 100%); 418 418 background: -webkit-gradient(linear, left top, right top, color-stop(0%,#8BD331), color-stop(100%,#8bd331)); … … 432 432 .optinpoints .optinpoint-subs-button.subsicon:before{ 433 433 padding-left: 45px; 434 <?php 434 <?php 435 435 if(isset($theme["button_w"])){ 436 436 echo 'padding-left:'.$theme["button_h"].'px;'; … … 446 446 left: 0; 447 447 pointer-events: none; 448 <?php 448 <?php 449 449 if(isset($theme["button_h"])){ 450 450 echo 'width:'.$theme["button_h"].'px;'; … … 544 544 ?> 545 545 } 546 .optinpoints-trigi{ 546 .optinpoints-trigi{ 547 547 background: #000; 548 548 width:50px; … … 559 559 560 560 .optinpoints-trigi:before{ 561 <?php 561 <?php 562 562 $ti='a01'; 563 563 if(isset($theme["slider_trigger_i"])){ … … 593 593 <div class="optinpoints-resp"> 594 594 <div class="optinpoints-inner oppointselector"> 595 595 596 596 <?php if(isset($theme['heading'])) echo '<h3>'.$theme['heading'].'</h3>';?> 597 597 <?php if(isset($theme['msg'])) echo '<div class="optinpoint_para">'.$theme['msg'].'</div>';?> … … 603 603 'type' => 1 604 604 ); 605 $this->stfield($form['fields'],$set); 605 $this->stfield($form['fields'],$set); 606 606 ?> 607 607 <div class="optinpoint-subs-button<?php echo (isset($theme['button_i']) && $theme['button_i'] != 'inone' && $theme['button_i'] != 'idef')? ' subsicon' : '';?>"></div> … … 611 611 echo '<div class="optinpoint-tag">'.$tagtxt.'</div>'; 612 612 }?> 613 <div class="optinpoint-signalc"><div class="optinpoint-signal"><?php 613 <div class="optinpoint-signalc"><div class="optinpoint-signal"><?php 614 614 echo $this->getSpin('1','optinpoints',isset($theme["spinner_c"])?$theme["spinner_c"]:'#fff');?></div></div> 615 615 </form> -
optinpoint-lite/trunk/public/includes/slide1.php
r1719216 r1828212 1 <?php 1 <?php 2 2 $theme['msg'] = htmlspecialchars_decode($theme['msg']); 3 3 $this->social=true; … … 29 29 .optinpoints .optinpoint-leftpane{ 30 30 display: inline-block; 31 <?php 31 <?php 32 32 if(isset($theme["slider_dissoc"])){ 33 33 echo 'display:none;'; … … 46 46 color: #454545; 47 47 font-size: 34px; 48 <?php 48 <?php 49 49 if(isset($theme["heading_f"]['f'])){ 50 50 array_push($oppo_font, $theme["heading_f"]['f']); … … 83 83 margin: 0 auto 12px auto; 84 84 text-align: left; 85 <?php 85 <?php 86 86 if(isset($theme["tbox_w"])){ 87 87 echo 'width:'.$theme["tbox_w"].'px;'; … … 100 100 left: 0; 101 101 pointer-events: none; 102 <?php 102 <?php 103 103 if(isset($theme["tbox_h"])){ 104 104 echo 'width:'.$theme["tbox_h"].'px;'; … … 110 110 .optinpoints .oppo-ficon input[type="text"] ~ .inputlabel{ 111 111 padding-left: 45px; 112 <?php 112 <?php 113 113 if(isset($theme["tbox_h"])){ 114 114 echo 'padding-left:'.$theme["tbox_h"].'px;'; … … 139 139 outline:0; 140 140 display: block; 141 <?php 141 <?php 142 142 if(isset($theme["tbox_f"]['f'])){ 143 143 array_push($oppo_font, $theme["tbox_f"]['f']); … … 181 181 background: no-repeat center; 182 182 background-image: <?=$this->getIcon('dd',16,'#000');?>; 183 <?php 183 <?php 184 184 if(isset($theme["tbox_h"])){ 185 185 echo 'width:'.$theme["tbox_h"].'px;'; … … 201 201 padding: 0 20px; 202 202 white-space: nowrap; 203 <?php 203 <?php 204 204 if(isset($theme["tbox_f"]['f'])){ 205 205 array_push($oppo_font, $theme["tbox_f"]['f']); … … 249 249 } 250 250 .optinpoints .optinpoint-item{ 251 <?php 251 <?php 252 252 $pline = 2; 253 253 if(isset($pline))echo 'width:'.(100/$pline).'%;'; … … 298 298 background-image: <?php 299 299 $tfi='ch6'; 300 300 301 301 $tfc='#000'; 302 302 if(isset($theme["check_ic"])){$tfc=$theme["check_ic"];} … … 416 416 <?php if(isset($theme["button_fch"])){ 417 417 echo 'color:'.$theme["button_fch"].';'; 418 } 418 } 419 419 if(isset($theme["button_bch"])){ 420 420 echo 'background-color:'.$theme["button_bch"].';'; … … 429 429 .optinpoints .optinpoint-subs-button.subsicon:before{ 430 430 padding-left: 45px; 431 <?php 431 <?php 432 432 if(isset($theme["button_w"])){ 433 433 echo 'padding-left:'.$theme["button_h"].'px;'; … … 443 443 left: 0; 444 444 pointer-events: none; 445 <?php 445 <?php 446 446 if(isset($theme["button_h"])){ 447 447 echo 'width:'.$theme["button_h"].'px;'; … … 619 619 ?> 620 620 } 621 .optinpoints-trigi{ 621 .optinpoints-trigi{ 622 622 background: #0066CB; 623 623 width:50px; … … 642 642 } 643 643 .optinpoints-trigi:before{ 644 <?php 644 <?php 645 645 $ti='a04'; 646 646 if(isset($theme["slider_trigger_i"])){ … … 648 648 else if($theme["slider_trigger_i"] != 'idef')$ti=$theme["slider_trigger_i"]; 649 649 } 650 ?> 650 ?> 651 651 content:<?php echo $this->getIcon($ti,32,(isset($theme["slider_trigger_c"]))?$theme["slider_trigger_c"]:'#fff');?>; 652 652 height: 32px; … … 695 695 'type' => 1 696 696 ); 697 $this->stfield($form['fields'],$set); 697 $this->stfield($form['fields'],$set); 698 698 ?> 699 699 <div class="optinpoint-subs-button<?php echo (isset($theme['button_i']) && $theme['button_i'] != 'inone' && $theme['button_i'] != 'idef')? ' subsicon' : '';?>"></div> … … 703 703 echo '<div class="optinpoint-tag">'.$tagtxt.'</div>'; 704 704 }?> 705 <div class="optinpoint-signalc"><div class="optinpoint-signal"><?php 705 <div class="optinpoint-signalc"><div class="optinpoint-signal"><?php 706 706 echo $this->getSpin('7','optinpoints',isset($theme["spinner_c"])?$theme["spinner_c"]:'#000');?></div></div> 707 707 </form> -
optinpoint-lite/trunk/public/includes/slide8.php
r1719216 r1828212 1 <?php 1 <?php 2 2 $theme['msg'] = htmlspecialchars_decode($theme['msg']); 3 3 $this->social=true; … … 32 32 color: #fff; 33 33 font-size: 20px; 34 <?php 34 <?php 35 35 if(isset($theme["heading_f"]['f'])){ 36 36 array_push($oppo_font, $theme["heading_f"]['f']); … … 90 90 left: 0; 91 91 pointer-events: none; 92 <?php 92 <?php 93 93 if(isset($theme["tbox_h"])){ 94 94 echo 'width:'.$theme["tbox_h"].'px;'; … … 100 100 .optinpoints .optinpoint-field.oppo-ficon .inputlabel{ 101 101 padding-left: 40px; 102 <?php 102 <?php 103 103 if(isset($theme["tbox_h"])){ 104 104 echo 'padding-left:'.$theme["tbox_h"].'px;'; … … 128 128 display: block; 129 129 border: 1px solid #efefef; 130 <?php 130 <?php 131 131 if(isset($theme["tbox_f"]['f'])){ 132 132 array_push($oppo_font, $theme["tbox_f"]['f']); … … 172 172 background: no-repeat center; 173 173 background-image: <?=$this->getIcon('dd',16,'#000');?>; 174 <?php 174 <?php 175 175 if(isset($theme["tbox_h"])){ 176 176 echo 'width:'.$theme["tbox_h"].'px;'; … … 192 192 padding: 0 10px; 193 193 white-space: nowrap; 194 <?php 194 <?php 195 195 if(isset($theme["tbox_f"]['f'])){ 196 196 array_push($oppo_font, $theme["tbox_f"]['f']); … … 245 245 } 246 246 .optinpoints .optinpoint-item{ 247 <?php 247 <?php 248 248 $pline = 2; 249 249 if(isset($pline))echo 'width:'.(100/$pline).'%;'; … … 293 293 background-image: <?php 294 294 $tfi='ch2'; 295 295 296 296 $tfc='#000'; 297 297 if(isset($theme["check_ic"])){$tfc=$theme["check_ic"];} … … 397 397 <?php if(isset($theme["button_fch"])){ 398 398 echo 'color:'.$theme["button_fch"].';'; 399 } 399 } 400 400 if(isset($theme["button_bch"])){ 401 401 echo 'background-color:'.$theme["button_bch"].';'; … … 405 405 .optinpoints .optinpoint-subs-button.subsicon:before{ 406 406 padding-left: 42px; 407 <?php 407 <?php 408 408 if(isset($theme["button_w"])){ 409 409 echo 'padding-left:'.$theme["button_h"].'px;'; … … 419 419 left: 0; 420 420 pointer-events: none; 421 <?php 421 <?php 422 422 if(isset($theme["button_h"])){ 423 423 echo 'width:'.$theme["button_h"].'px;'; … … 548 548 } 549 549 .optinpoints-trigi:before{ 550 <?php 550 <?php 551 551 $ti='b05'; 552 552 if(isset($theme["slider_trigger_i"])){ … … 554 554 else if($theme["slider_trigger_i"] != 'idef')$ti=$theme["slider_trigger_i"]; 555 555 } 556 ?> 556 ?> 557 557 content:<?php echo $this->getIcon($ti,32,(isset($theme["slider_trigger_c"]))?$theme["slider_trigger_c"]:'#fff');?>; 558 558 height: 32px; … … 691 691 'type' => 1 692 692 ); 693 $this->stfield($form['fields'],$set); 693 $this->stfield($form['fields'],$set); 694 694 ?> 695 695 <div class="optinpoint-subsc"> 696 696 <div class="optinpoint-subs-button<?php echo (isset($theme['button_i']) && $theme['button_i'] != 'inone' && $theme['button_i'] != 'idef')? ' subsicon' : '';?>"></div> 697 <div class="optinpoint-signal"><?php 697 <div class="optinpoint-signal"><?php 698 698 echo $this->getSpin('3','optinpoints',isset($theme["spinner_c"])?$theme["spinner_c"]:'#000');?></div> 699 699 </div> -
optinpoint-lite/trunk/public/includes/slide9.php
r1719216 r1828212 1 <?php 1 <?php 2 2 $theme['msg'] = htmlspecialchars_decode($theme['msg']); 3 3 ?> … … 35 35 color: #F4233C; 36 36 font-size: 24px; 37 <?php 37 <?php 38 38 if(isset($theme["heading_f"]['f'])){ 39 39 array_push($oppo_font, $theme["heading_f"]['f']); … … 87 87 margin: 0 auto 10px auto; 88 88 text-align: left; 89 <?php 89 <?php 90 90 if(isset($theme["tbox_w"])){ 91 91 echo 'width:'.$theme["tbox_w"].'px;'; … … 104 104 left: 0; 105 105 pointer-events: none; 106 <?php 106 <?php 107 107 if(isset($theme["tbox_h"])){ 108 108 echo 'width:'.$theme["tbox_h"].'px;'; … … 114 114 .optinpoints .oppo-ficon input[type="text"] ~ .inputlabel{ 115 115 padding-left: 40px; 116 <?php 116 <?php 117 117 if(isset($theme["tbox_h"])){ 118 118 echo 'padding-left:'.$theme["tbox_h"].'px;'; … … 149 149 display: block; 150 150 border: 1px solid #efefef; 151 <?php 151 <?php 152 152 if(isset($theme["tbox_f"]['f'])){ 153 153 array_push($oppo_font, $theme["tbox_f"]['f']); … … 196 196 background: no-repeat center; 197 197 background-image: <?=$this->getIcon('dd',16,'#000');?>; 198 <?php 198 <?php 199 199 if(isset($theme["tbox_h"])){ 200 200 echo 'width:'.$theme["tbox_h"].'px;'; … … 216 216 padding: 0 10px; 217 217 white-space: nowrap; 218 <?php 218 <?php 219 219 if(isset($theme["tbox_f"]['f'])){ 220 220 array_push($oppo_font, $theme["tbox_f"]['f']); … … 266 266 } 267 267 .optinpoints .optinpoint-item{ 268 <?php 268 <?php 269 269 $pline = 2; 270 270 if(isset($pline))echo 'width:'.(100/$pline).'%;'; … … 314 314 background-image: <?php 315 315 $tfi='ch2'; 316 316 317 317 $tfc='#000'; 318 318 if(isset($theme["check_ic"])){$tfc=$theme["check_ic"];} … … 418 418 <?php if(isset($theme["button_fch"])){ 419 419 echo 'color:'.$theme["button_fch"].';'; 420 } 420 } 421 421 if(isset($theme["button_bch"])){ 422 422 echo 'background-color:'.$theme["button_bch"].';'; … … 425 425 .optinpoints .optinpoint-subs-button.subsicon:before{ 426 426 padding-left: 40px; 427 <?php 427 <?php 428 428 if(isset($theme["button_w"])){ 429 429 echo 'padding-left:'.$theme["button_h"].'px;'; … … 439 439 left: 0; 440 440 pointer-events: none; 441 <?php 441 <?php 442 442 if(isset($theme["button_h"])){ 443 443 echo 'width:'.$theme["button_h"].'px;'; … … 575 575 } 576 576 .optinpoints-trigi:before{ 577 <?php 577 <?php 578 578 $ti='b06'; 579 579 if(isset($theme["slider_trigger_i"])){ … … 581 581 else if($theme["slider_trigger_i"] != 'idef')$ti=$theme["slider_trigger_i"]; 582 582 } 583 ?> 583 ?> 584 584 content:<?php echo $this->getIcon($ti,32,(isset($theme["slider_trigger_c"]))?$theme["slider_trigger_c"]:'#fff');?>; 585 585 height: 32px; … … 626 626 $this->stfield($form['fields'],$set); 627 627 ?> 628 628 629 629 <div style="clear:both"></div> 630 630 -
optinpoint-lite/trunk/public/includes/slide_content.php
r1702811 r1828212 233 233 } 234 234 </style> 235 <?php 235 <?php 236 236 $settings = $this->settings; 237 237 $cmeta = $this->cmeta; -
optinpoint-lite/trunk/public/includes/topbar0.php
r1719216 r1828212 1 <?php 1 <?php 2 2 $topid = 'optinpointt' . (isset($topbar_scode)?$topbar_scode:''); 3 3 ?> … … 10 10 background: #000; 11 11 left: 0; 12 <?php 12 <?php 13 13 if(isset($theme["bg_c"])){ 14 14 echo 'background:'.$theme["bg_c"].';'; … … 42 42 white-space: nowrap; 43 43 text-align: right; 44 <?php 44 <?php 45 45 if(isset($theme["heading_f"]['f'])){ 46 46 array_push($oppo_font, $theme["heading_f"]['f']); … … 106 106 box-sizing: border-box; 107 107 font-size: 16px; 108 <?php 108 <?php 109 109 if(isset($theme["tbox_f"]['f'])){ 110 110 array_push($oppo_font, $theme["tbox_f"]['f']); … … 156 156 white-space: nowrap; 157 157 text-overflow: ellipsis; 158 <?php 158 <?php 159 159 if(isset($theme["tbox_f"]['f'])){ 160 160 array_push($oppo_font, $theme["tbox_f"]['f']); … … 271 271 } 272 272 .optinpointt .optinpoint-subs-button:hover{ 273 background:#8BD331; 273 background:#8BD331; 274 274 color:#fff; 275 <?php 275 <?php 276 276 if(isset($theme["button_bch"])){ 277 277 echo 'background:'.$theme["button_bch"].';'; 278 278 } 279 else{ ?> 279 else{ ?> 280 280 background: -moz-linear-gradient(left, #8BD331 0%, #8bd331 100%); 281 281 background: -webkit-gradient(linear, left top, right top, color-stop(0%,#8BD331), color-stop(100%,#8bd331)); … … 305 305 left: 0; 306 306 pointer-events: none; 307 <?php 307 <?php 308 308 309 309 if($theme["button_i"] != 'inone' && $theme["button_i"] != 'idef'){ … … 356 356 cursor:pointer; 357 357 background-color: #7e7e7e; 358 -moz-transform: rotate(45deg); 358 -moz-transform: rotate(45deg); 359 359 -o-transform: rotate(45deg); 360 360 -ms-transform: rotate(45deg); … … 387 387 } 388 388 .optinpointt .optinpointt-close-button:hover { 389 background-color: #fff; 389 background-color: #fff; 390 390 -ms-transform: rotate(225deg); 391 391 -webkit-transform: rotate(225deg); 392 -moz-transform: rotate(225deg); 393 -o-transform: rotate(225deg); 394 transform: rotate(225deg); 395 } 392 -moz-transform: rotate(225deg); 393 -o-transform: rotate(225deg); 394 transform: rotate(225deg); 395 } 396 396 397 397 .optinpointt .optinpointt-close-button:hover::after { … … 445 445 'type' => 1 446 446 ); 447 $this->stfield($fields,$set); 447 $this->stfield($fields,$set); 448 448 ?> 449 449 450 450 <div class="optinpoint-subs-button<?php echo (isset($theme['button_i']) && $theme['button_i'] != 'inone' && $theme['button_i'] != 'idef')? ' subsicon' : '';?>"></div> 451 451 </div> 452 <div class="optinpoint-signalc"><div class="optinpoint-signal"><?php 452 <div class="optinpoint-signalc"><div class="optinpoint-signal"><?php 453 453 echo $this->getSpin('1',$topid,isset($theme["spinner_c"])?$theme["spinner_c"]:'#fff');?></div></div> 454 454 -
optinpoint-lite/trunk/public/includes/topbar1.php
r1719216 r1828212 1 <?php 1 <?php 2 2 $theme = $optinpoint['theme']['a1']; 3 3 $topid = 'optinpointt' . (isset($topbar_scode)?$topbar_scode:''); … … 12 12 box-shadow: 0 0 20px rgba(0,0,0,.2); 13 13 left: 0; 14 <?php 14 <?php 15 15 if(isset($theme["bg_c"])){ 16 16 echo 'background:'.$theme["bg_c"].';'; … … 43 43 line-height: 30px; 44 44 white-space: nowrap; 45 <?php 45 <?php 46 46 if(isset($theme["heading_f"]['f'])){ 47 47 array_push($oppo_font, $theme["heading_f"]['f']); … … 104 104 outline:0; 105 105 font-size: 16px; 106 <?php 106 <?php 107 107 if(isset($theme["tbox_f"]['f'])){ 108 108 array_push($oppo_font, $theme["tbox_f"]['f']); … … 154 154 white-space: nowrap; 155 155 text-overflow: ellipsis; 156 <?php 156 <?php 157 157 if(isset($theme["tbox_f"]['f'])){ 158 158 array_push($oppo_font, $theme["tbox_f"]['f']); … … 259 259 } 260 260 .optinpointt .optinpoint-subs-button:hover{ 261 background:#8BD331; 261 background:#8BD331; 262 262 color:#fff; 263 <?php 263 <?php 264 264 if(isset($theme["button_bch"])){ 265 265 echo 'background:'.$theme["button_bch"].';'; 266 266 } 267 else{ ?> 267 else{ ?> 268 268 background-image: -webkit-linear-gradient(top,#4d90fe,#4787ed); 269 269 background-image: -moz-linear-gradient(top,#4d90fe,#4787ed); … … 292 292 left: 0; 293 293 pointer-events: none; 294 <?php 294 <?php 295 295 296 296 if($theme["button_i"] != 'inone' && $theme["button_i"] != 'idef'){ … … 388 388 'type' => 1 389 389 ); 390 $this->stfield($fields,$set); 390 $this->stfield($fields,$set); 391 391 ?> 392 392 <div class="optinpoint-subs-button<?php echo (isset($theme['button_i']) && $theme['button_i'] != 'inone' && $theme['button_i'] != 'idef')? ' subsicon' : '';?>"></div> -
optinpoint-lite/trunk/public/includes/topbar8.php
r1719216 r1828212 1 <?php 1 <?php 2 2 $topid = 'optinpointt' . (isset($topbar_scode)?$topbar_scode:''); 3 3 ?> … … 15 15 transition: margin 0.3s cubic-bezier(0.785, 0.135, 0.15, 0.86),transform 0.4s cubic-bezier(0.645, 0.045, 0.355, 1); 16 16 17 <?php 17 <?php 18 18 if(isset($theme["bg_c"])){ 19 19 echo 'background:'.$theme["bg_c"].';'; … … 52 52 white-space: nowrap; 53 53 line-height: 30px; 54 <?php 54 <?php 55 55 if(isset($theme["heading_f"]['f'])){ 56 56 array_push($oppo_font, $theme["heading_f"]['f']); … … 116 116 outline:0; 117 117 display: block; 118 <?php 118 <?php 119 119 if(isset($theme["tbox_f"]['f'])){ 120 120 array_push($oppo_font, $theme["tbox_f"]['f']); … … 170 170 padding: 0 10px; 171 171 white-space: nowrap; 172 <?php 172 <?php 173 173 if(isset($theme["tbox_f"]['f'])){ 174 174 array_push($oppo_font, $theme["tbox_f"]['f']); … … 290 290 left: 0; 291 291 pointer-events: none; 292 <?php 292 <?php 293 293 294 294 if($theme["button_i"] != 'inone' && $theme["button_i"] != 'idef'){ … … 403 403 'type' => 1 404 404 ); 405 $this->stfield($fields,$set); 405 $this->stfield($fields,$set); 406 406 ?> 407 407 <div class="optinpoint-subsc"> 408 408 <div class="optinpoint-subs-button<?php echo (isset($theme['button_i']) && $theme['button_i'] != 'inone' && $theme['button_i'] != 'idef')? ' subsicon' : '';?>"></div> 409 <div class="optinpoint-signal"><?php 409 <div class="optinpoint-signal"><?php 410 410 echo $this->getSpin('3',$topid,isset($theme["spinner_c"])?$theme["spinner_c"]:'#000');?></div> 411 411 </div> -
optinpoint-lite/trunk/public/includes/topbar9.php
r1719216 r1828212 1 <?php 1 <?php 2 2 $topid = 'optinpointt' . (isset($topbar_scode)?$topbar_scode:''); 3 3 ?> … … 15 15 transition: margin 0.3s cubic-bezier(0.785, 0.135, 0.15, 0.86),transform 0.4s cubic-bezier(0.645, 0.045, 0.355, 1); 16 16 17 <?php 17 <?php 18 18 if(isset($theme["bg_c"])){ 19 19 echo 'background:'.$theme["bg_c"].';'; … … 54 54 line-height: 30px; 55 55 white-space: nowrap; 56 <?php 56 <?php 57 57 if(isset($theme["heading_f"]['f'])){ 58 58 array_push($oppo_font, $theme["heading_f"]['f']); … … 135 135 display: block; 136 136 border: 1px solid #efefef; 137 <?php 137 <?php 138 138 if(isset($theme["tbox_f"]['f'])){ 139 139 array_push($oppo_font, $theme["tbox_f"]['f']); … … 191 191 text-align: left; 192 192 white-space: nowrap; 193 <?php 193 <?php 194 194 if(isset($theme["tbox_f"]['f'])){ 195 195 array_push($oppo_font, $theme["tbox_f"]['f']); … … 311 311 left: 0; 312 312 pointer-events: none; 313 <?php 313 <?php 314 314 315 315 if($theme["button_i"] != 'inone' && $theme["button_i"] != 'idef'){ … … 426 426 $this->stfield($fields,$set); 427 427 ?> 428 428 429 429 <div style="clear:both"></div></div> 430 430 </form> -
optinpoint-lite/trunk/public/includes/topbar_content.php
r1702811 r1828212 1 <?php 1 <?php 2 2 $settings = $this->settings; 3 3 $cmeta = $this->cmeta; -
optinpoint-lite/trunk/service/aw/aweber_collection.php
r1606342 r1828212 87 87 * _type 88 88 * 89 * Interpret what type of resources are held in this collection by 89 * Interpret what type of resources are held in this collection by 90 90 * analyzing the URL 91 91 * … … 138 138 * display requires an app authorized with those additional permissions. 139 139 * @access public 140 * @return AWeberCollection 140 * @return AWeberCollection 141 141 */ 142 142 public function find($search_data) { -
optinpoint-lite/trunk/service/aw/aweber_entry.php
r1606342 r1828212 47 47 48 48 /** 49 * _type 50 * 51 * Used to pull the name of this resource from its resource_type_link 49 * _type 50 * 51 * Used to pull the name of this resource from its resource_type_link 52 52 * @access protected 53 53 * @return String … … 130 130 * __get 131 131 * 132 * Used to look up items in data, and special properties like type and 132 * Used to look up items in data, and special properties like type and 133 133 * child collections dynamically. 134 134 * 135 * @param String $value Attribute being accessed 135 * @param String $value Attribute being accessed 136 136 * @access public 137 137 * @throws AWeberResourceNotImplemented … … 273 273 * _parseNamedOperation 274 274 * 275 * Turns a dumb array of json into an array of Entries. This is NOT 275 * Turns a dumb array of json into an array of Entries. This is NOT 276 276 * a collection, but simply an array of entries, as returned from a 277 277 * named operation. 278 278 * 279 * @param array $data 279 * @param array $data 280 280 * @access protected 281 281 * @return array … … 285 285 foreach($data as $entryData) { 286 286 $results[] = new AWeberEntry($entryData, str_replace($this->adapter->app->getBaseUri(), '', 287 $entryData['self_link']), $this->adapter); 287 $entryData['self_link']), $this->adapter); 288 288 } 289 289 return $results; … … 305 305 306 306 /** 307 * _getCollection 307 * _getCollection 308 308 * 309 309 * Returns the AWeberCollection object representing the given -
optinpoint-lite/trunk/service/aw/aweber_response.php
r1606342 r1828212 4 4 * AWeberResponse 5 5 * 6 * Base class for objects that represent a response from the AWeberAPI. 6 * Base class for objects that represent a response from the AWeberAPI. 7 7 * Responses will exist as one of the two AWeberResponse subclasses: 8 8 * - AWeberEntry - a single instance of an AWeber resource 9 9 * - AWeberCollection - a collection of AWeber resources 10 10 * @uses AWeberAPIBase 11 * @package 11 * @package 12 12 * @version $id$ 13 13 */ … … 37 37 /** 38 38 * __set 39 * 39 * 40 40 * Manual re-implementation of __set, allows sub classes to access 41 41 * the default behavior by using the parent:: format. … … 52 52 * __get 53 53 * 54 * PHP "MagicMethod" to allow for dynamic objects. Defers first to the 54 * PHP "MagicMethod" to allow for dynamic objects. Defers first to the 55 55 * data in $this->data. 56 56 * -
optinpoint-lite/trunk/service/aw/curl_object.php
r1606342 r1828212 5 5 * 6 6 * An object-oriented shim that wraps the standard PHP cURL library. 7 * 7 * 8 8 * This interface has been created so that cURL functionality can be stubbed 9 9 * out for unit testing, or swapped for an alternative library. 10 * 10 * 11 11 * @see curl 12 12 * @package … … 20 20 * Encapsulates curl_errno - Returns the last error number 21 21 * @param resource $ch - A cURL handle returned by init. 22 * @access public 22 * @access public 23 23 * @return the error number or 0 if no error occured. 24 24 */ … … 30 30 * Encapsulates curl_error - Return last error string 31 31 * @param resource $ch - A cURL handle returned by init. 32 * @access public 32 * @access public 33 33 * @return the error messge or '' if no error occured. 34 34 */ … … 40 40 * Encapsulates curl_exec - Perform a cURL session. 41 41 * @param resource $ch - A cURL handle returned by init. 42 * @access public 42 * @access public 43 43 * @return TRUE on success, FALSE on failure. 44 44 */ … … 50 50 * Encapsulates curl_init - Initialize a cURL session. 51 51 * @param string $url - url to use. 52 * @access public 52 * @access public 53 53 * @return cURL handle on success, FALSE on failure. 54 54 */ … … 62 62 * @param int $opt - The CURLOPT to set. 63 63 * @param mixed $value - The value to set. 64 * @access public 64 * @access public 65 65 * @return True on success, FALSE on failure. 66 66 */ … … 92 92 93 93 public function init($url) { 94 return curl_init($url); 94 return curl_init($url); 95 95 } 96 96 97 97 public function setopt ($ch , $option , $value) { 98 98 return curl_setopt($ch, $option, $value); -
optinpoint-lite/trunk/service/aw/exceptions.php
r1606342 r1828212 35 35 * 36 36 * @uses AWeberException 37 * @package 37 * @package 38 38 * @version $id$ 39 39 */ … … 57 57 * 58 58 * @uses AWeberException 59 * @package 59 * @package 60 60 * @version $id$ 61 61 */ … … 74 74 * OAuth exception, as generated by an API JSON error response 75 75 * @uses AWeberException 76 * @package 76 * @package 77 77 * @version $id$ 78 78 */ … … 89 89 * AWeberOAuthDataMissing 90 90 * 91 * Used when a specific piece or pieces of data was not found in the 91 * Used when a specific piece or pieces of data was not found in the 92 92 * response. This differs from the exception that might be thrown as 93 93 * an AWeberOAuthException when parameters are not provided because … … 96 96 * 97 97 * @uses AWeberException 98 * @package 98 * @package 99 99 * @version $id$ 100 100 */ … … 102 102 103 103 public function __construct($missing) { 104 if (!is_array($missing)) $missing = array($missing); 104 if (!is_array($missing)) $missing = array($missing); 105 105 $this->missing = $missing; 106 106 $required = join(', ', $this->missing); … … 118 118 * 119 119 * @uses AWeberException 120 * @package 120 * @package 121 121 * @version $id$ 122 122 */ -
optinpoint-lite/trunk/service/aw/oauth_application.php
r1606342 r1828212 240 240 * _addParametersToUrl 241 241 * 242 * Adds the parameters in associative array $data to the 242 * Adds the parameters in associative array $data to the 243 243 * given URL 244 * @param String $url URL 244 * @param String $url URL 245 245 * @param array $data Parameters to be added as a query string to 246 246 * the URL provided … … 432 432 * 433 433 * Public facing function to make a request 434 * 434 * 435 435 * @param mixed $method 436 436 * @param mixed $url - Reserved characters in query params MUST be escaped … … 442 442 443 443 if ($this->debug) echo "\n** {$method}: $url\n"; 444 444 445 445 switch (strtoupper($method)) { 446 446 case 'POST': -
optinpoint-lite/trunk/service/cc/ConstantContact.class.php
r1606342 r1828212 147 147 $response['data'] = json_decode(curl_exec($curl),true); 148 148 $response['http_status'] = curl_getinfo($curl, CURLINFO_HTTP_CODE); 149 149 150 150 curl_close($curl); 151 151 return (object)$response; -
optinpoint-lite/trunk/service/cc/redirect.php
r1606342 r1828212 15 15 </head> 16 16 <body> 17 17 18 18 </html> -
optinpoint-lite/trunk/service/cm/README.md
r1606342 r1828212 100 100 # If you receive '121: Expired OAuth Token', refresh the access token 101 101 if ($result->response->Code == 121) { 102 list($new_access_token, $new_expires_in, $new_refresh_token) = 102 list($new_access_token, $new_expires_in, $new_refresh_token) = 103 103 $wrap->refresh_token(); 104 104 # Save $new_access_token, $new_expires_in, and $new_refresh_token … … 125 125 126 126 Samples for creating or accessing all resources can be found in the samples directory. 127 These samples can be used as the basis for your own application and provide an outline of 128 the expected inputs for each API call. 127 These samples can be used as the basis for your own application and provide an outline of 128 the expected inputs for each API call. 129 129 130 Further documentation of the inputs and outputs of each call can be found in the 131 documentation in each of the csrest_*.php files or simply by examining the 130 Further documentation of the inputs and outputs of each call can be found in the 131 documentation in each of the csrest_*.php files or simply by examining the 132 132 var_dump results in each of the provided samples. 133 133 -
optinpoint-lite/trunk/service/cm/class/serialisation.php
r1606342 r1828212 5 5 } 6 6 7 function CS_REST_SERIALISATION_get_available($log) { 7 function CS_REST_SERIALISATION_get_available($log) { 8 8 $log->log_message('Getting serialiser', __FUNCTION__, CS_REST_LOG_VERBOSE); 9 9 if(function_exists('json_decode') && function_exists('json_encode')) { … … 11 11 } else { 12 12 return new CS_REST_ServicesJsonSerialiser($log); 13 } 13 } 14 14 } 15 15 class CS_REST_BaseSerialiser { 16 16 17 17 var $_log; 18 18 19 19 function __construct($log) { 20 20 $this->_log = $log; 21 21 } 22 22 23 23 /** 24 * Recursively ensures that all data values are utf-8 encoded. 25 * @param array $data All values of this array are checked for utf-8 encoding. 24 * Recursively ensures that all data values are utf-8 encoded. 25 * @param array $data All values of this array are checked for utf-8 encoding. 26 26 */ 27 27 function check_encoding($data) { … … 33 33 // Otherwise if the element is a string then we need to check the encoding 34 34 } else if(is_string($v)) { 35 if((function_exists('mb_detect_encoding') && mb_detect_encoding($v) !== 'UTF-8') || 35 if((function_exists('mb_detect_encoding') && mb_detect_encoding($v) !== 'UTF-8') || 36 36 (function_exists('mb_check_encoding') && !mb_check_encoding($v, 'UTF-8'))) { 37 37 // The string is using some other encoding, make sure we utf-8 encode 38 $v = utf8_encode($v); 38 $v = utf8_encode($v); 39 39 } 40 40 41 41 $data[$k] = $v; 42 42 } 43 43 } 44 44 45 45 return $data; 46 } 46 } 47 47 } 48 48 … … 62 62 return 'json'; 63 63 } 64 64 65 65 function get_type() { 66 66 return 'native'; … … 78 78 } 79 79 80 /** 81 * We've had sporadic reports of people getting ID's from create routes with the surrounding quotes present. 82 * There is no case where these should be present. Just get rid of it. 80 /** 81 * We've had sporadic reports of people getting ID's from create routes with the surrounding quotes present. 82 * There is no case where these should be present. Just get rid of it. 83 83 */ 84 84 function strip_surrounding_quotes($data) { … … 92 92 93 93 class CS_REST_ServicesJsonSerialiser extends CS_REST_BaseSerialiser { 94 94 95 95 var $_serialiser; 96 96 97 97 function __construct($log) { 98 98 parent::__construct($log); … … 107 107 return 'json'; 108 108 } 109 109 110 110 function get_type() { 111 111 return 'services_json'; 112 112 } 113 113 114 114 function serialise($data) { 115 115 if(is_null($data) || $data == '') return ''; 116 116 return $this->_serialiser->encode($this->check_encoding($data)); 117 117 } 118 118 119 119 function deserialise($text) { 120 120 $data = $this->_serialiser->decode($text); 121 121 122 122 return is_null($data) ? $text : $data; 123 123 } -
optinpoint-lite/trunk/service/cm/class/services_json.php
r1606342 r1828212 666 666 // for now 667 667 $parts = array(); 668 669 668 if (preg_match('/^\s*(["\'].*[^\\\]["\'])\s*:\s*(\S.*),?$/Uis', $slice, $parts)) { 670 669 // "name":value pair … … 759 758 } 760 759 } 761 760 762 761 function isError($data, $code = null) 763 762 { … … 779 778 } 780 779 } 781 780 782 781 ?> -
optinpoint-lite/trunk/service/cm/class/transport.php
r1606342 r1828212 17 17 } else if(CS_REST_TRANSPORT_can_use_raw_socket($requires_ssl)) { 18 18 return new CS_REST_SocketTransport($log); 19 } else { 19 } else { 20 20 $log->log_message('No transport is available', __FUNCTION__, CS_REST_LOG_ERROR); 21 21 trigger_error('No transport is available.'. 22 22 ($requires_ssl ? ' Try using non-secure (http) mode or ' : ' Please '). 23 23 'ensure the cURL extension is loaded', E_USER_ERROR); 24 } 24 } 25 25 } 26 26 function CS_REST_TRANSPORT_can_use_raw_socket($requires_ssl) { … … 34 34 35 35 return false; 36 } 36 } 37 37 class CS_REST_BaseTransport { 38 38 39 39 var $_log; 40 40 41 41 function __construct($log) { 42 42 $this->_log = $log; 43 43 } 44 45 function split_and_inflate($response, $may_be_compressed) { 44 45 function split_and_inflate($response, $may_be_compressed) { 46 46 $ra = explode("\r\n\r\n", $response); 47 47 48 48 $result = array_pop($ra); 49 49 $headers = array_pop($ra); 50 51 if($may_be_compressed && preg_match('/^Content-Encoding:\s+gzip\s+$/im', $headers)) { 50 51 if($may_be_compressed && preg_match('/^Content-Encoding:\s+gzip\s+$/im', $headers)) { 52 52 $original_length = strlen($response); 53 53 $result = gzinflate(substr($result, 10, -8)); 54 54 55 55 $this->_log->log_message('Inflated gzipped response: '.$original_length.' bytes ->'. 56 56 strlen($result).' bytes', get_class(), CS_REST_LOG_VERBOSE); 57 57 } 58 59 return array($headers, $result); 58 59 return array($headers, $result); 60 60 } 61 61 … … 73 73 function __construct($log) { 74 74 parent::__construct($log); 75 75 76 76 $curl_version = curl_version(); 77 77 $this->_curl_zlib = isset($curl_version['libz_version']); … … 93 93 $headers = array(); 94 94 $headers[] = 'Content-Type: '.$call_options['contentType']; 95 95 96 96 97 97 if (array_key_exists('authdetails', $call_options) && … … 127 127 $inflate_response = true; 128 128 } 129 129 130 130 if($call_options['protocol'] === 'https') { 131 131 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); … … 151 151 break; 152 152 } 153 153 154 154 if(count($headers) > 0) { 155 155 curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); … … 165 165 throw new CurlException(curl_error($ch), curl_errno($ch)); 166 166 } 167 167 168 168 list( $headers, $result ) = $this->split_and_inflate($response, $inflate_response); 169 169 170 170 $this->_log->log_message('API Call Info for '.$call_options['method'].' '. 171 171 curl_getinfo($ch, CURLINFO_EFFECTIVE_URL).': '.curl_getinfo($ch, CURLINFO_SIZE_UPLOAD). 172 172 ' bytes uploaded. '.curl_getinfo($ch, CURLINFO_SIZE_DOWNLOAD).' bytes downloaded'. 173 ' Total time (seconds): '.curl_getinfo($ch, CURLINFO_TOTAL_TIME), 173 ' Total time (seconds): '.curl_getinfo($ch, CURLINFO_TOTAL_TIME), 174 174 get_class($this), CS_REST_LOG_VERBOSE); 175 175 … … 258 258 if($this->_socket_wrapper->open($domain, $port)) { 259 259 $inflate_response = function_exists('gzinflate'); 260 260 261 261 $request = $this->_build_request($call_options, $host, $path, $inflate_response); 262 262 $this->_log->log_message('Sending <pre>'.$request.'</pre> down the socket', 263 263 get_class($this), CS_REST_LOG_VERBOSE); 264 264 265 265 $this->_socket_wrapper->write($request); 266 266 $response = $this->_socket_wrapper->read(); … … 269 269 $this->_log->log_message('API Call Info for '.$call_options['method'].' '. 270 270 $call_options['route'].': '.strlen($request). 271 ' bytes uploaded. '.strlen($response).' bytes downloaded', 271 ' bytes uploaded. '.strlen($response).' bytes downloaded', 272 272 get_class($this), CS_REST_LOG_VERBOSE); 273 273 274 274 list( $headers, $result ) = $this->split_and_inflate($response, $inflate_response); 275 275 276 276 $this->_log->log_message('Received headers <pre>'.$headers.'</pre>', 277 277 get_class($this), CS_REST_LOG_VERBOSE); … … 293 293 $this->_log->log_message('Failed to get HTTP status code from request headers <pre>'.$headers.'</pre>', 294 294 get_class($this), CS_REST_LOG_ERROR); 295 trigger_error('Failed to get HTTP status code from request', E_USER_ERROR); 295 trigger_error('Failed to get HTTP status code from request', E_USER_ERROR); 296 296 } 297 297 … … 325 325 if($accept_gzip) { 326 326 $request .= 327 "Accept-Encoding: gzip\n"; 327 "Accept-Encoding: gzip\n"; 328 328 } 329 329 -
optinpoint-lite/trunk/service/cm/csrest_administrators.php
r1606342 r1828212 68 68 * Updates details for an existing administrator associated with the current account 69 69 * @param string $email The email address of the administrator to be updated 70 * @param array $admin The updated administrator details to use for the update. 70 * @param array $admin The updated administrator details to use for the update. 71 71 * This array should be of the form 72 72 * array ( -
optinpoint-lite/trunk/service/cm/csrest_campaigns.php
r1606342 r1828212 112 112 113 113 /** 114 * Sends a preview of an existing campaign to the specified recipients. 115 * @param array<string> $recipients The recipients to send the preview to. 114 * Sends a preview of an existing campaign to the specified recipients. 115 * @param array<string> $recipients The recipients to send the preview to. 116 116 * @param string $personalize How to personalize the campaign content. Valid options are: 117 117 * 'Random': Choose a random campaign recipient and use their personalisation data … … 120 120 * @return CS_REST_Wrapper_Result A successful response will be empty 121 121 */ 122 function send_preview($recipients, $personalize = 'Random') { 122 function send_preview($recipients, $personalize = 'Random') { 123 123 $preview_data = array( 124 124 'PreviewRecipients' => $recipients, 125 125 'Personalize' => $personalize 126 126 ); 127 127 128 128 return $this->post_request($this->_campaigns_base_route.'sendpreview.json', $preview_data); 129 129 } … … 146 146 147 147 /** 148 * Unschedules the campaign, moving it back into the drafts. If the campaign has been sent or is 148 * Unschedules the campaign, moving it back into the drafts. If the campaign has been sent or is 149 149 * in the process of sending, this api request will fail. 150 150 * @access public … … 188 188 * } 189 189 */ 190 function get_recipients($page_number = NULL, $page_size = NULL, $order_field = NULL, 191 $order_direction = NULL) { 192 return $this->get_request_paged($this->_campaigns_base_route.'recipients.json', $page_number, 190 function get_recipients($page_number = NULL, $page_size = NULL, $order_field = NULL, 191 $order_direction = NULL) { 192 return $this->get_request_paged($this->_campaigns_base_route.'recipients.json', $page_number, 193 193 $page_size, $order_field, $order_direction, '?'); 194 194 } … … 223 223 * ) 224 224 */ 225 function get_bounces($since = '', $page_number = NULL, $page_size = NULL, $order_field = NULL, 225 function get_bounces($since = '', $page_number = NULL, $page_size = NULL, $order_field = NULL, 226 226 $order_direction = NULL) { 227 227 return $this->get_request_paged($this->_campaigns_base_route.'bounces.json?date='.urlencode($since), … … 239 239 * 'Name' => The list name 240 240 * } 241 * ), 241 * ), 242 242 * 'Segments' => array( 243 243 * { … … 327 327 * } 328 328 */ 329 function get_opens($since = '', $page_number = NULL, $page_size = NULL, $order_field = NULL, 330 $order_direction = NULL) { 331 return $this->get_request_paged($this->_campaigns_base_route.'opens.json?date='.urlencode($since), 329 function get_opens($since = '', $page_number = NULL, $page_size = NULL, $order_field = NULL, 330 $order_direction = NULL) { 331 return $this->get_request_paged($this->_campaigns_base_route.'opens.json?date='.urlencode($since), 332 332 $page_number, $page_size, $order_field, $order_direction); 333 333 } … … 367 367 * } 368 368 */ 369 function get_clicks($since = '', $page_number = NULL, $page_size = NULL, $order_field = NULL, 370 $order_direction = NULL) { 371 return $this->get_request_paged($this->_campaigns_base_route.'clicks.json?date='.urlencode($since), 369 function get_clicks($since = '', $page_number = NULL, $page_size = NULL, $order_field = NULL, 370 $order_direction = NULL) { 371 return $this->get_request_paged($this->_campaigns_base_route.'clicks.json?date='.urlencode($since), 372 372 $page_number, $page_size, $order_field, $order_direction); 373 373 } … … 400 400 * } 401 401 */ 402 function get_unsubscribes($since = '', $page_number = NULL, $page_size = NULL, $order_field = NULL, 403 $order_direction = NULL) { 404 return $this->get_request_paged($this->_campaigns_base_route.'unsubscribes.json?date='.urlencode($since), 402 function get_unsubscribes($since = '', $page_number = NULL, $page_size = NULL, $order_field = NULL, 403 $order_direction = NULL) { 404 return $this->get_request_paged($this->_campaigns_base_route.'unsubscribes.json?date='.urlencode($since), 405 405 $page_number, $page_size, $order_field, $order_direction); 406 406 } … … 432 432 * } 433 433 */ 434 function get_spam($since = '', $page_number = NULL, $page_size = NULL, $order_field = NULL, 435 $order_direction = NULL) { 436 return $this->get_request_paged($this->_campaigns_base_route.'spam.json?date='.urlencode($since), 434 function get_spam($since = '', $page_number = NULL, $page_size = NULL, $order_field = NULL, 435 $order_direction = NULL) { 436 return $this->get_request_paged($this->_campaigns_base_route.'spam.json?date='.urlencode($since), 437 437 $page_number, $page_size, $order_field, $order_direction); 438 438 } -
optinpoint-lite/trunk/service/cm/csrest_clients.php
r1606342 r1828212 161 161 */ 162 162 function get_lists_for_email($email_address) { 163 return $this->get_request($this->_clients_base_route . 163 return $this->get_request($this->_clients_base_route . 164 164 'listsforemail.json?email='.urlencode($email_address)); 165 165 } … … 206 206 * } 207 207 */ 208 function get_suppressionlist($page_number = NULL, $page_size = NULL, $order_field = NULL, 208 function get_suppressionlist($page_number = NULL, $page_size = NULL, $order_field = NULL, 209 209 $order_direction = NULL) { 210 211 return $this->get_request_paged($this->_clients_base_route.'suppressionlist.json', 210 211 return $this->get_request_paged($this->_clients_base_route.'suppressionlist.json', 212 212 $page_number, $page_size, $order_field, $order_direction, '?'); 213 213 } … … 256 256 * { 257 257 * 'ApiKey' => The clients API Key, THIS IS NOT THE CLIENT ID 258 * 'BasicDetails' => 258 * 'BasicDetails' => 259 259 * { 260 260 * 'ClientID' => The id of the client … … 287 287 * 'Currency' => The currency fees are paid in 288 288 * 'ClientPays' => Whether client client pays for themselves 289 * } 289 * } 290 290 * } 291 291 */ … … 388 388 /** 389 389 * Transfer credits to or from this client. 390 * 390 * 391 391 * @param array $transfer_data Details for the credit transfer. This array 392 392 * should be of the form: … … 418 418 /** 419 419 * returns the people associated with this client. 420 * @return CS_REST_Wrapper_Result A successful response will be an object of the form 420 * @return CS_REST_Wrapper_Result A successful response will be an object of the form 421 421 * array({ 422 422 * 'EmailAddress' => the email address of the person … … 428 428 function get_people() { 429 429 return $this->get_request($this->_clients_base_route.'people.json'); 430 } 431 430 } 431 432 432 /** 433 433 * retrieves the email address of the primary contact for this client … … 438 438 return $this->get_request($this->_clients_base_route.'primarycontact.json'); 439 439 } 440 440 441 441 /** 442 442 * assigns the primary contact for this client to the person with the specified email address -
optinpoint-lite/trunk/service/cm/csrest_general.php
r1606342 r1828212 94 94 $serialiser = NULL, 95 95 $transport = NULL) { 96 $this->CS_REST_Wrapper_Base($auth_details, $protocol, $debug_level, $host, $log, $serialiser, $transport); 96 $this->CS_REST_Wrapper_Base($auth_details, $protocol, $debug_level, $host, $log, $serialiser, $transport); 97 97 } 98 98 … … 171 171 return $this->get_request($this->_base_route.'admins.json'); 172 172 } 173 173 174 174 /** 175 175 * Retrieves the email address of the primary contact for this account -
optinpoint-lite/trunk/service/cm/csrest_lists.php
r1606342 r1828212 153 153 * ) 154 154 * @access public 155 * @return CS_REST_Wrapper_Result A successful response will be the 155 * @return CS_REST_Wrapper_Result A successful response will be the 156 156 * personalisation tag of the newly created custom field 157 157 */ … … 193 193 'Options' => $new_options 194 194 ); 195 196 return $this->put_request($this->_lists_base_route.'customfields/'.rawurlencode($key).'/options.json', 195 196 return $this->put_request($this->_lists_base_route.'customfields/'.rawurlencode($key).'/options.json', 197 197 $options); 198 198 } … … 284 284 * } 285 285 */ 286 function get_active_subscribers($added_since = '', $page_number = NULL, 286 function get_active_subscribers($added_since = '', $page_number = NULL, 287 287 $page_size = NULL, $order_field = NULL, $order_direction = NULL) { 288 289 return $this->get_request_paged($this->_lists_base_route.'active.json?date='.urlencode($added_since), 288 289 return $this->get_request_paged($this->_lists_base_route.'active.json?date='.urlencode($added_since), 290 290 $page_number, $page_size, $order_field, $order_direction); 291 291 } … … 324 324 * } 325 325 */ 326 function get_unconfirmed_subscribers($added_since = '', $page_number = NULL, 326 function get_unconfirmed_subscribers($added_since = '', $page_number = NULL, 327 327 $page_size = NULL, $order_field = NULL, $order_direction = NULL) { 328 328 329 return $this->get_request_paged($this->_lists_base_route.'unconfirmed.json?date='.urlencode($added_since), 329 return $this->get_request_paged($this->_lists_base_route.'unconfirmed.json?date='.urlencode($added_since), 330 330 $page_number, $page_size, $order_field, $order_direction); 331 331 } … … 364 364 * } 365 365 */ 366 function get_bounced_subscribers($bounced_since = '', $page_number = NULL, 366 function get_bounced_subscribers($bounced_since = '', $page_number = NULL, 367 367 $page_size = NULL, $order_field = NULL, $order_direction = NULL) { 368 369 return $this->get_request_paged($this->_lists_base_route.'bounced.json?date='.urlencode($bounced_since), 368 369 return $this->get_request_paged($this->_lists_base_route.'bounced.json?date='.urlencode($bounced_since), 370 370 $page_number, $page_size, $order_field, $order_direction); 371 371 } … … 404 404 * } 405 405 */ 406 function get_unsubscribed_subscribers($unsubscribed_since = '', $page_number = NULL, 406 function get_unsubscribed_subscribers($unsubscribed_since = '', $page_number = NULL, 407 407 $page_size = NULL, $order_field = NULL, $order_direction = NULL) { 408 409 return $this->get_request_paged($this->_lists_base_route.'unsubscribed.json?date='.urlencode($unsubscribed_since), 408 409 return $this->get_request_paged($this->_lists_base_route.'unsubscribed.json?date='.urlencode($unsubscribed_since), 410 410 $page_number, $page_size, $order_field, $order_direction); 411 411 } … … 444 444 * } 445 445 */ 446 function get_deleted_subscribers($deleted_since = '', $page_number = NULL, 446 function get_deleted_subscribers($deleted_since = '', $page_number = NULL, 447 447 $page_size = NULL, $order_field = NULL, $order_direction = NULL) { 448 449 return $this->get_request_paged($this->_lists_base_route.'deleted.json?date='.urlencode($deleted_since), 448 449 return $this->get_request_paged($this->_lists_base_route.'deleted.json?date='.urlencode($deleted_since), 450 450 $page_number, $page_size, $order_field, $order_direction); 451 451 } … … 505 505 return $this->get_request($this->_lists_base_route.'stats.json'); 506 506 } 507 507 508 508 /** 509 509 * Gets the webhooks which are currently subcribed to event on this list … … 523 523 return $this->get_request($this->_lists_base_route.'webhooks.json'); 524 524 } 525 525 526 526 /** 527 527 * Creates a new webhook based on the provided details … … 529 529 * This array should be of the form 530 530 * array( 531 * 'Events' => array<string> The events to subscribe to. Valid events are 532 * CS_REST_LIST_WEBHOOK_SUBSCRIBE, 533 * CS_REST_LIST_WEBHOOK_DEACTIVATE, 531 * 'Events' => array<string> The events to subscribe to. Valid events are 532 * CS_REST_LIST_WEBHOOK_SUBSCRIBE, 533 * CS_REST_LIST_WEBHOOK_DEACTIVATE, 534 534 * CS_REST_LIST_WEBHOOK_UPDATE 535 535 * 'Url' => string The url of the page to POST the webhook events to … … 543 543 */ 544 544 function create_webhook($webhook) { 545 return $this->post_request($this->_lists_base_route.'webhooks.json', $webhook); 546 } 547 545 return $this->post_request($this->_lists_base_route.'webhooks.json', $webhook); 546 } 547 548 548 /** 549 549 * Sends test events for the given webhook id 550 550 * @param string $webhook_id The id of the webhook to test 551 551 * @access public 552 * @return CS_REST_Wrapper_Result A successful response will be empty. 552 * @return CS_REST_Wrapper_Result A successful response will be empty. 553 553 */ 554 554 function test_webhook($webhook_id) { 555 555 return $this->get_request($this->_lists_base_route.'webhooks/'.$webhook_id.'/test.json'); 556 } 556 } 557 557 558 558 /** … … 565 565 return $this->delete_request($this->_lists_base_route.'webhooks/'.$webhook_id.'.json'); 566 566 } 567 567 568 568 /** 569 569 * Activates an existing deactivated webhook … … 575 575 return $this->put_request($this->_lists_base_route.'webhooks/'.$webhook_id.'/activate.json', ''); 576 576 } 577 577 578 578 /** 579 579 * Deactivates an existing activated webhook -
optinpoint-lite/trunk/service/cm/csrest_people.php
r1606342 r1828212 82 82 * Updates details for an existing person associated with the specified client. 83 83 * @param string $email The email address of the person to be updated 84 * @param array $person The updated person details to use for the update. 84 * @param array $person The updated person details to use for the update. 85 85 * This array should be of the form 86 86 * array ( … … 105 105 * 'Name' => The name of the person 106 106 * 'Status' => The status of the person 107 * 'AccessLevel' => The access level of the person 107 * 'AccessLevel' => The access level of the person 108 108 * ) 109 109 * } -
optinpoint-lite/trunk/service/cm/csrest_segments.php
r1606342 r1828212 60 60 $this->_segments_base_route = $this->_base_route.'segments/'.$segment_id; 61 61 } 62 62 63 63 /** 64 64 * Creates a new segment on the given list with the provided details 65 65 * @param int $list_id The list on which to create the segment 66 66 * @param $segment_details The details of the new segment 67 * This should be an array of the form 67 * This should be an array of the form 68 68 * array( 69 69 * 'Title' => The title of the new segment … … 83 83 function create($list_id, $segment_details) { 84 84 return $this->post_request($this->_base_route.'segments/'.$list_id.'.json', $segment_details); 85 } 86 85 } 86 87 87 /** 88 88 * Updates the current segment with the provided details. Calls to this route will clear any existing rules 89 89 * @param $segment_details The new details for the segment 90 * This should be an array of the form 90 * This should be an array of the form 91 91 * array( 92 92 * 'Title' => The title of the new segment … … 106 106 function update($segment_details) { 107 107 return $this->put_request($this->_segments_base_route.'.json', $segment_details); 108 } 109 108 } 109 110 110 /** 111 111 * Adds the given rule to the current segment … … 125 125 return $this->post_request($this->_segments_base_route.'/rules.json', $rulegroup); 126 126 } 127 127 128 128 /** 129 129 * Gets the details of the current segment … … 164 164 return $this->delete_request($this->_segments_base_route.'/rules.json'); 165 165 } 166 166 167 167 /** 168 168 * Gets a paged collection of subscribers which fall into the given segment 169 * @param string $subscribed_since The date to start getting subscribers from 169 * @param string $subscribed_since The date to start getting subscribers from 170 170 * @param int $page_number The page number to get 171 171 * @param int $page_size The number of records per page … … 198 198 * } 199 199 */ 200 function get_subscribers($subscribed_since = '', $page_number = NULL, 200 function get_subscribers($subscribed_since = '', $page_number = NULL, 201 201 $page_size = NULL, $order_field = NULL, $order_direction = NULL) { 202 203 return $this->get_request_paged($this->_segments_base_route.'/active.json?date='.urlencode($subscribed_since), 202 203 return $this->get_request_paged($this->_segments_base_route.'/active.json?date='.urlencode($subscribed_since), 204 204 $page_number, $page_size, $order_field, $order_direction); 205 205 } -
optinpoint-lite/trunk/service/cm/csrest_subscribers.php
r1606342 r1828212 156 156 'RestartSubscriptionBasedAutoresponders' => $restartSubscriptionBasedAutoResponders 157 157 ); 158 158 159 159 return $this->post_request($this->_subscribers_base_route.'/import.json', $subscribers); 160 160 } … … 214 214 // We need to build the subscriber data structure. 215 215 $email = array( 216 'EmailAddress' => $email 216 'EmailAddress' => $email 217 217 ); 218 218 219 219 return $this->post_request($this->_subscribers_base_route.'/unsubscribe.json', $email); 220 220 } -
optinpoint-lite/trunk/service/cm/csrest_templates.php
r1606342 r1828212 57 57 */ 58 58 function set_template_id($template_id) { 59 $this->_templates_base_route = $this->_base_route.'templates/'.$template_id.'.json'; 59 $this->_templates_base_route = $this->_base_route.'templates/'.$template_id.'.json'; 60 60 } 61 61 -
optinpoint-lite/trunk/service/ic/iContactApi.php
r1620057 r1828212 4 4 * @package iContact 5 5 * @author iContact <www.icontact.com> 6 * @description This class is a wrapper for the iContact API. 7 * It makes integrating iContact into your app as simple as 6 * @description This class is a wrapper for the iContact API. 7 * It makes integrating iContact into your app as simple as 8 8 * calling a method. 9 9 * @version 2.0 … … 83 83 /** 84 84 * This is our constuctor and simply checks for 85 * defined constants and configuration values and 85 * defined constants and configuration values and 86 86 * then builds the configuration from that 87 87 * @access protected … … 91 91 // Check for constants 92 92 $aConstantMap = array( 93 // 'ICONTACT_APIVERSION', 94 // 'ICONTACT_APISANDBOXURL', 95 'ICONTACT_APPID' => 'appId', 96 // 'ICONTACT_APIURL', 97 'ICONTACT_APIUSERNAME' => 'apiUsername', 93 // 'ICONTACT_APIVERSION', 94 // 'ICONTACT_APISANDBOXURL', 95 'ICONTACT_APPID' => 'appId', 96 // 'ICONTACT_APIURL', 97 'ICONTACT_APIUSERNAME' => 'apiUsername', 98 98 'ICONTACT_APIPASSWORD' => 'apiPassword' 99 99 ); … … 251 251 // Setup the list 252 252 $aList = array( 253 'name' => $sName, 254 'welcomeMessageId' => $iWelcomeMessageId, 255 'emailOwnerOnChange' => intval($bEmailOwnerOnChange), 256 'welcomeOnManualAdd' => intval($bWelcomeOnManualAdd), 257 'welcomeOnSignupAdd' => intval($bWelcomeOnSignupAdd), 258 'description' => $sDescription, 253 'name' => $sName, 254 'welcomeMessageId' => $iWelcomeMessageId, 255 'emailOwnerOnChange' => intval($bEmailOwnerOnChange), 256 'welcomeOnManualAdd' => intval($bWelcomeOnManualAdd), 257 'welcomeOnSignupAdd' => intval($bWelcomeOnSignupAdd), 258 'description' => $sDescription, 259 259 'publicname' => $sPublicName 260 260 ); … … 266 266 267 267 /** 268 * This method adds a message to 268 * This method adds a message to 269 269 * your iContact API account 270 270 * @access public … … 283 283 // Setup the message data 284 284 $aMessage = array( 285 'campaignId' => $iCampaignId, 286 'htmlBody' => $sHtmlBody, 287 'messageName' => $sMessageName, 288 'messageType' => (in_array($sMessageType, $aValidMessageTypes) ? $sMessageType : 'normal'), 289 'subject' => $sSubject, 285 'campaignId' => $iCampaignId, 286 'htmlBody' => $sHtmlBody, 287 'messageName' => $sMessageName, 288 'messageType' => (in_array($sMessageType, $aValidMessageTypes) ? $sMessageType : 'normal'), 289 'subject' => $sSubject, 290 290 'textBody' => $sTextBody 291 291 ); … … 308 308 if (empty($this->aSearchParameters['orderby'])) { 309 309 // Check for a direction 310 if (empty($sDirection)) { 310 if (empty($sDirection)) { 311 311 // Add just the field 312 312 $this->aSearchParameters['orderby'] = (string) $sField; … … 366 366 // Give our handle headers 367 367 curl_setopt($rHandle, CURLOPT_HTTPHEADER, $this->getHeaders()); 368 // Tell our handle that we 368 // Tell our handle that we 369 369 // want the data returned 370 370 curl_setopt($rHandle, CURLOPT_RETURNTRANSFER, true); … … 375 375 switch (strtoupper($sMethod)) { 376 376 // Deleting data 377 case 'DELETE' : 377 case 'DELETE' : 378 378 // Set the cURL custom header 379 379 curl_setopt($rHandle, CURLOPT_CUSTOMREQUEST, 'DELETE'); … … 474 474 return true; 475 475 } elseif (empty($sReturnKey)) { 476 // Return the entire 476 // Return the entire 477 477 // base response 478 478 return $aResponse; … … 498 498 $aSends = $this->makeCall("/a/{$this->setAccountId()}/c/{$this->setClientFolderId()}/sends", 'POST', array( 499 499 array( 500 'excludeListIds' => $sExcludeListIds, 501 'excludeSegmentIds' => $sExcludeSegmentIds, 502 'includeListIds' => $sIncludeListIds, 503 'includeSegmentIds' => $sIncludeSegmentIds, 500 'excludeListIds' => $sExcludeListIds, 501 'excludeSegmentIds' => $sExcludeSegmentIds, 502 'includeListIds' => $sIncludeListIds, 503 'includeSegmentIds' => $sIncludeSegmentIds, 504 504 'scheduledTime' => (empty($sScheduledTime) ? null : date('c', strtotime($sScheduledTime))) 505 505 ) … … 523 523 $aSubscriptions = $this->makeCall("/a/{$this->setAccountId()}/c/{$this->setClientFolderId()}/subscriptions", 'POST', array( 524 524 array( 525 'contactId' => $iContactId, 526 'listId' => $iListId, 525 'contactId' => $iContactId, 526 'listId' => $iListId, 527 527 'status' => $sStatus 528 528 ) … … 652 652 $aUploads = $this->makeCall("/a/{$this->setAccountId()}/c/{$this->setClientFolderId()}/uploads", 'POST', array( 653 653 array( 654 'action' => 'add', 654 'action' => 'add', 655 655 'listIds' => $iListId 656 656 ) … … 694 694 // Setup the list 695 695 $aList = array( 696 'name' => $sName, 697 'welcomeMessageId' => $iWelcomeMessageId, 698 'emailOwnerOnChange' => intval($bEmailOwnerOnChange), 699 'welcomeOnManualAdd' => intval($bWelcomeOnManualAdd), 700 'welcomeOnSignupAdd' => intval($bWelcomeOnSignupAdd), 701 'description' => $sDescription, 696 'name' => $sName, 697 'welcomeMessageId' => $iWelcomeMessageId, 698 'emailOwnerOnChange' => intval($bEmailOwnerOnChange), 699 'welcomeOnManualAdd' => intval($bWelcomeOnManualAdd), 700 'welcomeOnSignupAdd' => intval($bWelcomeOnSignupAdd), 701 'description' => $sDescription, 702 702 'publicname' => $sPublicName 703 703 ); … … 709 709 * This method tells the system whether 710 710 * or not to use the sandbox or not, the 711 * sandbox is turned off by defualt and 711 * sandbox is turned off by defualt and 712 712 * by default this method turns it on 713 713 * @access public … … 818 818 } 819 819 /** 820 * This method returns any set 820 * This method returns any set 821 821 * errors in the current instance 822 822 * @access public … … 826 826 // Check for errors 827 827 if (empty($this->aErrors)) { 828 // Return false, for 828 // Return false, for 829 829 // there are no errors 830 830 return false; … … 844 844 // Return the headers 845 845 return array( 846 'Except:', 847 'Accept: application/json', 848 'Content-type: application/json', 846 'Except:', 847 'Accept: application/json', 848 'Content-type: application/json', 849 849 'Api-Version: ' . (defined('ICONTACT_APIVERSION') ? constant('ICONTACT_APIVERSION') : '2.2'), 850 'Api-AppId: ' . (!empty($this->aConfig['appId']) ? $this->aConfig['appId'] : constant('ICONTACT_APPID')), 851 'Api-Username: '. (!empty($this->aConfig['apiUsername']) ? $this->aConfig['apiUsername'] : constant('ICONTACT_APIUSERNAME')), 850 'Api-AppId: ' . (!empty($this->aConfig['appId']) ? $this->aConfig['appId'] : constant('ICONTACT_APPID')), 851 'Api-Username: '. (!empty($this->aConfig['apiUsername']) ? $this->aConfig['apiUsername'] : constant('ICONTACT_APIUSERNAME')), 852 852 'Api-Password: '. (!empty($this->aConfig['apiPassword']) ? $this->aConfig['apiPassword'] : constant('ICONTACT_APIPASSWORD')) 853 853 ); … … 855 855 856 856 /** 857 * This method returns the last 857 * This method returns the last 858 858 * API POST request JSON 859 859 * @access public … … 960 960 961 961 /** 962 * This method simply returns the base URL for 962 * This method simply returns the base URL for 963 963 * your API/Sandbox account 964 964 * @access public … … 973 973 // Determine which one needs to be returned with the URL 974 974 $sBaseUrl = ($this->bSandbox === true) ? $sSandboxUrl : $sApiUrl; 975 // Do we need to return the entire url or just 975 // Do we need to return the entire url or just 976 976 // the base url of the API service 977 977 if ($bFull === false) { … … 1036 1036 $this->iAccountId = (integer) $iAccountId; 1037 1037 } else { 1038 // Check to see if the 1038 // Check to see if the 1039 1039 // Account ID has already 1040 // been stored in the 1040 // been stored in the 1041 1041 // instance 1042 1042 if (empty($this->iAccountId)) { … … 1063 1063 1064 1064 /** 1065 * This method fetches the Client 1065 * This method fetches the Client 1066 1066 * Folder ID from the iContact API 1067 * if it has not already been stored 1067 * if it has not already been stored 1068 1068 * in the instance and the Account ID 1069 1069 * has also been stored in the instance … … 1073 1073 **/ 1074 1074 public function setClientFolderId($iClientFolderId = null) { 1075 // Check for an overriding 1075 // Check for an overriding 1076 1076 // Client Folder ID 1077 1077 if (!empty($iClientFolderId)) { -
optinpoint-lite/trunk/service/optinpoint-service.php
r1719216 r1828212 1 1 <?php 2 /** 2 /** 3 3 * OptinPoint - Advanced Subscription Hub For Wordpress 4 4 * … … 13 13 * @package OptinPoint - Advanced Subscription Hub For Wordpress 14 14 * @author Voltroid<care@voltroid.com> 15 * 15 * 16 16 */ 17 17 require_once 'cm/csrest_general.php'; … … 32 32 require_once('ml/MailerLite.class.php'); 33 33 require_once('dp/DripEmail.class.php'); 34 require_once('zc/Zoho.class.php'); 34 35 class OptinPoint_Lite_Service { 35 36 36 function OptinPoint_Lite_Service($config){37 function __construct($config){ 37 38 $this->config = $config; 38 39 $this->configure(); … … 66 67 case 'ic': 67 68 iContactApi::getInstance()->setConfig(array( 68 'appId' => $key[0], 69 'apiPassword' => $key[2], 69 'appId' => $key[0], 70 'apiPassword' => $key[2], 70 71 'apiUsername' => $key[1] 71 72 )); … … 92 93 case 'ml': 93 94 $this->wrap = new MailerLite($key[0]); 95 break; 96 case 'zc': 97 $this->wrap = new ZohoCampaigns($key[0]); 94 98 break; 95 99 default: … … 141 145 echo json_encode($this->wrap->account()); 142 146 break; 147 case 'zc': 148 echo json_encode($this->wrap->account()); 149 break; 143 150 case 'mm': 144 151 echo json_encode($this->wrap->getLists()); … … 335 342 'id' => $v['id'], 336 343 'name' => $v['name'] 344 )); 345 } 346 } 347 echo json_encode($l); 348 break; 349 case 'zc': 350 $t = $this->wrap->getLists()['data']['list_of_details']; 351 $l = array(); 352 if(!empty($t)){ 353 foreach ($t as $v) { 354 array_push($l, array( 355 'id' => $v['listkey'], 356 'name' => $v['listname'] 337 357 )); 338 358 } … … 355 375 echo json_encode($l); 356 376 break; 377 case 'mp': 378 $l = array(); 379 if( MAILPOET_VERSION !== null){ 380 $mp = new MailPoet\API\MP\v1\API; 381 $t = $mp::getLists(); 382 if(count($t) > 0){ 383 foreach ($t as $v) { 384 array_push($l, array( 385 'id' => $v['id'], 386 'name' => $v['name'] 387 )); 388 } 389 } 390 } 391 echo json_encode($l); 392 break; 357 393 default: 358 394 break; … … 587 623 echo json_encode($l); 588 624 break; 625 case 'zc': 626 $t = (array) $this->wrap->getFields()['data']['response']['fieldnames']['fieldname']; 627 $l = array( 628 array( 629 'id'=>'email', 630 'name'=>'email', 631 'label'=>'Email Address', 632 'type'=>'text', 633 'format'=>'email', 634 'req'=>1, 635 'icon'=>'idef' 636 ), 637 array( 638 'id'=>'fname', 639 'name'=>'First Name', 640 'label'=>'First Name', 641 'type'=>'text', 642 'format'=>'text', 643 'icon'=>'idef' 644 ), 645 array( 646 'id'=>'lname', 647 'name'=>'Last name', 648 'label'=>'Last Name', 649 'type'=>'text', 650 'format'=>'text', 651 'icon'=>'idef' 652 ) 653 ); 654 if(!empty($t)){ 655 foreach ($t as $v) { 656 if(in_array($v['FIELD_NAME'], array('Contact Email','First Name','Last Name')))continue; 657 array_push($l, array( 658 'id' => $v['DISPLAY_NAME'], 659 'name' => $v['DISPLAY_NAME'], 660 'label' => $v['DISPLAY_NAME'], 661 'type'=> $this->typesel('zc',strtolower($v['UITYPE'])), 662 'format'=> $this->formatsel('zc',$v['UITYPE']), 663 'icon'=>'idef' 664 )); 665 } 666 } 667 echo json_encode($l); 668 break; 589 669 case 'sg': 590 670 $t = $this->wrap->getCustomFields()['custom_fields']; … … 886 966 ) 887 967 ); 888 for ($i=1; $i <= 15; $i++) { 968 for ($i=1; $i <= 15; $i++) { 889 969 array_push($l, array( 890 970 'id' => 'custom_field_'.$i, … … 1139 1219 ) 1140 1220 ); 1221 echo json_encode($l); 1222 break; 1223 case 'mp': 1224 $l = array( 1225 array( 1226 'id'=>'email', 1227 'name'=>'email', 1228 'label'=>'Email Address', 1229 'type'=>'text', 1230 'format'=>'email', 1231 'req'=>1, 1232 'icon'=>'idef' 1233 ), 1234 array( 1235 'id'=>'fname', 1236 'name'=>'First Name', 1237 'label'=>'First Name', 1238 'type'=>'text', 1239 'format'=>'text', 1240 'icon'=>'idef' 1241 ), 1242 array( 1243 'id'=>'lname', 1244 'name'=>'Last Name', 1245 'label'=>'Last Name', 1246 'type'=>'text', 1247 'format'=>'text', 1248 'icon'=>'idef' 1249 ) 1250 ); 1251 if( MAILPOET_VERSION !== null){ 1252 $mp_cf = new MailPoet\Models\CustomField; 1253 $col = $mp_cf::orderByAsc('created_at')->findMany(); 1254 $t = array_map(function($custom_field) { 1255 return $custom_field->asArray(); 1256 }, $col); 1257 if(count($t) > 0){ 1258 foreach ($t as $v) { 1259 array_push($l, array( 1260 'id' => 'cf_' . $v['id'], 1261 'name' => $v['name'], 1262 'label' => $v['params']['label'], 1263 'type'=>$this->typesel('mp',$v['type']), 1264 'format'=>$this->formatsel('mp',$v['type']), 1265 'extras' => $this->extsel('mp',$v['params']['values'],$v['type']), 1266 'req'=> ($v['params']['required'])?1:0, 1267 'icon'=>'idef', 1268 'nof'=>1 1269 )); 1270 } 1271 } 1272 } 1141 1273 echo json_encode($l); 1142 1274 break; … … 1528 1660 } 1529 1661 break; 1662 case 'zc': 1663 switch ($t) { 1664 case 'email': 1665 case 'integer': 1666 case 'phone': 1667 case 'date': 1668 case 'datetime': 1669 case 'percent': 1670 case 'decimal': 1671 case 'longinteger': 1672 case 'url':return 'text'; 1673 break; 1674 case 'picklist':return 'select'; 1675 break; 1676 case 'radiobutton':return 'radio'; 1677 break; 1678 default:return $t; 1679 break; 1680 } 1681 break; 1682 case 'mp': 1683 switch ($t) { 1684 case 'date':return 'text'; 1685 break; 1686 case 'checkbox':return 'singlecheck'; 1687 break; 1688 default:return $t; 1689 break; 1690 } 1691 break; 1530 1692 default: 1531 1693 break; … … 1570 1732 } 1571 1733 break; 1734 case 'zc': 1735 switch ($t) { 1736 case 'integer': 1737 case 'longinteger': 1738 case 'percent': 1739 case 'decimal': 1740 case 'phone':return 'number'; 1741 break; 1742 case 'datetime':return 'date'; 1743 break; 1744 default:return $t; 1745 break; 1746 } 1747 break; 1748 case 'mp': 1749 switch ($t) { 1750 case 'date':return 'text'; 1751 break; 1752 default:return $t; 1753 break; 1754 } 1755 break; 1572 1756 default: 1573 1757 break; 1574 1758 } 1575 1759 } 1576 function extsel($s,$t ){1760 function extsel($s,$t,$type=null){ 1577 1761 $a = array(); 1578 1762 switch ($s) { … … 1591 1775 foreach ($t as $k => $v) { 1592 1776 array_push($a, array('name' => $v['value'],'label' => $v['label'])); 1777 } 1778 break; 1779 case 'mp': 1780 foreach ($t as $k => $v) { 1781 if($type !== 'checkbox') 1782 array_push($a, array('name' => $v['value'])); 1783 else 1784 array_push($a, array('name' => '1','label' => $v['value'])); 1593 1785 } 1594 1786 break; … … 1626 1818 $list = $this->wrap->loadFromUrl('/accounts/'.$this->wrap->id.'/lists/'.$form['list']['id']); 1627 1819 $user = array( 1628 'email' => $data['email'], 1820 'email' => $data['email'], 1629 1821 'custom_fields' => array() 1630 1822 ); … … 1785 1977 return '0';//error 1786 1978 if($e['data']['date_created'] == $e['data']['date_updated']) 1979 return '1';//subscribed 1980 return '2';//already 1981 break; 1982 case 'zc': 1983 $user = $data; 1984 if(isset($user['lname'])){ 1985 $user['Last Name'] = $user['lname']; 1986 unset($user['lname']); 1987 } 1988 if(isset($user['email'])){ 1989 $user['Contact Email'] = $user['email']; 1990 unset($user['email']); 1991 } 1992 if(isset($user['fname'])){ 1993 $user['First Name'] = $user['fname']; 1994 unset($user['fname']); 1995 } 1996 $user = array( 1997 'contactinfo' => json_encode($user), 1998 'listkey' => $form['list']['id'] 1999 ); 2000 $e = $this->wrap->addContact($user); 2001 if($e['data']['code'] != 0) 2002 return '0';//error 2003 if($e['data']['message'] == "User successfully subscribed.") 1787 2004 return '1';//subscribed 1788 2005 return '2';//already … … 1948 2165 return '0';//error 1949 2166 } 2167 break; 2168 case 'mp': 2169 $user = $data; 2170 if( MAILPOET_VERSION == null)return '0';//error 2171 $mp_sub = new MailPoet\Models\Subscriber; 2172 if($mp_sub::findOne($user['email']))return '2';//already 2173 if(isset($user['fname'])){ 2174 $user['first_name'] = $user['fname']; 2175 unset($user['fname']); 2176 } 2177 if(isset($user['lname'])){ 2178 $user['last_name'] = $user['lname']; 2179 unset($user['lname']); 2180 } 2181 foreach ($user as $k => $v) { 2182 if(is_array($v))$user[$k] = implode(',', $v); 2183 } 2184 2185 // separate data into default and custom fields 2186 list($default_fields, $custom_fields) = $mp_sub::extractCustomFieldsFromFromObject($user); 2187 // if some required default fields are missing, set their values 2188 $default_fields = $mp_sub::setRequiredFieldsDefaultValues($default_fields); 2189 2190 // add subscriber 2191 $new_subscriber = $mp_sub::create(); 2192 $new_subscriber->hydrate($default_fields); 2193 $new_subscriber->save(); 2194 if($new_subscriber->getErrors() !== false)return '0';//error 2195 if(!empty($custom_fields)) { 2196 $new_subscriber->saveCustomFields($custom_fields); 2197 } 2198 2199 // reload subscriber to get the saved status/created|updated|delete dates/other fields 2200 $new_subscriber = $mp_sub::findOne($new_subscriber->id); 2201 2202 // subscribe to segments and optionally: 1) send confirmation email, 2) schedule welcome email(s) 2203 $mp_subseg = new MailPoet\Models\SubscriberSegment; 2204 $mp_subseg::subscribeToSegments($new_subscriber, array($form['list']['id'] )); 2205 2206 2207 // send confirmation email 2208 if( $new_subscriber->status === $mp_sub::STATUS_UNCONFIRMED) { 2209 $new_subscriber->sendConfirmationEmail(); 2210 } 2211 2212 // schedule welcome email(s) 2213 if( $new_subscriber->status === $mp_sub::STATUS_SUBSCRIBED) { 2214 $mp_sub::scheduleSubscriberWelcomeNotification($new_subscriber->id, array($form['list']['id'] )); 2215 } 2216 return '1';//subscribed 1950 2217 break; 1951 2218 default: … … 2054 2321 return 0; 2055 2322 break; 2323 case 'zc': 2324 $user = array( 2325 'contactemail'=> $data['email'] 2326 ); 2327 $e = $this->wrap->getContact($user); 2328 if($e['http_status']==200) 2329 if($e['data']['response']['code'][0] == 200) 2330 return 1; 2331 return 0; 2332 break; 2056 2333 case 'be': 2057 2334 $user = $data['email']; … … 2087 2364 if( !function_exists( 'mailster' ) )return 0;//error 2088 2365 if(mailster( 'subscribers' )->get_by_mail( $data['email'], false ))return 1; 2366 return 0; 2367 break; 2368 case 'mp': 2369 if( MAILPOET_VERSION == null)return 0; 2370 $mp_sub = new MailPoet\Models\Subscriber; 2371 if($mp_sub::findOne($data['email']))return 1; 2089 2372 return 0; 2090 2373 break; -
optinpoint-lite/trunk/service/sg/SendGrid.php
r1611096 r1828212 93 93 */ 94 94 public function addToList($data,$list) 95 { 95 { 96 96 return $this->call('contactdb/lists/'.$list.'/recipients/'.$data,'POST',null); 97 97 } -
optinpoint-lite/trunk/service/vr/redirect.php
r1606342 r1828212 14 14 </head> 15 15 <body> 16 16 17 17 </html> -
optinpoint-lite/trunk/src/google_fonts.json
r1606342 r1828212 1 ["ABeeZee","Abel","Ab ril Fatface","Aclonica","Acme","Actor","Adamina","Advent Pro","Aguafina Script","Akronim","Aladin","Aldrich","Alef","Alegreya","Alegreya SC","Alegreya Sans","Alegreya Sans SC","Alex Brush","Alfa Slab One","Alice","Alike","Alike Angular","Allan","Allerta","Allerta Stencil","Allura","Almendra","Almendra Display","Almendra SC","Amarante","Amaranth","Amatic SC","Amethysta","Anaheim","Andada","Andika","Angkor","Annie Use Your Telescope","Anonymous Pro","Antic","Antic Didone","Antic Slab","Anton","Arapey","Arbutus","Arbutus Slab","Architects Daughter","Archivo Black","Archivo Narrow","Arimo","Arizonia","Armata","Artifika","Arvo","Asap","Asset","Astloch","Asul","Atomic Age","Aubrey","Audiowide","Autour One","Average","Average Sans","Averia Gruesa Libre","Averia Libre","Averia Sans Libre","Averia Serif Libre","Bad Script","Balthazar","Bangers","Basic","Battambang","Baumans","Bayon","Belgrano","Belleza","BenchNine","Bentham","Berkshire Swash","Bevan","Bigelow Rules","Bigshot One","Bilbo","Bilbo Swash Caps","Bitter","Black Ops One","Bokor","Bonbon","Boogaloo","Bowlby One","Bowlby One SC","Brawler","Bree Serif","Bubblegum Sans","Bubbler One","Buda","Buenard","Butcherman","Butterfly Kids","Cabin","Cabin Condensed","Cabin Sketch","Caesar Dressing","Cagliostro","Calligraffitti","Cambo","Candal","Cantarell","Cantata One","Cantora One","Capriola","Cardo","Carme","Carrois Gothic","Carrois Gothic SC","Carter One","Caudex","Cedarville Cursive","Ceviche One","Changa One","Chango","Chau Philomene One","Chela One","Chelsea Market","Chenla","Cherry Cream Soda","Cherry Swash","Chewy","Chicle","Chivo","Cinzel","Cinzel Decorative","Clicker Script","Coda","Coda Caption","Codystar","Combo","Comfortaa","Coming Soon","Concert One","Condiment","Content","Contrail One","Convergence","Cookie","Copse","Corben","Courgette","Cousine","Coustard","Covered By Your Grace","Crafty Girls","Creepster","Crete Round","Crimson Text","Croissant One","Crushed","Cuprum","Cutive","Cutive Mono","Damion","Dancing Script","Dangrek","Dawning of a New Day","Days One","Delius","Delius Swash Caps","Delius Unicase","Della Respira","Denk One","Devonshire","Didact Gothic","Diplomata","Diplomata SC","Domine","Donegal One","Doppio One","Dorsa","Dosis","Dr Sugiyama","Droid Sans","Droid Sans Mono","Droid Serif","Duru Sans","Dynalight","EB Garamond","Eagle Lake","Eater","Economica","Ek Mukta","Electrolize","Elsie","Elsie Swash Caps","Emblema One","Emilys Candy","Engagement","Englebert","Enriqueta","Erica One","Esteban","Euphoria Script","Ewert","Exo","Exo 2","Expletus Sans","Fanwood Text","Fascinate","Fascinate Inline","Faster One","Fasthand","Fauna One","Federant","Federo","Felipa","Fenix","Finger Paint","Fira Mono","Fira Sans","Fjalla One","Fjord One","Flamenco","Flavors","Fondamento","Fontdiner Swanky","Forum","Francois One","Freckle Face","Fredericka the Great","Fredoka One","Freehand","Fresca","Frijole","Fruktur","Fugaz One","GFS Didot","GFS Neohellenic","Gabriela","Gafata","Galdeano","Galindo","Gentium Basic","Gentium Book Basic","Geo","Geostar","Geostar Fill","Germania One","Gilda Display","Give You Glory","Glass Antiqua","Glegoo","Gloria Hallelujah","Goblin One","Gochi Hand","Gorditas","Goudy Bookletter 1911","Graduate","Grand Hotel","Gravitas One","Great Vibes","Griffy","Gruppo","Gudea","Habibi","Halant","Hammersmith One","Hanalei","Hanalei Fill","Handlee","Hanuman","Happy Monkey","Headland One","Henny Penny","Herr Von Muellerhoff","Hind","Holtwood One SC","Homemade Apple","Homenaje","IM Fell DW Pica","IM Fell DW Pica SC","IM Fell Double Pica","IM Fell Double Pica SC","IM Fell English","IM Fell English SC","IM Fell French Canon","IM Fell French Canon SC","IM Fell Great Primer","IM Fell Great Primer SC","Iceberg","Iceland","Imprima","Inconsolata","Inder","Indie Flower","Inika","Irish Grover","Istok Web","Italiana","Italianno","Jacques Francois","Jacques Francois Shadow","Jim Nightshade","Jockey One","Jolly Lodger","Josefin Sans","Josefin Slab","Joti One","Judson","Julee","Julius Sans One","Junge","Jura","Just Another Hand","Just Me Again Down Here","Kalam","Kameron","Kantumruy","Karla","Karma","Kaushan Script","Kavoon","Kdam Thmor","Keania One","Kelly Slab","Kenia","Khand","Khmer","Kite One","Knewave","Kotta One","Koulen","Kranky","Kreon","Kristi","Krona One","La Belle Aurore","Laila","Lancelot","Lato","League Script","Leckerli One","Ledger","Lekton","Lemon","Libre Baskerville","Life Savers","Lilita One","Lily Script One","Limelight","Linden Hill","Lobster","Lobster Two","Londrina Outline","Londrina Shadow","Londrina Sketch","Londrina Solid","Lora","Love Ya Like A Sister","Loved by the King","Lovers Quarrel","Luckiest Guy","Lusitana","Lustria","Macondo","Macondo Swash Caps","Magra","Maiden Orange","Mako","Marcellus","Marcellus SC","Marck Script","Margarine","Marko One","Marmelad","Marvel","Mate","Mate SC","Maven Pro","McLaren","Meddon","MedievalSharp","Medula One","Megrim","Meie Script","Merienda","Merienda One","Merriweather","Merriweather Sans","Metal","Metal Mania","Metamorphous","Metrophobic","Michroma","Milonga","Miltonian","Miltonian Tattoo","Miniver","Miss Fajardose","Modern Antiqua","Molengo","Molle","Monda","Monofett","Monoton","Monsieur La Doulaise","Montaga","Montez","Montserrat","Montserrat Alternates","Montserrat Subrayada","Moul","Moulpali","Mountains of Christmas","Mouse Memoirs","Mr Bedfort","Mr Dafoe","Mr De Haviland","Mrs Saint Delafield","Mrs Sheppards","Muli","Mystery Quest","Neucha","Neuton","New Rocker","News Cycle","Niconne","Nixie One","Nobile","Nokora","Norican","Nosifer","Nothing You Could Do","Noticia Text","Noto Sans","Noto Serif","Nova Cut","Nova Flat","Nova Mono","Nova Oval","Nova Round","Nova Script","Nova Slim","Nova Square","Numans","Nunito","Odor Mean Chey","Offside","Old Standard TT","Oldenburg","Oleo Script","Oleo Script Swash Caps","Open Sans","Open Sans Condensed","Oranienbaum","Orbitron","Oregano","Orienta","Original Surfer","Oswald","Over the Rainbow","Overlock","Overlock SC","Ovo","Oxygen","Oxygen Mono","PT Mono","PT Sans","PT Sans Caption","PT Sans Narrow","PT Serif","PT Serif Caption","Pacifico","Paprika","Parisienne","Passero One","Passion One","Pathway Gothic One","Patrick Hand","Patrick Hand SC","Patua One","Paytone One","Peralta","Permanent Marker","Petit Formal Script","Petrona","Philosopher","Piedra","Pinyon Script","Pirata One","Plaster","Play","Playball","Playfair Display","Playfair Display SC","Podkova","Poiret One","Poller One","Poly","Pompiere","Pontano Sans","Port Lligat Sans","Port Lligat Slab","Prata","Preahvihear","Press Start 2P","Princess Sofia","Prociono","Prosto One","Puritan","Purple Purse","Quando","Quantico","Quattrocento","Quattrocento Sans","Questrial","Quicksand","Quintessential","Qwigley","Racing Sans One","Radley","Rajdhani","Raleway","Raleway Dots","Rambla","Rammetto One","Ranchers","Rancho","Rationale","Redressed","Reenie Beanie","Revalia","Ribeye","Ribeye Marrow","Righteous","Risque","Roboto","Roboto Condensed","Roboto Slab","Rochester","Rock Salt","Rokkitt","Romanesco","Ropa Sans","Rosario","Rosarivo","Rouge Script","Rozha One","Rubik Mono One","Rubik One","Ruda","Rufina","Ruge Boogie","Ruluko","Rum Raisin","Ruslan Display","Russo One","Ruthie","Rye","Sacramento","Sail","Salsa","Sanchez","Sancreek","Sansita One","Sarina","Sarpanch","Satisfy","Scada","Schoolbell","Seaweed Script","Sevillana","Seymour One","Shadows Into Light","Shadows Into Light Two","Shanti","Share","Share Tech","Share Tech Mono","Shojumaru","Short Stack","Siemreap","Sigmar One","Signika","Signika Negative","Simonetta","Sintony","Sirin Stencil","Six Caps","Skranji","Slabo 13px","Slabo 27px","Slackey","Smokum","Smythe","Sniglet","Snippet","Snowburst One","Sofadi One","Sofia","Sonsie One","Sorts Mill Goudy","Source Code Pro","Source Sans Pro","Source Serif Pro","Special Elite","Spicy Rice","Spinnaker","Spirax","Squada One","Stalemate","Stalinist One","Stardos Stencil","Stint Ultra Condensed","Stint Ultra Expanded","Stoke","Strait","Sue Ellen Francisco","Sunshiney","Supermercado One","Suwannaphum","Swanky and Moo Moo","Syncopate","Tangerine","Taprom","Tauri","Teko","Telex","Tenor Sans","Text Me One","The Girl Next Door","Tienne","Tinos","Titan One","Titillium Web","Trade Winds","Trocchi","Trochut","Trykker","Tulpen One","Ubuntu","Ubuntu Condensed","Ubuntu Mono","Ultra","Uncial Antiqua","Underdog","Unica One","UnifrakturCook","UnifrakturMaguntia","Unkempt","Unlock","Unna","VT323","Vampiro One","Varela","Varela Round","Vast Shadow","Vesper Libre","Vibur","Vidaloka","Viga","Voces","Volkhov","Vollkorn","Voltaire","Waiting for the Sunrise","Wallpoet","Walter Turncoat","Warnes","Wellfleet","Wendy One","Wire One","Yanone Kaffeesatz","Yellowtail","Yeseva One","Yesteryear","Zeyada"]1 ["ABeeZee","Abel","Abhaya Libre","Abril Fatface","Aclonica","Acme","Actor","Adamina","Advent Pro","Aguafina Script","Akronim","Aladin","Aldrich","Alef","Alegreya","Alegreya SC","Alegreya Sans","Alegreya Sans SC","Alex Brush","Alfa Slab One","Alice","Alike","Alike Angular","Allan","Allerta","Allerta Stencil","Allura","Almendra","Almendra Display","Almendra SC","Amarante","Amaranth","Amatic SC","Amethysta","Amiko","Amiri","Amita","Anaheim","Andada","Andika","Angkor","Annie Use Your Telescope","Anonymous Pro","Antic","Antic Didone","Antic Slab","Anton","Arapey","Arbutus","Arbutus Slab","Architects Daughter","Archivo","Archivo Black","Archivo Narrow","Aref Ruqaa","Arima Madurai","Arimo","Arizonia","Armata","Arsenal","Artifika","Arvo","Arya","Asap","Asap Condensed","Asar","Asset","Assistant","Astloch","Asul","Athiti","Atma","Atomic Age","Aubrey","Audiowide","Autour One","Average","Average Sans","Averia Gruesa Libre","Averia Libre","Averia Sans Libre","Averia Serif Libre","Bad Script","Bahiana","Baloo","Baloo Bhai","Baloo Bhaijaan","Baloo Bhaina","Baloo Chettan","Baloo Da","Baloo Paaji","Baloo Tamma","Baloo Tammudu","Baloo Thambi","Balthazar","Bangers","Barlow","Barlow Condensed","Barlow Semi Condensed","Barrio","Basic","Battambang","Baumans","Bayon","Belgrano","Bellefair","Belleza","BenchNine","Bentham","Berkshire Swash","Bevan","Bigelow Rules","Bigshot One","Bilbo","Bilbo Swash Caps","BioRhyme","BioRhyme Expanded","Biryani","Bitter","Black Ops One","Bokor","Bonbon","Boogaloo","Bowlby One","Bowlby One SC","Brawler","Bree Serif","Bubblegum Sans","Bubbler One","Buda","Buenard","Bungee","Bungee Hairline","Bungee Inline","Bungee Outline","Bungee Shade","Butcherman","Butterfly Kids","Cabin","Cabin Condensed","Cabin Sketch","Caesar Dressing","Cagliostro","Cairo","Calligraffitti","Cambay","Cambo","Candal","Cantarell","Cantata One","Cantora One","Capriola","Cardo","Carme","Carrois Gothic","Carrois Gothic SC","Carter One","Catamaran","Caudex","Caveat","Caveat Brush","Cedarville Cursive","Ceviche One","Changa","Changa One","Chango","Chathura","Chau Philomene One","Chela One","Chelsea Market","Chenla","Cherry Cream Soda","Cherry Swash","Chewy","Chicle","Chivo","Chonburi","Cinzel","Cinzel Decorative","Clicker Script","Coda","Coda Caption","Codystar","Coiny","Combo","Comfortaa","Coming Soon","Concert One","Condiment","Content","Contrail One","Convergence","Cookie","Copse","Corben","Cormorant","Cormorant Garamond","Cormorant Infant","Cormorant SC","Cormorant Unicase","Cormorant Upright","Courgette","Cousine","Coustard","Covered By Your Grace","Crafty Girls","Creepster","Crete Round","Crimson Text","Croissant One","Crushed","Cuprum","Cutive","Cutive Mono","Damion","Dancing Script","Dangrek","David Libre","Dawning of a New Day","Days One","Dekko","Delius","Delius Swash Caps","Delius Unicase","Della Respira","Denk One","Devonshire","Dhurjati","Didact Gothic","Diplomata","Diplomata SC","Domine","Donegal One","Doppio One","Dorsa","Dosis","Dr Sugiyama","Duru Sans","Dynalight","EB Garamond","Eagle Lake","Eater","Economica","Eczar","El Messiri","Electrolize","Elsie","Elsie Swash Caps","Emblema One","Emilys Candy","Encode Sans","Encode Sans Condensed","Encode Sans Expanded","Encode Sans Semi Condensed","Encode Sans Semi Expanded","Engagement","Englebert","Enriqueta","Erica One","Esteban","Euphoria Script","Ewert","Exo","Exo 2","Expletus Sans","Fanwood Text","Farsan","Fascinate","Fascinate Inline","Faster One","Fasthand","Fauna One","Faustina","Federant","Federo","Felipa","Fenix","Finger Paint","Fira Mono","Fira Sans","Fira Sans Condensed","Fira Sans Extra Condensed","Fjalla One","Fjord One","Flamenco","Flavors","Fondamento","Fontdiner Swanky","Forum","Francois One","Frank Ruhl Libre","Freckle Face","Fredericka the Great","Fredoka One","Freehand","Fresca","Frijole","Fruktur","Fugaz One","GFS Didot","GFS Neohellenic","Gabriela","Gafata","Galada","Galdeano","Galindo","Gentium Basic","Gentium Book Basic","Geo","Geostar","Geostar Fill","Germania One","Gidugu","Gilda Display","Give You Glory","Glass Antiqua","Glegoo","Gloria Hallelujah","Goblin One","Gochi Hand","Gorditas","Goudy Bookletter 1911","Graduate","Grand Hotel","Gravitas One","Great Vibes","Griffy","Gruppo","Gudea","Gurajada","Habibi","Halant","Hammersmith One","Hanalei","Hanalei Fill","Handlee","Hanuman","Happy Monkey","Harmattan","Headland One","Heebo","Henny Penny","Herr Von Muellerhoff","Hind","Hind Guntur","Hind Madurai","Hind Siliguri","Hind Vadodara","Holtwood One SC","Homemade Apple","Homenaje","IM Fell DW Pica","IM Fell DW Pica SC","IM Fell Double Pica","IM Fell Double Pica SC","IM Fell English","IM Fell English SC","IM Fell French Canon","IM Fell French Canon SC","IM Fell Great Primer","IM Fell Great Primer SC","Iceberg","Iceland","Imprima","Inconsolata","Inder","Indie Flower","Inika","Inknut Antiqua","Irish Grover","Istok Web","Italiana","Italianno","Itim","Jacques Francois","Jacques Francois Shadow","Jaldi","Jim Nightshade","Jockey One","Jolly Lodger","Jomhuria","Josefin Sans","Josefin Slab","Joti One","Judson","Julee","Julius Sans One","Junge","Jura","Just Another Hand","Just Me Again Down Here","Kadwa","Kalam","Kameron","Kanit","Kantumruy","Karla","Karma","Katibeh","Kaushan Script","Kavivanar","Kavoon","Kdam Thmor","Keania One","Kelly Slab","Kenia","Khand","Khmer","Khula","Kite One","Knewave","Kotta One","Koulen","Kranky","Kreon","Kristi","Krona One","Kumar One","Kumar One Outline","Kurale","La Belle Aurore","Laila","Lakki Reddy","Lalezar","Lancelot","Lateef","Lato","League Script","Leckerli One","Ledger","Lekton","Lemon","Lemonada","Libre Barcode 128","Libre Barcode 128 Text","Libre Barcode 39","Libre Barcode 39 Extended","Libre Barcode 39 Extended Text","Libre Barcode 39 Text","Libre Baskerville","Libre Franklin","Life Savers","Lilita One","Lily Script One","Limelight","Linden Hill","Lobster","Lobster Two","Londrina Outline","Londrina Shadow","Londrina Sketch","Londrina Solid","Lora","Love Ya Like A Sister","Loved by the King","Lovers Quarrel","Luckiest Guy","Lusitana","Lustria","Macondo","Macondo Swash Caps","Mada","Magra","Maiden Orange","Maitree","Mako","Mallanna","Mandali","Manuale","Marcellus","Marcellus SC","Marck Script","Margarine","Marko One","Marmelad","Martel","Martel Sans","Marvel","Mate","Mate SC","Maven Pro","McLaren","Meddon","MedievalSharp","Medula One","Meera Inimai","Megrim","Meie Script","Merienda","Merienda One","Merriweather","Merriweather Sans","Metal","Metal Mania","Metamorphous","Metrophobic","Michroma","Milonga","Miltonian","Miltonian Tattoo","Miniver","Miriam Libre","Mirza","Miss Fajardose","Mitr","Modak","Modern Antiqua","Mogra","Molengo","Molle","Monda","Monofett","Monoton","Monsieur La Doulaise","Montaga","Montez","Montserrat","Montserrat Alternates","Montserrat Subrayada","Moul","Moulpali","Mountains of Christmas","Mouse Memoirs","Mr Bedfort","Mr Dafoe","Mr De Haviland","Mrs Saint Delafield","Mrs Sheppards","Mukta","Mukta Mahee","Mukta Malar","Mukta Vaani","Muli","Mystery Quest","NTR","Neucha","Neuton","New Rocker","News Cycle","Niconne","Nixie One","Nobile","Nokora","Norican","Nosifer","Nothing You Could Do","Noticia Text","Noto Sans","Noto Serif","Nova Cut","Nova Flat","Nova Mono","Nova Oval","Nova Round","Nova Script","Nova Slim","Nova Square","Numans","Nunito","Nunito Sans","Odor Mean Chey","Offside","Old Standard TT","Oldenburg","Oleo Script","Oleo Script Swash Caps","Open Sans","Open Sans Condensed","Oranienbaum","Orbitron","Oregano","Orienta","Original Surfer","Oswald","Over the Rainbow","Overlock","Overlock SC","Overpass","Overpass Mono","Ovo","Oxygen","Oxygen Mono","PT Mono","PT Sans","PT Sans Caption","PT Sans Narrow","PT Serif","PT Serif Caption","Pacifico","Padauk","Palanquin","Palanquin Dark","Pangolin","Paprika","Parisienne","Passero One","Passion One","Pathway Gothic One","Patrick Hand","Patrick Hand SC","Pattaya","Patua One","Pavanam","Paytone One","Peddana","Peralta","Permanent Marker","Petit Formal Script","Petrona","Philosopher","Piedra","Pinyon Script","Pirata One","Plaster","Play","Playball","Playfair Display","Playfair Display SC","Podkova","Poiret One","Poller One","Poly","Pompiere","Pontano Sans","Poppins","Port Lligat Sans","Port Lligat Slab","Pragati Narrow","Prata","Preahvihear","Press Start 2P","Pridi","Princess Sofia","Prociono","Prompt","Prosto One","Proza Libre","Puritan","Purple Purse","Quando","Quantico","Quattrocento","Quattrocento Sans","Questrial","Quicksand","Quintessential","Qwigley","Racing Sans One","Radley","Rajdhani","Rakkas","Raleway","Raleway Dots","Ramabhadra","Ramaraja","Rambla","Rammetto One","Ranchers","Rancho","Ranga","Rasa","Rationale","Ravi Prakash","Redressed","Reem Kufi","Reenie Beanie","Revalia","Rhodium Libre","Ribeye","Ribeye Marrow","Righteous","Risque","Roboto","Roboto Condensed","Roboto Mono","Roboto Slab","Rochester","Rock Salt","Rokkitt","Romanesco","Ropa Sans","Rosario","Rosarivo","Rouge Script","Rozha One","Rubik","Rubik Mono One","Ruda","Rufina","Ruge Boogie","Ruluko","Rum Raisin","Ruslan Display","Russo One","Ruthie","Rye","Sacramento","Sahitya","Sail","Saira","Saira Condensed","Saira Extra Condensed","Saira Semi Condensed","Salsa","Sanchez","Sancreek","Sansita","Sarala","Sarina","Sarpanch","Satisfy","Scada","Scheherazade","Schoolbell","Scope One","Seaweed Script","Secular One","Sedgwick Ave","Sedgwick Ave Display","Sevillana","Seymour One","Shadows Into Light","Shadows Into Light Two","Shanti","Share","Share Tech","Share Tech Mono","Shojumaru","Short Stack","Shrikhand","Siemreap","Sigmar One","Signika","Signika Negative","Simonetta","Sintony","Sirin Stencil","Six Caps","Skranji","Slabo 13px","Slabo 27px","Slackey","Smokum","Smythe","Sniglet","Snippet","Snowburst One","Sofadi One","Sofia","Sonsie One","Sorts Mill Goudy","Source Code Pro","Source Sans Pro","Source Serif Pro","Space Mono","Special Elite","Spectral","Spectral SC","Spicy Rice","Spinnaker","Spirax","Squada One","Sree Krushnadevaraya","Sriracha","Stalemate","Stalinist One","Stardos Stencil","Stint Ultra Condensed","Stint Ultra Expanded","Stoke","Strait","Sue Ellen Francisco","Suez One","Sumana","Sunshiney","Supermercado One","Sura","Suranna","Suravaram","Suwannaphum","Swanky and Moo Moo","Syncopate","Tangerine","Taprom","Tauri","Taviraj","Teko","Telex","Tenali Ramakrishna","Tenor Sans","Text Me One","The Girl Next Door","Tienne","Tillana","Timmana","Tinos","Titan One","Titillium Web","Trade Winds","Trirong","Trocchi","Trochut","Trykker","Tulpen One","Ubuntu","Ubuntu Condensed","Ubuntu Mono","Ultra","Uncial Antiqua","Underdog","Unica One","UnifrakturCook","UnifrakturMaguntia","Unkempt","Unlock","Unna","VT323","Vampiro One","Varela","Varela Round","Vast Shadow","Vesper Libre","Vibur","Vidaloka","Viga","Voces","Volkhov","Vollkorn","Vollkorn SC","Voltaire","Waiting for the Sunrise","Wallpoet","Walter Turncoat","Warnes","Wellfleet","Wendy One","Wire One","Work Sans","Yanone Kaffeesatz","Yantramanav","Yatra One","Yellowtail","Yeseva One","Yesteryear","Yrsa","Zeyada","Zilla Slab","Zilla Slab Highlight"] -
optinpoint-lite/trunk/uninstall.php
r1606342 r1828212 1 1 <?php 2 /** 2 /** 3 3 * OptinPoint - Advanced Subscription Hub For Wordpress 4 4 * -
optinpoint-lite/trunk/widget/class-optinpoint-widget.php
r1620057 r1828212 1 1 <?php 2 /** 2 /** 3 3 * OptinPoint - Advanced Subscription Hub For Wordpress 4 4 * … … 86 86 } 87 87 88 public function flush_widget_cache() 88 public function flush_widget_cache() 89 89 { 90 90 wp_cache_delete( $this->get_widget_slug(), 'widget' ); … … 103 103 return $instance; 104 104 105 } 105 } 106 106 107 107 /** … … 118 118 include( plugin_dir_path(__FILE__) . 'views/admin.php' ); 119 119 120 } 120 } 121 121 122 122 public function widget_textdomain() { … … 124 124 load_plugin_textdomain( $this->get_widget_slug(), false, plugin_dir_path( __FILE__ ) . 'lang/' ); 125 125 126 } 126 } 127 127 128 128 } -
optinpoint-lite/trunk/widget/views/widget.php
r1702811 r1828212 2 2 $plugin = OptinPoint_Lite_Assistant::get_instance(); 3 3 $settings = $plugin->settings; 4 if( $plugin->isload['w']){4 if(isset($plugin->isload['w'])){ 5 5 $plugin->loadscripts(); 6 6 $cmeta = $plugin->cmeta; -
optinpoint-lite/trunk/widget/views/widget0.php
r1719216 r1828212 11 11 display: block; 12 12 padding-bottom: 10px; 13 <?php 13 <?php 14 14 if(isset($theme["bg_c"])){ 15 15 echo 'background-color:'.$theme['bg_c'].';'; … … 21 21 } 22 22 #<?php echo $oppow_id; ?> .optinpoint_para ,#<?php echo $oppow_id; ?> .optinpoint_para *{ 23 <?php 23 <?php 24 24 if(isset($theme["msg_f"]['f'])){ 25 25 array_push($oppo_font, $theme["msg_f"]['f']); … … 38 38 width:100%; 39 39 margin: 0 auto 10px auto; 40 <?php 40 <?php 41 41 if(isset($theme["tbox_w"])){ 42 42 echo 'width:'.$theme["tbox_w"].'px;'; … … 55 55 left: 0; 56 56 pointer-events: none; 57 <?php 57 <?php 58 58 if(isset($theme["tbox_h"])){ 59 59 echo 'width:'.$theme["tbox_h"].'px;'; … … 65 65 #<?php echo $oppow_id; ?> form .oppo-ficon span.inputlabel{ 66 66 padding-left: 40px; 67 <?php 67 <?php 68 68 if(isset($theme["tbox_h"])){ 69 69 echo 'padding-left:'.$theme["tbox_h"].'px;'; … … 95 95 width: 100%; 96 96 font-size: 16px; 97 <?php 97 <?php 98 98 if(isset($theme["tbox_f"]['f'])){ 99 99 array_push($oppo_font, $theme["tbox_f"]['f']); … … 138 138 background: no-repeat center; 139 139 background-image: <?=$plugin->getIcon('dd',16,'#000');?>; 140 <?php 140 <?php 141 141 if(isset($theme["tbox_h"])){ 142 142 echo 'width:'.$theme["tbox_h"].'px;'; … … 158 158 white-space: nowrap; 159 159 padding: 0 5px; 160 <?php 160 <?php 161 161 if(isset($theme["tbox_f"]['f'])){ 162 162 array_push($oppo_font, $theme["tbox_f"]['f']); … … 208 208 } 209 209 #<?php echo $oppow_id;?> .optinpoint-item{ 210 <?php 210 <?php 211 211 $pline = 2; 212 212 if(isset($pline))echo 'width:'.(100/$pline).'%;'; … … 268 268 background-image: <?php 269 269 $tfi='ch1'; 270 270 271 271 $tfc='#fff'; 272 272 if(isset($theme["check_ic"])){$tfc=$theme["check_ic"];} … … 377 377 } 378 378 #<?php echo $oppow_id; ?> .optinpoint-subs-button:hover{ 379 379 380 380 background:#8BD331; 381 381 382 382 color:#fff; 383 <?php 383 <?php 384 384 if(isset($theme["button_bch"])){ 385 385 echo 'background:'.$theme["button_bch"].';'; … … 403 403 #<?php echo $oppow_id; ?> .optinpoint-subs-button.subsicon:before{ 404 404 padding-left: 40px; 405 <?php 405 <?php 406 406 if(isset($theme["button_w"])){ 407 407 echo 'padding-left:'.$theme["button_h"].'px;'; … … 417 417 left: 0; 418 418 pointer-events: none; 419 <?php 419 <?php 420 420 if(isset($theme["button_h"])){ 421 421 echo 'width:'.$theme["button_h"].'px;'; … … 512 512 'type' => 1 513 513 ); 514 $plugin->stfield($form['fields'],$set); 514 $plugin->stfield($form['fields'],$set); 515 515 ?> 516 516 <div class="optinpoint-subs-button<?php echo (isset($theme['button_i']) && $theme['button_i'] != 'inone' && $theme['button_i'] != 'idef')? ' subsicon' : '';?>"></div> … … 520 520 echo '<div class="optinpoint-tag">'.$tagtxt.'</div>'; 521 521 }?> 522 <div class="optinpoint-signalc"><div class="optinpoint-signal"><?php 522 <div class="optinpoint-signalc"><div class="optinpoint-signal"><?php 523 523 echo $plugin->getSpin('1',$oppow_id,isset($theme["spinner_c"])?$theme["spinner_c"]:'#000');?></div></div> 524 524 </form> -
optinpoint-lite/trunk/widget/views/widget1.php
r1719216 r1828212 25 25 display: inline-block; 26 26 text-align: center; 27 <?php 27 <?php 28 28 if(isset($theme["widget_dissoc"])){ 29 29 echo 'display:none;'; … … 43 43 width:100%; 44 44 margin: 0 auto 10px auto; 45 <?php 45 <?php 46 46 if(isset($theme["tbox_w"])){ 47 47 echo 'width:'.$theme["tbox_w"].'px;'; … … 60 60 left: 0; 61 61 pointer-events: none; 62 <?php 62 <?php 63 63 if(isset($theme["tbox_h"])){ 64 64 echo 'width:'.$theme["tbox_h"].'px;'; … … 70 70 #<?php echo $oppow_id; ?> .oppo-ficon input[type="text"] ~ .inputlabel{ 71 71 padding-left: 45px; 72 <?php 72 <?php 73 73 if(isset($theme["tbox_h"])){ 74 74 echo 'padding-left:'.$theme["tbox_h"].'px;'; … … 99 99 outline:0; 100 100 display: block; 101 <?php 101 <?php 102 102 if(isset($theme["tbox_f"]['f'])){ 103 103 array_push($oppo_font, $theme["tbox_f"]['f']); … … 141 141 background: no-repeat center; 142 142 background-image: <?=$plugin->getIcon('dd',16,'#000');?>; 143 <?php 143 <?php 144 144 if(isset($theme["tbox_h"])){ 145 145 echo 'width:'.$theme["tbox_h"].'px;'; … … 161 161 font-weight:500; 162 162 white-space: nowrap; 163 <?php 163 <?php 164 164 if(isset($theme["tbox_f"]['f'])){ 165 165 array_push($oppo_font, $theme["tbox_f"]['f']); … … 209 209 } 210 210 #<?php echo $oppow_id;?> .optinpoint-item{ 211 <?php 211 <?php 212 212 $pline = 2; 213 213 if(isset($pline))echo 'width:'.(100/$pline).'%;'; … … 257 257 background-image: <?php 258 258 $tfi='ch6'; 259 259 260 260 $tfc='#000'; 261 261 if(isset($theme["check_ic"])){$tfc=$theme["check_ic"];} … … 373 373 <?php if(isset($theme["button_fch"])){ 374 374 echo 'color:'.$theme["button_fch"].';'; 375 } 375 } 376 376 if(isset($theme["button_bch"])){ 377 377 echo 'background-color:'.$theme["button_bch"].';'; … … 386 386 #<?php echo $oppow_id; ?> .optinpoint-subs-button.subsicon:before{ 387 387 padding-left: 45px; 388 <?php 388 <?php 389 389 if(isset($theme["button_w"])){ 390 390 echo 'padding-left:'.$theme["button_h"].'px;'; … … 400 400 left: 0; 401 401 pointer-events: none; 402 <?php 402 <?php 403 403 if(isset($theme["button_h"])){ 404 404 echo 'width:'.$theme["button_h"].'px;'; … … 594 594 'type' => 1 595 595 ); 596 $plugin->stfield($form['fields'],$set); 596 $plugin->stfield($form['fields'],$set); 597 597 ?> 598 598 <div class="optinpoint-subs-button<?php echo (isset($theme['button_i']) && $theme['button_i'] != 'inone' && $theme['button_i'] != 'idef')? ' subsicon' : '';?>"></div> … … 602 602 echo '<div class="optinpoint-tag">'.$tagtxt.'</div>'; 603 603 }?> 604 <div class="optinpoint-signalc"><div class="optinpoint-signal"><?php 604 <div class="optinpoint-signalc"><div class="optinpoint-signal"><?php 605 605 echo $plugin->getSpin('4',$oppow_id,isset($theme["spinner_c"])?$theme["spinner_c"]:'#000');?></div></div> 606 606 </form> -
optinpoint-lite/trunk/widget/views/widget8.php
r1719216 r1828212 21 21 font-size: 20px; 22 22 margin: 0; 23 <?php 23 <?php 24 24 if(isset($theme["heading_f"]['f'])){ 25 25 array_push($oppo_font, $theme["heading_f"]['f']); … … 81 81 left: 0; 82 82 pointer-events: none; 83 <?php 83 <?php 84 84 if(isset($theme["tbox_h"])){ 85 85 echo 'width:'.$theme["tbox_h"].'px;'; … … 91 91 #<?php echo $oppow_id;?> .optinpoint-field.oppo-ficon .inputlabel{ 92 92 padding-left: 35px; 93 <?php 93 <?php 94 94 if(isset($theme["tbox_h"])){ 95 95 echo 'padding-left:'.$theme["tbox_h"].'px;'; … … 119 119 display: block; 120 120 border: 1px solid #efefef; 121 <?php 121 <?php 122 122 if(isset($theme["tbox_f"]['f'])){ 123 123 array_push($oppo_font, $theme["tbox_f"]['f']); … … 164 164 background: no-repeat center; 165 165 background-image: <?=$plugin->getIcon('dd',16,'#000');?>; 166 <?php 166 <?php 167 167 if(isset($theme["tbox_h"])){ 168 168 echo 'width:'.$theme["tbox_h"].'px;'; … … 184 184 padding: 0 10px; 185 185 white-space: nowrap; 186 <?php 186 <?php 187 187 if(isset($theme["tbox_f"]['f'])){ 188 188 array_push($oppo_font, $theme["tbox_f"]['f']); … … 237 237 } 238 238 #<?php echo $oppow_id;?> .optinpoint-item{ 239 <?php 239 <?php 240 240 $pline = 2; 241 241 if(isset($pline))echo 'width:'.(100/$pline).'%;'; … … 285 285 background-image: <?php 286 286 $tfi='ch2'; 287 287 288 288 $tfc='#000'; 289 289 if(isset($theme["check_ic"])){$tfc=$theme["check_ic"];} … … 389 389 <?php if(isset($theme["button_fch"])){ 390 390 echo 'color:'.$theme["button_fch"].';'; 391 } 391 } 392 392 if(isset($theme["button_bch"])){ 393 393 echo 'background-color:'.$theme["button_bch"].';'; … … 397 397 #<?php echo $oppow_id;?> .optinpoint-subs-button.subsicon:before{ 398 398 padding-left: 36px; 399 <?php 399 <?php 400 400 if(isset($theme["button_w"])){ 401 401 echo 'padding-left:'.$theme["button_h"].'px;'; … … 411 411 left: 0; 412 412 pointer-events: none; 413 <?php 413 <?php 414 414 if(isset($theme["button_h"])){ 415 415 echo 'width:'.$theme["button_h"].'px;'; … … 619 619 'type' => 1 620 620 ); 621 $plugin->stfield($form['fields'],$set); 621 $plugin->stfield($form['fields'],$set); 622 622 ?> 623 623 <div class="optinpoint-subsc"> 624 624 <div class="optinpoint-subs-button<?php echo (isset($theme['button_i']) && $theme['button_i'] != 'inone' && $theme['button_i'] != 'idef')? ' subsicon' : '';?>"></div> 625 <div class="optinpoint-signal"><?php 626 echo $plugin->getSpin('3',$oppow_id,isset($theme["spinner_c"])?$theme["spinner_c"]:'#000');?></div> 625 <div class="optinpoint-signal"><?php 626 echo $plugin->getSpin('3',$oppow_id,isset($theme["spinner_c"])?$theme["spinner_c"]:'#000');?></div> 627 627 </div> 628 628 629 629 630 630 <?php if(isset($theme['tag_en'])){ -
optinpoint-lite/trunk/widget/views/widget9.php
r1719216 r1828212 24 24 font-size: 20px; 25 25 margin: 0; 26 <?php 26 <?php 27 27 if(isset($theme["heading_f"]['f'])){ 28 28 array_push($oppo_font, $theme["heading_f"]['f']); … … 76 76 margin: 0 auto 10px auto; 77 77 text-align: left; 78 <?php 78 <?php 79 79 if(isset($theme["tbox_w"])){ 80 80 echo 'width:'.$theme["tbox_w"].'px;'; … … 93 93 left: 0; 94 94 pointer-events: none; 95 <?php 95 <?php 96 96 if(isset($theme["tbox_h"])){ 97 97 echo 'width:'.$theme["tbox_h"].'px;'; … … 103 103 #<?php echo $oppow_id;?> .oppo-ficon input[type="text"] ~ .inputlabel{ 104 104 padding-left: 35px; 105 <?php 105 <?php 106 106 if(isset($theme["tbox_h"])){ 107 107 echo 'padding-left:'.$theme["tbox_h"].'px;'; … … 138 138 display: block; 139 139 border: 1px solid #efefef; 140 <?php 140 <?php 141 141 if(isset($theme["tbox_f"]['f'])){ 142 142 array_push($oppo_font, $theme["tbox_f"]['f']); … … 184 184 background: no-repeat center; 185 185 background-image: <?=$plugin->getIcon('dd',16,'#000');?>; 186 <?php 186 <?php 187 187 if(isset($theme["tbox_h"])){ 188 188 echo 'width:'.$theme["tbox_h"].'px;'; … … 204 204 padding: 0 10px; 205 205 white-space: nowrap; 206 <?php 206 <?php 207 207 if(isset($theme["tbox_f"]['f'])){ 208 208 array_push($oppo_font, $theme["tbox_f"]['f']); … … 254 254 } 255 255 #<?php echo $oppow_id;?> .optinpoint-item{ 256 <?php 256 <?php 257 257 $pline = 2; 258 258 if(isset($pline))echo 'width:'.(100/$pline).'%;'; … … 302 302 background-image: <?php 303 303 $tfi='ch2'; 304 304 305 305 $tfc='#000'; 306 306 if(isset($theme["check_ic"])){$tfc=$theme["check_ic"];} … … 405 405 <?php if(isset($theme["button_fch"])){ 406 406 echo 'color:'.$theme["button_fch"].';'; 407 } 407 } 408 408 if(isset($theme["button_bch"])){ 409 409 echo 'background-color:'.$theme["button_bch"].';'; … … 416 416 #<?php echo $oppow_id;?> .optinpoint-subs-button.subsicon:before{ 417 417 padding-left: 35px; 418 <?php 418 <?php 419 419 if(isset($theme["button_w"])){ 420 420 echo 'padding-left:'.$theme["button_h"].'px;'; … … 430 430 left: 0; 431 431 pointer-events: none; 432 <?php 432 <?php 433 433 if(isset($theme["button_h"])){ 434 434 echo 'width:'.$theme["button_h"].'px;'; … … 542 542 <?php if(isset($theme['msg'])) echo '<div class="optinpoint_para">'.$theme['msg'].'</div>';?> 543 543 <form action="" method="post" > 544 544 545 545 <input type="hidden" name="action" value="optinpoint_lite_add_email_ajax"/> 546 546 <input type="hidden" name="oppoform" value="<?php echo $form['id'];?>"/> … … 553 553 $plugin->stfield($form['fields'],$set); 554 554 ?> 555 555 556 556 <div style="clear:both"></div> 557 557
Note: See TracChangeset
for help on using the changeset viewer.