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

dev-main 2021-08-29 11:19 UTC

This package is auto-updated.

Last update: 2024-11-15 07:07:12 UTC


README

Module for PIXELION CMS

Latest Stable Version Total Downloads Monthly Downloads Daily Downloads Latest Unstable Version License

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'
]);