/** * Wordpress hook for displaying plugin options page * * @return void */ function windows_azure_storage_plugin_options_page() { ?> <script type="text/javascript"> function createContainer(url) { var htmlForm = document.getElementsByName("SettingsForm")[0]; var action = document.getElementsByName("action")[0]; if (typeof action !== "undefined") { action.name = 'action2'; } htmlForm.action = url; htmlForm.submit(); } function onContainerSelectionChanged(show) { var htmlForm = document.getElementsByName("SettingsForm")[0]; var divCreateContainer = document.getElementById("divCreateContainer"); if (htmlForm.elements["default_azure_storage_account_container_name"].value === "<Create New Container>") { divCreateContainer.style.display = "block"; htmlForm.elements["submitButton"].disabled = true; } else { if (show) { divCreateContainer.style.display = "block"; } else { divCreateContainer.style.display = "none"; } htmlForm.elements["submitButton"].disabled = false; } } </script> <div class="wrap"> <h2> <img src="../wp-content/plugins/windows-azure-storage/images/WindowsAzure.jpg" width="32" height="32"/>Windows Azure Storage for WordPress</h2> This WordPress plugin allows you to use Windows Azure Storage Service to host your media for your WordPress powered blog. Windows Azure provides storage in the cloud with authenticated access and triple replication to help keep your data safe. Applications work with data using REST conventions and standard HTTP operations to identify and expose data using URIs. This plugin allows you to easily upload, retrieve, and link to files stored on Windows Azure Storage service from within WordPress. <br/><br/> For more details on Windows Azure Storage Services, please visit the <a href="http://www.microsoft.com/azure/windowsazure.mspx">Windows Azure Platform web-site</a>.<br/> <p>This plugin uses Windows Azure SDK for PHP (<a href="https://github.com/WindowsAzure/azure-sdk-for-php/">https://github.com/WindowsAzure/azure-sdk-for-php/</a>). </p> <b>Plugin Web Site:</b> <a href="http://wordpress.org/extend/plugins/windows-azure-storage/"> http://wordpress.org/extend/plugins/windows-azure-storage/</a><br/><br/> </div> <div> <table> <tr> <td> <div id="icon-options-general" class="icon32"><br/></div> <h2>Windows Azure Storage Settings</h2> <p>If you do not have Windows Azure Storage Account, please <a href="http://go.microsoft.com/fwlink/?LinkID=129453">register </a>for Windows Azure Services.</p> <form method="post" name="SettingsForm" action="options.php"> <?php settings_fields('windows-azure-storage-settings-group'); show_windows_azure_storage_settings('admin'); ?> <p class="submit"> <input type="submit" name="submitButton" class="button-primary" value="<?php _e('Save Changes'); ?> " /> </p> </form> </td> </tr> </table> </div> <?php }
/** * Wordpress hook for displaying plugin options page * * @return void */ function windows_azure_storage_plugin_options_page() { //TODO implement with the Settings API ?> <div class="wrap"> <h2> <img src="<?php echo esc_url(MSFT_AZURE_PLUGIN_URL . 'images/WindowsAzure.jpg'); ?> " width="32" height="32" />Windows Azure Storage for WordPress</h2> This WordPress plugin allows you to use Windows Azure Storage Service to host your media for your WordPress powered blog. Windows Azure provides storage in the cloud with authenticated access and triple replication to help keep your data safe. Applications work with data using REST conventions and standard HTTP operations to identify and expose data using URIs. This plugin allows you to easily upload, retrieve, and link to files stored on Windows Azure Storage service from within WordPress. <br /><br /> For more details on Windows Azure Storage Services, please visit the <a href="http://www.microsoft.com/azure/windowsazure.mspx">Windows Azure Platform web-site</a>.<br /> <p>This plugin uses Windows Azure SDK for PHP (<a href="https://github.com/WindowsAzure/azure-sdk-for-php/">https://github.com/WindowsAzure/azure-sdk-for-php/</a>). </p> <b>Plugin Web Site:</b> <a href="http://wordpress.org/extend/plugins/windows-azure-storage/"> http://wordpress.org/extend/plugins/windows-azure-storage/</a><br /><br /> </div> <div> <table> <tr> <td> <div id="icon-options-general" class="icon32"><br /></div> <h2>Windows Azure Storage Settings</h2> <p>If you do not have Windows Azure Storage Account, please <a href="http://go.microsoft.com/fwlink/?LinkID=129453">register </a>for Windows Azure Services.</p> <form method="post" name="SettingsForm" action="options.php"> <?php settings_fields('windows-azure-storage-settings-group'); show_windows_azure_storage_settings('admin'); submit_button(__('Save Changes', 'windows-azure-storage'), 'submit primary', 'submitButton', true); ?> </form> </td> </tr> </table> </div> <?php }