开发者 | conundrum89 |
---|---|
更新时间 | 2014年4月30日 11:09 |
捐献地址: | 去捐款 |
PHP版本: | 3.6 or higher 及以上 |
WordPress版本: | 3.9 |
版权: | GLPv2 or later |
版权网址: | 版权信息 |
<?php gtf_mark_forum_read_link() ?>
The recommended location to include it is in content-single-forum.php
, next to the Subscribe link.
This operation may take some time, so an AJAX indicator is included along with the link. If the default AJAX indicator doesn't suit your theme, you are encouraged to replace it with your own. The plugin will look in the following places for an indicator, in this order, before falling back on the default:
CHILD_THEME_DIRECTORY/images/ajax-loader.gif
CHILD_THEME_DIRECTORY/images/ajax-loader.png
PARENT_THEME_DIRECTORY/images/ajax-loader.gif
PARENT_THEME_DIRECTORY/images/ajax-loader.png
loop-replies.php
):
<?php gtf_mark_topic_read_link() ?>
The recommended location to include it is in loop-replies.php
, after the User Favorites link. By default it displays with a pipe character at the end, to match the separation between the User Favorites and Subscribe link.Check your bbPress plugin version - if you're not running the latest version, the plugin may not work, as it hasn't been tested extensively with other versions.
The links generated by the plugin try to match as closely as possible the Markup used by the bbPress plugin, and each offers a number of IDs and classes for which you can define your own styles. If you need to alter the markup or content itself, the plugin also offers the hooks you'd expect on each method:
gtf_get_unread_post_link
for the post link;gtf_get_mark_forum_read_link
for the mark forum read link; andgtf_get_mark_topic_read_link
for the mark topic read link.