From 2a96f9edd21db90db53bf29d13acbd2ce0e9a042 Mon Sep 17 00:00:00 2001 From: Sergey Romanenko Date: Thu, 27 Dec 2012 13:37:34 +0200 Subject: [PATCH 1/6] Default Theme: Social Meta Tags - added. --- public/themes/default/header.chunk.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/public/themes/default/header.chunk.php b/public/themes/default/header.chunk.php index 4d865ac..42afc49 100644 --- a/public/themes/default/header.chunk.php +++ b/public/themes/default/header.chunk.php @@ -7,6 +7,15 @@ + + + + + + + + + From b5040aca5357b948cb91bf78d4e721ea45e1448c Mon Sep 17 00:00:00 2001 From: Sergey Romanenko Date: Thu, 27 Dec 2012 14:07:05 +0200 Subject: [PATCH 2/6] Url Helper: New current() method - added. --- monstra/helpers/url.php | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/monstra/helpers/url.php b/monstra/helpers/url.php index 8e3581b..277ff5a 100644 --- a/monstra/helpers/url.php +++ b/monstra/helpers/url.php @@ -93,7 +93,7 @@ * @return string */ public static function find($url) { - $https = (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') ? 'https://' : 'http://'; + $https = (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') ? 'https://' : 'http://'; $pos = strpos($url, $https); if ($pos === false) { $url_output = Option::get('siteurl') . $url; } else { $url_output = $url; } return $url_output; @@ -110,7 +110,22 @@ * @return string */ public static function base() { - $https = (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') ? 'https://' : 'http://'; + $https = (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') ? 'https://' : 'http://'; return $https . rtrim(rtrim($_SERVER['HTTP_HOST'], '\\/') . dirname($_SERVER['PHP_SELF']), '\\/'); } - } \ No newline at end of file + + + /** + * Gets current URL + * + * + * echo Url::current(); + * + * + * @return string + */ + public static function current() { + return (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; + } + + } From 4e909f7adfc0f274d8060d9e153489b58e26e09e Mon Sep 17 00:00:00 2001 From: Sergey Romanenko Date: Thu, 27 Dec 2012 14:07:54 +0200 Subject: [PATCH 3/6] Update public/themes/default/header.chunk.php --- public/themes/default/header.chunk.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/themes/default/header.chunk.php b/public/themes/default/header.chunk.php index 42afc49..99f2672 100644 --- a/public/themes/default/header.chunk.php +++ b/public/themes/default/header.chunk.php @@ -10,11 +10,11 @@ - + - + From 03131011cb4526bd0abf61a61954fc76d90dfa60 Mon Sep 17 00:00:00 2001 From: Sergey Romanenko Date: Thu, 27 Dec 2012 15:54:31 +0200 Subject: [PATCH 4/6] Default Theme: Hook "theme_meta" - added. --- public/themes/default/header.chunk.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/themes/default/header.chunk.php b/public/themes/default/header.chunk.php index 99f2672..eba9284 100644 --- a/public/themes/default/header.chunk.php +++ b/public/themes/default/header.chunk.php @@ -8,6 +8,8 @@ + + From 53c6a260195826acc6891fccd7477d29824e5974 Mon Sep 17 00:00:00 2001 From: Sergey Romanenko Date: Thu, 27 Dec 2012 15:55:09 +0200 Subject: [PATCH 5/6] Update monstra/boot/actions.php --- monstra/boot/actions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monstra/boot/actions.php b/monstra/boot/actions.php index 7001d8b..f8d5ec7 100644 --- a/monstra/boot/actions.php +++ b/monstra/boot/actions.php @@ -3,5 +3,5 @@ /** * Set meta generator */ - Action::add('theme_header', 'setMetaGenerator'); - function setMetaGenerator() { echo ''; } \ No newline at end of file + Action::add('theme_meta', 'setMetaGenerator'); + function setMetaGenerator() { echo ''; } From 2db0a64454c1612fdb6949fc5c5d65ad2c727208 Mon Sep 17 00:00:00 2001 From: Martynas Barzda Date: Sat, 29 Dec 2012 21:13:35 +0200 Subject: [PATCH 6/6] Filesmanager plugin: ability to view images Based on issue #75. On image name click opens modal window with image. --- .../filesmanager/views/backend/index.view.php | 32 +++++++++++++++++-- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/plugins/box/filesmanager/views/backend/index.view.php b/plugins/box/filesmanager/views/backend/index.view.php index d0dcc84..1e51771 100755 --- a/plugins/box/filesmanager/views/backend/index.view.php +++ b/plugins/box/filesmanager/views/backend/index.view.php @@ -70,8 +70,8 @@ - - '_blank'));?> + > + '_blank'));?> @@ -90,4 +90,30 @@ - \ No newline at end of file + + + + +