Advertisement
alchymyth

quote source /custom/meta.php

Jan 28th, 2020
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.68 KB | None | 0 0
  1. <div class="quote_source_box">
  2. <p>Quote your article source(s) at the end of your post (* URL is optional)</p>
  3. <table width="100%" border="0" cellpadding="3" cellspacing="0">
  4.     <tr>
  5.         <td width="200">Source Title</td>
  6.         <td>URL</td>
  7.     </tr>
  8. <?php
  9.     for( $i = 1; $i <= get_option('qs_number_quotes'); $i++ ) { ?>
  10.     <tr>
  11.         <td><input type="text" name="_quote_source[quote<?php echo $i; ?>_title]" value="<?php $ind =  "quote".$i."_title"; echo !empty($meta[$ind]) ? $meta[$ind] : ''; ?>"/></td>
  12.         <td><input type="text" name="_quote_source[quote<?php echo $i; ?>]" value="<?php $ind = "quote".$i.""; echo !empty($meta[$ind]) ? $meta[$ind] : ''; ?>"/></td>
  13.     </tr>
  14.     <?php } ?>
  15. </table>
  16. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement