render(__('See all Products', 'affililabs'), esc_url(admin_url('admin.php?page=affililabs-products')), AFFILILABS_ASSETS_LETTER_P_SVG); ?>
load_scripts(); $log_page->render(); class AFFLLogPage { public function load_scripts() { wp_enqueue_style('affililabs-log', AFFILILABS_LOG_PAGE_CSS_URL, array(), AFFILILABS_VERSION); wp_enqueue_script('affililabs-log', AFFILILABS_LOG_PAGE_JS_URL, array('jquery'), AFFILILABS_VERSION, true); $i18n = array( 'copied' => __('Copied!', 'affililabs'), 'failed_to_copy' => __('Failed to copy!', 'affililabs') ); wp_localize_script('affililabs-log', 'affililabs_log_i18n', $i18n); } public function render() { $navbar = new AffiliLabs_Navbar(); $navbar->load_scripts(); $button = new AffiliLabs_Button(); $video_frame = new AffiliLabs_VideoFrame(); $log_service = new AFFLLogService(); $error_logs = $log_service->get_logs('error.log'); $debug_logs = $log_service->get_logs('debug.log'); $general_logs = $log_service->get_general_log(); ?>
render(__('See all Products', 'affililabs'), esc_url(admin_url('admin.php?page=affililabs-products')), AFFILILABS_ASSETS_LETTER_P_SVG); ?>