Advertisement
Damien9m

Fonction Catch that image pour lien extérieur

Oct 22nd, 2014
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. FUNCTION.PHP
  2.  
  3. <form id="thumbnail_upload" method="post" action="">
  4. <label>Titre</label>
  5. <input type="text" name="title" id = "title" style = "width:70%" required></br><br/>
  6. <input type = "hidden" name = "save" value = 1>
  7. <div class = "thumbnailform">
  8. <div class == "thumbinput" style = "width:75%;float:left">
  9.  
  10. FONCTION CATCH THAT IMAGE ?
  11.  
  12. </div>
  13. <div class = "thumbpreview" id = "thumbprev" style = "width:20%;float:right"></div>
  14. </div>
  15. <div style = "clear:both"></div>
  16. </br>
  17. <label>URL </label>
  18. <input type="url" name="content" value="http://" placeholder="http://" />
  19.  
  20.  
  21.  
  22. PLUGIN.PHP
  23.  
  24. <?php if ( has_post_thumbnail() ) { ?>
  25. <div class = 'reddit-image pull-left' style = 'width:180px'>
  26. <img src = "<?php echo $image[0]; ?>" width = "180px" class="img-rounded">
  27. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement