Merge pull request #18798 from owncloud/collapse-html-code
Collapse HTML code for federated code
This commit is contained in:
commit
8684420d0a
2 changed files with 10 additions and 5 deletions
|
@ -12,4 +12,8 @@ $(document).ready(function() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('#oca-files-sharing-add-to-your-website').click(function() {
|
||||||
|
$('#oca-files-sharing-add-to-your-website-expanded').slideDown();
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -46,13 +46,13 @@ if ($_['showShareIT']) {
|
||||||
data-url='https://plus.google.com/share?url=<?php p(urlencode($_['reference'])); ?>'/>
|
data-url='https://plus.google.com/share?url=<?php p(urlencode($_['reference'])); ?>'/>
|
||||||
Google+
|
Google+
|
||||||
</button>
|
</button>
|
||||||
|
<button id="oca-files-sharing-add-to-your-website">
|
||||||
|
<?php p($l->t('Add to your website')) ?>
|
||||||
|
</button>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<br>
|
<div class="hidden" id="oca-files-sharing-add-to-your-website-expanded">
|
||||||
|
<p style="margin: 10px 0">
|
||||||
<p>
|
|
||||||
<?php p($l->t('Add it to your website:')); ?>
|
|
||||||
|
|
||||||
<a target="_blank" href="<?php p($_['reference']); ?>"
|
<a target="_blank" href="<?php p($_['reference']); ?>"
|
||||||
style="padding:10px;background-color:#1d2d44;color:#fff;border-radius:3px;padding-left:4px;">
|
style="padding:10px;background-color:#1d2d44;color:#fff;border-radius:3px;padding-left:4px;">
|
||||||
<img src="<?php p($_['owncloud_logo_path']); ?>"
|
<img src="<?php p($_['owncloud_logo_path']); ?>"
|
||||||
|
@ -71,6 +71,7 @@ if ($_['showShareIT']) {
|
||||||
|
|
||||||
</a></xmp>
|
</a></xmp>
|
||||||
</p>
|
</p>
|
||||||
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue