Skip to content
Snippets Groups Projects
Commit 158a5bff authored by DeathCamel57's avatar DeathCamel57
Browse files

Added classes to elements with only an ID

Added to #scroll__here, #index__tree, #draft__status, #tool__bar, #dw__toc. This in in re: #2172
parent fb9fa88b
No related branches found
No related tags found
No related merge requests found
......@@ -270,7 +270,7 @@ function html_show($txt=null){
if (!is_null($txt)){
//PreviewHeader
echo '<br id="scroll__here" />';
echo '<br id="scroll__here" class="scroll__here" />';
echo p_locale_xhtml('preview');
echo '<div class="preview"><div class="pad">';
$html = html_secedit(p_render('xhtml',p_get_instructions($txt),$info),$secedit);
......@@ -939,7 +939,7 @@ function html_index($ns){
$ns = utf8_encodeFN(str_replace(':','/',$ns));
echo p_locale_xhtml('index');
echo '<div id="index__tree">';
echo '<div id="index__tree" class="index__tree">';
$data = array();
search($data,$conf['datadir'],'search_index',array('ns' => $ns));
......@@ -1002,7 +1002,7 @@ function html_li_index($item){
// scroll to the current item
if($item['id'] == $INFO['id'] && $ACT == 'index') {
$id = ' id="scroll__here"';
$class = ' bounce';
$class = ' scroll_here bounce';
}
return '<li class="level'.$item['level'].$class.'" '.$id.'>';
}elseif($item['open']){
......@@ -1895,8 +1895,8 @@ function html_edit(){
<div class="editBox" role="application">
<div class="toolbar group">
<div id="draft__status"><?php if(!empty($INFO['draft'])) echo $lang['draftdate'].' '.dformat();?></div>
<div id="tool__bar"><?php if ($wr && $data['media_manager']){?><a href="<?php echo DOKU_BASE?>lib/exe/mediamanager.php?ns=<?php echo $INFO['namespace']?>"
<div id="draft__status" class="draft__status"><?php if(!empty($INFO['draft'])) echo $lang['draftdate'].' '.dformat();?></div>
<div id="tool__bar" class="tool__bar"><?php if ($wr && $data['media_manager']){?><a href="<?php echo DOKU_BASE?>lib/exe/mediamanager.php?ns=<?php echo $INFO['namespace']?>"
target="_blank"><?php echo $lang['mediaselect'] ?></a><?php }?></div>
</div>
<?php
......@@ -2103,7 +2103,7 @@ function html_TOC($toc){
if(!count($toc)) return '';
global $lang;
$out = '<!-- TOC START -->'.DOKU_LF;
$out .= '<div id="dw__toc">'.DOKU_LF;
$out .= '<div id="dw__toc" class="dw__toc">'.DOKU_LF;
$out .= '<h3 class="toggle">';
$out .= $lang['toc'];
$out .= '</h3>'.DOKU_LF;
......@@ -2314,4 +2314,4 @@ function html_sizechange($sizechange, Doku_Form $form) {
$form->addElement($value);
$form->addElement(form_makeCloseTag('span'));
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment