Popups Editor
Please make sure that the following directories exist and writable (set permissions 0777):
/var/www/app.onetwosale.co.il/popups/content/plugins
/var/www/app.onetwosale.co.il/popups/content/plugins
How to embed to your website
Layered Popups - How To Use Online Documentation
Embedding Layered Popups into website
To embed Layered Popups into any website you need perform the following steps:
- Make sure that your website loads jQuery version 1.8 or higher.
- Make sure that your website has DOCTYPE. If not, add the following line as a first line of HTML-document:
<!DOCTYPE html>
- Copy the following JS-snippet and paste it into your website. You need paste it at the end of
<body>
section (above closing</body>
tag). - That's it. Integration finished. :-)
Using Popups
There are several ways how you can use popups on your website.
- To raise the popup by clicking certain element:
onclick="return ulp_open('Popup-ID');"
- Or you can place it into link, here is an example:
<a href="#ulp-Popup-ID">Raise the popup</a>
- To raise the popup, when website loaded (OnLoad popup), add the following JS-code to your page. It must be inserted below
remote.min.js
.<script> ulp_add_event("onload", { popup: "Popup-ID", mode: "every-time", period: 5, delay: 0, close_delay: 0 }); </script>
- If you want to display popup once per session
<script> ulp_add_event("onload", { popup: "Popup-ID", mode: "once-session", period: 5, delay: 0, close_delay: 0 }); </script>
-
To embed the popup into page and display it as a part of its content, use the following HTML shortcode:
<div class="ulp-inline" data-id="Popup-ID"></div>