REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 2.87 KB
Close
/proc/self/root/home/nshryvcy/taramarriagebureau.com/wp-content/themes/planmyday/js/theme.customizer.js
Text
Base64
// Interactive change theme custom styles function planmyday_theme_customizer(option, val) { "use strict"; var custom_style = ''; // Remove 'false' to apply changes without reloading page if (option == 'body_style') { jQuery('body') .removeClass('body_style_boxed body_style_wide body_style_fullwide body_style_fullscreen') .addClass('body_style_'+val); if (val == 'boxed') jQuery('#custom_options #co_bg_pattern_list a').eq(0).trigger('click'); jQuery(window).trigger('resize'); } else if (option == 'body_scheme') { var classes = jQuery('html').attr('class'); if (classes) { var parts = classes.split(' '); classes = ''; for (var i=0; i<parts.length; i++) { if (parts[i].indexOf('scheme_')==-1) classes += (classes ? ' ' : '') + parts[i]; } classes += (classes ? ' ' : '') + 'scheme_' + val; jQuery('html').attr('class', classes); } } else if (option == 'bg_color') { jQuery("#custom_options .co_switch_box a[data-value='boxed']").trigger('click'); jQuery('#custom_options #co_bg_pattern_list .co_pattern_wrapper, #custom_options #co_bg_images_list .co_image_wrapper').removeClass('active'); jQuery('.body_wrap').removeClass('bg_pattern_1 bg_pattern_2 bg_pattern_3 bg_pattern_4 bg_pattern_5 bg_image_1 bg_image_2 bg_image_3').css('backgroundColor', val); } else if (option == 'bg_pattern') { jQuery('.body_wrap') .removeClass('bg_pattern_1 bg_pattern_2 bg_pattern_3 bg_pattern_4 bg_pattern_5 bg_image_1 bg_image_2 bg_image_3') .css('backgroundColor', 'transparent') .addClass('bg_pattern_' + val); } else if (option == 'bg_image') { jQuery('.body_wrap') .removeClass('bg_pattern_1 bg_pattern_2 bg_pattern_3 bg_pattern_4 bg_pattern_5 bg_image_1 bg_image_2 bg_image_3') .css('backgroundColor', 'transparent') .addClass('bg_image_' + val); } else { planmyday_custom_options_show_loader(); //location.reload(); var loc = jQuery('#co_site_url').val(); var params = PLANMYDAY_STORAGE['co_add_params']!=undefined ? PLANMYDAY_STORAGE['co_add_params'] : {}; params[option] = val; var pos = -1, pos2 = -1, pos3 = -1; for (var option in params) { val = params[option]; pos = pos2 = pos3 = -1; if ((pos = loc.indexOf('?')) > 0) { if ((pos2 = loc.indexOf(option, pos)) > 0) { if ((pos3 = loc.indexOf('&', pos2)) > 0) loc = loc.substr(0, pos2) + option+'='+val + loc.substr(pos3); else loc = loc.substr(0, pos2) + option+'='+val; } else loc += '&'+option+'='+val; } else loc += '?'+option+'='+val; } window.location.href = loc; return; } if (custom_style != '') { var styles = jQuery('#planmyday-customizer-styles-'+option).length > 0 ? jQuery('#planmyday-customizer-styles-'+option) : ''; if (styles.length == 0) jQuery('head').append('<style id="planmyday-customizer-styles-'+option+'" type="text/css">'+custom_style+'</style>'); else styles.html(custom_style); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 2
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
theme.customizer.js
2.87 KB
lrw-r--r--
2025-04-30 03:18:27
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
theme.init.js
8.37 KB
lrw-r--r--
2025-04-30 03:18:27
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).