diff --git a/bl-kernel/boot/init.php b/bl-kernel/boot/init.php
index 491606a9..7577c055 100644
--- a/bl-kernel/boot/init.php
+++ b/bl-kernel/boot/init.php
@@ -199,6 +199,7 @@ include(PATH_HELPERS.'alert.class.php');
include(PATH_HELPERS.'paginator.class.php');
include(PATH_HELPERS.'image.class.php');
include(PATH_HELPERS.'tcp.class.php');
+include(PATH_HELPERS.'dom.class.php');
if (file_exists(PATH_KERNEL.'bludit.pro.php')) {
include(PATH_KERNEL.'bludit.pro.php');
diff --git a/bl-kernel/boot/rules/69.pages.php b/bl-kernel/boot/rules/69.pages.php
index 53462949..36887429 100644
--- a/bl-kernel/boot/rules/69.pages.php
+++ b/bl-kernel/boot/rules/69.pages.php
@@ -122,6 +122,10 @@ elseif ($Url->whereAmI()==='home') {
buildPagesForHome();
}
+if (isset($pages[0])) {
+ $page = $Page = $pages[0];
+}
+
// Set page 404 not found
if ($Url->notFound()) {
$pageNotFoundKey = $Site->pageNotFound();
diff --git a/bl-kernel/helpers/dom.class.php b/bl-kernel/helpers/dom.class.php
new file mode 100644
index 00000000..d655fb8a
--- /dev/null
+++ b/bl-kernel/helpers/dom.class.php
@@ -0,0 +1,25 @@
+loadHTML(''.$content);
+ $finder = new DomXPath($dom);
+
+ $images = $finder->query("//img");
+
+ if($images->length>0) {
+ // First image from the list
+ $image = $images->item(0);
+ // Get value from attribute src
+ $imgSrc = $image->getAttribute('src');
+ // Returns the image src
+ return $imgSrc;
+ }
+
+ return false;
+ }
+
+}
\ No newline at end of file
diff --git a/bl-plugins/links/plugin.php b/bl-plugins/links/plugin.php
index e8baa28e..b63c7e86 100644
--- a/bl-plugins/links/plugin.php
+++ b/bl-plugins/links/plugin.php
@@ -89,7 +89,7 @@ class pluginLinks extends Plugin {
$html .= '';
$html .= '
';
- $html .= '';
+ $html .= '';
$html .= '
';
$html .= '';
diff --git a/bl-plugins/rss/languages/en.json b/bl-plugins/rss/languages/en.json
index 6ff95ee3..3930056c 100644
--- a/bl-plugins/rss/languages/en.json
+++ b/bl-plugins/rss/languages/en.json
@@ -2,7 +2,8 @@
"plugin-data":
{
"name": "RSS Feed",
- "description": "This plugin generates an RSS feed of your site. The feed has the URL http://mydomain.com/rss.xml."
+ "description": "This plugin generates an RSS feed of your site. The feed has the URL https://example.com/rss.xml"
},
- "amount-of-items-to-show-on-the-feed": "Amount of items to show on the feed."
+ "amount-of-items-to-show-on-the-feed": "Amount of items to show on the feed.",
+ "rss-url": "RSS URL"
}
diff --git a/bl-plugins/rss/languages/es.json b/bl-plugins/rss/languages/es.json
index 7dc1b057..fb01dc73 100644
--- a/bl-plugins/rss/languages/es.json
+++ b/bl-plugins/rss/languages/es.json
@@ -2,7 +2,8 @@
"plugin-data":
{
"name": "RSS Feed",
- "description": "Este plugin genera contenido dinamico en formato RSS de tu sitio."
+ "description": "Este plugin genera contenido dinamico en formato RSS de tu sitio. El plugin genera la URL https://example.com/rss.xml"
},
- "amount-of-items-to-show-on-the-feed": "Cantidad de artÃculos para mostrar."
+ "amount-of-items-to-show-on-the-feed": "Cantidad de artÃculos para mostrar.",
+ "rss-url": "URL del RSS"
}
\ No newline at end of file
diff --git a/bl-plugins/rss/plugin.php b/bl-plugins/rss/plugin.php
index a480adb0..131952fa 100644
--- a/bl-plugins/rss/plugin.php
+++ b/bl-plugins/rss/plugin.php
@@ -16,6 +16,11 @@ class pluginRSS extends Plugin {
global $Language;
$html = '
';
$html .= '';
$html .= '';
$html .= ''.$Language->get('Amount of items to show on the feed').'';
diff --git a/bl-plugins/tinymce/plugin.php b/bl-plugins/tinymce/plugin.php
index 0b98363c..bfc62209 100644
--- a/bl-plugins/tinymce/plugin.php
+++ b/bl-plugins/tinymce/plugin.php
@@ -43,7 +43,7 @@ class pluginTinymce extends Plugin {
paste_as_text: true,
document_base_url: "'.DOMAIN_UPLOADS.'",
plugins: [
- "autosave fullpage",
+ "autosave",
"searchreplace autolink directionality",
"visualblocks visualchars",
"fullscreen image link media template",
diff --git a/bl-themes/clean-blog/init.php b/bl-themes/clean-blog/init.php
new file mode 100644
index 00000000..b3c9f25f
--- /dev/null
+++ b/bl-themes/clean-blog/init.php
@@ -0,0 +1,16 @@
+coverImage()===false) {
+ $domImage = DOM::getFirstImage($page->content($fullContent=true));
+ if ($domImage!==false) {
+ $backgroundImage = $domImage;
+ }
+} else {
+ $backgroundImage = $page->coverImage($absolute=true);
+}
\ No newline at end of file
diff --git a/bl-themes/clean-blog/languages/en.json b/bl-themes/clean-blog/languages/en.json
index 4f88e05b..c4732b42 100644
--- a/bl-themes/clean-blog/languages/en.json
+++ b/bl-themes/clean-blog/languages/en.json
@@ -3,5 +3,6 @@
{
"name": "Clean Blog",
"description": "Clean blog is a carefully styled Bootstrap blog theme that is perfect for personal or company blogs. This theme features four HTML pages including a blog index, an about page, a sample post, and a contact page."
- }
+ },
+ "posted-by": "Posted by"
}
\ No newline at end of file
diff --git a/bl-themes/clean-blog/php/home.php b/bl-themes/clean-blog/php/home.php
index 904df899..87d17af9 100644
--- a/bl-themes/clean-blog/php/home.php
+++ b/bl-themes/clean-blog/php/home.php
@@ -1,5 +1,5 @@
-
+