diff --git a/resources/DirectoryLister.php b/resources/DirectoryLister.php
index 4f8ac4f..5b0cd1a 100644
--- a/resources/DirectoryLister.php
+++ b/resources/DirectoryLister.php
@@ -202,6 +202,17 @@ class DirectoryLister {
}
+ /**
+ * Returns open links in another window
+ *
+ * @return boolean Returns true if in config is enabled open links in another window, false if not
+ * @access public
+ */
+ public function determineOpenLinksAnotherWindow() {
+ return $this->_config['open_links_another_window'];
+ }
+
+
/**
* Returns the path to the chosen theme directory
*
diff --git a/resources/default.config.php b/resources/default.config.php
index e8e1995..09d9405 100644
--- a/resources/default.config.php
+++ b/resources/default.config.php
@@ -7,6 +7,7 @@ return array(
'list_folders_first' => true,
'list_sort_order' => 'natcasesort',
'theme_name' => 'bootstrap',
+ 'open_links_another_window' => true,
// Hidden files
'hidden_files' => array(
diff --git a/resources/themes/bootstrap/index.php b/resources/themes/bootstrap/index.php
index fd00d23..418f250 100644
--- a/resources/themes/bootstrap/index.php
+++ b/resources/themes/bootstrap/index.php
@@ -110,7 +110,7 @@
containsIndex($fileInfo['file_path'])): ?>
-
+ determineOpenLinksAnotherWindow()) echo 'target="_blank"'?> >