} else { return $defaultOption; } } $sgOpacity = @sgGetValue($sgOpacity, $opacityValue); $sgWidth = @sgGetValue($sgWidth, $width); $sgHeight = @sgGetValue($sgHeight, $height); $sgInitialWidth = @sgGetValue($sgInitialWidth, $initialWidth); $sgInitialHeight = @sgGetValue($sgInitialHeight, $initialHeight); $sgMaxWidth = @sgGetValue($sgMaxWidth, $maxWidth); $sgMaxHeight = @sgGetValue($sgMaxHeight, $maxHeight); $duration = @sgGetValue($duration, $defaultDuration); $delay = @sgGetValue($delay, $defaultDelay); $sgPopupDataIframe = @sgGetValue($sgPopupDataIframe, 'http://'); $sgPopupDataHtml = @sgGetValue($sgPopupDataHtml, ''); $sgPopupDataImage = @sgGetValue($sgPopupDataImage, ''); function sgGetValue($getedVal, $defValue) { if (!isset($getedVal)) { return $defValue; } else { return $getedVal; } } $radioElements = array(array('name' => 'shareUrlType', 'value' => 'activeUrl', 'additionalHtml' => '' . '<span>' . 'Use active URL' . '</span></span>'), array('name' => 'shareUrlType', 'value' => 'shareUrl', 'additionalHtml' => '' . '<span>' . 'Enter to share URL' . '</span></span>' . '<input class="input-width-static" type="text" name="sgShareUrl" value="' . @$sgShareUrl . '">')); function sgCreateRadioElements($radioElements, $checkedValue) { $content = ''; for ($i = 0; $i < count($radioElements); $i++) { $checked = ''; $radioElement = @$radioElements[$i];
$sgHeight = @sgGetValue($sgHeight, $height); $sgInitialWidth = @sgGetValue($sgInitialWidth, $initialWidth); $sgInitialHeight = @sgGetValue($sgInitialHeight, $initialHeight); $sgMaxWidth = @sgGetValue($sgMaxWidth, $maxWidth); $sgMaxHeight = @sgGetValue($sgMaxHeight, $maxHeight); $duration = @sgGetValue($duration, $defaultDuration); $delay = @sgGetValue($delay, $defaultDelay); $sgPopupDataIframe = @sgGetValue($sgPopupDataIframe, 'http://'); $sgShareUrl = @sgGetValue($sgShareUrl, $shareUrl); $sgPopupDataHtml = @sgGetValue($sgPopupDataHtml, ''); $sgPopupDataImage = @sgGetValue($sgPopupDataImage, ''); $sgCountdownNumbersTextColor = @sgGetValue($sgCountdownNumbersTextColor, $countdownNumbersTextColor); $sgCountdownNumbersBgColor = @sgGetValue($sgCountdownNumbersBgColor, $countdownNumbersBgColor); $sgCountdownLang = @sgGetValue($sgCountdownLang, $countdownLang); $sgSelectedTimeZone = @sgGetValue($sgSelectedTimeZone, $timeZone); $sgDueData = @sgGetValue($sgDueData, $dueDate); function sgGetValue($getedVal, $defValue) { if (!isset($getedVal)) { return $defValue; } else { return $getedVal; } } $radioElements = array(array('name' => 'shareUrlType', 'value' => 'activeUrl', 'additionalHtml' => '' . '<span>' . 'Use active URL' . '</span></span> <span class="span-width-static"></span><span class="dashicons dashicons-info scrollingImg sameImageStyle sg-active-url"></span><span class="info-active-url samefontStyle">If this option is active Share URL will be current page URL.</span>'), array('name' => 'shareUrlType', 'value' => 'shareUrl', 'additionalHtml' => '' . '<span>' . 'Share url' . '</span></span>' . ' <input class="input-width-static sg-active-url" type="text" name="sgShareUrl" value="' . @$sgShareUrl . '">')); function sgCreateRadioElements($radioElements, $checkedValue) { $content = ''; for ($i = 0; $i < count($radioElements); $i++) { $checked = '';