Loading src/blogi.cpp +18 −17 Changes for src/blogi.cpp: 18 added lines, 17 removed lines. Original line number Diff line number Diff line Loading @@ -2213,23 +2213,8 @@ RETRY_REQUEST: { libhtmlpp::HtmlString out; // Run plugin Rendering() for all plugins (navbar, gtm, template, etc.) for(const blogi::Plugin::PluginData *curplg=BlogiPlg->getFirstPlugin(); curplg; curplg=curplg->getNextPlg()){ try { if(mobile) curplg->getInstace()->Rendering(tid,curreq,&index,RenderingType::Mobile,""); else curplg->getInstace()->Rendering(tid,curreq,&index,RenderingType::Desktop,""); } catch(libhtmlpp::HTMLException &e) { std::cerr << "/render: plugin Rendering error: " << e.what() << std::endl; } catch(const std::exception &e) { std::cerr << "/render: plugin Rendering error: " << e.what() << std::endl; } catch(...) { std::cerr << "/render: plugin Rendering unknown error" << std::endl; } } // Inject the editor HTML into main // First inject the editor HTML into main (before plugins run, // so the template plugin can wrap it in its layers) libhtmlpp::HtmlElement *root = index.getElementbyID("main"); if(!root){ Loading @@ -2248,6 +2233,22 @@ RETRY_REQUEST: } } // Run plugin Rendering() for all plugins (navbar, gtm, template, etc.) for(const blogi::Plugin::PluginData *curplg=BlogiPlg->getFirstPlugin(); curplg; curplg=curplg->getNextPlg()){ try { if(mobile) curplg->getInstace()->Rendering(tid,curreq,&index,RenderingType::Mobile,""); else curplg->getInstace()->Rendering(tid,curreq,&index,RenderingType::Desktop,""); } catch(libhtmlpp::HTMLException &e) { std::cerr << "/render: plugin Rendering error: " << e.what() << std::endl; } catch(const std::exception &e) { std::cerr << "/render: plugin Rendering error: " << e.what() << std::endl; } catch(...) { std::cerr << "/render: plugin Rendering unknown error" << std::endl; } } // If publish preview requested, wrap through the target plugin if (!publishTarget.empty() && BlogiPlg && root) { libhtmlpp::HtmlString rootHtml; Loading Loading
src/blogi.cpp +18 −17 Changes for src/blogi.cpp: 18 added lines, 17 removed lines. Original line number Diff line number Diff line Loading @@ -2213,23 +2213,8 @@ RETRY_REQUEST: { libhtmlpp::HtmlString out; // Run plugin Rendering() for all plugins (navbar, gtm, template, etc.) for(const blogi::Plugin::PluginData *curplg=BlogiPlg->getFirstPlugin(); curplg; curplg=curplg->getNextPlg()){ try { if(mobile) curplg->getInstace()->Rendering(tid,curreq,&index,RenderingType::Mobile,""); else curplg->getInstace()->Rendering(tid,curreq,&index,RenderingType::Desktop,""); } catch(libhtmlpp::HTMLException &e) { std::cerr << "/render: plugin Rendering error: " << e.what() << std::endl; } catch(const std::exception &e) { std::cerr << "/render: plugin Rendering error: " << e.what() << std::endl; } catch(...) { std::cerr << "/render: plugin Rendering unknown error" << std::endl; } } // Inject the editor HTML into main // First inject the editor HTML into main (before plugins run, // so the template plugin can wrap it in its layers) libhtmlpp::HtmlElement *root = index.getElementbyID("main"); if(!root){ Loading @@ -2248,6 +2233,22 @@ RETRY_REQUEST: } } // Run plugin Rendering() for all plugins (navbar, gtm, template, etc.) for(const blogi::Plugin::PluginData *curplg=BlogiPlg->getFirstPlugin(); curplg; curplg=curplg->getNextPlg()){ try { if(mobile) curplg->getInstace()->Rendering(tid,curreq,&index,RenderingType::Mobile,""); else curplg->getInstace()->Rendering(tid,curreq,&index,RenderingType::Desktop,""); } catch(libhtmlpp::HTMLException &e) { std::cerr << "/render: plugin Rendering error: " << e.what() << std::endl; } catch(const std::exception &e) { std::cerr << "/render: plugin Rendering error: " << e.what() << std::endl; } catch(...) { std::cerr << "/render: plugin Rendering unknown error" << std::endl; } } // If publish preview requested, wrap through the target plugin if (!publishTarget.empty() && BlogiPlg && root) { libhtmlpp::HtmlString rootHtml; Loading