~canonical-sysadmins/wordpress/4.8.1

« back to all changes in this revision

Viewing changes to wp-includes/customize/class-wp-customize-site-icon-control.php

  • Committer: Barry Price
  • Date: 2016-08-17 04:49:28 UTC
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: barry.price@canonical.com-20160817044928-viijiwb4tl8jwzmp
new upstream release 4.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
                </label>
61
61
 
62
62
                <# if ( data.attachment && data.attachment.id ) { #>
63
 
                <# if ( data.attachment.sizes ) { #>
64
 
                <div class="current">
65
 
                        <div class="container">
66
 
                                <div class="site-icon-preview">
67
 
                                        <div class="favicon-preview">
68
 
                                                <img src="<?php echo esc_url( admin_url( 'images/browser.png' ) ); ?>" class="browser-preview" width="182" alt="<?php esc_attr_e( 'Browser interface preview' ); ?>" />
 
63
                        <div class="attachment-media-view">
 
64
                                <# if ( data.attachment.sizes ) { #>
 
65
                                        <div class="site-icon-preview">
 
66
                                                <div class="favicon-preview">
 
67
                                                        <img src="<?php echo esc_url( admin_url( 'images/' . ( is_rtl() ? 'browser-rtl.png' : 'browser.png' ) ) ); ?>" class="browser-preview" width="182" alt="" />
69
68
 
70
 
                                                <div class="favicon">
71
 
                                                        <img id="preview-favicon" src="{{ data.attachment.sizes.full.url }}" alt="<?php esc_attr_e( 'Preview as a browser icon' ); ?>"/>
 
69
                                                        <div class="favicon">
 
70
                                                                <img src="{{ data.attachment.sizes.full.url }}" alt="<?php esc_attr_e( 'Preview as a browser icon' ); ?>"/>
 
71
                                                        </div>
 
72
                                                        <span class="browser-title" aria-hidden="true"><?php bloginfo( 'name' ); ?></span>
72
73
                                                </div>
73
 
                                                <span class="browser-title"><?php bloginfo( 'name' ); ?></span>
 
74
                                                <img class="app-icon-preview" src="{{ data.attachment.sizes.full.url }}" alt="<?php esc_attr_e( 'Preview as an app icon' ); ?>"/>
74
75
                                        </div>
75
 
                                        <img class="app-icon-preview" src="{{ data.attachment.sizes.full.url }}" alt="<?php esc_attr_e( 'Preview as an app icon' ); ?>"/>
 
76
                                <# } #>
 
77
                                <div class="actions">
 
78
                                        <# if ( data.canUpload ) { #>
 
79
                                                <button type="button" class="button remove-button"><?php echo $this->button_labels['remove']; ?></button>
 
80
                                                <button type="button" class="button upload-button" id="{{ data.settings['default'] }}-button"><?php echo $this->button_labels['change']; ?></button>
 
81
                                                <div style="clear:both"></div>
 
82
                                        <# } #>
76
83
                                </div>
77
84
                        </div>
78
 
                </div>
79
 
                <# } #>
80
 
                <div class="actions">
81
 
                        <# if ( data.canUpload ) { #>
82
 
                                <button type="button" class="button remove-button"><?php echo $this->button_labels['remove']; ?></button>
83
 
                                <button type="button" class="button upload-button" id="{{ data.settings['default'] }}-button"><?php echo $this->button_labels['change']; ?></button>
84
 
                                <div style="clear:both"></div>
85
 
                        <# } #>
86
 
                </div>
87
85
                <# } else { #>
88
 
                <div class="current">
89
 
                        <div class="container">
 
86
                        <div class="attachment-media-view">
90
87
                                <div class="placeholder">
91
 
                                        <div class="inner">
92
 
                                                <span><?php echo $this->button_labels['placeholder']; ?></span>
93
 
                                        </div>
 
88
                                        <?php echo $this->button_labels['placeholder']; ?>
 
89
                                </div>
 
90
                                <div class="actions">
 
91
                                        <# if ( data.defaultAttachment ) { #>
 
92
                                                <button type="button" class="button default-button"><?php echo $this->button_labels['default']; ?></button>
 
93
                                        <# } #>
 
94
                                        <# if ( data.canUpload ) { #>
 
95
                                                <button type="button" class="button upload-button" id="{{ data.settings['default'] }}-button"><?php echo $this->button_labels['select']; ?></button>
 
96
                                        <# } #>
 
97
                                        <div style="clear:both"></div>
94
98
                                </div>
95
99
                        </div>
96
 
                </div>
97
 
                <div class="actions">
98
 
                        <# if ( data.defaultAttachment ) { #>
99
 
                                <button type="button" class="button default-button"><?php echo $this->button_labels['default']; ?></button>
100
 
                        <# } #>
101
 
                        <# if ( data.canUpload ) { #>
102
 
                                <button type="button" class="button upload-button" id="{{ data.settings['default'] }}-button"><?php echo $this->button_labels['select']; ?></button>
103
 
                        <# } #>
104
 
                        <div style="clear:both"></div>
105
 
                </div>
106
100
                <# } #>
107
101
                <?php
108
102
        }