Jetpack::get_jp_emblem PHP Method

get_jp_emblem() public static method

Return string containing the Jetpack logo.
Since: 3.9.0
public static get_jp_emblem ( ) : string
return string
    public static function get_jp_emblem()
    {
        return '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0" y="0" viewBox="0 0 172.9 172.9" enable-background="new 0 0 172.9 172.9" xml:space="preserve">	<path d="M86.4 0C38.7 0 0 38.7 0 86.4c0 47.7 38.7 86.4 86.4 86.4s86.4-38.7 86.4-86.4C172.9 38.7 134.2 0 86.4 0zM83.1 106.6l-27.1-6.9C49 98 45.7 90.1 49.3 84l33.8-58.5V106.6zM124.9 88.9l-33.8 58.5V66.3l27.1 6.9C125.1 74.9 128.4 82.8 124.9 88.9z" /></svg>';
    }

Usage Example

示例#1
0
 function jetpack_show_user_connected_icon($val, $col, $user_id)
 {
     if ('user_jetpack' == $col && Jetpack::is_user_connected($user_id)) {
         $emblem_html = sprintf('<a title="%1$s" class="jp-emblem-user-admin">%2$s</a>', esc_attr__('This user is linked and ready to fly with Jetpack.', 'jetpack'), Jetpack::get_jp_emblem());
         return $emblem_html;
     }
     return $val;
 }
All Usage Examples Of Jetpack::get_jp_emblem
Jetpack