Better default CSS/class for non-image attachments
This commit is contained in:
parent
58797c1b3a
commit
63e8608c9b
|
@ -34,20 +34,19 @@ fi
|
||||||
|
|
||||||
if test -z "$ATTACH_TEMPLATE"; then
|
if test -z "$ATTACH_TEMPLATE"; then
|
||||||
ATTACH_TEMPLATE='
|
ATTACH_TEMPLATE='
|
||||||
<a href="$ATTACH_URL">
|
|
||||||
<div class="attachment">
|
<div class="attachment">
|
||||||
<strong>$ATTACH_NAME</strong>
|
<a href="$ATTACH_URL"><strong>$ATTACH_NAME</strong></a>
|
||||||
$ATTACH_DESC
|
$ATTACH_DESC
|
||||||
</div>
|
</div>
|
||||||
</a>'
|
'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if test -z "$ATTACH_IMAGE_TEMPLATE"; then
|
if test -z "$ATTACH_IMAGE_TEMPLATE"; then
|
||||||
ATTACH_IMAGE_TEMPLATE='
|
ATTACH_IMAGE_TEMPLATE='
|
||||||
<figure>
|
<figure class="attachment">
|
||||||
<a href="$ATTACH_URL">
|
<a href="$ATTACH_URL">
|
||||||
<img class="attachment" src="$ATTACH_URL" alt="$ATTACH_DESC" title="$ATTACH_DESC">
|
<img src="$ATTACH_URL" alt="$ATTACH_DESC" title="$ATTACH_DESC">
|
||||||
</a>
|
</a>
|
||||||
<figcaption>
|
<figcaption>
|
||||||
<a href="$ATTACH_URL"><b>$ATTACH_NAME</b></a><br>
|
<a href="$ATTACH_URL"><b>$ATTACH_NAME</b></a><br>
|
||||||
|
|
Ŝarĝante…
Reference in New Issue