이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

Bg Book Publisher

설명

When you save a post, the plugin splits it into pages and adds a table of contents in the form of a spoiler to the top of each page.

On the post editing page you can set the maximum level of headers included in the table of contents and the level of headings where you break the pages (see screenshot).

You can set the header levels from 1 to 6, and also disable the action of the plug-in for this post by unchecking the item ‘this post is book’.

You can also set the author of the published book, which will be showed directly in the post title.
To insert name of book author into the text you can also use shortcode [book_author] or PHP-function bg_bpub_book_author($post_id) in page template.

CSS

To customize the post appearance, you can use the following classes:
1. bg_bpub_toc – class of contaner (div) with table of contents.
2. bg_bpub_toc_h1 … bg_bpub_toc_h6 – classes of chapter headers in table of contents.
3. bg_bpub_book_author – class of contaner (span) with name of book author.

PHP filters

  • bg_bpub_post_types – array of post types processed by the plugin, default is [‘post’, ‘page’];

  • bg_bpub_title – title html after book author is added;

  • bg_toc – html output of the TOC;

Notes for Translators

You can translate this plugin using POT-file in languages folder with program PoEdit (http://www.poedit.net/).
More in detail about translation WordPress plugins, see “Translating WordPress” (https://codex.wordpress.org/Translating_WordPress).

Send me your PO-files. I will insert them in plugin in next version.

License

GNU General Public License v2

스크린샷

  • Plugin’s post settings.
  • Plugin’s options.

설치

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

후기

2021년 12월 19일
This plugin is as described, and it does this task in a minimal and simple way. Love it. The only things I would change are two: Some minor language errors (for example, this post is book should be This post is a book) Add a setting option to make this plugin work with custom post types. Thank you so much for this plugin.
모든 1 평가 읽기

기여자 & 개발자

“Bg Book Publisher”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Bg Book Publisher”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

= 1.25

  • Collapsible TOC; individual post setting + global option to expand depending on number of items.

  • Grid-TOC option for shot-named items e.g. numbers.

  • Full-text link (displays all pages at once).

  • Hooks added

1.1.0

  • Unordered List in TOC.

1.0.3

  • Allow saving post in admin dashboard only.

1.0.2

  • Delete anchor from the TOC link to the first header on the page.

1.0.1

  • Fixed some bugs.

1.0

  • Plugin in start edition