function sgOnloadPopup()
{
    $page = get_queried_object_id();
    $popup = "sg_promotional_popup";
    $popupId = SGPopup::getPagePopupId($page, $popup);
    if (!$popupId) {
        return;
    }
    sgRenderPopupOpen($popupId);
}
Пример #2
0
function sgOnloadPopup()
{
    $sgOnloadPopupId = get_option('SG_POPUP_ONLOAD_ID');
    if ($sgOnloadPopupId) {
        sgRenderPopupOpen($sgOnloadPopupId);
    }
    $page = get_queried_object_id();
    $popup = "sg_promotional_popup";
    $popupId = SGPopup::getPagePopupId($page, $popup);
    if (!$popupId) {
        return;
    }
    sgRenderPopupOpen($popupId);
}