panix / mod-disqus
Module disqus
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:pixelion-module
README
Module for PIXELION CMS
Installation
The preferred way to install this extension is through composer.
Either run
php composer require --prefer-dist panix/mod-disqus "*"
or add
"panix/mod-disqus": "*"
to the require section of your composer.json
file.
Add to web config.
'modules' => [
'disqus' => ['class' => 'panix\mod\disqus\Module'],
],
Usage
Run widget
echo \panix\mod\disqus\DisqusWidget::widget([
'id' => '', //require
'url' => '', //require
'domain' => '', //require if not usage module settings
]);
Run counter
echo Html::a('','<URL>#disqus_thread',[
'data-disqus-identifier' => '<ID>', //require
'class' => 'disqus-comment-count'
]);