[WordPress] 外掛分享: Jobbnorge Block

首頁外掛目錄 › Jobbnorge Block
10+
安裝啟用
尚無評分
剛更新
最後更新
問題解決
WordPress 6.5+ PHP 8.2+ v2.3.0 上架:2023-01-23

內容簡介

Jobbnorge Block 外掛提供一個簡便的方式來顯示來自 Jobbnorge 的工作職缺,支援多個雇主的設定與排序,並可自訂顯示的工作數量與格式,讓網站管理者能輕鬆整合工作資訊。

【主要功能】
• 支援多個雇主的工作顯示
• 可依截止日期排序工作職缺
• 自訂顯示的工作數量
• 可選擇顯示或隱藏工作摘要
• 支援網格或列表視圖顯示

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.3.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Jobbnorge Block」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

In 2.0 the new Jobbnorge API is used, and the following features are available ( ~~strikethrough~~ means removed, since it’s not in the new API):

In pagination mode (default), set the number of jobs to display per page (10 is default), else set the number of jobs to display.
Sort jobs bye deadline, closest first.
Does not show jobs that are past the deadline.
Set the number of jobs to display.
~~Set the number of words in the excerpt.~~
Set the no jobs message.
Show or hide the job excerpt.
Show or hide the job deadline.
Show or hide the job scope.
~~Show or hide the job duration.~~
Display the jobs in a grid or list view.
Set the number of columns in the grid view.

New features in 2.0:
– Add more than one employer.
– If more than one employer is added, order jobs by employer or deadline.
– Define which employers are available in the block, using the jobbnorge_employers filter.
Filters
jobbnorge_employers
The jobbnorge_employers filter can be used to define which employers are available in the block:
add_filter( 'jobbnorge_employers', function( $employers ) {
$employers = [
[
'label' => 'Select employer',
'value' => '',
'disabled' => true, // Optional.
],
[
'label' => 'Employer 1',
'value' => '1234',
],
[
'label' => 'Employer 2',
'value' => '5678',
],
];
return $employers;
} );

jobbnorge_cache_path
The jobbnorge_cache_path filter can be used to define the cache path. Default is WP_CONTENT_DIR . '/cache/jobbnorge'.
jobbnorge_cache_time
The jobbnorge_cache_time filter can be used to define the cache time. Default is 30 * MINUTE_IN_SECONDS.
jobbnorge_autoscroll_threshold
The jobbnorge_autoscroll_threshold filter adjusts when automatic scroll engages after pagination. The value is a float representing the fraction of the viewport height the block’s top must be within to skip scrolling (default 0.25). Example:
add_filter( 'jobbnorge_autoscroll_threshold', function( $threshold ) {
return 0.15; // Scroll only if block starts below top 15% of viewport.
} );

Block Settings
When pagination is enabled a setting Disable auto scroll on pagination becomes available. Enabling it adds a disableAutoScroll attribute (and data-no-autoscroll in markup) preventing the page from scrolling after changing pages.
GitHub
The plugin is also available on GitHub

延伸相關外掛

文章
Filter
Apply Filters
Mastodon