is_plugin_page()) { return; } // Add help tabs based on current screen $screen_id = $current_screen->id; // Common help tab for all plugin pages $current_screen->add_help_tab(array( 'id' => 'alp-help-overview', 'title' => __('Overview', 'activity-log-pro'), 'content' => $this->get_help_content('overview'), )); // Add common help tabs for all plugin pages $current_screen->add_help_tab(array( 'id' => 'alp-help-getting-started', 'title' => __('Getting Started', 'activity-log-pro'), 'content' => $this->get_help_content('getting-started'), )); $current_screen->add_help_tab(array( 'id' => 'alp-help-security-best-practices', 'title' => __('Security Best Practices', 'activity-log-pro'), 'content' => $this->get_help_content('security-best-practices'), )); $current_screen->add_help_tab(array( 'id' => 'alp-help-compliance', 'title' => __('Compliance Guide', 'activity-log-pro'), 'content' => $this->get_help_content('compliance'), )); $current_screen->add_help_tab(array( 'id' => 'alp-help-troubleshooting', 'title' => __('Troubleshooting', 'activity-log-pro'), 'content' => $this->get_help_content('troubleshooting'), )); $current_screen->add_help_tab(array( 'id' => 'alp-help-premium', 'title' => __('Premium Features', 'activity-log-pro'), 'content' => $this->get_help_content('premium'), )); // Add screen-specific help tabs if (strpos($screen_id, 'activity-log-pro') !== false) { // Main activity log page if (strpos($screen_id, 'activity-log-pro-settings') === false && strpos($screen_id, 'activity-log-pro-export') === false) { $current_screen->add_help_tab(array( 'id' => 'alp-help-activity-log', 'title' => __('Activity Log', 'activity-log-pro'), 'content' => $this->get_help_content('activity-log'), )); $current_screen->add_help_tab(array( 'id' => 'alp-help-filtering', 'title' => __('Filtering & Searching', 'activity-log-pro'), 'content' => $this->get_help_content('filtering'), )); $current_screen->add_help_tab(array( 'id' => 'alp-help-live-monitor', 'title' => __('Live Monitor', 'activity-log-pro'), 'content' => $this->get_help_content('live-monitor'), )); } // Settings page if (strpos($screen_id, 'activity-log-pro-settings') !== false) { $current_screen->add_help_tab(array( 'id' => 'alp-help-settings', 'title' => __('Settings', 'activity-log-pro'), 'content' => $this->get_help_content('settings'), )); $current_screen->add_help_tab(array( 'id' => 'alp-help-event-tracking', 'title' => __('Event Tracking', 'activity-log-pro'), 'content' => $this->get_help_content('event-tracking'), )); $current_screen->add_help_tab(array( 'id' => 'alp-help-feeds', 'title' => __('Feeds', 'activity-log-pro'), 'content' => $this->get_help_content('feeds'), )); } // Export page if (strpos($screen_id, 'activity-log-pro-export') !== false) { $current_screen->add_help_tab(array( 'id' => 'alp-help-export', 'title' => __('Export', 'activity-log-pro'), 'content' => $this->get_help_content('export'), )); $current_screen->add_help_tab(array( 'id' => 'alp-help-export-formats', 'title' => __('Export Formats', 'activity-log-pro'), 'content' => $this->get_help_content('export-formats'), )); } // Integrations page if (strpos($screen_id, 'activity-log-pro-integrations') !== false) { $current_screen->add_help_tab(array( 'id' => 'alp-help-integrations', 'title' => __('Integrations', 'activity-log-pro'), 'content' => $this->get_help_content('integrations'), )); } // Stats & Insights page if (strpos($screen_id, 'activity-log-pro-stats') !== false) { $current_screen->add_help_tab(array( 'id' => 'alp-help-stats', 'title' => __('Stats & Insights', 'activity-log-pro'), 'content' => $this->get_help_content('stats'), )); $current_screen->add_help_tab(array( 'id' => 'alp-help-stats-overview', 'title' => __('Overview Metrics', 'activity-log-pro'), 'content' => $this->get_help_content('stats-overview'), )); $current_screen->add_help_tab(array( 'id' => 'alp-help-stats-security', 'title' => __('Security Insights', 'activity-log-pro'), 'content' => $this->get_help_content('stats-security'), )); } } // Add help sidebar $current_screen->set_help_sidebar($this->get_help_sidebar()); } /** * Get help content for a specific topic * * @since 1.0.0 * @param string $topic The help topic * @return string The help content */ /** * Check if we're on a plugin page * * @since 1.0.0 * @return boolean True if on a plugin page, false otherwise */ private function is_plugin_page() { // Only check in admin area if (!is_admin()) { return false; } // Get the current screen $screen = get_current_screen(); // Check if the screen ID contains our plugin slug if ($screen && strpos($screen->id, 'activity-log-pro') !== false) { return true; } // Check if we're on a plugin page by checking the current page // This is just a page check, not form processing, but we'll sanitize properly // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- This is a page detection check, not form submission processing if (isset($_GET['page'])) {$current_page = sanitize_text_field(wp_unslash($_GET['page']));if (strpos($current_page, 'activity-log-pro') !== false) {return true;} } return false; } /** * Enqueue scripts and styles for the help system * * @since 1.0.0 * @param string $hook Current admin page */ public function enqueue_scripts($hook) { // Only load on plugin pages if (!$this->is_plugin_page()) { return; } // Enqueue help styles wp_enqueue_style('alp-help-css', ACTLOGPRO_PLUGIN_URL . 'admin/css/alp-help.css', array(), ACTLOGPRO_VERSION); // Enqueue help script as a regular script first wp_register_script('alp-help-js', ACTLOGPRO_PLUGIN_URL . 'admin/js/modules/alp-help.js', array('jquery'), ACTLOGPRO_VERSION, true); wp_enqueue_script('alp-help-js'); // Add type="module" attribute using wp_script_add_data wp_script_add_data('alp-help-js', 'type', 'module'); } /** * AJAX handler for getting help content * * @since 1.0.0 */ public function ajax_get_help_content() { // Check nonce with proper sanitization if (!isset($_POST['nonce']) || !wp_verify_nonce(sanitize_key(wp_unslash($_POST['nonce'])), 'actlogpro_ajax_nonce')) { wp_send_json_error(array('message' => __('Security check failed.', 'activity-log-pro'))); } // Check user capabilities if (!current_user_can('manage_options')) { wp_send_json_error(array('message' => __('You do not have permission to perform this action.', 'activity-log-pro'))); } // Get the topic with proper sanitization $topic = isset($_POST['topic']) ? sanitize_text_field(wp_unslash($_POST['topic'])) : ''; // Get the help content $content = $this->get_help_content($topic); // Get the title $title = $this->get_help_title($topic); // Return the content wp_send_json_success(array( 'title' => $title, 'content' => $content )); } /** * Get help topic title. * * @since 1.0.0 * @param string $topic Help topic. * @return string Help title. */ private function get_help_title($topic) { switch ($topic) { case 'getting-started': $title = __('Getting Started', 'activity-log-pro'); break; case 'activity-log': $title = __('Activity Log', 'activity-log-pro'); break; case 'filtering': $title = __('Filtering & Searching', 'activity-log-pro'); break; case 'live-monitor': $title = __('Live Monitor', 'activity-log-pro'); break; case 'settings': $title = __('Settings', 'activity-log-pro'); break; case 'event-tracking': $title = __('Event Tracking', 'activity-log-pro'); break; case 'export': $title = __('Export', 'activity-log-pro'); break; case 'export-formats': $title = __('Export Formats', 'activity-log-pro'); break; case 'integrations': $title = __('Integrations', 'activity-log-pro'); break; case 'stats': $title = __('Stats & Insights', 'activity-log-pro'); break; case 'stats-overview': $title = __('Overview Metrics', 'activity-log-pro'); break; case 'stats-security': $title = __('Security Insights', 'activity-log-pro'); break; case 'security-best-practices': $title = __('Security Best Practices', 'activity-log-pro'); break; case 'compliance': $title = __('Compliance Guide', 'activity-log-pro'); break; case 'troubleshooting': $title = __('Troubleshooting', 'activity-log-pro'); break; case 'premium': $title = __('Premium Features', 'activity-log-pro'); break; default: $title = __('Help', 'activity-log-pro'); break; } return $title; } /** * Get help content for a specific topic * * @since 1.0.0 * @param string $topic The help topic * @return string The help content */ private function get_help_content($topic) { $content = ''; switch ($topic) { case 'overview': $content = '

