Advertisement
askwpcoach

PrettyPhoto inline content

Dec 11th, 2012
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.52 KB | None | 0 0
  1. <?php
  2.     $apurl = plugins_url();
  3.      
  4.     //begin initialization of prettyphoto
  5.      echo '<a href="#inline-1" rel="prettyPhoto" ><img src="'.$apurl.'/ApprovedProfessional/css/images/stars.png" /></a>';//get the display image
  6.      echo '<br /><small>(23) Votes - give us a 5 star rating!</small>';
  7.  ?>
  8. <div id="inline-1" style="display:none;">
  9.     <?php
  10.     //output wysiwyg for cc 5 star rating
  11.     $wysiwyg_value_rating = get_option( 'ap_five_star' );
  12.     foreach ($wysiwyg_value_rating  as $wysiwyg_val )
  13.     echo $wysiwyg_val;
  14.     ?>
  15. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement