2amigos/yii2-disqus-widget 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

2amigos/yii2-disqus-widget

最新稳定版本:1.0.1

Composer 安装命令:

composer require 2amigos/yii2-disqus-widget

包简介

DISQUS widget for Yii2.

README 文档

README

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads

DISQUS widget helps you to render your DISQUS comments thread or DISQUS comments thread count on your Yii2 applications.

Installation

The preferred way to install this extension is through composer.

Either run

composer require 2amigos/yii2-disqus-widget:~1.0

or add

"2amigos/yii2-disqus-widget" : "~1.0"

to the require section of your application's composer.json file.

Usage

To display DISQUS comments

use dosamigos\disqus\Comments;

echo Comments::widget([
    // see http://help.disqus.com/customer/portal/articles/472098-javascript-configuration-variables
    'shortname' => '{yourforumshortname}',
    'identifier' => 'article_identifier'
]);

To display DISQUS comments count, first setup the link where you wish to display the comments (visit DISQUS integration)

<a href="http://example.com/#disqus_thread">article</a>

By default Disqus looks up the count using the comment count links href attribute. However, the count can also be looked up using a Disqus identifier:

<a href="http://example.com/#disqus_thread" data-disqus-identifier="article_identifier">article</a>

Then is just a matter to render the CommentsCount widget:

use dosamigos\disqus\CommentsCount;

CommentsCount::widget([
    'shortname' => '{yourforumshortname}',
    'identifier' => 'article_identifier'
]);

Further Information

Please, check the DISQUS developers documentation for further information about its integration and configuration options.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The BSD License (BSD). Please see License File for more information.

2amigOS!
Web development has never been so fun!
www.2amigos.us

统计信息

  • 总下载量: 27.67k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 25
  • 点击次数: 2
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 25
  • Watchers: 24
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2014-05-04