Loading src/blogi.cpp +4 −9 Changes for src/blogi.cpp: 4 added lines, 9 removed lines. Original line number Diff line number Diff line Loading @@ -2283,15 +2283,10 @@ RETRY_REQUEST: } } // Strip footernav to prevent duplicate footer links in editor preview libhtmlpp::HtmlElement *fnav = index.getElementbyID("footernav"); if(fnav){ // Remove all children so printSite's footer append is the only content while(fnav->firstChild()) fnav->remove(fnav->firstChild()); } PlgArgs->theme->printSite(tid,out,&index,curreq.getRequestURL(),false); // For the editor preview, skip printSite() (which appends footer links) // and just inject theme colors + serialize directly. PlgArgs->theme->injectThemeColors(tid, &index); libhtmlpp::print(index, out); libhttppp::HttpResponse curres; curres.setState(HTTP200); Loading Loading
src/blogi.cpp +4 −9 Changes for src/blogi.cpp: 4 added lines, 9 removed lines. Original line number Diff line number Diff line Loading @@ -2283,15 +2283,10 @@ RETRY_REQUEST: } } // Strip footernav to prevent duplicate footer links in editor preview libhtmlpp::HtmlElement *fnav = index.getElementbyID("footernav"); if(fnav){ // Remove all children so printSite's footer append is the only content while(fnav->firstChild()) fnav->remove(fnav->firstChild()); } PlgArgs->theme->printSite(tid,out,&index,curreq.getRequestURL(),false); // For the editor preview, skip printSite() (which appends footer links) // and just inject theme colors + serialize directly. PlgArgs->theme->injectThemeColors(tid, &index); libhtmlpp::print(index, out); libhttppp::HttpResponse curres; curres.setState(HTTP200); Loading