Skip to content
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

replace removed image() with img() for streams 1.6 #7

Open
wants to merge 3 commits into
base: 1.0
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion resources/views/examples/header.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="container">
<div class="row">
<div class="col-lg-12">
{{ image("theme::img/profile.png").class("img-responsive")|raw }}
{{ img("theme::img/profile.png").class("img-responsive")|raw }}

<div class="intro-text">
<span class="name">{{ config_get("streams::distribution.name") }}</span>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/partials/metadata.twig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{% block opengraph %}
<meta property="og:site_name"
content="{{ setting_value('streams::name', config_get('streams::distribution.name')) }}"/>
{#<meta property="og:image" content="{{ image_url('qcr.theme.qcr::img/og.png') }}"/>#}
{#<meta property="og:image" content="{{ img('qcr.theme.qcr::img/og.png').url }}"/>#}
<meta property="og:description" content="{{ trans(template.meta_description) }}"/>
<meta property="og:title" content="{{ trans(template.meta_title) }}"/>
<meta property="og:url" content="{{ url_current() }}"/>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/partials/navigation.twig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</button>
<a class="navbar-brand" href="{{ url("/") }}">
{{ config_get("streams::distribution.name") }}
{{ image("theme::img/icon.svg").height("50")|raw }}
{{ img("theme::img/icon.svg").height("50")|raw }}
</a>
</div>

Expand Down