Revise third-party content warning
This commit is contained in:
@@ -22,6 +22,11 @@
|
||||
{{ partial "deprecation-warning.html" . }}
|
||||
{{ end }}
|
||||
{{ block "main" . }}{{ end }}
|
||||
{{- if .HasShortcode "thirdparty-content" -}}
|
||||
{{ block "thirdparty-disclaimer" . }}
|
||||
{{ partial "docs/thirdparty-disclaimer.html" . }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }}
|
||||
{{ partial "feedback.html" .Site.Params.ui.feedback }}
|
||||
{{ end }}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
<div class="pageinfo pageinfo-secondary" id="third-party-content-disclaimer">
|
||||
{{ T "thirdparty_message_disclaimer" | safeHTML }}
|
||||
</div>
|
||||
@@ -24,6 +24,10 @@
|
||||
|
||||
{{ if not (.Param "auto_generated") }}
|
||||
<a href="{{ $editURL }}" target="_blank"><i class="fa fa-edit fa-fw"></i> {{ T "post_edit_this" }}</a>
|
||||
{{- if .HasShortcode "thirdparty-content" -}}
|
||||
<a href="#third-party-content-disclaimer" class="third-party-disclaimer-link"><i class="fa fa-icon-circle fa-fw"></i> {{ T "thirdparty_message_edit_disclaimer" | safeHTML }}</a>
|
||||
{{- end }}
|
||||
|
||||
<a href="{{ $newPageURL }}" target="_blank"><i class="fa fa-edit fa-fw"></i> {{ T "post_create_child_page" }}</a>
|
||||
{{ end }}
|
||||
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
<blockquote class="callout caution" role="alert">
|
||||
<strong>{{ T "caution" | safeHTML }}</strong>
|
||||
{{- $single := .Get "single" | default "false" -}}
|
||||
<div class="alert alert-secondary callout third-party-content" role="alert">
|
||||
{{- if not (eq $single "true" ) -}}
|
||||
<strong>{{ T "note" | safeHTML }}</strong>
|
||||
{{ T "thirdparty_message" | safeHTML }}
|
||||
</blockquote>
|
||||
{{- else -}}
|
||||
{{ T "thirdparty_message_single_item" | safeHTML }}
|
||||
{{- end -}}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user