Changeset 14181


Ignore:
Timestamp:
2007-06-15T15:05:18+12:00 (14 years ago)
Author:
mdewsnip
Message:

Moved some HTML out of the C++ and into the macrofiles.

Location:
gsdl/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/macros/document.dm

    r14082 r14181  
    3131# page content
    3232#######################################################################
     33
     34_tocopen_ {<div class="top" _tocopenextra_>}
     35_tocclose_ {</div>}
    3336
    3437_nextsearchresult_ {_If_("_cgiargsrn_" ne "0",<li id="nextresult"><a href="_httpquery_&amp;ifl=1&amp;ifln=_cgiargsrn_">_textnextsearchresult_</a></li>)}
  • gsdl/trunk/src/recpt/browsetoolsclass.cpp

    r14072 r14181  
    825825  if (formatinfo.DocumentContents || args["d"].empty()) {
    826826    if (args["d"].empty()) {
    827       textout << outconvert << "<div id=\""<<cl_top<<"\" class=\"toc\">\n";
     827      disp.setmacro("tocopenextra", "document", "id=\"" + cl_top + "\"");
    828828    } else {
    829       textout << outconvert << "<div class=\"toc\">\n";
    830      
    831     }
     829      disp.setmacro("tocopenextra", "document", "");
     830    }
     831
     832    textout << outconvert << disp << "_document:tocopen_\n";
    832833    if (args.getintarg("gc") == 1)
    833834      {
     
    848849                            collectproto, disp, outconvert, textout, logout);
    849850      }
    850     textout << outconvert << "</div>\n";
     851    textout << outconvert << disp << "_document:tocclose_\n";
    851852  }
    852853}
Note: See TracChangeset for help on using the changeset viewer.