MINOR Additional HTML for tree styling in SiteTree->getTreeTitle()

This commit is contained in:
Ed 2011-06-25 00:55:13 -05:00 committed by Ingo Schommer
parent a142e494de
commit ebb1e0f370
2 changed files with 3 additions and 2 deletions

View File

@ -2412,13 +2412,13 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
} elseif($this->IsAddedToStage) {
$tag = "ins title=\"" . _t('SiteTree.ADDEDTODRAFT', 'Added to draft site') . "\"";
} elseif($this->IsModifiedOnStage) {
$tag = "span title=\"" . _t('SiteTree.MODIFIEDONDRAFT', 'Modified on draft site') . "\" class=\"modified\"";
$tag = "span title=\"" . _t('SiteTree.MODIFIEDONDRAFT', 'Modified on draft site') . "\" class=\"status modified\"";
} else {
$tag = '';
}
$text = Convert::raw2xml(str_replace(array("\n","\r"),"",$this->MenuTitle));
return ($tag) ? "<$tag>" . $text . "</" . strtok($tag,' ') . ">" : $text;
return ($tag) ? "<span class=\"jstree-pageicon\"></span>"."<$tag>" . $text . "</" . strtok($tag,' ') . ">" : "<span class=\"jstree-pageicon\"></span>". $text;
}
/**

View File

@ -28,6 +28,7 @@
$SearchForm
</div>
</div>
<div class="cms-content-fields center ui-widget-content">