Example #1
0
</label>							

<br />
<?php 
$setting_count = 1;
$cur_value = mobileview_get_tab_setting_value();
if (is_array($cur_value) && count($cur_value)) {
    ?>
	<?php 
    foreach ($cur_value as $value) {
        ?>
		<input class="text-array" type="text" value="<?php 
        echo $value;
        ?>
" name="<?php 
        echo mobileview_get_tab_setting_name() . '_' . $setting_count;
        ?>
" />
		<?php 
        $setting_count++;
        ?>
		<br />
	<?php 
    }
}
?>

<input class="text-array" type="text" value="" name="<?php 
echo mobileview_get_tab_setting_name() . '_' . $setting_count;
?>
" />
Example #2
0
function mobileview_get_tab_setting_value()
{
    $settings = mobileview_get_settings();
    $name = mobileview_get_tab_setting_name();
    if (isset($settings->{$name})) {
        return $settings->{$name};
    } else {
        return false;
    }
}