定制 tombroucke/otomaties-jobs 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tombroucke/otomaties-jobs

最新稳定版本:2.4.2

Composer 安装命令:

composer require tombroucke/otomaties-jobs

包简介

Allow people to post jobs. Moderate jobs before publishing

README 文档

README

Add job functionality to your wordpress website

Prerequisites

  • PHP 8.x
  • ACF PRO

Installation

composer require tombroucke/otomaties-jobs

The plugin could be installed by cloning this repo and performing calling composer install from the root directory, but there will be no updates.

Layout

Templates

This plugin doesn't provide any templates. You should add archive-events.php and content-event.php yourself.

Bootstrap

The registration form uses default bootstrap classes. Following classes should be whitelisted from purgecss

  • table
  • alert
  • alert-success
  • alert-danger
  • col-12
  • row
  • mb-3
  • mb-0
  • col-sm-6
  • col-sm-4
  • col-sm-8
  • form-label
  • form-control
  • text-danger

Customization

Allow classes in job content

add_filter('otomaties_jobs_job_content_allowed_html', function ($allowedHtml) {
    foreach ($allowedHtml as $key => $value) {
        $allowedHtml[$key]['class'] = [];
    }
    return $allowedHtml;
});

Allow all html tags in job content

add_filter('otomaties_jobs_job_content_allowed_html', function (){
    global $allowedposttags;
    return $allowedposttags;
});

Add svg support to job content

add_filter('otomaties_jobs_job_content_allowed_html', function ($allowedHtml) {
    $allowedHtml['svg'] = ['class' => [], 'xmlns' => [], 'viewbox' => [], 'fill' => []];
    $allowedHtml['path'] = ['d' => [], 'fill' => []];
	$allowedHtml['circle'] = ['cx' => [], 'cy' => [], 'r' => []];
    return $allowedHtml;
});

统计信息

  • 总下载量: 864
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2021-08-24