HEX
Server: LiteSpeed
System: Linux kapuas.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: mirz4654 (1666)
PHP: 8.1.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: //home/mirz4654/public_html/wp-content/themes/wise-blog/assets/js/customize-control.min.js
/**
 * Scripts within the customizer controls window.
 **/

 (function( $, api ) {
 	wp.customize.bind('ready', function() {

 		/* === Radio Image Control === */
 		api.controlConstructor['radio-color'] = api.Control.extend( {
 			ready: function() {
 				var control = this;

 				$( 'input:radio', control.container ).change(
 					function() {
 						control.setting.set( $( this ).val() );
 					}
 					);
 			}
 		} );

        // Deep linking for counter section to about section.
        jQuery('.wise-blog-edit').click(function(e) {
        	e.preventDefault();
        	var jump_to = jQuery(this).attr( 'data-jump' );
        	wp.customize.section( jump_to ).focus()
        });

        $('#sub-accordion-section-wise_blog_topbar').css( 'display', 'none' );
    });
 })( jQuery, wp.customize );

 (function(api) {

 	const wise_blog_section_lists = ['banner','editor-choice'];
 	wise_blog_section_lists.forEach(wise_blog_homepage_scroll);

 	function wise_blog_homepage_scroll(item, index) {
        // Detect when the front page sections section is expanded (or closed) so we can adjust the preview accordingly.
        item = item.replace(/-/g, '_');
        wp.customize.section('wise_blog_' + item + '_section', function(section) {
        	section.expanded.bind(function(isExpanding) {
                // Value of isExpanding will = true if you're entering the section, false if you're leaving it.
                wp.customize.previewer.send(item, { expanded: isExpanding });
            });
        });
    }
})(wp.customize);