diff --git a/bl-kernel/functions.php b/bl-kernel/functions.php index 79ed77d8..227142d9 100644 --- a/bl-kernel/functions.php +++ b/bl-kernel/functions.php @@ -790,8 +790,8 @@ function activateTheme($themeDirectory) { global $L, $language; if (Sanitize::pathFile(PATH_THEMES.$themeDirectory)) { - if (Sanitize::pathFile(PATH_THEMES.$themeDirectory, 'install.php')) { - include_once(PATH_THEMES.$themeDirectory.'install.php'); + if (Filesystem::fileExists(PATH_THEMES.$themeDirectory.DS.'install.php')) { + include_once(PATH_THEMES.$themeDirectory.DS.'install.php'); } $site->set(array('theme'=>$themeDirectory)); @@ -839,7 +839,7 @@ function transformImage($file, $imageDir, $thumbnailDir=false) { $filename = Filesystem::filename($file); $nextFilename = Filesystem::nextFilename($imageDir, $filename); - // Move the image to a proper place and name + // Move the image to a proper place and rename $image = $imageDir.$nextFilename; Filesystem::mv($file, $image); chmod($image, 0644); diff --git a/bl-plugins/api/plugin.php b/bl-plugins/api/plugin.php index dead0763..b28a3d18 100644 --- a/bl-plugins/api/plugin.php +++ b/bl-plugins/api/plugin.php @@ -454,6 +454,9 @@ class pluginAPI extends Plugin { $thumbnailDirectory = $imageDirectory.'thumbnails'.DS; $imageEndpoint = DOMAIN_UPLOADS_PAGES.$inputs['uuid'].'/'; $thumbnailEndpoint = $imageEndpoint.'thumbnails'.'/'; + if (!Filesystem::directoryExists($thumbnailDirectory)) { + Filesystem::mkdir($thumbnailDirectory, true); + } } else { $imageDirectory = PATH_UPLOADS; $thumbnailDirectory = PATH_UPLOADS_THUMBNAILS; diff --git a/bl-themes/social-network/css/style.css b/bl-themes/social-network/css/style.css index cf313e69..41b65b72 100755 --- a/bl-themes/social-network/css/style.css +++ b/bl-themes/social-network/css/style.css @@ -80,6 +80,17 @@ blockquote { background: #EAF4FB; } +#jspreviewImages img { + width: 64px; + height: 64px; +} + +/* Image Gallery */ +.image-gallery img { + width: 120px; + margin: 0px 3px; +} + /* Navbar */ img.nav-svg-icon { width: 1rem; diff --git a/bl-themes/social-network/index.php b/bl-themes/social-network/index.php index 519fb2fc..4a7c2ea3 100755 --- a/bl-themes/social-network/index.php +++ b/bl-themes/social-network/index.php @@ -34,9 +34,6 @@ - - - + + diff --git a/bl-themes/social-network/php/head.php b/bl-themes/social-network/php/head.php index ed1a19f0..6c3cb978 100644 --- a/bl-themes/social-network/php/head.php +++ b/bl-themes/social-network/php/head.php @@ -19,6 +19,9 @@ + + + diff --git a/bl-themes/social-network/php/home.php b/bl-themes/social-network/php/home.php index 9444af59..da772f5a 100644 --- a/bl-themes/social-network/php/home.php +++ b/bl-themes/social-network/php/home.php @@ -7,9 +7,21 @@
-
+
+
+ +
+
+ + +
@@ -17,8 +29,10 @@