diff --git a/system/includes/functions.php b/system/includes/functions.php
index 2642d2a..80ef4e0 100644
--- a/system/includes/functions.php
+++ b/system/includes/functions.php
@@ -431,6 +431,7 @@ function get_bio($author)
}
}
+// Return default profile
function default_profile($author)
{
$tmp = array();
@@ -975,6 +976,7 @@ EOF;
}
}
+// Facebook comments
function facebook()
{
$comment = config('comment.system');
@@ -1094,6 +1096,7 @@ function menu()
}
}
+// Get the title from file
function get_title_from_file($v)
{
// Get the contents and convert it to HTML
@@ -1108,7 +1111,7 @@ function get_title_from_file($v)
// Auto generate menu from static page
function get_menu()
-{//aktive Link for Sub Pages ::TODO
+{
$posts = get_static_pages();
$req = $_SERVER['REQUEST_URI'];
@@ -1153,7 +1156,7 @@ function get_menu()
$subPages = get_static_sub_pages(str_replace('.md', '', $base));
echo '' . ucwords($title) . '';
if (!empty($subPages)) {
- echo '
';
+ echo '';
@@ -1601,6 +1604,7 @@ function authorinfo($title = null, $body = null)
}
}
+// Output head contents
function head_contents()
{
$styleImage = config('lightbox');
@@ -1681,11 +1685,13 @@ function file_cache($request)
}
}
+// Generate csrf token
function generate_csrf_token()
{
$_SESSION[config("site.url")]['csrf_token'] = sha1(microtime(true) . mt_rand(10000, 90000));
}
+// Get csrf token
function get_csrf()
{
if (!isset($_SESSION[config("site.url")]['csrf_token']) || empty($_SESSION[config("site.url")]['csrf_token'])) {
@@ -1694,6 +1700,7 @@ function get_csrf()
return $_SESSION[config("site.url")]['csrf_token'];
}
+// Check the csrf token
function is_csrf_proper($csrf_token)
{
if ($csrf_token == get_csrf()) {
@@ -1702,6 +1709,7 @@ function is_csrf_proper($csrf_token)
return false;
}
+// Add page views count
function add_view($page)
{
$filename = "cache/count.json";
@@ -1717,6 +1725,7 @@ function add_view($page)
file_put_contents($filename, json_encode($views));
}
+// Get the page views count
function get_views($page)
{
static $_views = array();
@@ -1733,6 +1742,7 @@ function get_views($page)
return -1;
}
+// Get tag inside the markdown files
function get_content_tag($tag, $string, $alt = null)
{
$reg = '/\(\s|)/', '', $content));
}
+// Google recaptcha
function isCaptcha($reCaptchaResponse)
{
if (!config("google.reCaptcha")) {
diff --git a/themes/clean/css/style.css b/themes/clean/css/style.css
index f1e0f6f..2ca8940 100644
--- a/themes/clean/css/style.css
+++ b/themes/clean/css/style.css
@@ -443,6 +443,10 @@ aside .menu ul li > a:hover, aside .menu ul li.active > a {
color: #fff;
}
+aside .menu ul li ul.subnav {
+ display:none;
+}
+
aside .copyright {
padding: 1.2em 0 65px 0;
color: #888;
diff --git a/themes/default/css/style.css b/themes/default/css/style.css
index 488106e..6f09eae 100644
--- a/themes/default/css/style.css
+++ b/themes/default/css/style.css
@@ -390,6 +390,10 @@ table.post-list td a {
margin: 0;
}
+#menu ul li ul.subnav {
+ display:none;
+}
+
/*----------------------------
Search form
-----------------------------*/
diff --git a/themes/logs/css/style.css b/themes/logs/css/style.css
index ec8fd2b..9196b61 100644
--- a/themes/logs/css/style.css
+++ b/themes/logs/css/style.css
@@ -310,6 +310,10 @@ ul li, ol li {
text-decoration: underline;
}
+#menu ul li ul.subnav {
+ display:none;
+}
+
/*-------------------------
Search
--------------------------*/