From b66b6b01016b265df90542c4d7e32b79713eeef2 Mon Sep 17 00:00:00 2001
From: mkhamash <m.khamash@gmail.com>
Date: Tue, 29 Apr 2014 13:06:04 +0300
Subject: [PATCH] Issue #2253473 by mkhamash: Override theme_mark to use bootstrap labels components.

---
 theme/system/mark.func.php |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)
 create mode 100644 theme/system/mark.func.php

diff --git a/theme/system/mark.func.php b/theme/system/mark.func.php
new file mode 100644
index 0000000..ae868c2
--- /dev/null
+++ b/theme/system/mark.func.php
@@ -0,0 +1,22 @@
+<?php
+/**
+ * @file
+ * mark.func.php
+ */
+
+/**
+ * Overrides theme_mark().
+ */
+function bootstrap_mark($variables) {
+  $type = $variables['type'];
+  global $user;
+  if ($user->uid) {
+    if ($type == MARK_NEW) {
+      return ' <span class="marker label label-primary">' . t('new') . '</span>';
+    }
+    elseif ($type == MARK_UPDATED) {
+      return ' <span class="marker label label-info">' . t('updated') . '</span>';
+    }
+  }
+}
+
-- 
1.7.2.5