' . __('Activity Log Pro Overview', 'activity-log-pro') . '

'; $content .= '

' . __('Activity Log Pro is a powerful WordPress plugin that tracks and logs all user activities with a clean, modern interface. It helps you monitor and audit all actions taken on your WordPress site for security, compliance, and troubleshooting purposes.', 'activity-log-pro') . '

'; $content .= '

' . __('Use the Help dropdown menu in the admin bar to access specific help topics for the current page.', 'activity-log-pro') . '

'; $content .= '

' . __('Key Benefits', 'activity-log-pro') . '

'; $content .= ''; break; case 'getting-started': $content = '

' . __('Getting Started with Activity Log Pro', 'activity-log-pro') . '

'; $content .= '

' . __('Activity Log Pro automatically begins tracking activities as soon as it\'s activated. Here are some quick tips to get started:', 'activity-log-pro') . '

'; $content .= ''; $content .= '

' . __('First Steps Checklist', 'activity-log-pro') . '

'; $content .= '
    '; $content .= '
  1. ' . __('Review the "Settings" page to customize which Core Track Events you want to monitor', 'activity-log-pro') . '
  2. '; $content .= '
  3. ' . __('Set an appropriate log retention period based on your compliance needs', 'activity-log-pro') . '
  4. '; $content .= '
  5. ' . __('Enable Security events tracking for enhanced site security monitoring', 'activity-log-pro') . '
  6. '; $content .= '
  7. ' . __('Consider enabling login notifications to inform users their actions are being logged', 'activity-log-pro') . '
  8. '; $content .= '
  9. ' . __('Check out the "Stats & Insights" page to get a visual overview of site activity', 'activity-log-pro') . '
  10. '; $content .= '
  11. ' . __('Review the "Integrations" page to enable tracking for third-party plugins you use', 'activity-log-pro') . '
  12. '; $content .= '
