Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $file = fm_summary_get_item_value('yourNickname');
- $file = unserialize($file);
- $uploads = wp_upload_dir();
- ?>
- <img src="<?php echo $uploads['url'].'/'.$file['filename'];?>"/>
- <div id="fm-post-summary">
- <?php while(fm_summary_have_items()): fm_summary_the_item(); ?>
- <?php if(fm_summary_the_type() == 'separator'): ?>
- <?php echo fm_summary_the_label();?>]<h4><?php echo fm_summary_the_label();?></h4>
- <hr />
- <ul>
- <?php elseif(fm_summary_has_data()): ?>
- <?php if(fm_summary_the_type() == 'file' ) {
- $nickname = fm_summary_the_nickname();
- $file = fm_summary_get_item_value($nickname);
- $file = unserialize($file);
- $uploads = wp_upload_dir();
- ?>
- <img id="fm-post-img-<?php echo fm_summary_the_nickname();?>" src="<?php echo $uploads['url'].'/'.$file['filename'];?>"/>
- <?php }; ?>
- <p <?php if(fm_summary_the_nickname() != "") echo " id=\"fm-post-label-".fm_summary_the_nickname()."\"";?> class="fm-post-item-label"><?php echo fm_summary_the_label();?>:</p> <p <?php if(fm_summary_the_nickname() != "") echo " id=\"fm-post-item-".fm_summary_the_nickname()."\"";?>><strong><?php echo fm_summary_the_value();?></strong></p>
- <?php endif; ?>
- <?php endwhile; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement