diff --git a/bl-plugins/disqus/plugin.php b/bl-plugins/disqus/plugin.php
index 6fb4deab..85757584 100644
--- a/bl-plugins/disqus/plugin.php
+++ b/bl-plugins/disqus/plugin.php
@@ -6,6 +6,7 @@ class pluginDisqus extends Plugin {
{
$this->dbFields = array(
'shortname'=>'',
+ 'enableLinks'=>'',
'enablePages'=>true,
'enableStatic'=>true,
'enableSticky'=>true
@@ -23,7 +24,12 @@ class pluginDisqus extends Plugin {
$html .= '
';
$html .= '';
$html .= '';
- $html .= ''.$L->get('Get the shortname from the Disqus general settings').'';
+ $html .= ''.$L->get('get-the-shortname-from-the-disqus-general-settings').'';
+
+ $html .= '';
+ $html .= '';
+ $html .= ''.$L->get('tip-disqus-on-links').'';
+
$html .= '
';
$html .= '';
@@ -65,14 +71,21 @@ class pluginDisqus extends Plugin {
if ($WHERE_AM_I==='page') {
global $page;
- if ($page->published() && $this->getValue('enablePages')) {
+
+ $enableLinks = $this->getValue('enableLinks');
+ if(strlen(trim($enableLinks)) > 0 && strpos($enableLinks, $page->key()) !== false){
return $this->javascript();
}
- if ($page->isStatic() && $this->getValue('enableStatic')) {
- return $this->javascript();
- }
- if ($page->sticky() && $this->getValue('enableSticky')) {
- return $this->javascript();
+ else {
+ if ($page->published() && $this->getValue('enablePages')) {
+ return $this->javascript();
+ }
+ if ($page->isStatic() && $this->getValue('enableStatic')) {
+ return $this->javascript();
+ }
+ if ($page->sticky() && $this->getValue('enableSticky')) {
+ return $this->javascript();
+ }
}
}