at path:ROOT / wp-admin / js / site-icon.js
run:R W Run
DIR
2026-03-11 16:18:51
R W Run
2.86 KB
2026-03-11 16:18:51
R W Run
758 By
2026-03-11 16:18:51
R W Run
6.24 KB
2026-03-11 16:18:51
R W Run
2.95 KB
2026-03-11 16:18:51
R W Run
5.66 KB
2026-03-11 16:18:51
R W Run
2.04 KB
2026-03-11 16:18:51
R W Run
11.32 KB
2026-03-11 16:18:51
R W Run
3.01 KB
2026-03-11 16:18:51
R W Run
9.54 KB
2026-03-11 16:18:51
R W Run
3.4 KB
2026-03-11 16:18:51
R W Run
2.85 KB
2026-03-11 16:18:51
R W Run
1.28 KB
2026-03-11 16:18:51
R W Run
61.15 KB
2026-03-11 16:18:51
R W Run
23.12 KB
2026-03-11 16:18:51
R W Run
3.35 KB
2026-03-11 16:18:51
R W Run
1.18 KB
2026-03-11 16:18:51
R W Run
1.98 KB
2026-03-11 16:18:51
R W Run
288.41 KB
2026-03-11 16:18:51
R W Run
109.69 KB
2026-03-11 16:18:51
R W Run
111.46 KB
2026-03-11 16:18:51
R W Run
47.14 KB
2026-03-11 16:18:51
R W Run
70.05 KB
2026-03-11 16:18:51
R W Run
27.41 KB
2026-03-11 16:18:51
R W Run
27.02 KB
2026-03-11 16:18:51
R W Run
8.65 KB
2026-03-11 16:18:51
R W Run
37.12 KB
2026-03-11 16:18:51
R W Run
15.13 KB
2026-03-11 16:18:51
R W Run
41.61 KB
2026-03-11 16:18:51
R W Run
13.14 KB
2026-03-11 16:18:51
R W Run
44 KB
2026-03-11 16:18:51
R W Run
12.78 KB
2026-03-11 16:18:51
R W Run
7.67 KB
2026-03-11 16:18:51
R W Run
5.41 KB
2026-03-11 16:18:51
R W Run
3.65 KB
2026-03-11 16:18:51
R W Run
39.98 KB
2026-03-11 16:18:51
R W Run
15.15 KB
2026-03-11 16:18:51
R W Run
20.17 KB
2026-03-11 16:18:51
R W Run
9.41 KB
2026-03-11 16:18:51
R W Run
7.61 KB
2026-03-11 16:18:51
R W Run
2.93 KB
2026-03-11 16:18:51
R W Run
23.09 KB
2026-03-11 16:18:51
R W Run
890 By
2026-03-11 16:18:51
R W Run
423 By
2026-03-11 16:18:51
R W Run
3.89 KB
2026-03-11 16:18:51
R W Run
1.7 KB
2026-03-11 16:18:51
R W Run
1.27 KB
2026-03-11 16:18:51
R W Run
611 By
2026-03-11 16:18:51
R W Run
3.38 KB
2026-03-11 16:18:51
R W Run
1.13 KB
2026-03-11 16:18:51
R W Run
6.61 KB
2026-03-11 16:18:51
R W Run
2.38 KB
2026-03-11 16:18:51
R W Run
61.15 KB
2026-03-11 16:18:51
R W Run
30.06 KB
2026-03-11 16:18:51
R W Run
4.14 KB
2026-03-11 16:18:51
R W Run
1.1 KB
2026-03-11 16:18:51
R W Run
1.31 KB
2026-03-11 16:18:51
R W Run
847 By
2026-03-11 16:18:51
R W Run
6.92 KB
2026-03-11 16:18:51
R W Run
2.35 KB
2026-03-11 16:18:51
R W Run
38.68 KB
2026-03-11 16:18:51
R W Run
18.4 KB
2026-03-11 16:18:51
R W Run
18.49 KB
2026-03-11 16:18:51
R W Run
6.6 KB
2026-03-11 16:18:51
R W Run
10.67 KB
2026-03-11 16:18:51
R W Run
5.03 KB
2026-03-11 16:18:51
R W Run
33.92 KB
2026-03-11 16:18:51
R W Run
17.97 KB
2026-03-11 16:18:51
R W Run
876 By
2026-03-11 16:18:51
R W Run
620 By
2026-03-11 16:18:51
R W Run
13.15 KB
2026-03-11 16:18:51
R W Run
6.13 KB
2026-03-11 16:18:51
R W Run
6.1 KB
2026-03-11 16:18:51
R W Run
2.2 KB
2026-03-11 16:18:51
R W Run
3.2 KB
2026-03-11 16:18:51
R W Run
1.53 KB
2026-03-11 16:18:51
R W Run
10.88 KB
2026-03-11 16:18:51
R W Run
3 KB
2026-03-11 16:18:51
R W Run
5.64 KB
2026-03-11 16:18:51
R W Run
2.22 KB
2026-03-11 16:18:51
R W Run
5.96 KB
2026-03-11 16:18:51
R W Run
2.41 KB
2026-03-11 16:18:51
R W Run
24.77 KB
2026-03-11 16:18:51
R W Run
11.43 KB
2026-03-11 16:18:51
R W Run
54.94 KB
2026-03-11 16:18:51
R W Run
26.51 KB
2026-03-11 16:18:51
R W Run
109.37 KB
2026-03-11 16:18:51
R W Run
47.31 KB
2026-03-11 16:18:51
R W Run
17.91 KB
2026-03-11 16:18:51
R W Run
7.81 KB
2026-03-11 16:18:51
R W Run
2.25 KB
2026-03-11 16:18:51
R W Run
676 By
2026-03-11 16:18:51
R W Run
22.56 KB
2026-03-11 16:18:51
R W Run
12.31 KB
2026-03-11 16:18:51
R W Run
7.52 KB
2026-03-11 16:18:51
R W Run
1.49 KB
2026-03-11 16:18:51
R W Run
740 By
2026-03-11 16:18:51
R W Run
458 By
2026-03-11 16:18:51
R W Run
error_log
📄site-icon.js
1/**
2 * Handle the site icon setting in options-general.php.
3 *
4 * @since 6.5.0
5 * @output wp-admin/js/site-icon.js
6 */
7
8/* global jQuery, wp */
9
10( function ( $ ) {
11 var $chooseButton = $( '#choose-from-library-button' ),
12 $iconPreview = $( '#site-icon-preview' ),
13 $browserIconPreview = $( '#browser-icon-preview' ),
14 $appIconPreview = $( '#app-icon-preview' ),
15 $hiddenDataField = $( '#site_icon_hidden_field' ),
16 $removeButton = $( '#js-remove-site-icon' ),
17 frame;
18
19 /**
20 * Calculate image selection options based on the attachment dimensions.
21 *
22 * @since 6.5.0
23 *
24 * @param {Object} attachment The attachment object representing the image.
25 * @return {Object} The image selection options.
26 */
27 function calculateImageSelectOptions( attachment ) {
28 var realWidth = attachment.get( 'width' ),
29 realHeight = attachment.get( 'height' ),
30 xInit = 512,
31 yInit = 512,
32 ratio = xInit / yInit,
33 xImg = xInit,
34 yImg = yInit,
35 x1,
36 y1,
37 imgSelectOptions;
38
39 if ( realWidth / realHeight > ratio ) {
40 yInit = realHeight;
41 xInit = yInit * ratio;
42 } else {
43 xInit = realWidth;
44 yInit = xInit / ratio;
45 }
46
47 x1 = ( realWidth - xInit ) / 2;
48 y1 = ( realHeight - yInit ) / 2;
49
50 imgSelectOptions = {
51 aspectRatio: xInit + ':' + yInit,
52 handles: true,
53 keys: true,
54 instance: true,
55 persistent: true,
56 imageWidth: realWidth,
57 imageHeight: realHeight,
58 minWidth: xImg > xInit ? xInit : xImg,
59 minHeight: yImg > yInit ? yInit : yImg,
60 x1: x1,
61 y1: y1,
62 x2: xInit + x1,
63 y2: yInit + y1,
64 };
65
66 return imgSelectOptions;
67 }
68
69 /**
70 * Initializes the media frame for selecting or cropping an image.
71 *
72 * @since 6.5.0
73 */
74 $chooseButton.on( 'click', function () {
75 var $el = $( this );
76
77 // Create the media frame.
78 frame = wp.media( {
79 button: {
80 // Set the text of the button.
81 text: $el.data( 'update' ),
82
83 // Don't close, we might need to crop.
84 close: false,
85 },
86 states: [
87 new wp.media.controller.Library( {
88 title: $el.data( 'choose-text' ),
89 library: wp.media.query( { type: 'image' } ),
90 date: false,
91 suggestedWidth: $el.data( 'size' ),
92 suggestedHeight: $el.data( 'size' ),
93 } ),
94 new wp.media.controller.SiteIconCropper( {
95 control: {
96 params: {
97 width: $el.data( 'size' ),
98 height: $el.data( 'size' ),
99 },
100 },
101 imgSelectOptions: calculateImageSelectOptions,
102 } ),
103 ],
104 } );
105
106 frame.on( 'cropped', function ( attachment ) {
107 $hiddenDataField.val( attachment.id );
108 switchToUpdate( attachment );
109 frame.close();
110
111 // Start over with a frame that is so fresh and so clean clean.
112 frame = null;
113 } );
114
115 // When an image is selected, run a callback.
116 frame.on( 'select', function () {
117 // Grab the selected attachment.
118 var attachment = frame.state().get( 'selection' ).first();
119
120 if (
121 attachment.attributes.height === $el.data( 'size' ) &&
122 $el.data( 'size' ) === attachment.attributes.width
123 ) {
124 switchToUpdate( attachment.attributes );
125 frame.close();
126
127 // Set the value of the hidden input to the attachment id.
128 $hiddenDataField.val( attachment.id );
129 } else {
130 frame.setState( 'cropper' );
131 }
132 } );
133
134 frame.open();
135 } );
136
137 /**
138 * Update the UI when a site icon is selected.
139 *
140 * @since 6.5.0
141 *
142 * @param {array} attributes The attributes for the attachment.
143 */
144 function switchToUpdate( attributes ) {
145 var i18nAppAlternativeString, i18nBrowserAlternativeString;
146
147 if ( attributes.alt ) {
148 i18nAppAlternativeString = wp.i18n.sprintf(
149 /* translators: %s: The selected image alt text. */
150 wp.i18n.__( 'App icon preview: Current image: %s' ),
151 attributes.alt
152 );
153 i18nBrowserAlternativeString = wp.i18n.sprintf(
154 /* translators: %s: The selected image alt text. */
155 wp.i18n.__( 'Browser icon preview: Current image: %s' ),
156 attributes.alt
157 );
158 } else {
159 i18nAppAlternativeString = wp.i18n.sprintf(
160 /* translators: %s: The selected image filename. */
161 wp.i18n.__(
162 'App icon preview: The current image has no alternative text. The file name is: %s'
163 ),
164 attributes.filename
165 );
166 i18nBrowserAlternativeString = wp.i18n.sprintf(
167 /* translators: %s: The selected image filename. */
168 wp.i18n.__(
169 'Browser icon preview: The current image has no alternative text. The file name is: %s'
170 ),
171 attributes.filename
172 );
173 }
174
175 // Set site-icon-img src and alternative text to app icon preview.
176 $appIconPreview.attr( {
177 src: attributes.url,
178 alt: i18nAppAlternativeString,
179 } );
180
181 // Set site-icon-img src and alternative text to browser preview.
182 $browserIconPreview.attr( {
183 src: attributes.url,
184 alt: i18nBrowserAlternativeString,
185 } );
186
187 // Remove hidden class from icon preview div and remove button.
188 $iconPreview.removeClass( 'hidden' );
189 $removeButton.removeClass( 'hidden' );
190
191 // Set the global CSS variable for --site-icon-url to the selected image URL.
192 document.documentElement.style.setProperty(
193 '--site-icon-url',
194 'url(' + attributes.url + ')'
195 );
196
197 // If the choose button is not in the update state, swap the classes.
198 if ( $chooseButton.attr( 'data-state' ) !== '1' ) {
199 $chooseButton.attr( {
200 class: $chooseButton.attr( 'data-alt-classes' ),
201 'data-alt-classes': $chooseButton.attr( 'class' ),
202 'data-state': '1',
203 } );
204 }
205
206 // Swap the text of the choose button.
207 $chooseButton.text( $chooseButton.attr( 'data-update-text' ) );
208 }
209
210 /**
211 * Handles the click event of the remove button.
212 *
213 * @since 6.5.0
214 */
215 $removeButton.on( 'click', function () {
216 $hiddenDataField.val( 'false' );
217 $( this ).toggleClass( 'hidden' );
218 $iconPreview.toggleClass( 'hidden' );
219 $browserIconPreview.attr( {
220 src: '',
221 alt: '',
222 } );
223 $appIconPreview.attr( {
224 src: '',
225 alt: '',
226 } );
227
228 /**
229 * Resets state to the button, for correct visual style and state.
230 * Updates the text of the button.
231 * Sets focus state to the button.
232 */
233 $chooseButton
234 .attr( {
235 class: $chooseButton.attr( 'data-alt-classes' ),
236 'data-alt-classes': $chooseButton.attr( 'class' ),
237 'data-state': '',
238 } )
239 .text( $chooseButton.attr( 'data-choose-text' ) )
240 .trigger( 'focus' );
241 } );
242} )( jQuery );
243
Ui Ux Design – Teachers Night Out https://cardgames4educators.com Wed, 16 Oct 2024 22:24:18 +0000 en-US hourly 1 https://wordpress.org/?v=6.9.4 https://cardgames4educators.com/wp-content/uploads/2024/06/cropped-Card-4-Educators-logo-32x32.png Ui Ux Design – Teachers Night Out https://cardgames4educators.com 32 32 Masters In English How English Speaker https://cardgames4educators.com/masters-in-english-how-english-speaker/ https://cardgames4educators.com/masters-in-english-how-english-speaker/#comments Mon, 27 May 2024 08:54:45 +0000 https://themexriver.com/wp/kadu/?p=1

