tombroucke/otomaties-jobs 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱: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;
});

统计信息

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

GitHub 信息

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

其他信息

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