Completed
Push — try/jetpack-logo-package ( f86071 )
by
unknown
49:45 queued 40:45
created

Jetpack_Logo::render()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 10
rs 9.9332
c 0
b 0
f 0
1
<?php
2
3
namespace Jetpack\V7\Utils;
4
5
class Jetpack_Logo {
6
	/**
7
	 * Return an img HTML tag pointing to the Jetpack logo. Includes alt text.
8
	 *
9
	 * @since 7.2
10
	 *
11
	 * @return string
12
	 */
13
	public static function render() {
14
		return sprintf(
15
			'<img src="%s" class="jetpack-logo" alt="%s" />',
16
			esc_url( plugins_url( 'images/jetpack-logo-green.svg', JETPACK__PLUGIN_FILE ) ),
17
			esc_attr__(
18
				'Jetpack is a free plugin that utilizes powerful WordPress.com servers to enhance your site and simplify managing it',
19
				'jetpack'
20
			)
21
		);
22
	}
23
}