equal
deleted
inserted
replaced
45 * |
45 * |
46 * @since 4.5.0 |
46 * @since 4.5.0 |
47 */ |
47 */ |
48 public function content_template() { |
48 public function content_template() { |
49 ?> |
49 ?> |
50 <label for="{{ data.settings['default'] }}-button"> |
50 <# if ( data.label ) { #> |
51 <# if ( data.label ) { #> |
51 <span class="customize-control-title">{{ data.label }}</span> |
52 <span class="customize-control-title">{{ data.label }}</span> |
52 <# } #> |
53 <# } #> |
53 <# if ( data.description ) { #> |
54 <# if ( data.description ) { #> |
54 <span class="description customize-control-description">{{{ data.description }}}</span> |
55 <span class="description customize-control-description">{{{ data.description }}}</span> |
55 <# } #> |
56 <# } #> |
|
57 </label> |
|
58 |
56 |
59 <# if ( data.attachment && data.attachment.id ) { #> |
57 <# if ( data.attachment && data.attachment.id ) { #> |
60 <div class="attachment-media-view"> |
58 <div class="attachment-media-view"> |
61 <# if ( data.attachment.sizes ) { #> |
59 <# if ( data.attachment.sizes ) { #> |
62 <div class="site-icon-preview wp-clearfix"> |
60 <div class="site-icon-preview wp-clearfix"> |
72 </div> |
70 </div> |
73 <# } #> |
71 <# } #> |
74 <div class="actions"> |
72 <div class="actions"> |
75 <# if ( data.canUpload ) { #> |
73 <# if ( data.canUpload ) { #> |
76 <button type="button" class="button remove-button"><?php echo $this->button_labels['remove']; ?></button> |
74 <button type="button" class="button remove-button"><?php echo $this->button_labels['remove']; ?></button> |
77 <button type="button" class="button upload-button" id="{{ data.settings['default'] }}-button"><?php echo $this->button_labels['change']; ?></button> |
75 <button type="button" class="button upload-button"><?php echo $this->button_labels['change']; ?></button> |
78 <# } #> |
76 <# } #> |
79 </div> |
77 </div> |
80 </div> |
78 </div> |
81 <# } else { #> |
79 <# } else { #> |
82 <div class="attachment-media-view"> |
80 <div class="attachment-media-view"> |
83 <div class="placeholder"> |
81 <# if ( data.canUpload ) { #> |
84 <?php echo $this->button_labels['placeholder']; ?> |
82 <button type="button" class="upload-button button-add-media"><?php echo $this->button_labels['site_icon']; ?></button> |
85 </div> |
83 <# } #> |
86 <div class="actions"> |
84 <div class="actions"> |
87 <# if ( data.defaultAttachment ) { #> |
85 <# if ( data.defaultAttachment ) { #> |
88 <button type="button" class="button default-button"><?php echo $this->button_labels['default']; ?></button> |
86 <button type="button" class="button default-button"><?php echo $this->button_labels['default']; ?></button> |
89 <# } #> |
|
90 <# if ( data.canUpload ) { #> |
|
91 <button type="button" class="button upload-button" id="{{ data.settings['default'] }}-button"><?php echo $this->button_labels['select']; ?></button> |
|
92 <# } #> |
87 <# } #> |
93 </div> |
88 </div> |
94 </div> |
89 </div> |
95 <# } #> |
90 <# } #> |
96 <?php |
91 <?php |