diff --git a/bl-plugins/about/plugin.php b/bl-plugins/about/plugin.php
index b1205b1b..01ec8055 100644
--- a/bl-plugins/about/plugin.php
+++ b/bl-plugins/about/plugin.php
@@ -2,34 +2,31 @@
class pluginAbout extends Plugin {
- public function init()
- {
+ public function init() {
$this->dbFields = array(
'label'=>'About',
'text'=>''
);
}
- public function form()
- {
+ public function form() {
global $L;
- $html = '
';
- $html .= '';
- $html .= '';
- $html .= ''.$L->get('This title is almost always used in the sidebar of the site').'';
+ $html = '
';
+ $html .= '';
+ $html .= '';
+ $html .= '
'.$L->get('This title is almost always used in the sidebar of the site').'
';
$html .= '
';
- $html .= '
';
- $html .= '';
- $html .= '';
+ $html .= '
';
+ $html .= '';
+ $html .= '';
$html .= '
';
return $html;
}
- public function siteSidebar()
- {
+ public function siteSidebar() {
$html = '
';
$html .= '
'.$this->getValue('label').'
';
$html .= '
';
diff --git a/bl-plugins/canonical/plugin.php b/bl-plugins/canonical/plugin.php
index dd98da29..a1bfc1ff 100644
--- a/bl-plugins/canonical/plugin.php
+++ b/bl-plugins/canonical/plugin.php
@@ -2,8 +2,7 @@
class pluginCanonical extends Plugin {
- public function siteHead()
- {
+ public function siteHead() {
if ($GLOBALS['WHERE_AM_I'] === 'home') {
return ''.PHP_EOL;
} elseif ($GLOBALS['WHERE_AM_I'] === 'page') {
@@ -11,5 +10,4 @@ class pluginCanonical extends Plugin {
return ''.PHP_EOL;
}
}
-
}
\ No newline at end of file
diff --git a/bl-plugins/categories/plugin.php b/bl-plugins/categories/plugin.php
index 183efcba..197672b1 100644
--- a/bl-plugins/categories/plugin.php
+++ b/bl-plugins/categories/plugin.php
@@ -1,18 +1,14 @@
dbFields = array(
'label'=>'Categories',
'hideCero'=>true
);
}
- // Returns the custom form for the plugin's settings for display in the admin panel
- public function form()
- {
+ public function form() {
global $L;
$html = '
';
@@ -32,9 +28,7 @@ class pluginCategories extends Plugin {
return $html;
}
- // Returns the sidebar for display in the website
- public function siteSidebar()
- {
+ public function siteSidebar() {
global $categories;
$html = '
';
diff --git a/bl-plugins/disqus/languages/en.json b/bl-plugins/disqus/languages/en.json
index 17cd2339..9d0f1ebb 100644
--- a/bl-plugins/disqus/languages/en.json
+++ b/bl-plugins/disqus/languages/en.json
@@ -5,8 +5,9 @@
"description": "Disqus is a comment hosting service for web sites. It's necessary to be registered on Disqus to use this service."
},
"disqus-shortname": "Disqus shortname",
- "enable-disqus-on-pages": "Disqus on pages",
+ "enable-disqus-on-standard-pages": "Disqus on standard pages",
"enable-disqus-on-static-pages": "Disqus on static pages",
"enable-disqus-on-sticky-pages": "Disqus on sticky pages",
+ "enable-disqus-on-unlisted-pages": "Disqus on unlisted pages",
"get-the-shortname-from-the-disqus-general-settings": "Get the shortname from the Disqus general settings"
}
\ No newline at end of file
diff --git a/bl-plugins/disqus/languages/es.json b/bl-plugins/disqus/languages/es.json
index 9119cf0d..5fa7a5c6 100644
--- a/bl-plugins/disqus/languages/es.json
+++ b/bl-plugins/disqus/languages/es.json
@@ -5,8 +5,9 @@
"description": "Disqus es un servicio de comentarios online. Es necesario registrarse en Disqus antes de utilizar este plugin."
},
"disqus-shortname": "Disqus shortname",
- "enable-disqus-on-pages": "Disqus en página",
+ "enable-disqus-on-standard-pages": "Disqus en página estandars",
"enable-disqus-on-static-pages": "Disqus en página estaticas",
"enable-disqus-on-sticky-pages": "Disqus en página sticky",
+ "enable-disqus-on-unlisted-pages": "Disqus en página sin listar",
"get-the-shortname-from-the-disqus-general-settings": "Puede obtener el shortname en la página de configuración de Disqus."
}
\ No newline at end of file
diff --git a/bl-plugins/disqus/plugin.php b/bl-plugins/disqus/plugin.php
index 6fb4deab..3e317ca6 100644
--- a/bl-plugins/disqus/plugin.php
+++ b/bl-plugins/disqus/plugin.php
@@ -2,91 +2,96 @@
class pluginDisqus extends Plugin {
- public function init()
- {
- $this->dbFields = array(
- 'shortname'=>'',
- 'enablePages'=>true,
- 'enableStatic'=>true,
- 'enableSticky'=>true
- );
- }
+ public function init() {
+ $this->dbFields = array(
+ 'shortname' => '',
+ 'enableStandard' => true,
+ 'enableStatic' => true,
+ 'enableSticky' => true,
+ 'enableUnlisted' => true
+ );
+ }
- public function form()
- {
- global $L;
+ public function form() {
+ global $L;
- $html = '
';
- $html .= $this->description();
- $html .= '
';
+ $html = '
';
+ $html .= '';
+ $html .= '';
+ $html .= '
' . $L->get('Get the shortname from the Disqus general settings') . '
';
+ $html .= '
';
- $html .= '
';
- $html .= '';
- $html .= '';
- $html .= ''.$L->get('Get the shortname from the Disqus general settings').'';
- $html .= '
';
+ $html .= '
';
+ $html .= '';
+ $html .= '';
+ $html .= '
';
- $html .= '
';
- $html .= '';
- $html .= '';
- $html .= '
';
+ $html .= '
';
+ $html .= '';
+ $html .= '';
+ $html .= '
';
- $html .= '
';
- $html .= '';
- $html .= '';
- $html .= '
';
- $html .= '
';
- $html .= '';
- $html .= '';
- $html .= '
';
+ $html .= '
';
+ $html .= '';
+ $html .= '';
+ $html .= '
';
- return $html;
- }
+ $html .= '
';
+ $html .= '';
+ $html .= '';
+ $html .= '
';
- public function pageEnd()
- {
- global $url;
- global $WHERE_AM_I;
+ return $html;
+ }
- // Do not shows disqus on page not found
- if ($url->notFound()) {
- return false;
- }
+ public function pageEnd() {
+ global $url;
+ global $WHERE_AM_I;
- if ($WHERE_AM_I==='page') {
- global $page;
- 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();
- }
- }
+ // Do not display Disqus on page not found
+ if ($url->notFound()) {
+ return false;
+ }
- return false;
- }
+ if ($WHERE_AM_I === 'page') {
+ global $page;
+ if ($page->published() && $this->getValue('enableStandard')) {
+ return $this->javascript();
+ }
+ if ($page->isStatic() && $this->getValue('enableStatic')) {
+ return $this->javascript();
+ }
+ if ($page->sticky() && $this->getValue('enableSticky')) {
+ return $this->javascript();
+ }
+ if ($page->unlisted() && $this->getValue('enableUnlisted')) {
+ return $this->javascript();
+ }
+ }
- private function javascript()
- {
- global $page;
- $pageURL = $page->permalink();
- $pageID = $page->uuid();
- $shortname = $this->getValue('shortname');
+ return false;
+ }
-$code = <<permalink();
+ $pageID = $page->uuid();
+ $shortname = $this->getValue('shortname');
+
+ $code = <<