-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from ezsystems/nicalkun-fix-embed-link
xhtml output : support for linkable embeds
- Loading branch information
Showing
3 changed files
with
56 additions
and
1 deletion.
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
18 changes: 18 additions & 0 deletions
18
tests/lib/FieldType/Converter/_fixtures/html5/input/111-linkembed.xml
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,18 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<section | ||
xmlns:image="http://ez.no/namespaces/ezpublish3/image/" | ||
xmlns:xhtml="http://ez.no/namespaces/ezpublish3/xhtml/" | ||
xmlns:custom="http://ez.no/namespaces/ezpublish3/custom/"> | ||
<!-- Note, this is not plain ezxmltext. This is output after Converter\EzLinkToHtml5 and Converter\EmbedToHtml5 has processed it--> | ||
<paragraph>kake </paragraph> | ||
<embed view="embed" size="medium" object_id="126" custom:offset="0" custom:limit="5" ezlegacytmp-embed-link-title="custom title" ezlegacytmp-embed-link-id="customID" ezlegacytmp-embed-link-url="http://ez.no" url="http://ez.no"> | ||
<![CDATA[ | ||
<!-- START ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Resources/views/default/content/embed_image.html.twig (EzPublishCoreBundle:default:content/embed_image.html.twig) --> | ||
<figure class="ezimage-field"> | ||
<img src="http://localhost/var/ezdemo_site/storage/images/_aliases/medium/media/images/ez/775-1-eng-GB/ez.gif" alt="my alt text" height="67 " width="200 " /> | ||
</figure> | ||
<!-- STOP ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Resources/views/default/content/embed_image.html.twig (EzPublishCoreBundle:default:content/embed_image.html.twig) --> | ||
]]> | ||
</embed> | ||
</section> |
11 changes: 11 additions & 0 deletions
11
tests/lib/FieldType/Converter/_fixtures/html5/output/111-linkembed.xml
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,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<section xmlns="http://ez.no/namespaces/ezpublish5/xhtml5"> | ||
<p>kake </p> | ||
<div> | ||
<a href="http://ez.no" target="_self"> | ||
<figure class="ezimage-field"> | ||
<img alt="my alt text" height="67 " src="http://localhost/var/ezdemo_site/storage/images/_aliases/medium/media/images/ez/775-1-eng-GB/ez.gif" width="200 "/> | ||
</figure> | ||
</a> | ||
</div> | ||
</section> |