Skip to content

Fix Download images #240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion _i18n/en/general/download.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
loc="/assets/images/badges"
file="get-it-on-google-play.png"
width="170"
islink = true
%}
{% endcapture %}

Expand All @@ -23,6 +24,7 @@
loc="/assets/images/badges"
file="get-it-on-fdroid.png"
width="170"
islink = true
%}
{% endcapture %}

Expand All @@ -31,7 +33,7 @@
Official versions of AntennaPod are available on Google Play and F-Droid:

<!-- mdpo-disable-next-line -->
[{{ img-GP | strip }}](https://play.google.com/store/apps/details?id=de.danoeh.antennapod) [{{ img-FD | strip }}](https://f-droid.org/packages/de.danoeh.antennapod/)
<a href="https://play.google.com/store/apps/details?id=de.danoeh.antennapod" target="_blank">{{- img-GP | strip -}}</a> <a href="https://f-droid.org/packages/de.danoeh.antennapod" target="_blank">{{- img-FD | strip -}}</a>

AntennaPod is only officially published in above two app stores because we don't have the time to support more. All other stores listing AntennaPod copied the app without our explicit permission. We are not responsible for updating those or making sure they work correctly. The F-Droid repository is not maintained by us, but by the people behind F-Droid. F-Droid usually takes a few days until updates get available ([read more](/documentation/general/f-droid)). If an update is still not available more than a week after its release, feel free to let us know by creating a post on our [forum](https://forum.antennapod.org/)), and we'll investigate it.

Expand Down
14 changes: 10 additions & 4 deletions _includes/image.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
{%- endfor %}

{%- capture url %}
{%- if native-exists == true %}
{%- if include.file contains 'http' == true %}
{{ include.file }}
{%- elsif native-exists == true %}
{{- native-url }}
{%- elsif english-exists == true %}
{{- english-url }}
Expand All @@ -21,11 +23,14 @@
{%- endif %}
{%- endcapture -%}

<a href="" data-toggle="modal" data-target="#imgModal{{ include.file | remove:'.' }}">
{% unless include.islink == true %}<a data-toggle="modal" data-target="#imgModal{{ include.file | remove:'.' }}" style="cursor: pointer;">{% endunless %}
<img src="{{ url }}" alt="{{ img-alt }}"
{%- if include.width %} width="{{ include.width }}"{% endif %}
{%- if include.max-width %} style="max-width:{{ include.max-width }};"{% endif %}
class="rounded {{ include.class }}"></a>
style="
{%- if include.max-width %}max-width:{{ include.max-width }}; {% endif %}
{%- if include.max-height %}max-height:{{ include.max-height }}; {% endif %}"
class="rounded mt-2 {{ include.class }}">
{% unless include.islink == true %}</a>

<div class="modal fade" id="imgModal{{ include.file | remove:'.' }}" tabindex="-1" role="dialog" aria-labelledby="imgModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-lg" role="document">
Expand All @@ -42,3 +47,4 @@
</div>
</div>
</div>
{%- endunless %}