get_option('aspose_doc_importer_app_sid'), 'appKey' => get_option('aspose_doc_importer_app_key'), 'uploadpath' => $upload_path['path'], 'uploadURI' => $upload_path['url'], 'insert_doc_url' => plugins_url( 'getAsposeDocContent.php', __FILE__ ), 'aspose_files_url' => plugins_url( 'getAsposeFiles.php', __FILE__ ), ); wp_localize_script( 'aspose_doc_importer_script', 'AsposeDocParams', $params ); wp_enqueue_script( 'jquery-ui-dialog' ); wp_enqueue_script( 'jquery-ui-tabs' ); wp_enqueue_script( 'aspose_doc_importer_script' ); wp_register_style( 'AsposeDocImporterStyle', plugins_url( 'css/style.css', __FILE__), array(), '' ); wp_enqueue_style( 'AsposeDocImporterStyle'); wp_enqueue_style( 'jquery-ui-tabs'); wp_enqueue_style( 'wp-jquery-ui-dialog'); } add_action('init', 'AsposeDocImporterEnqueueScripts'); /** * Pluing settings page * @param no-param * @return no-return */ function AsposeDocImporterAdminContent() { // Creating the admin configuration interface ?>


If you don't have an account with Aspose Cloud, Click here to Sign Up.

Aspose Doc Importer'; return $context; } add_action( 'admin_footer', 'aspose_doc_add_inline_popup_content' ); function aspose_doc_add_inline_popup_content() { ?>

Please go to settings page and enter valid Aspose Cloud App ID & Key.

'Aspose-Doc-Importer-Select-File', 'TB_iframe' => 1 ), $image_library_url ); ?>

Select Doc File

ID]' value='" . esc_attr__( 'Use this Doc File For Importing' ) . "' />"; $form_fields['buttons'] = array('tr' => "\t\t$send\n"); $form_fields['context'] = array( 'input' => 'hidden', 'value' => 'Aspose-Doc-Importer-Select-File' ); return $form_fields; } function aspose_doc_importer_file_selected($html, $send_id) { $file_url = wp_get_attachment_url($send_id); $file_url = basename($file_url); ?>