diff --git a/bl-plugins/google/plugin.php b/bl-plugins/google/plugin.php
index c1ab3ae9..0819a646 100644
--- a/bl-plugins/google/plugin.php
+++ b/bl-plugins/google/plugin.php
@@ -43,13 +43,13 @@ class pluginGoogle extends Plugin {
$html = '';
// Google HTML tag
- if( $this->getValue('google-site-verification') && $Url->whereAmI()=='home' ) {
+ if ($this->getValue('google-site-verification') && $Url->whereAmI()=='home') {
$html .= PHP_EOL.''.PHP_EOL;
$html .= ''.PHP_EOL;
}
// Google Tag Manager
- if( $this->getValue('google-tag-manager') ) {
+ if ($this->getValue('google-tag-manager')) {
$html .= PHP_EOL."".PHP_EOL;
$html .= "
@@ -78,14 +78,15 @@ class pluginGoogle extends Plugin {
public function siteBodyBegin()
{
+ $html = '';
+
// Google Tag Manager
if ($this->getValue('google-tag-manager')) {
- $html = ''.PHP_EOL;
+ $html .= ''.PHP_EOL;
$html .= ''.PHP_EOL;
$html .= ''.PHP_EOL;
- return $html;
}
- return false;
- }
+ return $html;
+ }
}
diff --git a/bl-plugins/navigation/languages/de_CH.json b/bl-plugins/navigation/languages/de_CH.json
new file mode 100644
index 00000000..5408b7f4
--- /dev/null
+++ b/bl-plugins/navigation/languages/de_CH.json
@@ -0,0 +1,10 @@
+{
+ "plugin-data":
+ {
+ "name": "Neueste Inhalte",
+ "description": "Liste der neuesten Inhalte in der Seitenleiste (bei Themes mit einer Seitenleiste). Die Anzahl kann in den Einstellungen gewählt werden. Die Reihenfolge entspricht der unter \"Einstellungen\" > \"Erweitert\" gewählten Option."
+ },
+ "home-link": "Hauptseite",
+ "show-the-home-link-on-the-sidebar": "Link zur Hauptseite.",
+ "amount-of-items": "Anzahl der Inhalte"
+}
diff --git a/bl-plugins/navigation/languages/de_DE.json b/bl-plugins/navigation/languages/de_DE.json
new file mode 100644
index 00000000..5408b7f4
--- /dev/null
+++ b/bl-plugins/navigation/languages/de_DE.json
@@ -0,0 +1,10 @@
+{
+ "plugin-data":
+ {
+ "name": "Neueste Inhalte",
+ "description": "Liste der neuesten Inhalte in der Seitenleiste (bei Themes mit einer Seitenleiste). Die Anzahl kann in den Einstellungen gewählt werden. Die Reihenfolge entspricht der unter \"Einstellungen\" > \"Erweitert\" gewählten Option."
+ },
+ "home-link": "Hauptseite",
+ "show-the-home-link-on-the-sidebar": "Link zur Hauptseite.",
+ "amount-of-items": "Anzahl der Inhalte"
+}
diff --git a/bl-plugins/navigation/languages/en.json b/bl-plugins/navigation/languages/en.json
new file mode 100644
index 00000000..580bd515
--- /dev/null
+++ b/bl-plugins/navigation/languages/en.json
@@ -0,0 +1,10 @@
+{
+ "plugin-data":
+ {
+ "name": "Latest content",
+ "description": "List of latest contents, you can set the number of items.
The order of the content is taken from the advanced settings of Bludit."
+ },
+ "home-link": "Home link",
+ "show-the-home-link-on-the-sidebar": "Show the home link on the sidebar.",
+ "amount-of-items": "Amount of items"
+}
diff --git a/bl-plugins/navigation/languages/es.json b/bl-plugins/navigation/languages/es.json
new file mode 100644
index 00000000..6a406c88
--- /dev/null
+++ b/bl-plugins/navigation/languages/es.json
@@ -0,0 +1,10 @@
+{
+ "plugin-data":
+ {
+ "name": "Último contenido",
+ "description": "Lista los últimos contenidos, puede establecer el número de elementos.
El orden del contenido se toma de la configuración avanzada de Bludit."
+ },
+ "home-link": "Enlace Home",
+ "show-the-home-link-on-the-sidebar": "Mostrar el vínculo de inicio en la barra lateral.",
+ "amount-of-items": "Cantidad de artículos"
+}
diff --git a/bl-plugins/navigation/languages/fr_FR.json b/bl-plugins/navigation/languages/fr_FR.json
new file mode 100644
index 00000000..32f94bc5
--- /dev/null
+++ b/bl-plugins/navigation/languages/fr_FR.json
@@ -0,0 +1,10 @@
+{
+ "plugin-data":
+ {
+ "name": "Dernier contenu",
+ "description": "Liste des derniers contenus, vous pouvez définir le nombre d’éléments.
L’ordre du contenu est tiré des paramètres avancés de Bludit."
+ },
+ "home-link": "Lien vers la page d’acceuil.",
+ "show-the-home-link-on-the-sidebar": "Afficher le lien vers la page d’acceuil sur la barre latérale.",
+ "amount-of-items": "Quantité d’objets"
+}
diff --git a/bl-plugins/navigation/languages/ru_RU.json b/bl-plugins/navigation/languages/ru_RU.json
new file mode 100644
index 00000000..8bbe58f2
--- /dev/null
+++ b/bl-plugins/navigation/languages/ru_RU.json
@@ -0,0 +1,10 @@
+{
+ "plugin-data":
+ {
+ "name": "Последний контент",
+ "description": "Список последнего содержимого, вы можете задать количество позиций.
Порядок отображения содержимого задаётся в расширенных настройках Bludit."
+ },
+ "home-link": "Ссылка на главную страницу",
+ "show-the-home-link-on-the-sidebar": "Показывать ссылку на главную страницу на боковой панели",
+ "amount-of-items": "Количество позиций"
+}
diff --git a/bl-plugins/navigation/metadata.json b/bl-plugins/navigation/metadata.json
new file mode 100644
index 00000000..48d6c186
--- /dev/null
+++ b/bl-plugins/navigation/metadata.json
@@ -0,0 +1,10 @@
+{
+ "author": "Bludit",
+ "email": "",
+ "website": "https://plugins.bludit.com",
+ "version": "2.2",
+ "releaseDate": "2018-01-23",
+ "license": "MIT",
+ "compatible": "2.2",
+ "notes": ""
+}
\ No newline at end of file
diff --git a/bl-plugins/navigation/plugin.php b/bl-plugins/navigation/plugin.php
new file mode 100644
index 00000000..899dc7f6
--- /dev/null
+++ b/bl-plugins/navigation/plugin.php
@@ -0,0 +1,125 @@
+dbFields = array(
+ 'label'=>'Navigation',
+ 'homeLink'=>true,
+ 'amountOfItems'=>5
+ );
+ }
+
+ // Method called on the settings of the plugin on the admin area
+ public function form()
+ {
+ global $Language;
+
+ $html = '
A landing page template freshly redesigned for Bootstrap 4
-This is a great place to talk about your webpage. This template is purposefully unstyled so you can use it as a boilerplate or starting point for you own landing page designs! This template features:
-Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aut optio velit inventore, expedita quo laboriosam possimus ea consequatur vitae, doloribus consequuntur ex. Nemo assumenda laborum vel, labore ut velit dignissimos.
-Lorem ipsum dolor sit amet, consectetur adipisicing elit. Vero odio fugiat voluptatem dolor, provident officiis, id iusto! Obcaecati incidunt, qui nihil beatae magnam et repudiandae ipsa exercitationem, in, quo totam.
-`s get reset. However, we also reset the\n// bottom margin to use `rem` units instead of `em`.\np {\n margin-top: 0;\n margin-bottom: $paragraph-margin-bottom;\n}\n\n// Abbreviations\n//\n// 1. Remove the bottom border in Firefox 39-.\n// 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n// 3. Add explicit cursor to indicate changed behavior.\n// 4. Duplicate behavior to the data-* attribute for our tooltip plugin\n\nabbr[title],\nabbr[data-original-title] { // 4\n text-decoration: underline; // 2\n text-decoration: underline dotted; // 2\n cursor: help; // 3\n border-bottom: 0; // 1\n}\n\naddress {\n margin-bottom: 1rem;\n font-style: normal;\n line-height: inherit;\n}\n\nol,\nul,\ndl {\n margin-top: 0;\n margin-bottom: 1rem;\n}\n\nol ol,\nul ul,\nol ul,\nul ol {\n margin-bottom: 0;\n}\n\ndt {\n font-weight: $dt-font-weight;\n}\n\ndd {\n margin-bottom: .5rem;\n margin-left: 0; // Undo browser default\n}\n\nblockquote {\n margin: 0 0 1rem;\n}\n\ndfn {\n font-style: italic; // Add the correct font style in Android 4.3-\n}\n\n// stylelint-disable font-weight-notation\nb,\nstrong {\n font-weight: bolder; // Add the correct font weight in Chrome, Edge, and Safari\n}\n// stylelint-enable font-weight-notation\n\nsmall {\n font-size: 80%; // Add the correct font size in all browsers\n}\n\n//\n// Prevent `sub` and `sup` elements from affecting the line height in\n// all browsers.\n//\n\nsub,\nsup {\n position: relative;\n font-size: 75%;\n line-height: 0;\n vertical-align: baseline;\n}\n\nsub { bottom: -.25em; }\nsup { top: -.5em; }\n\n\n//\n// Links\n//\n\na {\n color: $link-color;\n text-decoration: $link-decoration;\n background-color: transparent; // Remove the gray background on active links in IE 10.\n -webkit-text-decoration-skip: objects; // Remove gaps in links underline in iOS 8+ and Safari 8+.\n\n @include hover {\n color: $link-hover-color;\n text-decoration: $link-hover-decoration;\n }\n}\n\n// And undo these styles for placeholder links/named anchors (without href)\n// which have not been made explicitly keyboard-focusable (without tabindex).\n// It would be more straightforward to just use a[href] in previous block, but that\n// causes specificity issues in many other styles that are too complex to fix.\n// See https://github.com/twbs/bootstrap/issues/19402\n\na:not([href]):not([tabindex]) {\n color: inherit;\n text-decoration: none;\n\n @include hover-focus {\n color: inherit;\n text-decoration: none;\n }\n\n &:focus {\n outline: 0;\n }\n}\n\n\n//\n// Code\n//\n\n// stylelint-disable font-family-no-duplicate-names\npre,\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; // Correct the inheritance and scaling of font size in all browsers.\n font-size: 1em; // Correct the odd `em` font sizing in all browsers.\n}\n// stylelint-enable font-family-no-duplicate-names\n\npre {\n // Remove browser default top margin\n margin-top: 0;\n // Reset browser default of `1em` to use `rem`s\n margin-bottom: 1rem;\n // Don't allow content to break outside\n overflow: auto;\n // We have @viewport set which causes scrollbars to overlap content in IE11 and Edge, so\n // we force a non-overlapping, non-auto-hiding scrollbar to counteract.\n -ms-overflow-style: scrollbar;\n}\n\n\n//\n// Figures\n//\n\nfigure {\n // Apply a consistent margin strategy (matches our type styles).\n margin: 0 0 1rem;\n}\n\n\n//\n// Images and content\n//\n\nimg {\n vertical-align: middle;\n border-style: none; // Remove the border on images inside links in IE 10-.\n}\n\nsvg:not(:root) {\n overflow: hidden; // Hide the overflow in IE\n}\n\n\n//\n// Tables\n//\n\ntable {\n border-collapse: collapse; // Prevent double borders\n}\n\ncaption {\n padding-top: $table-cell-padding;\n padding-bottom: $table-cell-padding;\n color: $text-muted;\n text-align: left;\n caption-side: bottom;\n}\n\nth {\n // Matches default `