privacyguides.org/_includes/legacy/cardv2.html

321 lines
12 KiB
HTML
Raw Normal View History

2019-05-05 03:46:59 +02:00
<div class="card">
2020-12-04 09:35:10 +01:00
<div class="card-header bg-transparent">
<h3 class="h5">
{% if include.badges %}
2021-05-04 04:13:50 +02:00
<span class="me-2">{{ include.title }}</span>
{% assign badges = include.badges | split:"|" %}
{% for badge in badges %}
{% assign badge_data = badge | split:":" %}
{% assign color = badge_data[0] %}
{% assign text = badge_data[1] %}
{% assign tooltip = badge_data[2] | default: false %}
{% assign help_icon = '<i class="far fa-question-circle"></i>' %}
<span
2021-05-04 04:13:50 +02:00
class="badge rounded-pill bg-{{color}}"
{% if tooltip %}
2021-05-04 04:13:50 +02:00
data-bs-toggle="tooltip"
title="{{ tooltip }}"
> {{text}} {{ help_icon }}
{% else %}
> {{text}}
{% endif %}
</span>
{% endfor %}
{% else %}
{{ include.title }}
{% endif %}
</h3>
2019-05-05 03:46:59 +02:00
</div>
<div class="card-body">
<p class="card-text">
<img
src="{{include.image}}"
{% if include.image-dark %}
data-theme-src="{{include.image-dark}}"
{% endif %}
height="120"
width="120"
class="panel-pic"
alt="{{include.title}} logo"
>
{{ include.description }}
{% if include.labels %}
{% assign labels = include.labels | split:"|" %}
2020-05-14 15:18:36 +02:00
{% for label in labels %}
{% assign label_data = label | split:"::" %}
{% for label_attr in label_data %}
{% assign attr = label_attr | split:"==" %}
{% if attr[0] == "color" %}
{% assign color = attr[1] %}
{% elsif attr[0] == "link" %}
{% assign link = attr[1] %}
{% elsif attr[0] == "text" %}
{% assign text = attr[1] %}
{% elsif attr[0] == "icon" %}
{% assign icon = attr[1] %}
{% elsif attr[0] == "tooltip" %}
{% assign tooltip = attr[1] %}
{% endif %}
2020-05-14 15:18:36 +02:00
{% endfor %}
2020-12-04 08:06:04 +01:00
{% include badge.html
2020-05-14 15:18:36 +02:00
link=link
color=color
text=text
icon=icon
tooltip=tooltip
%}
{% assign color = nil %}
{% assign link = nil %}
{% assign text = nil %}
{% assign icon = nil %}
{% assign tooltip = nil %}
{% endfor %}
{% endif %}
2019-05-05 03:46:59 +02:00
</p>
<div class="d-flex justify-content-between flex-column flex-md-row align-items-start align-items-md-center">
2021-05-04 04:13:50 +02:00
<div class="flow-root flex-shrink-0 me-1">
<a
href="{{include.website}}"
rel="noopener"
2021-05-04 04:13:50 +02:00
class="btn btn-secondary mt-1 me-1">
<i class="fas fa-external-link-alt fa-fw"></i>
Website
</a>
{% if include.privacy-policy %}
<a
href="{{include.privacy-policy}}"
rel="noopener"
2021-05-04 04:13:50 +02:00
class="btn btn-primary mt-1 me-1">
<i class="fas fa-book fa-fw"></i>
Privacy Policy
</a>
{% endif %}
{% if include.tor %}
<a
href="{{include.tor}}"
rel="noopener"
2021-09-22 10:13:24 +02:00
class="btn btn-info mt-1 me-1"
2021-05-04 04:13:50 +02:00
data-bs-toggle="tooltip"
data-bs-placement="bottom"
title="Requires specific software to access: torproject.org">
2021-09-22 10:13:24 +02:00
<span class="ptio-tor text-light"></span>
</a>
{% endif %}
2019-11-06 08:03:29 +01:00
{% if include.i2p %}
<a
href="{{include.i2p}}"
rel="noopener"
2021-05-04 04:13:50 +02:00
class="btn btn-blue mt-1 me-1"
data-bs-toggle="tooltip"
data-bs-placement="bottom"
title="Requires specific software to access: geti2p.net">
<span class="ptio-i2p-garlic btn-icon"></span>
2019-11-06 08:03:29 +01:00
</a>
{% endif %}
</div>
<div class="mt-2">
{% if include.windows %}
{% if include.windows != "" %}
2021-05-04 04:13:50 +02:00
<a href="{{ include.windows }}" rel="noopener" class="text-decoration-none text-decoration-none">
<i class="fab fa-windows fa-2x fa-fw d-inline pe-1"></i>
</a>
{% else %}
2021-05-04 04:13:50 +02:00
<i class="fab fa-windows fa-2x fa-fw d-inline pe-1"></i>
{% endif %}
{% endif %}
{% if include.mac %}
{% if include.mac != "" %}
2021-05-04 04:13:50 +02:00
<a href="{{ include.mac }}" rel="noopener" class="text-decoration-none text-decoration-none">
<i class="ptio-macos fa-2x fa-fw d-inline pe-1"></i>
</a>
{% else %}
2021-05-04 04:13:50 +02:00
<i class="ptio-macos fa-2x fa-fw d-inline pe-1"></i>
{% endif %}
{% endif %}
{% if include.linux %}
{% if include.linux != "" %}
2021-05-04 04:13:50 +02:00
<a href="{{ include.linux }}" rel="noopener" class="text-decoration-none text-decoration-none">
<i class="ptio-linux fa-2x fa-fw d-inline pe-1"></i>
</a>
{% else %}
2021-05-04 04:13:50 +02:00
<i class="ptio-linux fa-2x fa-fw d-inline pe-1"></i>
{% endif %}
{% endif %}
{% if include.freebsd %}
{% if include.freebsd != "" %}
2021-05-04 04:13:50 +02:00
<a href="{{ include.freebsd }}" rel="noopener" class="text-decoration-none text-decoration-none">
<i class="fab fa-freebsd fa-2x fa-fw d-inline pe-1"></i>
</a>
{% else %}
2021-05-04 04:13:50 +02:00
<i class="fab fa-freebsd fa-2x fa-fw d-inline pe-1"></i>
{% endif %}
{% endif %}
{% if include.openbsd %}
{% if include.openbsd != "" %}
2021-05-04 04:13:50 +02:00
<a href="{{ include.openbsd }}" rel="noopener" class="text-decoration-none text-decoration-none">
<i class="ptio-openbsd fa-2x fa-fw d-inline pe-1"></i>
</a>
{% else %}
2021-05-04 04:13:50 +02:00
<i class="ptio-openbsd fa-2x fa-fw d-inline pe-1"></i>
{% endif %}
{% endif %}
{% if include.netbsd %}
{% if include.netbsd != "" %}
2021-05-04 04:13:50 +02:00
<a href="{{ include.netbsd }}" rel="noopener" class="text-decoration-none text-decoration-none">
<i class="ptio-netbsd fa-2x fa-fw d-inline pe-1"></i>
</a>
{% else %}
2021-05-04 04:13:50 +02:00
<i class="ptio-netbsd fa-2x fa-fw d-inline pe-1"></i>
{% endif %}
{% endif %}
{% if include.firefox %}
{% if include.firefox != "" %}
2021-05-04 04:13:50 +02:00
<a href="{{ include.firefox }}" rel="noopener" class="text-decoration-none text-decoration-none">
<i class="fab fa-firefox fa-2x fa-fw d-inline pe-1"></i>
</a>
{% else %}
2021-05-04 04:13:50 +02:00
<i class="fab fa-firefox fa-2x fa-fw d-inline pe-1"></i>
{% endif %}
{% endif %}
{% if include.chrome %}
{% if include.chrome != "" %}
2021-05-04 04:13:50 +02:00
<a href="{{ include.chrome }}" rel="noopener" class="text-decoration-none text-decoration-none">
<i class="fab fa-chrome fa-2x fa-fw d-inline pe-1"></i>
</a>
{% else %}
2021-05-04 04:13:50 +02:00
<i class="fab fa-chrome fa-2x fa-fw d-inline pe-1"></i>
{% endif %}
{% endif %}
{% if include.safari %}
{% if include.safari != "" %}
2021-05-04 04:13:50 +02:00
<a href="{{ include.safari }}" rel="noopener" class="text-decoration-none text-decoration-none">
<i class="fab fa-safari fa-2x fa-fw d-inline pe-1"></i>
</a>
{% else %}
2021-05-04 04:13:50 +02:00
<i class="fab fa-safari fa-2x fa-fw d-inline pe-1"></i>
{% endif %}
{% endif %}
{% if include.opera %}
{% if include.opera != "" %}
2021-05-04 04:13:50 +02:00
<a href="{{ include.opera }}" rel="noopener" class="text-decoration-none text-decoration-none">
<i class="fab fa-opera fa-2x fa-fw d-inline pe-1"></i>
</a>
{% else %}
2021-05-04 04:13:50 +02:00
<i class="fab fa-opera fa-2x fa-fw d-inline pe-1"></i>
{% endif %}
{% endif %}
{% if include.edge %}
{% if include.edge != "" %}
2021-05-04 04:13:50 +02:00
<a href="{{ include.edge }}" rel="noopener" class="text-decoration-none text-decoration-none">
<i class="fab fa-edge fa-2x fa-fw d-inline pe-1"></i>
</a>
{% else %}
2021-05-04 04:13:50 +02:00
<i class="fab fa-edge fa-2x fa-fw d-inline pe-1"></i>
{% endif %}
{% endif %}
{% if include.fdroid %}
{% if include.fdroid != "" %}
2021-05-04 04:13:50 +02:00
<a href="{{ include.fdroid }}" rel="noopener" class="text-decoration-none text-decoration-none">
<i class="ptio-f-droid fa-2x fa-fw d-inline pe-1"></i>
</a>
{% else %}
2021-05-04 04:13:50 +02:00
<i class="ptio-f-droid fa-2x fa-fw d-inline pe-1"></i>
{% endif %}
{% endif %}
{% if include.googleplay %}
{% if include.googleplay != "" %}
2021-05-04 04:13:50 +02:00
<a href="{{ include.googleplay }}" rel="noopener" class="text-decoration-none text-decoration-none">
<i class="fab fa-google-play fa-2x fa-fw d-inline pe-1"></i>
</a>
{% else %}
2021-05-04 04:13:50 +02:00
<i class="fab fa-google-play fa-2x fa-fw d-inline pe-1"></i>
{% endif %}
{% endif %}
{% if include.android %}
{% if include.android != "" %}
2021-05-04 04:13:50 +02:00
<a href="{{ include.android }}" rel="noopener" class="text-decoration-none text-decoration-none">
<i class="fab fa-android fa-2x fa-fw d-inline pe-1"></i>
</a>
{% else %}
2021-05-04 04:13:50 +02:00
<i class="fab fa-android fa-2x fa-fw d-inline pe-1"></i>
{% endif %}
{% endif %}
{% if include.ios %}
{% if include.ios != "" %}
2021-05-04 04:13:50 +02:00
<a href="{{ include.ios }}" rel="noopener" class="text-decoration-none text-decoration-none">
<i class="ptio-ios fa-2x fa-fw d-inline pe-1"></i>
</a>
{% else %}
2021-05-04 04:13:50 +02:00
<i class="ptio-ios fa-2x fa-fw d-inline pe-1"></i>
{% endif %}
{% endif %}
{% if include.sailfish %}
{% if include.sailfish != "" %}
2021-05-04 04:13:50 +02:00
<a href="{{ include.sailfish }}" rel="noopener" class="text-decoration-none text-decoration-none">
<i class="ptio-sailfish-os fa-2x fa-fw d-inline pe-1"></i>
</a>
{% else %}
2021-05-04 04:13:50 +02:00
<i class="ptio-sailfish-os fa-2x fa-fw d-inline pe-1"></i>
{% endif %}
{% endif %}
{% if include.web %}
{% if include.web != "" %}
2021-05-04 04:13:50 +02:00
<a href="{{ include.web }}" rel="noopener" class="text-decoration-none text-decoration-none">
<i class="fas fa-globe-americas fa-2x fa-fw d-inline pe-1"></i>
</a>
{% else %}
2021-05-04 04:13:50 +02:00
<i class="fas fa-globe-americas fa-2x fa-fw d-inline pe-1"></i>
{% endif %}
{% endif %}
{{include.icon1}}
{{include.icon2}}
{{include.icon3}}
{% if include.github %}
2021-05-04 04:13:50 +02:00
<a href="{{include.github}}" rel="noopener" class="text-decoration-none text-decoration-none">
<i class="fab fa-github fa-2x fa-fw d-inline"></i>
</a>
{% endif %}
{% if include.gitlab %}
2021-05-04 04:13:50 +02:00
<a href="{{include.gitlab}}" rel="noopener" class="text-decoration-none text-decoration-none">
<i class="fab fa-gitlab fa-2x fa-fw d-inline"></i>
</a>
{% endif %}
{% if include.git %}
2021-05-04 04:13:50 +02:00
<a href="{{include.git}}" rel="noopener" class="text-decoration-none text-decoration-none">
<i class="fab fa-git-square fa-2x fa-fw d-inline"></i>
</a>
{% endif %}
{% if include.source %}
2021-05-04 04:13:50 +02:00
<a href="{{include.source}}" rel="noopener" class="text-decoration-none text-decoration-none">
<i class="fas fa-code-branch fa-2x fa-fw d-inline"></i>
</a>
{% endif %}
</div>
2019-05-05 03:46:59 +02:00
</div>
</div>
</div>
<br>