Skip to content

Commit

Permalink
Elements: default value for the URL of the image element is the Xibo …
Browse files Browse the repository at this point in the history
…website (#2444)

relates to xibosignage/xibo#3349
  • Loading branch information
maurofmferrao committed Mar 26, 2024
1 parent 51c9dc1 commit e9965d5
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions modules/templates/global-elements.xml
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,6 @@ $(target).find('.date').each(function(_idx, dateEl){
<property id="url" type="text">
<title>Image URL</title>
<helpText>Enter the URL of the image you want to use.</helpText>
<default>https://xibosignage.com/dist/img/header-logo.svg</default>
</property>
<property id="opacity" type="number">
<title>Opacity</title>
Expand Down Expand Up @@ -447,15 +446,13 @@ $(target).find('.date').each(function(_idx, dateEl){
<hbs><![CDATA[
<div class="global-elements-image img-container" style="width:100%; height: 100%; overflow: hidden; position: relative;
{{#if roundBorder}}border-radius: {{borderRadius}}px;{{/if}}">
{{#if url}}
<img src="{{{url}}}" style="
width:100%; height: 100%;
object-fit: {{objectFit}};
object-position: {{alignId}} {{valignId}};
opacity: {{opacity}}%;
position: absolute; top: 0; left: 0;"
/>
{{/if}}
<img src="{{{url}}}" style="
width:100%; height: 100%;
object-fit: {{objectFit}};
object-position: {{alignId}} {{valignId}};
opacity: {{opacity}}%;
position: absolute; top: 0; left: 0;"
/>
</div>
]]></hbs>
</stencil>
Expand Down

0 comments on commit e9965d5

Please sign in to comment.