Quantcast
Channel: WordPress.org Forums » [Jetpack - WP Security, Backup, Speed, & Growth] Support
Viewing all articles
Browse latest Browse all 36995

jamminb on "[Plugin: Jetpack by WordPress.com] Carousel feature suggestion to show photo credit (with code)"

$
0
0

It would be great to be able to show the "Credit" metadata value in carousel.

I've hacked this in myself, but I think it would be a nice feature.

jetpack-carousel.js
Modify line 1072 from:
if ( 0 === parseFloat(val) || !val.length || -1 === $.inArray( key, [ 'camera', 'aperture', 'shutter_speed', 'focal_length' ] ) )
to
if ( 0 === parseFloat(val) || !val.length || -1 === $.inArray( key, [ 'camera', 'aperture', 'shutter_speed', 'focal_length', 'credit' ] ) )

jetpack-carousel.php
Add new line at line 120
'credit' => __( 'Credit', 'jetpack' ),

Pretty simple. Perhaps a config option to enable or disable this would be good as well.

Thanks
Ben

http://wordpress.org/extend/plugins/jetpack/


Viewing all articles
Browse latest Browse all 36995

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>