Changeset 1533326
- Timestamp:
- 11/13/2016 04:50:50 PM (9 years ago)
- Location:
- moptin-email-subscription-optin-form/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
moptin-email-subscription-optin-form/trunk/index.php
r1507199 r1533326 4 4 * Plugin URI: http://mycodingtricks.com 5 5 * Description: Moptin is a Email Opt-in WordPress Plugin 6 * Version: 2016.1 0.36 * Version: 2016.11.13 7 7 * Author: Shubham Kumar 8 8 * Author URI: http://mycodingtricks.com … … 10 10 * Network: true 11 11 */ 12 $ver = "2016.10.2.1";13 12 include __DIR__.'/moptin-post-type.php'; 14 13 include __DIR__.'/meta-box.php'; … … 16 15 function load_Moptin(){ 17 16 global $ver; 18 wp_enqueue_script('moptin_js',plugins_url('moptin.js',__FILE__),array('jquery'), $ver);19 wp_enqueue_style('moptin_css',plugins_url('style.css',__FILE__),15 );17 wp_enqueue_script('moptin_js',plugins_url('moptin.js',__FILE__),array('jquery'),"2016.11.13"); 18 wp_enqueue_style('moptin_css',plugins_url('style.css',__FILE__),15,'2016.11.13'); 20 19 wp_enqueue_style('Montserrat','https://fonts.googleapis.com/css?family=Montserrat:700,400'); 21 20 } -
moptin-email-subscription-optin-form/trunk/moptin.js
r1507199 r1533326 12 12 body = $("body"), 13 13 id = $self.attr("id"), 14 forcedToClose=false, 14 15 delay=0, 15 16 scrollOffset=0, … … 46 47 } 47 48 }; 48 self.close = function(id){ 49 49 self.close = function(id){ 50 forcedToClose=true; 50 51 $self.fadeOut(300,function(){ 51 52 if($self.hasClass("moptin-takeover")){ … … 125 126 }; 126 127 self.show = function(){ 128 if(forcedToClose) return false; 127 129 $self.fadeIn(500,function(){ 128 130 self.centerImg(); … … 140 142 $(document).scroll(function(){ 141 143 var scrollTop = $(this).scrollTop(); 142 if(scrollTop>settings.scrollOffset ) self.show();144 if(scrollTop>settings.scrollOffset && $("#"+id).length>0) self.show(); 143 145 }); 144 146 }else if($self.hasClass("moptin__display-exit")){ … … 157 159 self.OptimiseForScroll = function(){ 158 160 if($self.hasClass("moptin-takeover")){ 161 // console.log(self); 162 // console.log($(self)); 159 163 body.addClass("moptin-takeover-body"); 160 164 } -
moptin-email-subscription-optin-form/trunk/readme.txt
r1507199 r1533326 5 5 Requires at least: 3.1 6 6 Tested up to: 4.6 7 Stable tag: 2016.1 0.37 Stable tag: 2016.11.13 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 44 44 1. Added some more options in Admin Panel. 45 45 2. Cleaned some code. 46 47 == 2016.11.13 == 48 49 1.Fixed Scroll Bug
Note: See TracChangeset
for help on using the changeset viewer.