diff --git a/src/wp-links-opml.php b/src/wp-links-opml.php
index e30869b..2118e6a 100644
a
|
b
|
echo '<?xml version="1.0"?'.">\n"; |
28 | 28 | <head> |
29 | 29 | <title><?php printf( __('Links for %s'), esc_attr(get_bloginfo('name', 'display')) ); ?></title> |
30 | 30 | <dateCreated><?php echo gmdate("D, d M Y H:i:s"); ?> GMT</dateCreated> |
31 | | <?php do_action('opml_head'); ?> |
| 31 | |
| 32 | <?php |
| 33 | /** |
| 34 | * Fires in the OPML header. |
| 35 | * |
| 36 | * @since 2.5.1 |
| 37 | */ |
| 38 | do_action('opml_head'); |
| 39 | ?> |
32 | 40 | </head> |
33 | 41 | <body> |
34 | 42 | <?php |
… |
… |
else |
38 | 46 | $cats = get_categories(array('taxonomy' => 'link_category', 'hierarchical' => 0, 'include' => $link_cat)); |
39 | 47 | |
40 | 48 | foreach ( (array)$cats as $cat ) : |
| 49 | |
| 50 | /** |
| 51 | * Filter the OPML outline link category name. |
| 52 | * |
| 53 | * @since 2.0.7 |
| 54 | * |
| 55 | * @param string $catname The OPML outline category name. |
| 56 | */ |
41 | 57 | $catname = apply_filters('link_category', $cat->name); |
42 | 58 | |
43 | 59 | ?> |
… |
… |
foreach ( (array)$cats as $cat ) : |
45 | 61 | <?php |
46 | 62 | $bookmarks = get_bookmarks(array("category" => $cat->term_id)); |
47 | 63 | foreach ( (array)$bookmarks as $bookmark ) : |
| 64 | |
| 65 | /** |
| 66 | * Filter the OPML outline link title text. |
| 67 | * |
| 68 | * @since 2.0.7 |
| 69 | * |
| 70 | * @param string $title The OPML outline title text. |
| 71 | */ |
48 | 72 | $title = apply_filters('link_title', $bookmark->link_name); |
49 | 73 | ?> |
50 | 74 | <outline text="<?php echo esc_attr($title); ?>" type="link" xmlUrl="<?php echo esc_attr($bookmark->link_rss); ?>" htmlUrl="<?php echo esc_attr($bookmark->link_url); ?>" updated="<?php if ('0000-00-00 00:00:00' != $bookmark->link_updated) echo $bookmark->link_updated; ?>" /> |