Counts page/posts hits via AJAX.
通过AJAX计算页面/帖子的点击数。
Ideal for nginx whole-page-caching or caching plugins.
Nginx全页缓存或缓存插件的理想选择。 p>
For plugin’s work you DON’T need any javascript-framework (jQuery, MooTools, etc.)
对于插件的工作,您不需要任何javascript框架(jQuery,MooTools等) p>
Popular Posts Widget included.
包含热门帖子小部件。 p>
You can fully customize displaying of widget by using predefined placeholders, such as {post_id}
, {post_title}
, {post_title_N}
,
您可以使用预定义的占位符(例如 {post_id} code>, {post_title} code>, {post_title_N} code>, {post_excerpt_N}
, {post_author}
, {post_author_link}
, {permalink}
, {post_date} {post_excerpt_N} code>, {post_author} code>, {post_author_link} code>, {permalink} code>, {post_date}
, {thumbnail-[medium|...|64x64]}
, {post_categories}
, {post_hits}
and
code>, {thumbnail- [medium | ... | 64x64]} code>, {post_categories} code>, {post_hits} code>和
>{post_comments_count}
.
> {post_comments_count} code>。 p>
Also you can show hits count in Posts/Pages Loop.
您还可以在“帖子/页面循环”中显示点击数。
Simply add this line:
只需添加以下行: p>
or equivalent
或同等 p>
Or you can use shortcode [hits]
.
或者您可以使用简码 [hits] code>。 p>You can use callback function for “success” (ajaxHitsCounterSuccessCallback(xhr)
) or “failed” (ajaxHitsCounterFailedCallback(xhr)
) result status of increment hits script.<
您可以将回调函数用于增量匹配脚本的“成功”( ajaxHitsCounterSuccessCallback(xhr) code>)或“失败”( ajaxHitsCounterFailedCallback(xhr) code>)结果状态。 /p>
/ p>