// SYSTEM PANEL //
[ROOT]
/
home
/
salvufkx
/
salvatorefabbri.com
/
wp-content
/
themes
/
vega
[ PARENT ]
EDIT :: image-flow.php
<?php $absolute_path = __FILE__; $path_to_file = explode( 'wp-content', $absolute_path ); $path_to_wp = $path_to_file[0]; require_once( $path_to_wp.'/wp-load.php' ); $all_photo_arr = array(); if(isset($_GET['gallery_id']) OR !empty($_GET['gallery_id'])) { $all_photo_arr = get_post_meta($_GET['gallery_id'], 'wpsimplegallery_gallery', true); //Get global gallery sorting $all_photo_arr = pp_resort_gallery_img($all_photo_arr); } header("Content-type: text/xml"); echo '<?xml version="1.0" encoding="utf-8" ?> <bank>'; $pp_image_lightbox_title = get_option('pp_image_lightbox_title'); foreach($all_photo_arr as $photo_id) { $full_image_url = wp_get_attachment_image_src( $photo_id, 'full' ); $small_image_url = wp_get_attachment_image_src( $photo_id, 'large' ); //Get image meta data $image_title = get_the_title($photo_id); $image_caption = get_post_field('post_excerpt', $photo_id); echo '<img>'; echo '<src>'.$small_image_url[0].'</src>'; echo '<link>'.$full_image_url[0].'</link>'; if(!empty($pp_image_lightbox_title)) { echo '<title>'.$image_caption.'</title>'; echo '<caption></caption>'; } else { echo '<title></title>'; echo '<caption></caption>'; } echo '<title></title>'; echo '<caption></caption>'; echo '</img>'; } echo '</bank>'; ?>
SAVE
CANCEL