admin_url( '/' ), 'ajaxUrl' => admin_url( 'admin-ajax.php' ), 'rootApiUrl' => esc_url_raw( rest_url() ), 'restNonce' => wp_create_nonce( 'wp_rest' ), 'verifynonce' => wp_create_nonce( 'pixelavoopt_verifynonce' ), 'tabs' => Options_Field::instance()->get_settings_tabs(), 'sections' => Options_Field::instance()->get_settings_subtabs(), 'settings' => Options_Field::instance()->get_registered_settings(), 'options' => pixelavo_get_options( Options_Field::instance()->get_registered_settings() ), 'labels' => [ 'pro' => __( 'Pro', 'pixelavo' ), 'modal' => [ 'title' => __( 'BUY PRO', 'pixelavo' ), 'buynow' => __( 'Buy Now', 'pixelavo' ), 'desc' => __( 'Our free version is great, but it doesn\'t have all our advanced features. The best way to unlock all of the features in our plugin is by purchasing the pro version.', 'pixelavo' ) ], 'saveButton' => [ 'text' => __( 'Save Settings', 'pixelavo' ), 'saving' => __( 'Saving...', 'pixelavo' ), 'saved' => __( 'Data Saved', 'pixelavo' ), ], 'enableAllButton' => [ 'enable' => __( 'Enable All', 'pixelavo' ), 'disable' => __( 'Disable All', 'pixelavo' ), ], 'resetButton' => [ 'text' => __( 'Reset All Settings', 'pixelavo' ), 'reseting' => __( 'Resetting...', 'pixelavo' ), 'reseted' => __( 'All Data Restored', 'pixelavo' ), 'alert' => [ 'one'=>[ 'title' => __( 'Are you sure?', 'pixelavo' ), 'text' => __( 'It will reset all the settings to default, and all the changes you made will be deleted.', 'pixelavo' ), 'confirm' => __( 'Yes', 'pixelavo' ), 'cancel' => __( 'No', 'pixelavo' ), ], 'two'=>[ 'title' => __( 'Reset!', 'pixelavo' ), 'text' => __( 'All settings has been reset successfully.', 'pixelavo' ), 'confirm' => __( 'OK', 'pixelavo' ), ] ], ], 'pixelDelete' => [ 'alert' => [ 'title' => __( 'Are you sure?', 'pixelavo' ), 'desc' => __( 'You won\'t be able to revert this pixel!', 'pixelavo' ), 'label' => [ 'confirm' => __('Yes, delete it!', 'pixelavo') ] ], 'success' => [ 'title' => __( 'Deleted!', 'pixelavo' ), 'desc' => __( 'Your pixel has been deleted.', 'pixelavo' ), ] ], 'pixelBtn' => [ 'default' => [ 'save' => __( 'Save', 'pixelavo' ), 'update' => __( 'Update', 'pixelavo' ) ], 'saving' => [ 'save' => __( 'Saving...', 'pixelavo' ), 'update' => __( 'Updating...', 'pixelavo' ) ], 'saved' => [ 'save' => __( 'Saved', 'pixelavo' ), 'update' => __( 'Updated', 'pixelavo' ), ], ], 'eventBtn' => [ 'default' => [ 'save' => __( 'Save', 'pixelavo' ), 'update' => __( 'Update', 'pixelavo' ) ], 'saving' => [ 'save' => __( 'Saving...', 'pixelavo' ), 'update' => __( 'Updating...', 'pixelavo' ) ], 'saved' => [ 'save' => __( 'Saved', 'pixelavo' ), 'update' => __( 'Updated', 'pixelavo' ), ], ] ] ]; wp_localize_script( 'pixelavoopt-admin', 'pixelavoOptions', $option_localize_script ); } /** * Render our admin page * * @return void */ public function plugin_page() { ob_start(); include_once PIXELAVO_INCLUDES .'/templates/settings-page.php'; echo ob_get_clean(); } }