Skip to content

Instantly share code, notes, and snippets.

@Sentinel-7
Last active August 17, 2017 13:15
Show Gist options
  • Save Sentinel-7/cd10dded678c2dff3f9f99dc1482cafc to your computer and use it in GitHub Desktop.
Save Sentinel-7/cd10dded678c2dff3f9f99dc1482cafc to your computer and use it in GitHub Desktop.
modal uikit onload
{'!Sendex' | snippet : [
'id' => '1'
'tplActivate' => 'tpl.Sendex.activate'
]}
<script>
$(function() {
var modal = UIkit.modal("#sendex");
modal.show();
});
</script>
<?php
if ($_GET['sx_subscribed']) {
return '<div id="sendex" class="uk-modal">
<div class="uk-modal-dialog">
<a class="uk-modal-close uk-close"></a>
Письмо-подтверждение отправлено на почту. Перейдите по ссылке из письма.
</div>
</div>';
}
if ($_GET['sx_confirmed']) {
return '<div id="sendex" class="uk-modal">
<div class="uk-modal-dialog">
<a class="uk-modal-close uk-close"></a>
Вы успешно подписаны на еженедельную email рассылку сайта.
</div>
</div>';
}
if ($_GET['sx_unsubscribed']) {
return '<div id="sendex" class="uk-modal">
<div class="uk-modal-dialog">
<a class="uk-modal-close uk-close"></a>
Вы успешно отписаны от рассылки новых статей сайта.
</div>
</div> ';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment