Rename About tab to Read Me and display README.md content
This commit is contained in:
@ -1,47 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* About page data for WP ALLSTARS plugin
|
||||
* Content supports markdown formatting
|
||||
*/
|
||||
|
||||
if (!defined('ABSPATH')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
// Define about page content
|
||||
function wp_allstars_get_about_content() {
|
||||
return [
|
||||
'title' => 'About WP ALLSTARS',
|
||||
'content' => <<<MARKDOWN
|
||||
## Welcome to WP ALLSTARS
|
||||
|
||||
WP ALLSTARS is a powerful all-in-one WordPress toolkit designed to help you build, manage, and optimize your WordPress websites more efficiently.
|
||||
|
||||
### Our Mission
|
||||
|
||||
Our mission is to simplify WordPress development and management by providing a comprehensive suite of tools that work seamlessly together.
|
||||
|
||||
### Key Features
|
||||
|
||||
* **Theme Management**: Easily install and manage professional WordPress themes
|
||||
* **Plugin Recommendations**: Curated lists of the best free and premium plugins
|
||||
* **Workflow Optimization**: Tools to streamline your development process
|
||||
* **Hosting Recommendations**: Find the perfect hosting provider for your needs
|
||||
* **Advanced Settings**: Fine-tune your WordPress installation
|
||||
|
||||
### Get in Touch
|
||||
|
||||
Have questions or suggestions? We'd love to hear from you!
|
||||
|
||||
* **Website**: [wpallstars.com](https://wpallstars.com)
|
||||
* **Documentation**: [docs.wpallstars.com](https://docs.wpallstars.com)
|
||||
* **Support**: [support@wpallstars.com](mailto:support@wpallstars.com)
|
||||
|
||||
### Credits
|
||||
|
||||
WP ALLSTARS is developed and maintained by a team of WordPress enthusiasts dedicated to creating the best possible WordPress experience.
|
||||
|
||||
Version: {WP_ALLSTARS_VERSION}
|
||||
MARKDOWN
|
||||
];
|
||||
}
|
46
admin/data/readme.php
Normal file
46
admin/data/readme.php
Normal file
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/**
|
||||
* Read Me data for WP ALLSTARS plugin
|
||||
* Content is pulled from the README.md file
|
||||
*/
|
||||
|
||||
if (!defined('ABSPATH')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
// Define readme content
|
||||
function wp_allstars_get_readme_content() {
|
||||
// Get README.md content
|
||||
$readme_path = WP_PLUGIN_DIR . '/wpa-superstar-plugin/README.md';
|
||||
$readme_content = '';
|
||||
|
||||
if (file_exists($readme_path)) {
|
||||
$readme_content = file_get_contents($readme_path);
|
||||
} else {
|
||||
// Fallback content if README.md is not found
|
||||
$readme_content = <<<MARKDOWN
|
||||
# WP Allstars
|
||||
|
||||
A WordPress plugin that enhances your WordPress experience with curated plugins, themes, and optimization tools.
|
||||
|
||||
## Description
|
||||
|
||||
WP Allstars is a powerful WordPress plugin designed to help site owners and developers optimize their WordPress installations. It provides a curated collection of recommended plugins, themes, and optimization tools all in one place.
|
||||
|
||||
## Features
|
||||
|
||||
- **Curated Plugin Recommendations**: Browse and install recommended free plugins organized by category.
|
||||
- **Pro Plugin Showcase**: Discover premium plugins with direct links to purchase.
|
||||
- **Theme Integration**: Easily install and activate the Kadence theme.
|
||||
- **Workflow Optimization**: Tools to streamline your WordPress workflow.
|
||||
- **Advanced Settings**: Fine-tune your WordPress installation with advanced configuration options.
|
||||
|
||||
Version: {WP_ALLSTARS_VERSION}
|
||||
MARKDOWN;
|
||||
}
|
||||
|
||||
return [
|
||||
'title' => 'Read Me',
|
||||
'content' => $readme_content
|
||||
];
|
||||
}
|
Reference in New Issue
Block a user