Skip to content

Commit

Permalink
Update to 2.0.3
Browse files Browse the repository at this point in the history
- Insert button in Editor bar
  • Loading branch information
McAtze committed Jun 1, 2018
1 parent fa5ed18 commit 83367cf
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 deletions.
5 changes: 3 additions & 2 deletions upload/src/addons/ITM/CheveretoIntegration/_data/options.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ markdown-embed-thumbnail={{ phrase('itmChevInt_markdownEmbedThumbnail')}}</edit_
<option option_id="itmChevInt_position" edit_format="radio" data_type="string">
<default_value>after</default_value>
<edit_format_params>after={{ phrase('itmChevInt_after')}}
before={{ phrase('itmChevInt_before')}}</edit_format_params>
<relation group_id="itmChevInt" display_order="50"/>
before={{ phrase('itmChevInt_before')}}
editor={{ phrase('itmChevInt_editorBar')}}</edit_format_params>
<relation group_id="itmChevInt" display_order="60"/>
</option>
<option option_id="itmChevInt_url" edit_format="textbox" data_type="string">
<default_value>demo.chevereto.com</default_value>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<phrase title="itmChevInt_blue" version_id="2000010" version_string="2.0.0 Alpha" global_cache="1"><![CDATA[Blue]]></phrase>
<phrase title="itmChevInt_darkblue" version_id="2000010" version_string="2.0.0 Alpha" global_cache="1"><![CDATA[Darkblue]]></phrase>
<phrase title="itmChevInt_directLinks" version_id="2000010" version_string="2.0.0 Alpha" global_cache="1"><![CDATA[Direct links]]></phrase>
<phrase title="itmChevInt_editorBar" version_id="2000270" version_string="2.0.2" global_cache="1"><![CDATA[Editor bar]]></phrase>
<phrase title="itmChevInt_green" version_id="2000010" version_string="2.0.0 Alpha" global_cache="1"><![CDATA[Green]]></phrase>
<phrase title="itmChevInt_grey" version_id="2000010" version_string="2.0.0 Alpha" global_cache="1"><![CDATA[Grey]]></phrase>
<phrase title="itmChevInt_htmlEmbed" version_id="2000010" version_string="2.0.0 Alpha" global_cache="1"><![CDATA[HTML embed]]></phrase>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<templates>
<template type="public" title="helper_itmChevInt" version_id="2000010" version_string="2.0.0 Alpha"><![CDATA[<xf:if is="$xf.options.itmChevInt_autoInsert">
<template type="public" title="helper_itmChevInt" version_id="2000270" version_string="2.0.2"><![CDATA[<xf:if is="$xf.options.itmChevInt_autoInsert && $xf.options.itmChevInt_position != 'editor'">
<script async src="//{$xf.options.itmChevInt_url}/sdk/pup.js" data-url="https://{$xf.options.itmChevInt_url}/upload" data-palette="{$xf.options.itmChevInt_color}" data-auto-insert="{$xf.options.itmChevInt_embedCodes}" data-sibling=".js-attachmentUpload" data-sibling-pos="{$xf.options.itmChevInt_position}" data-html="<a %x type='button' class='%bClass button--link u-jsOnly button button--icon button--icon--preview rippleButton'><span class='button-text'>{{ phrase('upload_image')}}</span></a>"></script>
<xf:else />
<xf:elseif is="!$xf.options.itmChevInt_autoInsert && $xf.options.itmChevInt_position != 'editor'" />
<script async src="//{$xf.options.itmChevInt_url}/sdk/pup.js" data-url="https://{$xf.options.itmChevInt_url}/upload" data-palette="{$xf.options.itmChevInt_color}" data-sibling=".js-attachmentUpload" data-sibling-pos="{$xf.options.itmChevInt_position}" data-html="<a %x type='button' class='%bClass button--link u-jsOnly button button--icon button--icon--preview rippleButton'><span class='button-text'>{{ phrase('upload_image')}}</span></a>"></script>
<xf:elseif is="$xf.options.itmChevInt_position == 'editor'" />
<script async src="//{$xf.options.itmChevInt_url}/sdk/pup.js" data-url="https://{$xf.options.itmChevInt_url}/upload" data-auto-insert="{$xf.options.itmChevInt_embedCodes}" data-sibling="#insertImage-1" data-html="<button %x type='button' class='%bClass fr-command fr-btn fr-btn-font_awesome' data-cmd='uploadImage' data-popup='true' role='button' id='uploadImage-1'><i class='fa fa-upload' aria-hidden=true'></i><span class='fr-sr-only'>{{ phrase('upload_image')}}</span></button>"></script>
</xf:if>]]></template>
</templates>
4 changes: 2 additions & 2 deletions upload/src/addons/ITM/CheveretoIntegration/addon.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"legacy_addon_id": "",
"title": "[ITM] Chevereto Integration",
"description": "The popup upload plugin (PUP) is a small file that allows Chevereto based websites to provide external image uploading via a small JavaScript file.",
"version_id": 2000270,
"version_string": "2.0.2",
"version_id": 2000370,
"version_string": "2.0.3",
"dev": "McAtze",
"dev_url": "https://www.xendach.de",
"faq_url": "",
Expand Down
8 changes: 4 additions & 4 deletions upload/src/addons/ITM/CheveretoIntegration/hashes.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"src/addons/ITM/CheveretoIntegration/addon.json": "bee2e0e66099d815e3f7b61ae4ce198f367d3a0b5f4fff29394e44413bced3e7",
"src/addons/ITM/CheveretoIntegration/addon.json": "c64c21a0ee8ce8ab61640f56ad423cf24851311c88ce80faff1d76d36b6fbe25",
"src/addons/ITM/CheveretoIntegration/icon.png": "d5aa29abb941747ef72376f60588e948c58a7eecd3965b486978c16b732c3c65",
"src/addons/ITM/CheveretoIntegration/Setup.php": "929e19b071f26fecbc758ac2bfd56f9278eb70ac9e6d5e61c58b918e2b966013",
"src/addons/ITM/CheveretoIntegration/_data/admin_navigation.xml": "064ec797484ac00d5ee37367b50b06846d11f480d00550997712707f8fdac8c0",
Expand All @@ -15,15 +15,15 @@
"src/addons/ITM/CheveretoIntegration/_data/help_pages.xml": "a8a0c0b06cdc550438bc8a8d385af3e1e5ab3459877dfb934c1c31be59c89163",
"src/addons/ITM/CheveretoIntegration/_data/member_stats.xml": "89fb2b93ff1eca7a1f6f752248edf6090dfd24037db1446fd18ff7143f08124d",
"src/addons/ITM/CheveretoIntegration/_data/navigation.xml": "f75e1c03a45a360bbdfcd0567121665082315068475d5b0feb8b1acbb1688651",
"src/addons/ITM/CheveretoIntegration/_data/options.xml": "56401e6bfe450763453353a8a2b1fb9cc770fd9d96522217874877a197d58cc1",
"src/addons/ITM/CheveretoIntegration/_data/options.xml": "3fbdab8300735e69ad17ca5c4ef0bbcdedbfaec78003f50f2cfa4003f98137f0",
"src/addons/ITM/CheveretoIntegration/_data/option_groups.xml": "b0b8839c11dbe4022b1f0ae70c63c3ee2723202efb6286b9feed30ac6e55509f",
"src/addons/ITM/CheveretoIntegration/_data/permissions.xml": "7e4fc7d5826733d15ea2d8936b9bdd41afcaad810eb38e50da3c8d8eafda1550",
"src/addons/ITM/CheveretoIntegration/_data/permission_interface_groups.xml": "3177224e96458b829aa7fb24866dda9e0455a4922aee3d669b53f59a1ffdf5d1",
"src/addons/ITM/CheveretoIntegration/_data/phrases.xml": "97f97fa39220c555baad77ee2a9bb623ef3f0357066c4e1cce5b612a41425586",
"src/addons/ITM/CheveretoIntegration/_data/phrases.xml": "7baf6f3e317bdcc2a431beb690a02006c0f8794b4a7eb56fa0e2c5c9acf70ef8",
"src/addons/ITM/CheveretoIntegration/_data/routes.xml": "550fa64f9feedf137dd877b38c2684f94474619d2d83890dbb717a91b50da8f5",
"src/addons/ITM/CheveretoIntegration/_data/style_properties.xml": "8b8690a8512f01f219dd2da76e3d0c5f62afc1f317b87794a7331c859c36a7a8",
"src/addons/ITM/CheveretoIntegration/_data/style_property_groups.xml": "68e1879cb3846c42d978487aa8d5145ff3335fc39e58016878824d5cf3fd684c",
"src/addons/ITM/CheveretoIntegration/_data/templates.xml": "4ba0e9b77bef832a1a92e7b88071b4057f08e8401511781ffeac00ad7821dd88",
"src/addons/ITM/CheveretoIntegration/_data/templates.xml": "4f3c53bb427ade2ece4b0f729e9f607039d16f50db8c0377dd6e494e0f2c1420",
"src/addons/ITM/CheveretoIntegration/_data/template_modifications.xml": "fd9875227cf82a7f5ed7182578667fa1321927e6abb9781e890026def08afcc8",
"src/addons/ITM/CheveretoIntegration/_data/widget_definitions.xml": "37e46965256430f24004c2e7f08ba08f9b0d1cbcc4d70e84b3f4e3ffb713e64b",
"src/addons/ITM/CheveretoIntegration/_data/widget_positions.xml": "a29cee66134f6bc5d75ed9df1eef21096c24401915c5b5c774389c3d7bb2d5b3"
Expand Down

0 comments on commit 83367cf

Please sign in to comment.