admin_url('admin-ajax.php'), 'nonce' => wp_create_nonce('accua_theme_helper'), 'pluginCssUrl' => plugins_url('assets/css/frontend.css', ACCUA_FORMS_FILE), 'i18n' => array( 'scanning' => __('Scanning...', 'contact-forms'), 'noConflicts' => __('No CSS conflicts detected!', 'contact-forms'), 'conflictsFound' => __('CSS conflicts found:', 'contact-forms'), 'scanComplete' => __('Scan complete', 'contact-forms'), 'scanError' => __('Error scanning URL', 'contact-forms'), 'enterUrl' => __('Enter a URL to scan', 'contact-forms'), 'fetchingCss' => __('Fetching CSS from URL...', 'contact-forms'), ), // Contact Forms CSS classes to monitor 'monitoredClasses' => accua_forms_get_monitored_css_classes(), // CSS properties that commonly cause layout issues 'criticalProperties' => array( 'padding', 'padding-top', 'padding-right', 'padding-bottom', 'padding-left', 'margin', 'margin-top', 'margin-right', 'margin-bottom', 'margin-left', 'display', 'position', 'visibility', 'overflow', 'width', 'height', 'min-width', 'min-height', 'max-width', 'max-height', 'flex', 'flex-direction', 'flex-wrap', 'align-items', 'justify-content', 'border', 'border-width', 'border-style', 'float', 'clear', 'z-index', 'opacity', ), )); } /** * Get list of Contact Forms CSS classes to monitor for conflicts */ function accua_forms_get_monitored_css_classes() { return array( // Error handling 'pfbc-error', 'pfbc-error-heading', 'pfbc-error-list', 'pfbc-inline-error', 'pfbc-error-message', // Field structure 'pfbc-fieldwrap', 'pfbc-invalid', 'pfbc-element-has-error', 'pfbc-element', 'pfbc-elementbottom', 'pfbc-label', 'pfbc-help', 'pfbc-description', 'pfbc-required', // Form inputs 'pfbc-textbox', 'pfbc-textarea', 'pfbc-select', 'pfbc-checkbox', 'pfbc-buttons', // Color picker 'pfbc-color-wrapper', 'pfbc-color-input', 'pfbc-color-hex', // Inline labels 'pfbc-inline-label-wrapper', 'pfbc-floating-label', // Form layouts 'accua-form', 'accua-form-view-standard', 'accua-form-view-sidebyside', 'accua-form-view-inlinelabel', // Misc 'accua_form_api_throbbler', 'accua_forms_recaptcha2_container', ); } /** * Render Theme Helper admin page */ function accua_forms_theme_helper_page() { if (!current_user_can('manage_options')) { wp_die( esc_html__('You do not have sufficient permissions to access this page.', 'contact-forms') ); } ?>
.pfbc-invalid, .pfbc-fieldwrap - .pfbc-element - .pfbc-inline-error - .accua-form-view-* -