forked from ezsystems/ezplatform-demo
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DEMO-150: Add eZ Tags view (ezsystems#78)
- Loading branch information
1 parent
2f9e75e
commit 0dea69d
Showing
13 changed files
with
283 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
app/Resources/views/themes/admin/fields/eztags_field.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{% extends "EzPublishCoreBundle::content_fields.html.twig" %} | ||
|
||
{% block eztags_field %} | ||
{% for tag in field.value.tags %} | ||
<a href="{{ path('netgen_tags_admin_tag_show', {'tagId': tag.id}) }}"> | ||
{{ netgen_tags_tag_keyword(tag) }} | ||
</a> | ||
{% if not loop.last %}, {% endif %} | ||
{% endfor %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
app/Resources/views/themes/tastefulplanet/search_result_item/article.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{% block content %} | ||
{% set url = path(location) %} | ||
{% set title = ez_content_name(content) %} | ||
|
||
<section class="row item article"> | ||
<div class="col-md-9 item-info"> | ||
<div class="item-title"> | ||
<h2> | ||
<a href="{{ url }}" title="{{ title }}"> | ||
{{ ez_render_field(content, 'title') }} | ||
</a> | ||
</h2> | ||
</div> | ||
<div class="d-none d-md-none d-sm-block d-xs-block item-image-sm"> | ||
{% if not ez_is_field_empty(content, 'image') %} | ||
<a href="{{ url }}" title="{{ title }}"> | ||
{{ ez_render_field(content, 'image', { | ||
'parameters': { | ||
'alias': 'search_result_item_large', | ||
'class': 'w-100' | ||
} | ||
}) }} | ||
</a> | ||
{% endif %} | ||
</div> | ||
<div class="item-intro"> | ||
{{ ez_render_field(content, 'intro') }} | ||
</div> | ||
</div> | ||
<div class="col-md-3 d-none d-sm-none d-md-block d-lg-block item-image"> | ||
{% if not ez_is_field_empty(content, 'image') %} | ||
<a href="{{ url }}" title="{{ title }}"> | ||
{{ ez_render_field(content, 'image', { | ||
'parameters': { | ||
'alias': 'search_result_item', | ||
'class': 'w-100' | ||
} | ||
}) }} | ||
</a> | ||
{% endif %} | ||
</div> | ||
</section> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
app/Resources/views/themes/tastefulplanet/search_result_item/place.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{% block content %} | ||
{% set url = path(location) %} | ||
{% set name = ez_content_name(content) %} | ||
|
||
<section class="row item place"> | ||
<div class="col-md-9 item-info"> | ||
<div class="item-name"> | ||
<h2> | ||
<a href="{{ url }}" title="{{ name }}"> | ||
{{ ez_render_field(content, 'name') }} | ||
</a> | ||
</h2> | ||
</div> | ||
<div class="d-none d-md-none d-sm-block d-xs-block item-image-sm"> | ||
{% if not ez_is_field_empty(content, 'image') %} | ||
<a href="{{ url }}" title="{{ name }}"> | ||
{{ ez_render_field(content, 'image', { | ||
'parameters': { | ||
'alias': 'search_result_item_large', | ||
'class': 'w-100' | ||
} | ||
}) }} | ||
</a> | ||
{% endif %} | ||
</div> | ||
<div class="item-intro"> | ||
{{ ez_render_field(content, 'intro') }} | ||
</div> | ||
</div> | ||
<div class="col-md-3 d-none d-sm-none d-md-block d-lg-block item-image"> | ||
{% if not ez_is_field_empty(content, 'image') %} | ||
<a href="{{ url }}" title="{{ name }}"> | ||
{{ ez_render_field(content, 'image', { | ||
'parameters': { | ||
'alias': 'search_result_item', | ||
'class': 'w-100' | ||
} | ||
}) }} | ||
</a> | ||
{% endif %} | ||
</div> | ||
</section> | ||
{% endblock %} |
43 changes: 43 additions & 0 deletions
43
app/Resources/views/themes/tastefulplanet/search_result_item/product.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{% block content %} | ||
{% set url = path(location) %} | ||
{% set title = ez_content_name(content) %} | ||
|
||
<section class="row item product"> | ||
<div class="col-md-9 item-info"> | ||
<div class="item-title"> | ||
<h2> | ||
<a href="{{ url }}" title="{{ title }}"> | ||
{{ ez_render_field(content, 'title') }} | ||
</a> | ||
</h2> | ||
</div> | ||
<div class="d-none d-md-none d-sm-block d-xs-block item-image-sm"> | ||
{% if not ez_is_field_empty(content, 'image') %} | ||
<a href="{{ url }}" title="{{ title }}"> | ||
{{ ez_render_field(content, 'image', { | ||
'parameters': { | ||
'alias': 'search_result_item_large', | ||
'class': 'w-100' | ||
} | ||
}) }} | ||
</a> | ||
{% endif %} | ||
</div> | ||
<div class="item-description"> | ||
{{ ez_render_field(content, 'description') }} | ||
</div> | ||
</div> | ||
<div class="col-md-3 d-none d-sm-none d-md-block d-lg-block item-image"> | ||
{% if not ez_is_field_empty(content, 'image') %} | ||
<a href="{{ url }}" title="{{ title }}"> | ||
{{ ez_render_field(content, 'image', { | ||
'parameters': { | ||
'alias': 'search_result_item', | ||
'class': 'w-100' | ||
} | ||
}) }} | ||
</a> | ||
{% endif %} | ||
</div> | ||
</section> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.