'; break; case 'activity-log': $content = '

' . __('Understanding the Activity Log', 'activity-log-pro') . '

'; $content .= '

' . __('The main Activity Log page displays all tracked events in a chronological order (newest first). Each log entry contains the following information:', 'activity-log-pro') . '

'; $content .= ''; $content .= '

' . __('Click on any log entry to view additional details and context information.', 'activity-log-pro') . '

'; $content .= '

' . __('WooCommerce Order Logging', 'activity-log-pro') . '

'; $content .= '

' . __('Activity Log Pro provides comprehensive logging for WooCommerce order activities:', 'activity-log-pro') . '

'; $content .= ''; $content .= '

' . __('The plugin supports both traditional WordPress post-based orders and the new WooCommerce HPOS (High-Performance Order Storage) system.', 'activity-log-pro') . '

'; break; case 'filtering': $content = '

' . __('Filtering & Searching the Activity Log', 'activity-log-pro') . '

'; $content .= '

' . __('Activity Log Pro provides powerful filtering options to help you find specific events:', 'activity-log-pro') . '

'; $content .= ''; $content .= '

' . __('You can combine multiple filters to narrow down your search. Click the "Apply Filters" button to apply your selections, or "Reset Filters" to clear all filters.', 'activity-log-pro') . '

'; $content .= '

' . __('The activity log table can be sorted by clicking on any column header. Click once to sort ascending, and again to sort descending.', 'activity-log-pro') . '

'; break; case 'live-monitor': $content = '

' . __('Using Live Monitor', 'activity-log-pro') . '

'; $content .= '

' . __('The Live Monitor feature allows you to view activity logs in real-time without manually refreshing the page:', 'activity-log-pro') . '

'; $content .= ''; $content .= '

' . __('Live Monitor is particularly useful for security monitoring or when troubleshooting issues in real-time. It makes an AJAX request to fetch the latest log data without refreshing the entire page.', 'activity-log-pro') . '

'; $content .= '

' . __('Note: Live Monitor will continue to run until you uncheck the box or navigate away from the page.', 'activity-log-pro') . '

'; break; case 'settings': $content = '

' . __('Configuring Settings', 'activity-log-pro') . '

'; $content .= '

' . __('The Settings page allows you to customize how Activity Log Pro works:', 'activity-log-pro') . '

'; $content .= '

' . __('General Settings', 'activity-log-pro') . '

'; $content .= ''; $content .= '

' . __('Core Track Events', 'activity-log-pro') . '

'; $content .= '

' . __('Select which types of events you want to track. You can enable or disable tracking for specific event categories:', 'activity-log-pro') . '

'; $content .= ''; $content .= '

' . __('Tracking more event types provides more comprehensive monitoring but may increase database size. Choose the events that are most important for your security and auditing needs.', 'activity-log-pro') . '

'; $content .= '

' . __('Feed Settings', 'activity-log-pro') . '

