diff --git a/template.php b/template.php
index 3d0911b..711ba0a 100755
--- a/template.php
+++ b/template.php
@@ -301,3 +301,12 @@ function bootstrap_preprocess_icon(&$variables) {
     $variables['attributes']['class'][] = 'glyphicon';
   }
 }
+
+function bootstrap_preprocess_links(&$variables) {
+  if (isset($variables['attributes']) && isset($variables['attributes']['class'])) {
+    $inline_key = array_search('inline', $variables['attributes']['class']);
+    if ($inline_key) {
+      $variables['attributes']['class'][$inline_key] = 'list-inline';
+    }
+  }
+}
\ No newline at end of file
