Loading editor/widgets/accordion/accordion.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -669,7 +669,7 @@ extern "C" { // --- Wrapper --- libhtmlpp::HtmlElement wrapper("div"); wrapper.setAttribute("class", (rc + "-acc").c_str()); wrapper.setAttribute("class", (rc + " " + rc + "-acc").c_str()); std::string customCssId = sanitizeCssId(cssId); wrapper.setAttribute("id", (customCssId.empty() ? rc : customCssId).c_str()); Loading Loading @@ -714,6 +714,7 @@ extern "C" { // Label span libhtmlpp::HtmlElement labelSpan("span"); labelSpan.setAttribute("data-we-textprop", "header_label"); labelSpan.appendChild(libhtmlpp::TextElement(headerLabel.c_str())); // Icon span (chevron ▾) Loading editor/widgets/button/button.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -1045,6 +1045,7 @@ extern "C" { // Unique CSS class for responsive targeting std::string responsiveClass = std::string("we-") + getInstanceId().c_str(); wrapper.setAttribute("class", responsiveClass.c_str()); auto gradientCss = [](const std::string &type, const std::string &angle, const std::string &c1, const std::string &c2) -> std::string { if (type == "linear") { Loading editor/widgets/faq/faq.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -691,7 +691,7 @@ extern "C" { // Outer container libhtmlpp::HtmlElement outer("div"); outer.setAttribute("class", (rc + "-faq").c_str()); outer.setAttribute("class", (rc + " " + rc + "-faq").c_str()); std::string customCssId = sanitizeCssId(cssId); outer.setAttribute("id", (customCssId.empty() ? rc : customCssId).c_str()); outer.setAttribute("itemscope", ""); Loading @@ -708,6 +708,7 @@ extern "C" { if (!title.empty()) { libhtmlpp::HtmlElement h("h2"); h.setAttribute("class", (rc + "-faq-title").c_str()); h.setAttribute("data-we-textprop", "title"); std::string hStyle; if (validCss(titleFontSize)) hStyle += "font-size: " + titleFontSize + ";"; if (validCss(titleColor)) hStyle += " color: " + titleColor + ";"; Loading editor/widgets/image/image.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -675,6 +675,7 @@ extern "C" { // Unique CSS class for responsive targeting std::string responsiveClass = std::string("we-") + getInstanceId().c_str(); wrapper.setAttribute("class", responsiveClass.c_str()); bool hasHoverZoom = (hoverZoom == "in" || hoverZoom == "out"); if (hasHoverZoom) { Loading editor/widgets/popup/popup.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -704,10 +704,11 @@ extern "C" { btnStyle += " border: none; cursor: pointer;"; if (hidden) btnStyle += " display: none;"; btn.setAttribute("style", btnStyle.c_str()); btn.setAttribute("class", (responsiveClass + "-btn").c_str()); btn.setAttribute("class", (responsiveClass + " " + responsiveClass + "-btn").c_str()); std::string openJs = "document.getElementById('" + overlayId + "').style.display='flex';"; btn.setAttribute("onclick", openJs.c_str()); btn.setAttribute("data-we-textprop", "button_label"); btn.appendChild(libhtmlpp::TextElement(buttonLabel.c_str())); el.appendChild(btn); Loading Loading
editor/widgets/accordion/accordion.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -669,7 +669,7 @@ extern "C" { // --- Wrapper --- libhtmlpp::HtmlElement wrapper("div"); wrapper.setAttribute("class", (rc + "-acc").c_str()); wrapper.setAttribute("class", (rc + " " + rc + "-acc").c_str()); std::string customCssId = sanitizeCssId(cssId); wrapper.setAttribute("id", (customCssId.empty() ? rc : customCssId).c_str()); Loading Loading @@ -714,6 +714,7 @@ extern "C" { // Label span libhtmlpp::HtmlElement labelSpan("span"); labelSpan.setAttribute("data-we-textprop", "header_label"); labelSpan.appendChild(libhtmlpp::TextElement(headerLabel.c_str())); // Icon span (chevron ▾) Loading
editor/widgets/button/button.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -1045,6 +1045,7 @@ extern "C" { // Unique CSS class for responsive targeting std::string responsiveClass = std::string("we-") + getInstanceId().c_str(); wrapper.setAttribute("class", responsiveClass.c_str()); auto gradientCss = [](const std::string &type, const std::string &angle, const std::string &c1, const std::string &c2) -> std::string { if (type == "linear") { Loading
editor/widgets/faq/faq.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -691,7 +691,7 @@ extern "C" { // Outer container libhtmlpp::HtmlElement outer("div"); outer.setAttribute("class", (rc + "-faq").c_str()); outer.setAttribute("class", (rc + " " + rc + "-faq").c_str()); std::string customCssId = sanitizeCssId(cssId); outer.setAttribute("id", (customCssId.empty() ? rc : customCssId).c_str()); outer.setAttribute("itemscope", ""); Loading @@ -708,6 +708,7 @@ extern "C" { if (!title.empty()) { libhtmlpp::HtmlElement h("h2"); h.setAttribute("class", (rc + "-faq-title").c_str()); h.setAttribute("data-we-textprop", "title"); std::string hStyle; if (validCss(titleFontSize)) hStyle += "font-size: " + titleFontSize + ";"; if (validCss(titleColor)) hStyle += " color: " + titleColor + ";"; Loading
editor/widgets/image/image.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -675,6 +675,7 @@ extern "C" { // Unique CSS class for responsive targeting std::string responsiveClass = std::string("we-") + getInstanceId().c_str(); wrapper.setAttribute("class", responsiveClass.c_str()); bool hasHoverZoom = (hoverZoom == "in" || hoverZoom == "out"); if (hasHoverZoom) { Loading
editor/widgets/popup/popup.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -704,10 +704,11 @@ extern "C" { btnStyle += " border: none; cursor: pointer;"; if (hidden) btnStyle += " display: none;"; btn.setAttribute("style", btnStyle.c_str()); btn.setAttribute("class", (responsiveClass + "-btn").c_str()); btn.setAttribute("class", (responsiveClass + " " + responsiveClass + "-btn").c_str()); std::string openJs = "document.getElementById('" + overlayId + "').style.display='flex';"; btn.setAttribute("onclick", openJs.c_str()); btn.setAttribute("data-we-textprop", "button_label"); btn.appendChild(libhtmlpp::TextElement(buttonLabel.c_str())); el.appendChild(btn); Loading