'; $content .= '

' . __('Configure JSON and RSS feeds for external access to your activity logs. Feed URLs are automatically generated based on your WordPress permalink structure for maximum compatibility.', 'activity-log-pro') . '

'; $content .= '

' . __('Login Notification', 'activity-log-pro') . '

'; $content .= '

' . __('Enable and customize a notification message that appears after users log in, informing them that their actions are being logged.', 'activity-log-pro') . '

'; $content .= '

' . __('Remember to click "Save Settings" after making any changes.', 'activity-log-pro') . '

'; break; case 'event-tracking': $content = '

' . __('Event Tracking Options', 'activity-log-pro') . '

'; $content .= '

' . __('Activity Log Pro can track various types of events in WordPress. You can customize which events to track based on your needs:', 'activity-log-pro') . '

'; $content .= ''; $content .= '

' . __('Tracking more event types provides more comprehensive monitoring but may increase database size. Choose the events that are most important for your security and auditing needs.', 'activity-log-pro') . '

'; $content .= '

' . __('Comment Event Details', 'activity-log-pro') . '

'; $content .= '

' . __('The comment tracking system provides detailed logging of all comment-related activities:', 'activity-log-pro') . '

'; $content .= ''; $content .= '

' . __('Each comment event includes relevant details such as the comment author, content, associated post, and the user who performed the action.', 'activity-log-pro') . '

'; $content .= '

' . __('Security Event Details', 'activity-log-pro') . '

'; $content .= '

' . __('The security tracking system monitors potential security threats and suspicious activities:', 'activity-log-pro') . '

'; $content .= ''; $content .= '

' . __('Security events are particularly important for identifying potential breaches and maintaining site security.', 'activity-log-pro') . '

'; break; case 'feeds': $content = '

' . __('Activity Log Feeds', 'activity-log-pro') . '

'; $content .= '

' . __('Activity Log Pro can provide activity logs as feeds for integration with external systems:', 'activity-log-pro') . '

'; $content .= '

' . __('JSON Feed', 'activity-log-pro') . '

'; $content .= '

' . __('The JSON feed provides activity logs in JSON format, which is ideal for programmatic access and integration with other systems.', 'activity-log-pro') . '

'; $content .= ''; $content .= '

' . __('RSS Feed', 'activity-log-pro') . '

'; $content .= '

' . __('The RSS feed provides activity logs in RSS format, which is ideal for feed readers and monitoring tools.', 'activity-log-pro') . '

'; $content .= ''; $content .= '

' . __('For security reasons, it is recommended to keep feeds private and use API keys for authentication when integrating with external systems.', 'activity-log-pro') . '

'; break; case 'export': $content = '

' . __('Exporting Activity Logs', 'activity-log-pro') . '

'; $content .= '

' . __('The Export page allows you to export activity logs for backup, analysis, or compliance purposes:', 'activity-log-pro') . '

'; $content .= '

' . __('Export Options', 'activity-log-pro') . '

'; $content .= ''; $content .= '

' . __('Export Process', 'activity-log-pro') . '

'; $content .= '
    '; $content .= '
  1. ' . __('Select your export options', 'activity-log-pro') . '
  2. '; $content .= '
  3. ' . __('Click the "Generate Export" button', 'activity-log-pro') . '
  4. '; $content .= '
  5. ' . __('Wait for the export to be generated (this may take some time for large exports)', 'activity-log-pro') . '
  6. '; $content .= '
  7. ' . __('Click the "Download Export" button when it appears', 'activity-log-pro') . '
  8. '; $content .= '
'; $content .= '

' . __('Exported files can be imported into spreadsheet applications, databases, or other analysis tools.', 'activity-log-pro') . '

'; break; case 'integrations': $content = '

' . __('About Integrations', 'activity-log-pro') . '

'; $content .= '

' . __('The Integrations page allows you to extend Activity Log Pro\'s functionality with additional third-party plugin integrations.', 'activity-log-pro') . '

'; $content .= '

' . __('Each integration provides specialized tracking for activities specific to that plugin. You can enable or disable individual integrations based on your needs.', 'activity-log-pro') . '

'; $content .= '

' . __('WooCommerce Integration', 'activity-log-pro') . '

'; $content .= '

' . __('The WooCommerce integration provides comprehensive tracking of all e-commerce activities:', 'activity-log-pro') . '

