|
| 1 | +--- |
| 2 | +title: "Comfort Resume Documentation" |
| 3 | +description: "Documentation for Comfort Resume" |
| 4 | +keywords: "Comfort Resume index keywords." |
| 5 | +url: "/resume/user-guide/general" |
| 6 | +type: "type" |
| 7 | +site_name: "Comfort HRM" |
| 8 | +image: "https://comforthrm.com/assets/images/seo.png" |
| 9 | +card: "article" |
| 10 | + |
| 11 | +--- |
| 12 | + |
| 13 | +# Comfort Resume User Guide |
| 14 | + |
| 15 | +The Comfort Resume plugin is designed to simplify resume/CV management within WordPress. It provides features for resume listings, resume builder related functionalities. |
| 16 | + |
| 17 | +## File Structure |
| 18 | + |
| 19 | +``` |
| 20 | +resume/ |
| 21 | +├── assets/ |
| 22 | +│ ├── css/ |
| 23 | +│ ├── js/ |
| 24 | +│ ├── vendors/ |
| 25 | +├── includes/ |
| 26 | +│ ├── Api/ |
| 27 | +│ ├── Controllers/ |
| 28 | +│ ├── Helpers/ |
| 29 | +│ ├── Models/ |
| 30 | +│ ├── ComfortResume.php |
| 31 | +│ ├── ComfortResumeAdmin.php |
| 32 | +│ ├── ComfortResumeHooks.php |
| 33 | +│ ├── ComfortResumePublic.php |
| 34 | +│ ├── ComfortResumeShortcode.php |
| 35 | +│ └── ComfortResumeUninstall.php |
| 36 | +├── templates/ |
| 37 | +│ ├── admin/ |
| 38 | +│ ├── global/ |
| 39 | +│ ├── resume/ |
| 40 | +│ └── shortcodes/ |
| 41 | +├── resume.php |
| 42 | +└── readme.txt |
| 43 | +``` |
| 44 | +## Key Files and Directories |
| 45 | + |
| 46 | +- **assets/**: Contains CSS, JavaScript, and vendor files. |
| 47 | +- **includes/**: Contains core PHP files for the plugin, including API routes, controllers, helpers, models, and main plugin classes. |
| 48 | +- **templates/**: Contains template files for the plugin's frontend and admin views. |
| 49 | +- **resume.php**: The main plugin file that initializes the plugin. |
| 50 | + |
| 51 | +### ComfortResume |
| 52 | + |
| 53 | +The main class for the plugin, located in `wp-content/plugins/resume/includes/ComfortResume.php`. |
| 54 | + |
| 55 | +```php |
| 56 | +class ComfortResume { |
| 57 | + public static function instance() { |
| 58 | + // Returns the main instance of ComfortResume. |
| 59 | + } |
| 60 | + |
| 61 | + public function __construct() { |
| 62 | + // Constructor method. |
| 63 | + } |
| 64 | + |
| 65 | + private function include_files() { |
| 66 | + // Includes necessary files. |
| 67 | + } |
| 68 | +} |
| 69 | +``` |
| 70 | +### ComfortResumeAdmin |
| 71 | +Handles the admin functionalities of the plugin, located in `ComfortResumeAdmin.php`. |
| 72 | + |
| 73 | +``` |
| 74 | +<?php |
| 75 | +class ComfortResumeAdmin { |
| 76 | + public function create_menus() { |
| 77 | + // Creates admin menus. |
| 78 | + } |
| 79 | +
|
| 80 | + public function display_resume_listing_page() { |
| 81 | + // Displays the resume listing page. |
| 82 | + } |
| 83 | +} |
| 84 | +``` |
| 85 | +### ComfortResumePublic |
| 86 | +Handles the public-facing functionalities of the plugin, located in `ComfortResumePublic.php`. |
| 87 | + |
| 88 | +``` |
| 89 | +<?php |
| 90 | +class ComfortResumePublic { |
| 91 | + public function enqueue_scripts() { |
| 92 | + // Enqueues public scripts and styles. |
| 93 | + } |
| 94 | +} |
| 95 | +``` |
| 96 | +### ComfortResumeShortcode |
| 97 | +Handles the public-facing functionalities of the plugin, located in `ComfortResumeShortcode.php`. |
| 98 | + |
| 99 | +``` |
| 100 | +<?php |
| 101 | +class ComfortResumeShortcode { |
| 102 | + public function init_shortcode() { |
| 103 | + // Initializes shortcodes. |
| 104 | + } |
| 105 | +
|
| 106 | + public function resume_resume_details_shortcode($atts) { |
| 107 | + // Handles the resume details shortcode. |
| 108 | + } |
| 109 | +} |
| 110 | +``` |
| 111 | + |
| 112 | +### Job Details |
| 113 | + |
| 114 | +To display resume details, use the following shortcode: |
| 115 | + |
| 116 | +```php |
| 117 | +[resume_resume_details] |
| 118 | +``` |
| 119 | + |
| 120 | +### Job Archive |
| 121 | + |
| 122 | +To display a list of resume listings, use the following shortcode: |
| 123 | + |
| 124 | +```php |
| 125 | +[resume_resume_archive] |
| 126 | +``` |
| 127 | + |
| 128 | +### Employer Dashboard |
| 129 | + |
| 130 | +To display the employer dashboard, use the following shortcode: |
| 131 | + |
| 132 | +```php |
| 133 | +[resume_employer_dashboard] |
| 134 | +``` |
| 135 | + |
| 136 | +### Candidate Dashboard |
| 137 | + |
| 138 | +To display the candidate dashboard, use the following shortcode: |
| 139 | + |
| 140 | +```php |
| 141 | +[resume_candidate_dashboard] |
| 142 | +``` |
| 143 | + |
| 144 | +### Job Dashboard |
| 145 | + |
| 146 | +To display the resume dashboard, use the following shortcode: |
| 147 | + |
| 148 | +```php |
| 149 | +[resume_resume_dashboard] |
| 150 | +``` |
| 151 | + |
| 152 | +### Frontend Job Management |
| 153 | + |
| 154 | +1. Create a new page in WordPress. |
| 155 | +2. Add the `[resume_resume_manager]` shortcode to the page content. |
| 156 | +3. Publish the page. |
| 157 | +4. Users can now submit resume listings from the frontend. |
| 158 | + |
| 159 | + |
| 160 | +## Uninstallation |
| 161 | + |
| 162 | +The uninstallation script is located in ComfortResumeUninstall.php. |
| 163 | + |
| 164 | +``` |
| 165 | +<?php |
| 166 | +do_action('resume_plugin_uninstall'); |
| 167 | +``` |
0 commit comments