equal
deleted
inserted
replaced
29 /** |
29 /** |
30 * Constructor. |
30 * Constructor. |
31 * |
31 * |
32 * @since 4.3.0 |
32 * @since 4.3.0 |
33 * |
33 * |
|
34 * @see WP_Customize_Control::__construct() |
|
35 * |
34 * @param WP_Customize_Manager $manager Customizer bootstrap instance. |
36 * @param WP_Customize_Manager $manager Customizer bootstrap instance. |
35 * @param string $id Control ID. |
37 * @param string $id Control ID. |
36 * @param array $args Optional. Arguments to override class property defaults. |
38 * @param array $args Optional. Arguments to override class property defaults. |
|
39 * See WP_Customize_Control::__construct() for information |
|
40 * on accepted arguments. Default empty array. |
37 */ |
41 */ |
38 public function __construct( $manager, $id, $args = array() ) { |
42 public function __construct( $manager, $id, $args = array() ) { |
39 parent::__construct( $manager, $id, $args ); |
43 parent::__construct( $manager, $id, $args ); |
40 add_action( 'customize_controls_print_styles', 'wp_site_icon', 99 ); |
44 add_action( 'customize_controls_print_styles', 'wp_site_icon', 99 ); |
41 } |
45 } |
62 <img src="<?php echo esc_url( admin_url( 'images/' . ( is_rtl() ? 'browser-rtl.png' : 'browser.png' ) ) ); ?>" class="browser-preview" width="182" alt="" /> |
66 <img src="<?php echo esc_url( admin_url( 'images/' . ( is_rtl() ? 'browser-rtl.png' : 'browser.png' ) ) ); ?>" class="browser-preview" width="182" alt="" /> |
63 |
67 |
64 <div class="favicon"> |
68 <div class="favicon"> |
65 <img src="{{ data.attachment.sizes.full ? data.attachment.sizes.full.url : data.attachment.url }}" alt="<?php esc_attr_e( 'Preview as a browser icon' ); ?>"/> |
69 <img src="{{ data.attachment.sizes.full ? data.attachment.sizes.full.url : data.attachment.url }}" alt="<?php esc_attr_e( 'Preview as a browser icon' ); ?>"/> |
66 </div> |
70 </div> |
67 <span class="browser-title" aria-hidden="true"><?php bloginfo( 'name' ); ?></span> |
71 <span class="browser-title" aria-hidden="true"><# print( '<?php bloginfo( 'name' ); ?>' ) #></span> |
68 </div> |
72 </div> |
69 <img class="app-icon-preview" src="{{ data.attachment.sizes.full ? data.attachment.sizes.full.url : data.attachment.url }}" alt="<?php esc_attr_e( 'Preview as an app icon' ); ?>"/> |
73 <img class="app-icon-preview" src="{{ data.attachment.sizes.full ? data.attachment.sizes.full.url : data.attachment.url }}" alt="<?php esc_attr_e( 'Preview as an app icon' ); ?>"/> |
70 </div> |
74 </div> |
71 <# } #> |
75 <# } #> |
72 <div class="actions"> |
76 <div class="actions"> |