Erat himenaeos neque id sagittis massa. Hac suscipit pulvinar dignissim platea magnis eu. Don tellus a pharetra inceptos efficitur dui pulvinar. Feugiat facilisis penatibus pulvinar nunc dictumst donec odio platea habitasse. Lacus porta dolor purus elit ante bibendum tortor netus taciti nullam cubilia. Erat per suspendisse placerat morbi egestas pulvinar bibendum sollicitudin nec. Euismod cubilia eleifend velit himenaeos sodales lectus. Leo maximus cras ac porttitor aliquam torquent pulvinar odio volutpat parturient. Quisque risus finibus suspendisse mus purus magnis facilisi condimentum consectetur dui. Curae elit suspendisse cursus vehicula.

Turpis taciti class non vel pretium quis pulvinar tempor lobortis nunc. Libero phasellus parturient sapien volutpat malesuada ornare. Cubilia dignissim sollicitudin rhoncus lacinia maximus. Cras lorem fermentum bibendum pellentesque nisl etiam ligula enim cubilia. Vulputate pede sapien torquent montes tempus malesuada in mattis dis turpis vitae. Porta est tempor ex eget feugiat vulputate ipsum. Justo nec iaculis habitant diam arcu fermentum.

We offer comprehen sive emplo ment services such as assistance wit employer compliance.Our company is your strategic HR partner as instead of HR. john smithson

Cubilia dignissim sollicitudin rhoncus lacinia maximus. Cras lorem fermentum bibendum pellentesque nisl etiam ligula enim cubilia. Vulputate pede sapien torquent montes tempus malesuada in mattis dis turpis vitae.

Exploring Learning Landscapes in Academic

Feugiat facilisis penatibus pulvinar nunc dictumst donec odio platea habitasse. Lacus porta dolor purus elit ante bibendum tortor netus taciti nullam cubilia. Erat per suspendisse placerat morbi egestas pulvinar bibendum sollicitudin nec. Euismod cubilia eleifend velit himenaeos sodales lectus. Leo maximus cras ac porttitor aliquam torquent.

]]>
https://cardgames4educators.com/masters-in-english-how-english-speaker/feed/ 1