Changeset 3072 for trunk/wp-admin/link-import.php
- Timestamp:
- 11/14/2005 09:42:44 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/link-import.php
r2854 r3072 23 23 24 24 <div class="wrap"> 25 <h2><?php _e('Import your blogroll from another system') ?> </h2> 26 <form enctype="multipart/form-data" action="link-import.php" method="post" name="blogroll"> 25 27 26 <h2><?php _e('Import your blogroll from another system') ?> </h2> 27 <!-- <form name="blogroll" action="link-import.php" method="get"> --> 28 <form enctype="multipart/form-data" action="link-import.php" method="post" name="blogroll"> 28 <p><?php _e('If a program or website you use allows you to export your links or subscriptions as OPML you may import them here.'); ?> 29 <div style="width: 70%; margin: auto; height: 8em;"> 30 <input type="hidden" name="step" value="1" /> 31 <input type="hidden" name="MAX_FILE_SIZE" value="30000" /> 32 <div style="width: 48%; float: left;"> 33 <h3><?php _e('Specify an OPML URL:'); ?></h3> 34 <input type="text" name="opml_url" size="50" style="width: 90%;" value="http://" /> 35 </div> 29 36 30 <ol> 31 <li><?php _e('Go to <a href="http://www.blogrolling.com">Blogrolling.com</a> and sign in. Once you’ve done that, click on <strong>Get Code</strong>, and then look for the <strong><abbr title="Outline Processor Markup Language">OPML</abbr> code</strong>') ?>.</li> 32 <li><?php _e('Or go to <a href="http://blo.gs">Blo.gs</a> and sign in. Once you’ve done that in the \'Welcome Back\' box on the right, click on <strong>share</strong>, and then look for the <strong><abbr title="Outline Processor Markup Language">OPML</abbr> link</strong> (favorites.opml).') ?></li> 33 <li><?php _e('Select that text and copy it or copy the link/shortcut into the box below.') ?><br /> 34 <input type="hidden" name="step" value="1" /> 35 <?php _e('Your OPML URL:') ?> <input type="text" name="opml_url" size="65" /> 36 </li> 37 <li> 38 <?php _e('<strong>or</strong> you can upload an OPML file from your desktop aggregator:') ?><br /> 39 <input type="hidden" name="MAX_FILE_SIZE" value="30000" /> 40 <label><?php _e('Upload this file:') ?> <input name="userfile" type="file" /></label> 41 </li> 37 <div style="width: 48%; float: left;"> 38 <h3><?php _e('Or choose from your local disk:'); ?></h3> 39 <input name="userfile" type="file" size="30" /> 40 </div> 42 41 43 <li><?php _e('Now select a category you want to put these links in.') ?><br /> 44 <?php _e('Category:') ?> <select name="cat_id"> 42 43 </div> 44 45 <p style="clear: both; margin-top: 1em;"><?php _e('Now select a category you want to put these links in.') ?><br /> 46 <?php _e('Category:') ?> <select name="cat_id"> 45 47 <?php 46 47 48 $categories = $wpdb->get_results("SELECT cat_id, cat_name, auto_toggle FROM $wpdb->linkcategories ORDER BY cat_id"); 49 foreach ($categories as $category) { 48 50 ?> 49 51 <option value="<?php echo $category->cat_id; ?>"><?php echo $category->cat_id.': '.$category->cat_name; ?></option> 50 52 <?php 51 53 } // end foreach 52 54 ?> 53 </select>55 </select></p> 54 56 55 </li> 56 57 <li><input type="submit" name="submit" value="<?php _e('Import!') ?>" /></li> 58 </ol> 59 </form> 57 <p class="submit"><input type="submit" name="submit" value="<?php _e('Import OPML File') ?> »" /></p> 58 </form> 60 59 61 60 </div>
Note: See TracChangeset
for help on using the changeset viewer.