
A easy way to manage your options Page.
| Author: | Nico Martin (profile at wordpress.org) |
| WordPress version required: | 4.0 |
| WordPress version tested: | 4.5.33 |
| Plugin version: | 1.0.3 |
| Added to WordPress repository: | 16-05-2015 |
| Last updated: | 02-06-2016
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
| Rating, %: | 0 |
| Rated by: | 0 |
| Plugin URI: | http://vir2al.ch |
| Total downloads: | 1 332 |
| Active installs: | 10+ |
![]() Click to start download |
|
This Plugin let’s you create an beautiful options page based on AJAX.
Note: This PlugIn is made for Developers only. If you are not the Developer of the theme or plugin. Ask your developer.
SetUp
- Create a File called “options.php”.
- Add the following to your functions.php or plugin.php
< ?php //check if plugin exists
if(function_exists ('create_vtl_options_page')){
include('options.php');
add_action('admin_menu', 'register_options_pages');
} else {
function vtco_error_notice() {
echo '‘.__(‘You need to Install the Plugin “vir2al options”‘).’
‘;
}
add_action( ‘admin_notices’, ‘vtco_error_notice’ );
} ?>
options.php
<?php
function vtco_register_settings_pages(){
//Add any Page you want here
add_options_page( 'Additional Options', 'Additional Options', 'manage_options', 'addoptions', 'options_cbfunc');
}
function options_cbfunc(){
ob_start();
// create your form ?>
<fieldset data-name="Tab 1">
<table>
<tr>
<td>Test</td>
<td><?php echo get_vtlo_input('option_name'); ?></td>
</tr>
</table>
</fieldset>
<fieldset data-name="Tab 2">
<table>
<tr>
<td>Test Image</td>
<td><?php echo get_vtlo_imgupload('option_name_img'); ?></td>
</tr>
</table>
</fieldset>
<?php
$html=ob_get_contents();
ob_end_clean();
//let the magic happen
return create_vtl_options_page($html);
}
?>
Possible inputs
Textarea: get_vtlo_textarea(name);
Input: get_vtlo_input(name);
Select: get_vtlo_select(name,options_array);
IMG: get_vtlo_imgupload(name);
Multi IMG: get_vtlo_multiimgupload(name);
Colorinput: get_vtlo_colorinput(name,default_color);
Screenshots
FAQ
ChangeLog

