HEX
Server: Apache
System: Linux webm003.cluster111.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: assotraipi (849654)
PHP: 5.4.45
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/assotraipi/www/wp-content/plugins/styles/js/styles-customize-controls.js
jQuery( document ).ready( function ( $ ) {

	styles_installation_notices();
	/**
	 * Prompt users if a notice is sent by styles-admin.php
	 */
	function styles_installation_notices() {
		if ( wp_styles_notices.length == 0 ) {
			return;
		}

		var $notices = $( '<div id="styles_installation_notices"></div>' )
		             .addClass( 'accordion-section-content' )
		             .show();

		jQuery.each( wp_styles_notices, function( index, value ){
			var $notice = $( '<div>' + value + '</div>' )
							.addClass( 'styles-notice' );

			// Duplicate functionality of styles-admin.php::admin_notices()
			$notice.data( 'key', index );
			// Duplicate functionality of WP Core .is-dismissable
			$notice.append( '<button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button>' );

			$notices.append( $notice );
		});

		$( '#customize-info' ).prepend( $notices );
	}

	add_control_label_spans();
	/**
	 * Wrap content after long-dash in span
	 */
	function add_control_label_spans() {
		// Long dash, not hyphen
		var delimeter = '::';

		$( 'span.customize-control-title:contains(' + delimeter + ')' ).each( function(){
			var html, parts;

			html = $(this).html();
			parts = html.split( delimeter );

			if ( 2 == parts.length ) {
				html = parts[0] + '<span class="styles-type">' + parts[1] + '</span>';
				$(this).html( html );
			}

		});
	}

	chosen_fix_overflow();
	/**
	 * Set overflow and height on section wrapping font menu
	 * Allows menu to spill out without messing up rest of layout
	 */
	function chosen_fix_overflow() {
		$('select.sfm').bind( 'chosen:showing_dropdown', function(){
			var $wrapper = $(this).parent().parent();
			$wrapper.css( 'height', $wrapper.height() +'px' );
			$wrapper.css('overflow', 'visible');
		} );
	}

} );