$sgScrolling = @sgSetChecked($sgScrolling, $scrolling);
$sgCloseType = @sgSetChecked($sgCloseType, $closeType);
$sgOnScrolling = @sgSetChecked($sgOnScrolling, $onScrolling);
$sgForMobile = @sgSetChecked($sgForMobile, $forMobile);
$sgRepeatPopup = @sgSetChecked($sgRepeatPopup, $repetPopup);
$sgDisablePopup = @sgSetChecked($sgDisablePopup, $disablePopup);
$sgAutoClosePopup = @sgSetChecked($sgAutoClosePopup, $autoClosePopup);
$sgFbStatus = @sgSetChecked($sgFbStatus, $fbStatus);
$sgTwitterStatus = @sgSetChecked($sgTwitterStatus, $twitterStatus);
$sgEmailStatus = @sgSetChecked($sgEmailStatus, $emailStatus);
$sgLinkedinStatus = @sgSetChecked($sgLinkedinStatus, $linkedinStatus);
$sgGoogleStatus = @sgSetChecked($sgGoogleStatus, $googleStatus);
$sgPinterestStatus = @sgSetChecked($sgPinterestStatus, $pinterestStatus);
$sgRoundButtons = @sgSetChecked($sgRoundButton, $roundButtons);
$sgSocialLabel = @sgSetChecked($sgSocialLabel, $socialLabel);
$sgPopupFixed = @sgSetChecked($sgPopupFixed, $deafultFixed);
function sgSetChecked($optionsParam, $defaultOption)
{
    if (isset($optionsParam)) {
        if ($optionsParam == '') {
            return '';
        } else {
            return 'checked';
        }
    } else {
        return $defaultOption;
    }
}
$sgOpacity = @sgGetValue($sgOpacity, $opacityValue);
$sgWidth = @sgGetValue($sgWidth, $width);
$sgHeight = @sgGetValue($sgHeight, $height);
$sgRepeatPopup = @sgSetChecked($sgRepeatPopup, $repetPopup);
$sgDisablePopup = @sgSetChecked($sgDisablePopup, $disablePopup);
$sgAutoClosePopup = @sgSetChecked($sgAutoClosePopup, $autoClosePopup);
$sgFbStatus = @sgSetChecked($sgFbStatus, $fbStatus);
$sgTwitterStatus = @sgSetChecked($sgTwitterStatus, $twitterStatus);
$sgEmailStatus = @sgSetChecked($sgEmailStatus, $emailStatus);
$sgLinkedinStatus = @sgSetChecked($sgLinkedinStatus, $linkedinStatus);
$sgGoogleStatus = @sgSetChecked($sgGoogleStatus, $googleStatus);
$sgPinterestStatus = @sgSetChecked($sgPinterestStatus, $pinterestStatus);
$sgRoundButtons = @sgSetChecked($sgRoundButton, $roundButtons);
$sgSocialLabel = @sgSetChecked($sgSocialLabel, $socialLabel);
$sgPopupFixed = @sgSetChecked($sgPopupFixed, $deafultFixed);
$sgPushToBottom = @sgSetChecked($sgPushToBottom, $pushToBottom);
@($sgAllPages = get_option('SG_POPUP_ONLOAD_ID') && get_option('SG_POPUP_ONLOAD_ID') == $id ? true : false);
$sgAllPages = @sgSetChecked($sgAllPages, $allPages);
$sgCountdownPosition = @sgSetChecked($sgCountdownPosition, $countdownPosition);
function sgSetChecked($optionsParam, $defaultOption)
{
    if (isset($optionsParam)) {
        if ($optionsParam == '') {
            return '';
        } else {
            return 'checked';
        }
    } else {
        return $defaultOption;
    }
}
$sgOpacity = @sgGetValue($sgOpacity, $opacityValue);
$sgWidth = @sgGetValue($sgWidth, $width);
$sgHeight = @sgGetValue($sgHeight, $height);