'; $content .= '
' . __('Orders', 'activity-log-pro') . '
'; $content .= ''; $content .= '
' . __('Products', 'activity-log-pro') . '
'; $content .= ''; $content .= '
' . __('Customers', 'activity-log-pro') . '
'; $content .= ''; $content .= '
' . __('Other Features', 'activity-log-pro') . '
'; $content .= ''; $content .= '

' . __('Note: The WooCommerce integration supports both traditional post-based orders and the new HPOS (High-Performance Order Storage) system.', 'activity-log-pro') . '

'; return $content; case 'stats': $content = '

' . __('About Stats & Insights', 'activity-log-pro') . '

'; $content .= '

' . __('The Stats & Insights page provides visual analytics and detailed metrics about the activity logs in your WordPress site.', 'activity-log-pro') . '

'; $content .= '

' . __('Use these statistics to identify patterns, monitor user activity, and improve security.', 'activity-log-pro') . '

'; return $content; case 'stats-overview': $content = '

' . __('Understanding Overview Metrics', 'activity-log-pro') . '

'; $content .= '

' . __('Activity Log Pro provides various metrics to help you understand your WordPress activity:', 'activity-log-pro') . '

'; $content .= '

' . __('Daily Stats', 'activity-log-pro') . '

'; $content .= '

' . __('The Daily Stats panel provides a snapshot of today\'s activity:', 'activity-log-pro') . '

'; $content .= ''; $content .= '

' . __('Activity Overview', 'activity-log-pro') . '

'; $content .= '

' . __('The Activity Overview section displays key metrics about your overall logs:', 'activity-log-pro') . '

'; $content .= ''; $content .= '

' . __('Activity Trends', 'activity-log-pro') . '

'; $content .= '

' . __('The Activity Trends section provides visual analytics of your WordPress activity:', 'activity-log-pro') . '

'; $content .= ''; return $content; case 'stats-security': $content = '

' . __('Security Insights Explained', 'activity-log-pro') . '

'; $content .= '

' . __('The Security Insights section helps you monitor potential security concerns:', 'activity-log-pro') . '

'; $content .= ''; $content .= '

' . __('Regularly reviewing these metrics can help identify potential security threats before they become serious issues.', 'activity-log-pro') . '

'; return $content; case 'security-best-practices': $content = '

' . __('Security Best Practices', 'activity-log-pro') . '

'; $content .= '

' . __('Activity Log Pro helps enhance your WordPress site security by providing comprehensive audit logging. Here are some security best practices:', 'activity-log-pro') . '

'; $content .= '

' . __('Regular Log Review', 'activity-log-pro') . '

'; $content .= ''; $content .= '

' . __('Alerts and Notifications', 'activity-log-pro') . '

'; $content .= ''; $content .= '

' . __('Access Control', 'activity-log-pro') . '

'; $content .= ''; $content .= '

' . __('Log Management', 'activity-log-pro') . '

'; $content .= ''; break; case 'compliance': $content = '

' . __('Using Activity Log Pro for Compliance', 'activity-log-pro') . '

'; $content .= '

' . __('Activity Log Pro helps organizations meet various regulatory compliance requirements by providing comprehensive audit logging capabilities:', 'activity-log-pro') . '

'; $content .= '

' . __('GDPR Compliance', 'activity-log-pro') . '

'; $content .= '

' . __('For EU General Data Protection Regulation (GDPR) compliance:', 'activity-log-pro') . '

'; $content .= ''; $content .= '

' . __('HIPAA Compliance', 'activity-log-pro') . '

'; $content .= '

' . __('For healthcare organizations subject to HIPAA:', 'activity-log-pro') . '

'; $content .= ''; $content .= '

' . __('PCI DSS Compliance', 'activity-log-pro') . '

'; $content .= '

' . __('For Payment Card Industry Data Security Standard compliance:', 'activity-log-pro') . '

'; $content .= ''; $content .= '

' . __('Compliance Export Requirements', 'activity-log-pro') . '

'; $content .= '

' . __('Recommendations for compliance-focused log management:', 'activity-log-pro') . '

'; $content .= ''; break; case 'troubleshooting': $content = '

' . __('Troubleshooting with Activity Log Pro', 'activity-log-pro') . '

'; $content .= '

' . __('Activity Log Pro can be an invaluable tool for diagnosing and resolving issues on your WordPress site:', 'activity-log-pro') . '

'; $content .= '

' . __('Common Troubleshooting Scenarios', 'activity-log-pro') . '

'; $content .= ''; $content .= '

