Linux 软件免费装
Banner图

Orphans

开发者 iworks
更新时间 2024年12月5日 18:27
捐献地址: 去捐款
PHP版本: 8.0 及以上
WordPress版本: 6.7
版权: GPLv3 or later
版权网址: 版权信息

标签

grammar typography polish czech orphan

下载

2.7.5 3.1.1 3.2.6 2.6.6 2.6.8 2.6.9 2.7.0 2.7.1 2.7.2 2.7.3 2.7.6 2.7.8 2.6.5 2.7.4 2.9.9 3.2.0 3.2.5 2.4 3.3.0 3.0.2 2.6 2.7.7 2.6.4 2.6.7 2.8.1 2.8.2 2.9.0 2.9.1 2.9.2 2.9.3 2.9.4 2.5 3.0.1 3.1.2 3.2.8 3.2.9 2.6.1 3.2.2 3.2.7 3.3.1 2.8.0 2.9.10 2.9.5 3.0.3 3.1.0 3.0.4 2.9.7 2.6.2 2.6.3 2.9.11 2.9.8 3.0.0 3.1.3 2.7.9 2.6.6.1 3.2.1 3.2.3 3.2.4 2.9.6

详情介绍:

To avoid line breaks in the incorrect position, the plugin fixes orphans' positions and replaces space after orphan with a hard space. Orphan - a text composition error, which consists in leaving a lonely short word at the end or at the beginning of a verse, especially a single-character one. The word "lonely" here means separation from a closely related word by line breaks. Asset image Manuscript by Muffet, on Flickr GitHub The Orphans plugin is available also on GitHub - Orphans.

安装:

There are 3 ways to install this plugin: The super easy way
  1. Log in to your WordPress Admin panel.
  2. Go to: Plugins > Add New.
  3. Type ‘orphans’ into the Search Plugins field and hit Enter. Once found, you can view details such as the point release, rating and description.
  4. Click Install Now. After clicking the link, you’ll be asked if you’re sure you want to install the plugin.
  5. Click Yes, and WordPress completes the installation.
  6. Activate the plugin.
  7. A new menu Orphans in Appearance will appear in your Admin Menu.
The easy way
  1. Download the plugin (.zip file) on the right column of this page.
  2. In your Admin, go to the menu Plugins > Add.
  3. Select the button Upload Plugin.
  4. Upload the .zip file you just downloaded.
  5. Activate the plugin.
  6. A new menu Orphans in Appearance will appear in your Admin Menu.
The old and reliable way (FTP)
  1. Upload sierotki folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. A new menu Orphans in Appearance will appear in your Admin Menu.

屏幕截图:

  • Options for widgets.
  • Options for taxonomies.
  • Miscellaneous options.

升级注意事项:

3.1.0 - 2023-03-06 Switching from simple replacement to DOMDocument parsing and string replacement could cause problems for your sites if there are missing required PHP modules.

常见问题:

When does this plugin replace spaces?

Plugin works when viewing the content and does not modify your content.

I have a problem with the plugin, or I want to suggest a feature. Where can I do this?

You can do it on Support Threads, but please add your ticket to Github Issues.

How to use this plugin on the custom field?

Use orphan_replace filter. Example code: $value = apply_filters( 'orphan_replace', get_post_meta($post_id, 'meta_key', true ) );

How to use this plugin on any string?

Use orphan_replace filter. Example code: $value = apply_filters( 'orphan_replace', 'any string' );

How to change plugin capability?

By default to using this plugin you must have manage_options capability, which usually means site administrator. If you want to allow manage Orphans by "Editors" then you need to use other capabilities, e.g. unfiltered_html. You can use iworks_orphans_capability filter: add_filter('iworks_orphans_capability', 'my_orphans_capability'); function my_orphans_capability($capability) { return 'unfiltered_html'; }

How to turn of replacement in my piece of code?

At the beginning of your block just add: add_filter( 'orphan_skip_replacement', '__return_true' ); and at the end, to again turn on replacements: remove_filter( 'orphan_skip_replacement', '__return_true' );

How can I change default orphans?

Please use iworks_orphan_terms filter. It is array of default orphans. You can remove, add or even replace whole array. For example, to remove words "oraz", "na" and ""nie", use code bellow: add_filter( 'iworks_orphan_terms', 'remove_iworks_orphan_terms' ); function remove_iworks_orphan_terms( $terms ) { $default_orphans_to_remove = array( 'oraz', 'na', 'nie', ); foreach( $default_orphans_to_remove as $value ) { if ( $key = array_search( $value, $terms ) ) { unset( $terms[ $key ] ); } } return $terms; }

How can I change the default orphan file?

The default file with definitions is located in the etc/ directory. You can change it using the filter iworks_orphan_own_terms_file: ` add_filter( 'iworks_orphan_own_terms_file', function( $file ) { return '<own path to file'; } ); '

更新日志:

3.3.1 - 2024-12-05 3.3.0 - 2024-12-02 3.2.9 - 2024-11-17 3.2.8 - 2024-08-21 3.2.7 - 2024-02-21 3.2.6 - 2023-12-27 3.2.5 - 2023-11-30 3.2.4 - 2023-10-26 3.2.3 - 2023-09-04 3.2.2 - 2023-07-12 3.2.1 - 2023-07-07 3.2.0 - 2023-07-05 3.1.3 - 2023-06-27 3.1.2 - 2023-03-10 3.1.1 - 2023-03-07 3.1.0 - 2023-03-06 3.0.5 - 2023-01-11 3.0.4 - 2022-11-20 3.0.3 - 2022-09-02 3.0.2 - 2022-08-06 3.0.1 - 2022-07-18 3.0.0 - 2022-04-21 2.9.11 - 2022-04-05 2.9.10 - 2022-04-05 2.9.9 - 2022-03-29 2.9.8 - 2022-02-05 2.9.7 - 2022-02-05 2.9.6 - 2022-02-03 2.9.5 - 2022-02-02 2.9.4 - 2022-02-02 2.9.3 - 2022-01-20 2.9.2 - 2022-01-19 2.9.1 - 2021-12-09 2.9.0 - 2021-12-09 2.8.2 - 2021-12-03 2.8.1 - 2021-11-26 2.8.0 - 2021-08-31 2.7.9 - 2021-06-23 2.7.8 - 2021-01-13 2.7.7 - 2020-06-20 2.7.6 - 2020-06-08 2.7.5 - 2019-11-12 2.7.4 - 2018-03-16 2.7.3 - 2018-03-15 2.7.2 - 2018-02-13 2.7.1 - 2017-12-22 2.7.0 - 2017-06-29 2.6.9 - 2017-05-24 2.6.8 - 2017-05-23 2.6.7 - 2017-05-09 2.6.6.1 - 2017-04-30 2.6.6 - 2017-04-30 2.6.5 - 2016-11-01 2.6.4 - 2016-11-01 2.6.3 - 2016-10-25 2.6.2 - 2016-02-27 2.6.1 - 2016-01-11 2.6 - 2016-01-09 2.5 - 2015-11-06 2.4 - 2015-02-12 2.3.2 - 2014-09-12 2.3.1 - 2014-09-12 2.3 - 2014-07-10 2.2 - 2014-01-24 2.1 - 2013-11-09 2.0.2 - 2013-08-20 2.0.1 - 2013-07-10 2.0 - 2012-08-12 1.4.2 - 2012-03-02 1.4.1 - 2011-02-24 1.4 - 2011-02-24 1.3 - 2011-02-19 1.2 - 2011-02-18 1.1 - 2011-02-17 1.0.2 - 2011-02-17 1.0.1 - 2011-02-16 1.0 - 2011-02-16