For the new website we will use a wordpress shortcode called [show_file] to dynamically include the static HTML into the page, so we will need a HTML snippet rather than a complete web page. This is much better as it means that we inherit the header and footer with navigation menus etc, and the dashboard is properly integrated into the main website.
In this PR I strip out all of the HTML that is not needed and rename portal to ngi_website.
The diff isn't as big as it looks - if you view the first commit ignoring whitespace then you'll see that I haven't changed much. The main thing is that Wordpress uses jQuery instead of $, so I had to change the indentation of all javascript into a block that renames this so that $ works as expected.
This will break the current portal setup, so when merged / deployed we need to update the order portal to remove it from there. We also need to think about the downstream mechanisms to copy the resulting HTML file to a location on the external webserver. I'll make an issue about these tasks.
For the new website we will use a wordpress shortcode called
[show_file]
to dynamically include the static HTML into the page, so we will need a HTML snippet rather than a complete web page. This is much better as it means that we inherit the header and footer with navigation menus etc, and the dashboard is properly integrated into the main website.In this PR I strip out all of the HTML that is not needed and rename
portal
tongi_website
.The diff isn't as big as it looks - if you view the first commit ignoring whitespace then you'll see that I haven't changed much. The main thing is that Wordpress uses
jQuery
instead of$
, so I had to change the indentation of all javascript into a block that renames this so that$
works as expected.This will break the current portal setup, so when merged / deployed we need to update the order portal to remove it from there. We also need to think about the downstream mechanisms to copy the resulting HTML file to a location on the external webserver. I'll make an issue about these tasks.