Skip to content

Commit e32d56e

Browse files
committed
hrm docs - projects added
1 parent 10af9da commit e32d56e

32 files changed

+1733
-0
lines changed

www/app.config.ts

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,18 @@ export default defineAppConfig({
4646
target: '_self',
4747
showLinkIcon: false,
4848
},
49+
{
50+
title: 'Job',
51+
to: '/comfortjob',
52+
target: '_self',
53+
showLinkIcon: false,
54+
},
55+
{
56+
title: 'Job Application',
57+
to: '/comfortjobapp',
58+
target: '_self',
59+
showLinkIcon: false,
60+
},
4961
],
5062
links: [
5163
{
@@ -64,6 +76,7 @@ export default defineAppConfig({
6476
},
6577
// Add sidebar configuration directly here
6678
sidebar: {
79+
6780
'/comfortresume/': [
6881
{
6982
text: 'Comfort Accounting',
@@ -106,6 +119,77 @@ export default defineAppConfig({
106119
],
107120
}
108121
],
122+
123+
'/comfortjob/': [
124+
{
125+
text: 'Comfort Job',
126+
collapsible: true,
127+
items: [
128+
{ text: 'How to install', link: '/comfortjob/how-to-install' },
129+
{ text: 'How to Translate', link: '/comfortjob/how-to-translate' },
130+
{ text: 'Template Override', link: '/comfortjob/template-override' },
131+
{ text: 'Hooks and Filters', link: '/comfortjob/hooks-and-filters' },
132+
{ text: 'Code Samples', link: '/comfortjob/code-samples' },
133+
],
134+
},
135+
{
136+
text: 'Shortcode',
137+
collapsible: true,
138+
items: [
139+
{ text: '9 Shortcodes', link: '/comfortjob/shortcodes' },
140+
],
141+
},
142+
{
143+
text: 'Widgets',
144+
collapsible: true,
145+
items: [
146+
{ text: 'Classic Widgets', link: '/comfortjob/classic-widgets' },
147+
{ text: 'Elementor Widget', link: '/comfortjob/elementor-widgets' },
148+
{ text: 'Gutenberg Blocks', link: '/comfortjob/gutenberg-blocks' },
149+
],
150+
},
151+
{
152+
text: 'User Guide',
153+
collapsible: true,
154+
items: [
155+
{ text: 'General', link: '/comfortjob/user-guide/general' },
156+
{ text: 'Job Manager', link: '/comfortjob/user-guide/job-manager' },
157+
{ text: 'Settings Manager', link: '/comfortjob/user-guide/settings' },
158+
{ text: 'Company Manager', link: '/comfortjob/user-guide/company-manager' },
159+
{ text: 'Job Category', link: '/comfortjob/user-guide/job-category' },
160+
{ text: 'Job Type', link: '/comfortjob/user-guide/job-type' },
161+
{ text: 'Job Tags', link: '/comfortjob/user-guide/job-tags' },
162+
{ text: 'Tools Manager', link: '/comfortjob/user-guide/tools-manager' },
163+
{ text: 'Emails', link: '/comfortjob/user-guide/emails' },
164+
],
165+
}
166+
],
167+
168+
'/comfortjobapp/': [
169+
{
170+
text: 'Comfort Job Application',
171+
collapsible: true,
172+
items: [
173+
{ text: 'How to install', link: '/comfortjobapp/how-to-install' },
174+
{ text: 'How to Translate', link: '/comfortjobapp/how-to-translate' },
175+
{ text: 'Template Override', link: '/comfortjobapp/template-override' },
176+
{ text: 'Hooks and Filters', link: '/comfortjobapp/hooks-and-filters' },
177+
{ text: 'Code Samples', link: '/comfortjobapp/code-samples' },
178+
],
179+
},
180+
{
181+
text: 'User Guide',
182+
collapsible: true,
183+
items: [
184+
{ text: 'General', link: '/comfortjobapp/user-guide/general' },
185+
{ text: 'Application Manager', link: '/comfortjobapp/user-guide/application-manager' },
186+
{ text: 'Settings Manager', link: '/comfortjobapp/user-guide/settings' },
187+
{ text: 'Tools Manager', link: '/comfortjobapp/user-guide/tools-manager' },
188+
{ text: 'Emails', link: '/comfortjobapp/user-guide/emails' },
189+
],
190+
}
191+
],
192+
109193
},
110194
main: {
111195
padded: true,
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
title: "Comfort Job Documentation"
3+
description: "Documentation for Comfort Job"
4+
keywords: "comfort job, wordpress, wordpress job plugin, plugin"
5+
url: "/comfortjob/classic-widgets"
6+
type: "article"
7+
site_name: "Comfort HRM"
8+
image: "https://comforthrm.com/assets/images/seo.png"
9+
card: "article"
10+
---
11+
# Classic Widgets
12+
13+
WordPress currently doesn’t support classic widgets but still you can enable it by using this plugin [“Classic Widgets”](https://wordpress.org/plugins/classic-widgets/)
14+
15+
Comfort Job for WordPress plugin supports classic widgets. To add Comfort Job classic widget from dashboard.
16+
17+
**Appearance -> Widgets -> Comfort Job**
18+
19+
Drag the “CBX Changelog” widget from left to any right-side sidebar(s).
20+
21+
After adding the widget to the sidebar, you can adjust the input fields and check your frontend.
22+
\[Video coming soon\]
23+
24+
The following classic widgets(currently 0 widgets (core and pro)) can be accessed from wordpress dashboard widget manager. We will keep adding more classic widgets for this plugin in future as needed. All widgets has shortcode and same params.
25+
26+
27+
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
---
2+
title: "Comfort Job Documentation"
3+
description: "Documentation for Comfort Job"
4+
keywords: "comfort job, wordpress, wordpress job plugin, plugin"
5+
url: "/comfortjob/code-samples"
6+
type: "type"
7+
site_name: "Comfort HRM"
8+
image: "https://comforthrm.com/assets/images/seo.png"
9+
card: "article"
10+
---
11+
12+
# Comfort Job Plugin – Code Samples
13+
14+
## Add a Job Programmatically
15+
16+
```php
17+
<?php
18+
use Comfort\Job\Models\ComfortJob;
19+
20+
$currentDate = gmdate( 'Y-m-d' ); // Get the current date
21+
$expiry_date = gmdate( 'Y-m-d', strtotime( $currentDate . " +$listing_duration days" ) );
22+
23+
// Add a new job
24+
$job_data = [
25+
'title' => 'Software Engineer',
26+
'slug' => 'software-engineer',
27+
'description' => 'We are looking for a skilled software engineer.',
28+
'status' => 'published',
29+
'salary_amount' => '5000',
30+
'company_id' => 1,
31+
'owner' => 1,
32+
'expiry_date' => $expiry_date,
33+
'add_by' = 1,
34+
'add_date' = gmdate( 'Y-m-d H:i:s' );
35+
];
36+
$new_job = ComfortJob::create($job_data);
37+
```
38+
39+
## Fetch Job Listings
40+
41+
```php
42+
use Comfort\Job\Helpers\ComfortJobHelpers;
43+
44+
// Get all published jobs
45+
$jobs = ComfortJobHelpers::jobListing([
46+
'status' => 'published',
47+
'limit' => 10,
48+
]);
49+
```
50+
51+
## Export Job Data
52+
53+
```php
54+
use Comfort\Job\Helpers\ComfortJobHelpers;
55+
56+
// Export job data to JSON
57+
$job_id = 123;
58+
$job_data = ComfortJobHelpers::getJob($job_id);
59+
$json_data = json_encode($job_data, JSON_PRETTY_PRINT);
60+
file_put_contents('job_' . $job_id . '.json', $json_data);
61+
```
62+
63+
---
64+
65+
# Comfort Job Pro Addon – Code Samples
66+
67+
## Manage Company Pages
68+
69+
```php
70+
use Comfort\JobPro\Helpers\JobProHelpers;
71+
72+
// Create a company manager page
73+
JobProHelpers::create_pages();
74+
```
75+
76+
## Add Custom Dashboard Menus
77+
78+
```php
79+
use Comfort\JobPro\Helpers\JobProHelpers;
80+
81+
// Add a custom menu to the employer dashboard
82+
add_filter('comfortjob_employer_dashboard_menus', function($menus) {
83+
$menus['custom_menu'] = [
84+
'title' => 'Custom Menu',
85+
'url' => admin_url('admin.php?page=custom_menu'),
86+
];
87+
return $menus;
88+
});
89+
```
90+
91+
---
92+
93+
For more details, refer to the plugin documentation or explore the helper classes:
94+
95+
- [`ComfortJobHelpers`]
96+
- [`JobProHelpers`]
97+
98+
99+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: "Comfort Job Documentation"
3+
description: "Documentation for Comfort Job"
4+
keywords: "comfort job, wordpress, wordpress job plugin, plugin"
5+
url: "/comfortjob/elementor-widgets"
6+
type: "type"
7+
site_name: "Comfort HRM"
8+
image: "https://comforthrm.com/assets/images/seo.png"
9+
card: "article"
10+
---
11+
# Elementor Widgets
12+
13+
14+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: "Comfort Job Documentation"
3+
description: "Documentation for Comfort Job"
4+
keywords: "comfort job, wordpress, wordpress job plugin, plugin"
5+
url: "/comfortjob/gutenberg-blocks"
6+
type: "type"
7+
site_name: "Comfort HRM"
8+
image: "https://comforthrm.com/assets/images/seo.png"
9+
card: "article"
10+
---
11+
# Gutenberg Blocks
12+
13+
14+

0 commit comments

Comments
 (0)