{"id":36329,"date":"2015-05-16T04:45:30","date_gmt":"2015-05-16T04:45:30","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/vir2al-options\/"},"modified":"2016-06-02T13:05:18","modified_gmt":"2016-06-02T13:05:18","slug":"vir2al-options","status":"publish","type":"plugin","link":"https:\/\/hi.wordpress.org\/plugins\/vir2al-options\/","author":13848695,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.3","stable_tag":"1.0.3","tested":"4.5.33","requires":"4.0","requires_php":"","requires_plugins":"","header_name":"vir2al Options","header_author":"Nico Martin","header_description":"","assets_banners_color":"ffffff","last_updated":"2016-06-02 13:05:18","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.me\/NicoMartin","header_plugin_uri":"http:\/\/vir2al.ch","header_author_uri":"http:\/\/vir2al.ch","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1354,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"":"<p>none<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":"1161656","resolution":"128x128","location":"assets"},"icon-256x256.jpg":{"filename":"icon-256x256.jpg","revision":"1161656","resolution":"256x256","location":"assets"}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":"1161656","resolution":"1544x500","location":"assets"},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"1161656","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","1.0.3"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1161656","resolution":"1","location":"assets"}},"screenshots":{"1":"the options Page"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2218],"plugin_category":[],"plugin_contributors":[86599],"plugin_business_model":[],"class_list":["post-36329","plugin","type-plugin","status-publish","hentry","plugin_tags-options","plugin_contributors-nico_martin","plugin_committers-nico_martin"],"banners":{"banner":"https:\/\/ps.w.org\/vir2al-options\/assets\/banner-772x250.jpg?rev=1161656","banner_2x":"https:\/\/ps.w.org\/vir2al-options\/assets\/banner-1544x500.jpg?rev=1161656","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/vir2al-options\/assets\/icon-128x128.jpg?rev=1161656","icon_2x":"https:\/\/ps.w.org\/vir2al-options\/assets\/icon-256x256.jpg?rev=1161656","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/vir2al-options\/assets\/screenshot-1.png?rev=1161656","caption":"the options Page"}],"raw_content":"<!--section=description-->\n<p>This Plugin let's you create an beautiful options page based on AJAX.<\/p>\n\n<p><strong>Note:<\/strong> This PlugIn is made for Developers only. If you are not the Developer of the theme or plugin. Ask your developer.<\/p>\n\nSetUp\n\n<ol>\n<li>Create a File called \"options.php\".<\/li>\n<li>Add the following to your functions.php or plugin.php \n&lt; ?php \/\/check if plugin exists\n    if(function_exists (&#039;create_vtl_options_page&#039;)){\n      include(&#039;options.php&#039;);\n      add_action(&#039;admin_menu&#039;, &#039;register_options_pages&#039;);\n    } else {\n        function vtco_error_notice() {\n            echo &#039;<p>'.__('You need to Install the Plugin \"vir2al options\"').'<\/p>';\n        }\n        add_action( 'admin_notices', 'vtco_error_notice' );\n    } ?&gt;<\/li>\n<\/ol>\n\noptions.php\n\n<pre><code>&lt;?php\nfunction vtco_register_settings_pages(){\n    \/\/Add any Page you want here\n    add_options_page( 'Additional Options', 'Additional Options', 'manage_options', 'addoptions', 'options_cbfunc');\n}\n\nfunction options_cbfunc(){\n  ob_start();\n  \/\/ create your form ?&gt;\n  &lt;fieldset data-name=\"Tab 1\"&gt;\n      &lt;table&gt;\n          &lt;tr&gt;\n              &lt;td&gt;Test&lt;\/td&gt;\n              &lt;td&gt;&lt;?php echo get_vtlo_input('option_name'); ?&gt;&lt;\/td&gt;\n          &lt;\/tr&gt;\n      &lt;\/table&gt;\n  &lt;\/fieldset&gt;\n  &lt;fieldset data-name=\"Tab 2\"&gt;\n      &lt;table&gt;\n          &lt;tr&gt;\n              &lt;td&gt;Test Image&lt;\/td&gt;\n              &lt;td&gt;&lt;?php echo get_vtlo_imgupload('option_name_img'); ?&gt;&lt;\/td&gt;\n          &lt;\/tr&gt;\n      &lt;\/table&gt;\n   &lt;\/fieldset&gt;\n   &lt;?php\n   $html=ob_get_contents();\n   ob_end_clean();\n   \/\/let the magic happen\n   return create_vtl_options_page($html);\n}\n?&gt;\n<\/code><\/pre>\n\nPossible inputs\n\n<p><strong>Textarea:<\/strong>       get_vtlo_textarea(name);\n<strong>Input:<\/strong>          get_vtlo_input(name);\n<strong>Select:<\/strong>         get_vtlo_select(name,options_array);\n<strong>IMG:<\/strong>                get_vtlo_imgupload(name);\n<strong>Multi IMG:<\/strong>  get_vtlo_multiimgupload(name);\n<strong>Colorinput:<\/strong>  get_vtlo_colorinput(name,default_color);<\/p>\n\n<!--section=installation-->\n<p>This section describes how to install the plugin and get it working.<\/p>\n\n<p>e.g.<\/p>\n\n<ol>\n<li>Install the Plugin either via the WordPress.org plugin directory, or by uploading the files to your server.<\/li>\n<li>Activate the Plugin<\/li>\n<li>You're ready to set up your Options Page.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>No questions yet<\/dt>\n<dd><p>Please feel free to contact me: nico@vir2al.ch<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>First Version<\/li>\n<\/ul>","raw_excerpt":"A easy way to manage your options Page.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/hi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/36329","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/hi.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/hi.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=36329"}],"author":[{"embeddable":true,"href":"https:\/\/hi.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/nico_martin"}],"wp:attachment":[{"href":"https:\/\/hi.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=36329"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/hi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=36329"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/hi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=36329"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/hi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=36329"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/hi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=36329"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/hi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=36329"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}