Advertisement
Guest User

Untitled

a guest
Sep 20th, 2011
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.23 KB | None | 0 0
  1. <?php
  2. $file = fm_summary_get_item_value('yourNickname');
  3. $file = unserialize($file);
  4. $uploads = wp_upload_dir();
  5. ?>
  6. <img src="<?php echo $uploads['url'].'/'.$file['filename'];?>"/>
  7.  
  8. <div id="fm-post-summary">
  9. <?php while(fm_summary_have_items()): fm_summary_the_item(); ?>
  10.     <?php if(fm_summary_the_type() == 'separator'): ?>
  11.  
  12.         <?php echo fm_summary_the_label();?>]<h4><?php echo fm_summary_the_label();?></h4>
  13.         <hr />
  14.         <ul>
  15.    
  16.     <?php elseif(fm_summary_has_data()): ?>
  17.    
  18.     <?php if(fm_summary_the_type() == 'file' ) {
  19.    
  20.     $nickname = fm_summary_the_nickname();
  21.     $file = fm_summary_get_item_value($nickname);
  22.     $file = unserialize($file);
  23.     $uploads = wp_upload_dir();
  24.     ?>
  25.    
  26. <img id="fm-post-img-<?php echo fm_summary_the_nickname();?>" src="<?php echo $uploads['url'].'/'.$file['filename'];?>"/>
  27.  
  28.     <?php }; ?>
  29.    
  30. <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>
  31.        
  32.     <?php endif; ?>
  33.    
  34. <?php endwhile; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement