This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function schedule_my_popup( $is_loadable, $popup_id ) { | |
if( $popup_id == 123 ) { | |
$start = strtotime( 'May 4, 2016 11:59AM' ); | |
$end = strtotime( 'May 5, 2016 11:59AM' ); | |
$now = strtotime( 'now' ); | |
if( $now >= $start && $now <= $end ) { | |
return true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'wp_footer', 'hoc_popup_reg_form_check', 1000 ); | |
function pum14_popup_reg_form_check() { | |
if ( isset( $_POST['form_id'] ) && $_POST['form_id'] == 'my_form' ) { | |
?> | |
<script type="text/javascript"> | |
jQuery('#pum-123').animate({'scrollTop': 0}, 1000); | |
</script> | |
<?php | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html.pum-open.pum-open-overlay.pum-open-fixed .pum-overlay { | |
overflow: hidden; | |
position: fixed; | |
width: 100%; | |
} | |
html.pum-open.pum-open-overlay.pum-open-scrollable .pum-overlay.pum-active { | |
overflow-y: scroll; | |
-webkit-overflow-scrolling: touch; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.pum-open-overlay.pum-open-scrollable { | |
margin-right: 17px; | |
} | |
.pum-open-overlay.pum-open-scrollable body { | |
position: relative; | |
} | |
html.pum-open.pum-open-overlay.pum-open-scrollable body>[aria-hidden] { | |
padding-right: inherit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.pum-open-overlay.pum-open-scrollable { | |
margin-right: 17px; | |
position: relative; | |
} | |
html.pum-open.pum-open-overlay.pum-open-scrollable body>[aria-hidden] { | |
padding-right: inherit; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'wp_footer', 'my_custom_popup_scripts', 500 ); | |
function my_custom_popup_scripts() { ?> | |
<script type="text/javascript"> | |
(function ($, document, undefined) { | |
jQuery('#pum-123') | |
.on('pumAfterOpen', function () { |
NewerOlder