示例#1
0
?>
>1 week</option>
			<option value="336" <?php 
SplashGate::selected_opt($options['recurrance'], '336');
?>
>2 weeks</option>
		</optgroup>
		<optgroup label="Months">
			<option value="672" <?php 
SplashGate::selected_opt($options['recurrance'], '672');
?>
>1 month</option>
			<option value="1344"<?php 
SplashGate::selected_opt($options['recurrance'], '1344');
?>
>2 months</option>
			<option value="2016"<?php 
SplashGate::selected_opt($options['recurrance'], '2016');
?>
>3 months</option>
		</optgroup>
		<optgroup label="Testing">
			<option value="-1"  <?php 
SplashGate::selected_opt($options['recurrance'], '-1');
?>
>Every page load</option>
		</optgroup>
	</select>
</p>

<p><em>After a visitor sees the splash page, it gets repressed for a length of time.  Set that repression duration here.</em></p>
示例#2
0
<?php

$width = isset($options['window_width']) && !empty($options['window_width']) ? $options['window_width'] : 414;
$height = isset($options['window_height']) && !empty($options['window_height']) ? $options['window_height'] : 360;
?>

<p>
	<select id="splashgate_options_style" name="splashgate_options[style]">
		<option value="1"<?php 
SplashGate::selected_opt($options['style'], '1');
?>
>Page Redirect</option>
		<option value="2"<?php 
SplashGate::selected_opt($options['style'], '2');
?>
>Pop Over (fancybox)</option>
	</select>
</p>

<div id="splashgate_options_fancybox" style="display: <?php 
echo $options['style'] == '2' ? 'block' : 'none';
?>
">
	<p><label>Fancybox width <input type="number" name="splashgate_options[window_width]" value="<?php 
echo $width;
?>
"></label></p>
	<p><label>Fancybox height <input type="number" name="splashgate_options[window_height]" value="<?php 
echo $height;
?>
"></label></p>