1 | <?php |
||
13 | class Logo { |
||
14 | /** |
||
15 | * Absolute URL of the Jetpack logo. |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | private $url; |
||
20 | |||
21 | /** |
||
22 | * Constructor. |
||
23 | * You can optionally pass a URL to override the default one. |
||
24 | * |
||
25 | * @param string $url New URL of the Jetpack logo. |
||
26 | */ |
||
27 | public function __construct( $url = '' ) { |
||
34 | |||
35 | /** |
||
36 | * Build and retrieve an <img /> tag with the Jetpack logo. |
||
37 | * |
||
38 | * @return string The Jetpack logo. |
||
39 | */ |
||
40 | public function get_image() { |
||
50 | |||
51 | /** |
||
52 | * Create a new `Logo` instance and render it. |
||
53 | * |
||
54 | * @static |
||
55 | * |
||
56 | * @param string $url Optional custom URL of a Jetpack logo. |
||
57 | * @return string The Jetpack logo. |
||
58 | */ |
||
59 | public static function render( $url = '' ) { |
||
64 | } |
||
65 |