Pagebreak Description

外掛說明

  • Enter page breaks and before/after descriptions. Values are used in pagination.
  • Do not mix this block with the Page Break block, as it may cause the comment to be misaligned.

How it works

Filter hooks

/** ==================================================
 * Filter for CSS URL.
 * Default CSS -> /pagebreak-description/css/style.css
 */
add_filter(
    'pagebreak_description_css', 
    function() {

        /* If you put mydesign.css in wp-content/uploads */
        $wp_uploads = wp_upload_dir();
        $upload_url = $wp_uploads['baseurl'];
        if ( is_ssl() ) {
            $upload_url = str_replace( 'http:', 'https:', $upload_url );
        }
        $upload_url = untrailingslashit( $upload_url );
        $url = $upload_url . '/mydesign.css';

        return $url;
    },
    10,
    1
);

螢幕擷圖

  • Block
  • View
  • Management screen

適用於區塊編輯器

這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。

  • Page breaks and before/after descriptions Enter page breaks and before/after descriptions. Values are used in pagination. Do not mix this block with the Page Break block, as it may cause the comment to be misaligned.

安裝方式

  1. Upload pagebreak-description directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

常見問題集

none

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Pagebreak Description〉的開發相關工作。

參與者

〈Pagebreak Description〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Pagebreak Description〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

[1.11] 2024/11/15

  • Fix – Rebuilt javascript.
  • Change – Changed the required version of WordPress.

[1.10] 2024/11/09

  • Fix – Rebuilt blocks.

[1.09] 2024/06/11

  • Fix – CSS in a single file.
  • Added – Management screen.
  • Added – Uninstall script.

[1.08] 2024/06/10

  • Fix – Pagination Description.

[1.07] 2024/06/10

  • Added – Pagination before content.

[1.06] 2024/06/10

  • Added – Tooltip processing for mobile devices.

[1.05] 2024/06/09

  • Added – Display a tooltip on the page link with a description of that page.

[1.04] 2024/06/08

  • Fix – Insert title tags into page links.
  • Removed – Uninstall script.

[1.03] 2024/06/08

  • Fix – Insert title tags into page links.
  • Fix – Uninstall script.

[1.02] 2024/06/08

  • Added – Insert title tags into page links.
  • Added – Uninstall script.

[1.01] 2024/01/14

  • Tweak – Support for Glotpress.

[1.00] 2024/01/14

Initial release.