AAAAindex.html000066600000000035151374743150006555 0ustar00 style_form.ctp000066600000012315151374743150007457 0ustar00
Style Form
Header(array('general' => 'General', 'subs' => 'Sub Elements', 'help' => 'Help'), 'style_form_config_{n}'); ?> tabStart('general'); ?> input('action_style_form_{n}_form_width_config', array('type' => 'text', 'label' => "Form Width", 'smalldesc' => "The desired form width in px or % or auto.")); ?> input('action_style_form_{n}_background_color_config', array('type' => 'text', 'label' => "Background Color", 'smalldesc' => "The desired form background color.")); ?> input('action_style_form_{n}_label_width_config', array('type' => 'text', 'label' => "Label Width", 'smalldesc' => "The desired main elements labels width.")); ?> input('action_style_form_{n}_label_font_size_config', array('type' => 'text', 'label' => "Label Font Size", 'smalldesc' => "The labels font size.")); ?> input('action_style_form_{n}_label_font_weight_config', array('type' => 'text', 'label' => "Label Font Weight", 'smalldesc' => "The labels font weight.")); ?> input('action_style_form_{n}_label_font_family_config', array('type' => 'text', 'label' => "Label Font Family", 'class' => 'medium_input', 'smalldesc' => "The labels font family.")); ?> tabEnd(); ?> tabStart('subs'); ?> input('action_style_form_{n}_sub_label_width_config', array('type' => 'text', 'label' => "Label Width", 'smalldesc' => "The label width of sub elements, e.g: radios, checkboxes...")); ?> input('action_style_form_{n}_sub_label_font_size_config', array('type' => 'text', 'label' => "Label Font Size", 'smalldesc' => "The label font size of sub elements, e.g: radios, checkboxes...")); ?> input('action_style_form_{n}_sub_label_font_weight_config', array('type' => 'text', 'label' => "Label Font Weight", 'smalldesc' => "The label font weight of sub elements, e.g: radios, checkboxes...")); ?> input('action_style_form_{n}_sub_label_font_family_config', array('type' => 'text', 'label' => "Label Font Family", 'class' => 'medium_input', 'smalldesc' => "The label font family of sub elements, e.g: radios, checkboxes...")); ?> tabEnd(); ?> tabStart('help'); ?>

tabEnd(); ?>
style_form.php000066600000002055151374743150007460 0ustar00 'Style Form', 'tooltip' => 'Apply some styling to your form and any form elements.'); function load($clear){ if($clear){ $action_params = array( 'content1' => '', 'form_width' => 'auto', 'background_color' => 'transparent', 'label_width' => '150px', 'label_font_size' => '100%', 'label_font_weight' => 'bold', 'label_font_family' => 'arial,helvetica,sans-serif', 'sub_label_width' => 'auto', 'sub_label_font_size' => '100%', 'sub_label_font_weight' => 'normal', 'sub_label_font_family' => 'arial,helvetica,sans-serif', ); } return array('action_params' => $action_params); } function run($form, $actiondata){ } } ?>cfaction_style_form.ctp000066600000000173151374743150011324 0ustar00load($form, $actiondata); ?>.htaccess000066600000000177151374743150006365 0ustar00 Order allow,deny Deny from all cfaction_style_form.php000066600000003662151374743150011333 0ustar00params); $output = ''; $document = JFactory::getDocument(); ob_start(); ?> #chronoform_form_name; ?>{ width:get('form_width', 'auto'); ?>; background-color:get('background_color', 'transparent'); ?>; } #chronoform_form_name; ?> .cfdiv_radio label, #chronoform_form_name; ?> .cfdiv_checkbox label, #chronoform_form_name; ?> .cfdiv_checkboxgroup label{ width:get('sub_label_width', 'auto'); ?>; font-size:get('sub_label_font_size', '100%'); ?>; font-weight:get('sub_label_font_weight', 'normal'); ?>; font-family:get('sub_label_font_family', 'arial,helvetica,sans-serif'); ?>; } #chronoform_form_name; ?> .ccms_form_element label:first-child, #chronoform_form_name; ?> .cfdiv_radio label:first-child, #chronoform_form_name; ?> .cfdiv_checkbox label:first-child, #chronoform_form_name; ?> .cfdiv_checkboxgroup label:first-child{ width:get('label_width', '150px'); ?>; font-size:get('label_font_size', '100%'); ?>; font-weight:get('label_font_weight', 'bold'); ?>; font-family:get('label_font_family', 'arial,helvetica,sans-serif'); ?>; } addStyleDeclaration($output); } } ?>