Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function pinterest_html($post)
- {
- $attachID=get_post_meta($post->ID,'_pin_image',true);
- $pin_desc=get_post_meta($post->ID,'_pin_description',true);
- $pin_image=wp_get_attachment_image(get_post_meta($post->ID,'_pin_image',true),'pinterest-thumb');
- if($pin_image){
- $bar=$pin_image.'<br /><div class="pin-actions"><a href="#">Remove Image</a></div>';
- }
- $html=wp_nonce_field('save_pinterest_options','_pin_field',true,false);
- $html.='
- <div id="pinterest-options">
- <div class="pin_option">
- <label for="pin_description" class="full_label">Description:</label>
- <textarea name="pin_description" id="pin_description">'.$pin_desc.'</textarea>
- </div>
- <div class="pin_clearer"></div>
- <div class="pin_option">
- <div class="col1_2"><label for="pin_image">Image:</label></div>
- <div class="col1_2"><input type="button" class="button-secondary" id="pin_add_image" value="Choose file to upload" /></div>
- </div>
- <div class="pin_clearer"></div>
- <div class="pin_image_container">
- <input type="hidden" name="pin_image" id="pin_image" value="'.$attachID.'" />
- '.$bar.'
- </div>
- <div class="pin_clearer"></div>
- </div>
- <div class="last_clearer"></div>';
- echo $html;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement