| // +----------------------------------------------------------------------+ /** * Renders chart data setup page. * * @category Visualizer * @package Render * @subpackage Page * * @since 1.0.0 */ class Visualizer_Render_Page_Data extends Visualizer_Render_Page { /** * Renders page content. * * @since 1.0.0 * * @access protected */ protected function _renderContent() { echo '
'; echo ''; echo '
'; } /** * Renders sidebar content. * * @since 1.0.0 * * @access protected */ protected function _renderSidebarContent() { $upload_link = add_query_arg( array( 'action' => Visualizer_Plugin::ACTION_UPLOAD_DATA, 'nonce' => Visualizer_Security::createNonce(), 'chart' => $this->chart->ID, ), admin_url( 'admin-ajax.php' ) ); echo '
  • '; echo '

    ', esc_html__( 'Upload CSV file', Visualizer_Plugin::NAME ), '

    '; echo '
    '; echo '

    '; esc_html_e( "Select and upload your data CSV file here. The first row of the CSV file should contain the column headings. If you are unsure about how to format your data CSV then please take a look at this sample:", Visualizer_Plugin::NAME ); echo ' ', $this->type, '.csv'; echo '

    '; echo '
    '; echo ''; echo '
    '; echo '
    '; echo ''; esc_attr_e( 'Upload CSV file', Visualizer_Plugin::NAME ); echo '
    '; echo '
    '; echo '
    '; echo '
    '; echo '
  • '; } /** * Renders toolbar content. * * @since 1.0.0 * * @access protected */ protected function _renderToolbar() { echo ''; esc_html_e( 'Back', Visualizer_Plugin::NAME ); echo ''; echo ''; esc_html_e( 'Next', Visualizer_Plugin::NAME ); echo ''; } }