1
0

test for image format on src="" and figcaption

This commit is contained in:
Don Chambers
2015-01-30 15:01:53 -06:00
parent e11b27a2a1
commit 80b07eb2a2

View File

@@ -480,8 +480,8 @@ class serendipity_event_entryproperties extends serendipity_event
<textarea id="prop<?php echo $fieldname; ?>" class="change_preview" name="serendipity[properties][<?php echo $fieldname; ?>]" data-configitem="prop<?php echo $fieldname; ?>"><?php echo serendipity_specialchars($value); ?></textarea> <textarea id="prop<?php echo $fieldname; ?>" class="change_preview" name="serendipity[properties][<?php echo $fieldname; ?>]" data-configitem="prop<?php echo $fieldname; ?>"><?php echo serendipity_specialchars($value); ?></textarea>
<button class="customfieldMedia" type="button" name="insImage" title="<?php echo MEDIA ; ?>"><span class="icon-picture"></span><span class="visuallyhidden"><?php echo MEDIA ; ?></span></button> <button class="customfieldMedia" type="button" name="insImage" title="<?php echo MEDIA ; ?>"><span class="icon-picture"></span><span class="visuallyhidden"><?php echo MEDIA ; ?></span></button>
<figure id="prop<?php echo $fieldname; ?>_preview"> <figure id="prop<?php echo $fieldname; ?>_preview">
<figcaption><?php echo PREVIEW ?></figcaption> <?php if (preg_match('/(\.jpg|\.png|\.bmp)$/', $value)) { echo '<figcaption>' . PREVIEW . '</figcaption>'; }?>
<img alt="" src="<?php echo $value; ?>"> <img alt="" src="<?php if (preg_match('/(\.jpg|\.png|\.bmp)$/', $value)) {echo $value; }?>">
</figure> </figure>
</div> </div>
<?php <?php