Skip to content

Commit

Permalink
some docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pfefferle committed Jul 13, 2015
1 parent bbd0983 commit d726034
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions open-search-document.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Description: Create an Open Search Document for your blog.
Version: 2.0.0
Author: johnnoone, pfefferle
Author URI: http://wordpress.org/plugins/open-search-document/
Author URI: https://github.com/pfefferle/wordpress-open-search-document/
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
Expand Down Expand Up @@ -191,25 +191,27 @@ public static function add_xrd_links( $xrd ) {
}

/**
*
* Adds OSD Images
*/
public static function osd_xml() {
if ( function_exists( 'get_site_icon_url' ) ) {
?>
<Image height="16" width="16"><?php echo get_site_icon_url( null, 16 ); ?></Image>
<Image height="32" width="32"><?php echo get_site_icon_url( null, 32 ); ?></Image>
<Image height="64" width="64"><?php echo get_site_icon_url( null, 64 ); ?></Image>
<?php
}
}

/**
* Add 16x16 icon
* Add icons
*
* @param array $sizes sizes available for the site icon
* @return array updated list of icons
*/
public static function site_icon_image_sizes( $sizes ) {
$sizes[] = '16';
$sizes[] = '32';
$sizes[] = '64';

return array_unique( $sizes );
Expand Down

0 comments on commit d726034

Please sign in to comment.