Premium - korekta mail

This commit is contained in:
dm
2025-12-18 07:12:27 +01:00
parent 4674e0ef23
commit 669aea3078
8 changed files with 82 additions and 42 deletions

View File

@@ -53,6 +53,25 @@ export default function FuzMarkdown({ text, ctx = {} }) {
}>${label}</a>`;
}
);
processed = processed.replace(
/\[([^\]]+)\]\("([^"]+)"(?:\s+"([^"]+)")?\s+btn\)/g,
(match, label, href, title) => {
return `
<div class="">
<a
href="${href}"
class="btn btn-primary"
target="_blank"
rel="noopener noreferrer"${title ? ` title="${title}"` : ""}
>
${label}
</a>
</div>`;
}
);
const html = marked(processed);
return (

View File

@@ -424,7 +424,7 @@ export default function JamboxChannelsSearch() {
type="button"
class="f-chsearch-pkg"
onClick={() => window.open(
`/internet-telewizja/pakiety-tematyczne#tid-${encodeURIComponent(p.tid)}`,
`/premium#tid-${encodeURIComponent(p.tid)}`,
"_blank",
"noopener,noreferrer"
)}

View File

@@ -99,7 +99,7 @@ export default function TvAddonsSection({
{a.tid ? (
<a
class="f-addon-more"
href={`/internet-telewizja/pakiety-tematyczne#tid-${encodeURIComponent(a.tid)}`}
href={`/premium#tid-${encodeURIComponent(a.tid)}`}
target="_blank"
rel="noopener noreferrer"
aria-label={`Więcej informacji o pakiecie ${a.nazwa ?? ""} (otwiera się w nowej karcie)`}