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

Jetpack_Logo   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A render() 0 10 1
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
}