Skip to content

Commit

Permalink
Class für UL hinzugefügt
Browse files Browse the repository at this point in the history
  • Loading branch information
darwin26 committed Nov 11, 2015
1 parent f56b42b commit b8de282
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion classes/class.rex_lang_nav.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

class rex_lang_nav {
protected $ulId;
protected $ulClass;
protected $selectedClass;
protected $showLiIds;
protected $hideLiIfOfflineArticle;
Expand All @@ -10,14 +11,19 @@ class rex_lang_nav {

public function __construct() {
$this->ulId = '';
$this->ulClass = '';
$this->selectedClass = 'selected';
$this->showLiIds = false;
$this->hideLiIfOfflineArticle = false;
$this->useLangCodeAsLinkText = false;
$this->upperCaseLinkText = false;
}

public function setUlId($ulId) {
public function setUlClass($ulClass) {
$this->ulClass = $ulClass;
}

public function setUlId($ulId) {
$this->ulId = $ulId;
}

Expand Down Expand Up @@ -50,6 +56,11 @@ public function getNavigation() {
} else {
$ulIdAttribute = ' id="' . $this->ulId . '"';
}

// ul class
if ($this->ulClass != '') {
$ulIdAttribute .= ' class="' . $this->ulClass . '"';
}

$out = '<ul' . $ulIdAttribute . '>';

Expand Down

0 comments on commit b8de282

Please sign in to comment.