mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-09-02 18:33:04 +02:00
Cleaned up PRs
This commit is contained in:
@@ -208,8 +208,8 @@ class DirectoryLister {
|
||||
* @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'];
|
||||
public function externalLinksNewWindow() {
|
||||
return $this->_config['external_links_new_window'];
|
||||
}
|
||||
|
||||
|
||||
@@ -695,7 +695,7 @@ class DirectoryLister {
|
||||
protected function _getAppUrl() {
|
||||
|
||||
// Get the server protocol
|
||||
if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS']!=="off") {
|
||||
if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') {
|
||||
$protocol = 'https://';
|
||||
} else {
|
||||
$protocol = 'http://';
|
||||
|
@@ -3,11 +3,11 @@
|
||||
return array(
|
||||
|
||||
// Basic settings
|
||||
'hide_dot_files' => true,
|
||||
'list_folders_first' => true,
|
||||
'list_sort_order' => 'natcasesort',
|
||||
'theme_name' => 'bootstrap',
|
||||
'open_links_another_window' => true,
|
||||
'hide_dot_files' => true,
|
||||
'list_folders_first' => true,
|
||||
'list_sort_order' => 'natcasesort',
|
||||
'theme_name' => 'bootstrap',
|
||||
'external_links_new_window' => true,
|
||||
|
||||
// Hidden files
|
||||
'hidden_files' => array(
|
||||
|
@@ -110,7 +110,7 @@
|
||||
|
||||
<?php if ($lister->containsIndex($fileInfo['file_path'])): ?>
|
||||
|
||||
<a href="<?php echo $fileInfo['file_path']; ?>" class="web-link-button" <?php if($lister->determineOpenLinksAnotherWindow()) echo 'target="_blank"'?> >
|
||||
<a href="<?php echo $fileInfo['file_path']; ?>" class="web-link-button" <?php if($lister->externalLinksNewWindow()): ?>target="_blank"<?php endif; ?>>
|
||||
<i class="fa fa-external-link"></i>
|
||||
</a>
|
||||
|
||||
|
Reference in New Issue
Block a user