http://www.applacarte.com to setup and customize your app. Version: 1.0.5.1 Author: App La Carte Ltd Author */ include_once(plugin_dir_path( __FILE__ ).'/include/xml-api-functions.php'); add_action('init', 'xml_api_plugin_init'); function xml_api_plugin_init(){ if(isset($_REQUEST['applacarte_wp_api'])){ //echo '
';
		//print_r($_REQUEST);
		//echo '
'; switch ($_REQUEST['applacarte_wp_api']) { case 'articles': //echo 'articles'; include_once(plugin_dir_path( __FILE__ ).'/api/articles.php'); break; case 'article_details': //echo "article_details"; include_once(plugin_dir_path( __FILE__ ).'/api/article_details.php'); break; case 'comments': //echo "comments"; include_once(plugin_dir_path( __FILE__ ).'/api/comments.php'); break; case 'latest_articles': //echo "latest_articles"; include_once(plugin_dir_path( __FILE__ ).'/api/latest_articles.php'); break; case 'post_comment': //echo "post_comment"; include_once(plugin_dir_path( __FILE__ ).'/api/post_comment.php'); break; case 'post_comment_form': //echo "post_comment_form"; include_once(plugin_dir_path( __FILE__ ).'/api/post_comment_form.php'); break; case 'search': //echo "search"; include_once(plugin_dir_path( __FILE__ ).'/api/search.php'); break; case 'info': include_once(plugin_dir_path( __FILE__ ).'/api/api_info.php'); break; } exit; } } add_action('admin_menu', 'xml_api_plugin_menu'); function xml_api_plugin_menu() { add_options_page('App La Carte settings', 'App La Carte settings', 8, 'applacarte_wp_options', 'applacarte_wp_options_page'); } function applacarte_wp_options_page() { $opt_name = 'alc_api_options'; $hidden_field_name = 'alc_api_hidden'; $data_field_name = 'alc_api_option'; // Read in existing option value from database $opt_val = get_option( $opt_name ); echo ' '; // See if the user has posted us some information // If they did, this hidden field will be set to 'Y' if( $_POST[ $hidden_field_name ] == 'Y' ) { //echo '
';
	//print_r($_POST);
	//echo '
'; $_POST[$data_field_name]['cat'] = $_POST['post_category']; // Read their posted value $opt_val = $_POST[ $data_field_name ]; // Save the posted value in the database update_option( $opt_name, $opt_val ); // Put an options updated message on the screen ?>

App La Carte plugin Settings


Categories for export



Article listing

Posts per page:



Comments listing

Comments per page:


?>