about-widget.php
9 years ago
accordion-api.php
9 years ago
accordion.php
9 years ago
attachment-url.php
9 years ago
audio.php
9 years ago
before-after.php
9 years ago
button.php
9 years ago
code.php
9 years ago
contact-box.php
9 years ago
contact-form.php
9 years ago
divider.php
9 years ago
dropcap.php
9 years ago
facebook.php
9 years ago
flickr.php
9 years ago
gallery.php
9 years ago
gmap.php
9 years ago
highlight.php
9 years ago
image.php
9 years ago
instagram-feed.php
9 years ago
latest-items.php
10 years ago
latest-posts-slider.php
9 years ago
popular-posts-widget.php
9 years ago
quote.php
9 years ago
recent-posts-grid-carousel.php
9 years ago
recent-posts-land-style.php
9 years ago
recent-posts-masonry.php
9 years ago
recent-posts-tiles.php
9 years ago
recent-posts-timeline.php
9 years ago
recent-posts-widget.php
9 years ago
recent-posts.php
9 years ago
related-posts.php
9 years ago
sample-element.php
9 years ago
search.php
9 years ago
slider.php
9 years ago
socials-list.php
9 years ago
tabs-api.php
9 years ago
tabs.php
9 years ago
text.php
9 years ago
touch-slider.php
9 years ago
video.php
9 years ago
attachment-url.php
23 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Retrieves attachment URL |
| 4 | * |
| 5 | * |
| 6 | * @package Auxin |
| 7 | * @license LICENSE.txt |
| 8 | * @author |
| 9 | * @link http://averta.net/phlox/ |
| 10 | * @copyright (c) 2010-2017 |
| 11 | */ |
| 12 | |
| 13 | add_shortcode( 'aux_attach_url', 'auxin_shortcode_attach_id' ); |
| 14 | |
| 15 | function auxin_shortcode_attach_id( $atts, $content = null ) { |
| 16 | extract( shortcode_atts( array( 'id' => '' ) , $atts ) ); |
| 17 | if( empty( $id ) ){ |
| 18 | return ''; |
| 19 | } |
| 20 | return wp_get_attachment_url( $id ); |
| 21 | } |
| 22 | |
| 23 |