' . __('Effective Log Filtering for Troubleshooting', 'activity-log-pro') . '

'; $content .= '
    '; $content .= '
  1. ' . __('Narrow the time range to when the issue first appeared', 'activity-log-pro') . '
  2. '; $content .= '
  3. ' . __('Filter by relevant event types (plugins, settings, posts, etc.)', 'activity-log-pro') . '
  4. '; $content .= '
  5. ' . __('Look for specific users if you suspect user-related issues', 'activity-log-pro') . '
  6. '; $content .= '
  7. ' . __('Use the search function to find specific content or components involved', 'activity-log-pro') . '
  8. '; $content .= '
'; $content .= '

' . __('Creating Troubleshooting Reports', 'activity-log-pro') . '

'; $content .= '

' . __('For ongoing issues or when working with support teams:', 'activity-log-pro') . '

'; $content .= '
    '; $content .= '
  1. ' . __('Filter the logs to relevant events', 'activity-log-pro') . '
  2. '; $content .= '
  3. ' . __('Export the filtered logs as CSV or JSON', 'activity-log-pro') . '
  4. '; $content .= '
  5. ' . __('Share the export with developers or support personnel', 'activity-log-pro') . '
  6. '; $content .= '
'; $content .= '

' . __('This approach provides detailed context about what happened before, during, and after an issue occurred.', 'activity-log-pro') . '

'; $content .= '

' . __('Feed URL Compatibility', 'activity-log-pro') . '

'; $content .= '

' . __('If you experience issues with JSON or RSS feed URLs (such as 404 errors):', 'activity-log-pro') . '

'; $content .= ''; $content .= '

' . sprintf( /* translators: %s: WordPress settings URL */ __('If feed URLs are not working, check your permalink settings and ensure your web server supports your chosen permalink structure.', 'activity-log-pro'), admin_url('options-permalink.php') ) . '

'; break; case 'premium': $content = '

' . __('Premium Features', 'activity-log-pro') . '

'; $content .= '

' . __('Activity Log Pro Premium is an upgrade that unlocks advanced features for professional site monitoring, compliance, and support.', 'activity-log-pro') . '

'; $content .= '

' . __('How to Get Premium', 'activity-log-pro') . '

'; $content .= '
    '; $content .= '
  1. ' . sprintf( /* translators: %s: Official website URL */ __('Visit the official website to purchase a license.', 'activity-log-pro'), 'https://activitylog.pro/pricing/' ) . '
  2. '; $content .= '
  3. ' . __('Download the premium add-on after purchase.', 'activity-log-pro') . '
  4. '; $content .= '
  5. ' . __('Install and activate the premium plugin via your WordPress dashboard.', 'activity-log-pro') . '
  6. '; $content .= '
  7. ' . __('Enter your license key in the plugin settings to enable premium features and updates.', 'activity-log-pro') . '
  8. '; $content .= '
'; $content .= '

' . __('Pricing & Costs', 'activity-log-pro') . '

'; $content .= '

' . sprintf( /* translators: %s: Pricing page URL */ __('Premium is available as an annual subscription: Personal 1 Site License, Business 3 Site License, Developer 20 Site License. For current pricing, see the pricing page.', 'activity-log-pro'), 'https://activitylog.pro/pricing/' ) . '

'; $content .= '

' . __('Premium Benefits', 'activity-log-pro') . '

'; $content .= ''; $content .= '

' . __('Support & Updates', 'activity-log-pro') . '

'; $content .= '

' . __('Premium users receive priority email support and access to all new features and improvements as they are released.', 'activity-log-pro') . '

'; $content .= '

' . __('Upgrade Now', 'activity-log-pro') . '

'; $content .= '

' . sprintf( /* translators: %s: Upgrade page URL */ __('Ready to unlock premium features? Upgrade to Premium today!', 'activity-log-pro'), 'https://activitylog.pro/pricing/' ) . '

'; break; default: $content = '

' . __('Select a help topic from the dropdown menu to view detailed information.', 'activity-log-pro') . '

'; break; } return $content; } /** * Get the help sidebar content * * @since 1.0.0 * @return string The help sidebar content */ private function get_help_sidebar() { $sidebar = '

' . __('For more information:', 'activity-log-pro') . '

'; $sidebar .= '

' . __('Documentation', 'activity-log-pro') . '

'; $sidebar .= '

' . __('Support', 'activity-log-pro') . '

'; $sidebar .= '

' . __('FAQ', 'activity-log-pro') . '

'; return $sidebar; } }