'clinic-room', 'ortho-store' => 'storefront', ); if ( isset( $zamene[ $key ] ) ) { return self::photo( $zamene[ $key ] ); } return ''; } /** * Every trade, by group. * * The group serves the picker, so thirty five sections can be looked through * without scrolling one long list. * * @return array */ public static function groups() { return array( 'tech' => __( 'Tech and education', '2ranq-forms' ), 'trade' => __( 'Wholesale and trade', '2ranq-forms' ), 'shop' => __( 'Shops and products', '2ranq-forms' ), 'money' => __( 'Money and legal', '2ranq-forms' ), 'health' => __( 'Health and care', '2ranq-forms' ), 'events' => __( 'Nightlife and events', '2ranq-forms' ), 'org' => __( 'Associations and offices', '2ranq-forms' ), 'travel' => __( 'Travel and transport', '2ranq-forms' ), ); } /** * What the section is for. * * The trade says WHO the section belongs to, the purpose says WHAT is being * asked for. The same salon can have a section for contact and a section for * booking, and those are not the same section. That is why the picker has * both: the purpose first, then the trade inside it. * * @return array */ public static function purposes() { return array( // A stranger does not know whose "our" pages those are. The group name says // WHAT it is, not where it is from: a finished section around a form. 'ours' => __( 'Ready made sections', '2ranq-forms' ), ); } /** * Everything that can be changed on the section taken from 2ranq.com. * * This is the STANDARD for every other pattern. Each one states its own parts * and its own settings, and the builder draws them without a single line of * code per pattern. * * @return array */ private static function parts_2ranq() { return array( 'section' => array( 'label' => __( 'Section', '2ranq-forms' ), 'controls' => array( 'bg' => array( 'type' => 'color', 'var' => 'r2r-bg', 'label' => __( 'Background', '2ranq-forms' ), 'default' => '#000000' ), 'pad' => array( 'type' => 'size', 'var' => 'r2r-pad', 'label' => __( 'Space above and below', '2ranq-forms' ), 'default' => '90', 'min' => 24, 'max' => 200 ), 'split' => array( 'type' => 'size', 'var' => 'r2r-split', 'label' => __( 'Text column width', '2ranq-forms' ), 'default' => '55', 'min' => 35, 'max' => 70, 'unit' => '%' ), ), ), 'eyebrow' => array( 'label' => __( 'Small line above the heading', '2ranq-forms' ), 'controls' => array( 'eyebrow_text' => array( 'type' => 'text', 'part' => 'eyebrow', 'label' => __( 'Text', '2ranq-forms' ), 'default' => 'Contact' ), 'eyebrow_color' => array( 'type' => 'color', 'var' => 'r2r-eyebrow', 'label' => __( 'Colour', '2ranq-forms' ), 'default' => '#a0a0a0' ), 'accent' => array( 'type' => 'color', 'var' => 'r2r-accent', 'label' => __( 'Slashes', '2ranq-forms' ), 'default' => '#b2ff2e' ), ), ), 'heading' => array( 'label' => __( 'Heading', '2ranq-forms' ), 'controls' => array( 'heading' => array( 'type' => 'text', 'part' => 'heading', 'label' => __( 'Text', '2ranq-forms' ) ), 'title_color' => array( 'type' => 'color', 'var' => 'r2r-title', 'label' => __( 'Colour', '2ranq-forms' ), 'default' => '#e5e5e5' ), 'title_size' => array( 'type' => 'size', 'var' => 'r2r-title-size', 'label' => __( 'Size', '2ranq-forms' ), 'default' => '40', 'min' => 20, 'max' => 72 ), ), ), 'lead' => array( 'label' => __( 'Text under the heading', '2ranq-forms' ), 'controls' => array( 'lead' => array( 'type' => 'textarea', 'part' => 'lead', 'label' => __( 'Text', '2ranq-forms' ) ), 'lead_color' => array( 'type' => 'color', 'var' => 'r2r-lead', 'label' => __( 'Colour', '2ranq-forms' ), 'default' => '#aeaeae' ), 'lead_size' => array( 'type' => 'size', 'var' => 'r2r-lead-size', 'label' => __( 'Size', '2ranq-forms' ), 'default' => '17', 'min' => 13, 'max' => 24 ), ), ), 'details' => array( 'label' => __( 'Contact details', '2ranq-forms' ), 'controls' => array( 'phone' => array( 'type' => 'text', 'label' => __( 'Phone', '2ranq-forms' ), 'server' => true ), 'email' => array( 'type' => 'text', 'label' => __( 'Email', '2ranq-forms' ), 'server' => true ), 'street' => array( 'type' => 'text', 'label' => __( 'Street address', '2ranq-forms' ), 'server' => true ), 'city' => array( 'type' => 'text', 'label' => __( 'City, state and ZIP', '2ranq-forms' ), 'server' => true ), 'hours' => array( 'type' => 'text', 'label' => __( 'Opening hours', '2ranq-forms' ), 'server' => true ), 'rows' => array( 'type' => 'rows', 'label' => __( 'Which rows to show', '2ranq-forms' ) ), 'key_color' => array( 'type' => 'color', 'var' => 'r2r-key', 'label' => __( 'Label colour', '2ranq-forms' ), 'default' => '#565656' ), 'val_color' => array( 'type' => 'color', 'var' => 'r2r-val', 'label' => __( 'Value colour', '2ranq-forms' ), 'default' => '#e5e5e5' ), 'line' => array( 'type' => 'color', 'var' => 'r2r-line', 'label' => __( 'Divider colour', '2ranq-forms' ), 'default' => '#2b2b2b' ), ), ), 'card' => array( 'label' => __( 'Card around the form', '2ranq-forms' ), 'controls' => array( 'card_from' => array( 'type' => 'color', 'var' => 'r2r-card-from', 'label' => __( 'Background, top', '2ranq-forms' ), 'default' => '#181818' ), 'card_to' => array( 'type' => 'color', 'var' => 'r2r-card-to', 'label' => __( 'Background, bottom', '2ranq-forms' ), 'default' => '#121212' ), 'card_border' => array( 'type' => 'color', 'var' => 'r2r-card-border', 'label' => __( 'Border colour', '2ranq-forms' ), 'default' => '#2b2b2b' ), 'card_radius' => array( 'type' => 'size', 'var' => 'r2r-card-radius', 'label' => __( 'Corner radius', '2ranq-forms' ), 'default' => '20', 'min' => 0, 'max' => 40 ), 'card_pad' => array( 'type' => 'size', 'var' => 'r2r-card-pad', 'label' => __( 'Space inside', '2ranq-forms' ), 'default' => '36', 'min' => 12, 'max' => 64 ), ), ), 'fine' => array( 'label' => __( 'Small print under the form', '2ranq-forms' ), 'controls' => array( 'fine_text' => array( 'type' => 'text', 'part' => 'fine', 'label' => __( 'Text', '2ranq-forms' ), 'default' => 'We answer within one working day.' ), 'fine_color' => array( 'type' => 'color', 'var' => 'r2r-fine', 'label' => __( 'Colour', '2ranq-forms' ), 'default' => '#737373' ), ), ), ); } /** * Everything that can be changed on the section taken from transfergaja.rs. * * @return array */ private static function parts_gaja() { return array( 'section' => array( 'label' => __( 'Section', '2ranq-forms' ), 'controls' => array( 'bg' => array( 'type' => 'color', 'var' => 'gaja-bg', 'label' => __( 'Background', '2ranq-forms' ), 'default' => '#ffffff' ), 'pad' => array( 'type' => 'size', 'var' => 'gaja-pad', 'label' => __( 'Space above and below', '2ranq-forms' ), 'default' => '75', 'min' => 24, 'max' => 200 ), 'split' => array( 'type' => 'size', 'var' => 'gaja-split', 'label' => __( 'Details column width', '2ranq-forms' ), 'default' => '50', 'min' => 35, 'max' => 65, 'unit' => '%' ), 'gap' => array( 'type' => 'size', 'var' => 'gaja-gap', 'label' => __( 'Space between columns', '2ranq-forms' ), 'default' => '60', 'min' => 0, 'max' => 120 ), 'align' => array( 'type' => 'select', 'var' => 'gaja-align', 'label' => __( 'Line the two columns up', '2ranq-forms' ), 'default' => 'stretch', 'options' => array( 'start' => __( 'By the top', '2ranq-forms' ), 'center' => __( 'By the middle', '2ranq-forms' ), 'end' => __( 'By the bottom', '2ranq-forms' ), 'stretch' => __( 'Same height', '2ranq-forms' ), ), ), ), ), 'rows' => array( 'label' => __( 'Contact rows', '2ranq-forms' ), 'controls' => array( 'phone' => array( 'type' => 'text', 'label' => __( 'Phone', '2ranq-forms' ), 'server' => true ), 'email' => array( 'type' => 'text', 'label' => __( 'Email', '2ranq-forms' ), 'server' => true ), 'street' => array( 'type' => 'text', 'label' => __( 'Street address', '2ranq-forms' ), 'server' => true ), 'city' => array( 'type' => 'text', 'label' => __( 'City, state and ZIP', '2ranq-forms' ), 'server' => true ), 'hours' => array( 'type' => 'text', 'label' => __( 'Opening hours', '2ranq-forms' ), 'server' => true ), 'rows' => array( 'type' => 'rows', 'label' => __( 'Which rows to show', '2ranq-forms' ) ), 'icon' => array( 'type' => 'color', 'var' => 'gaja-icon', 'label' => __( 'Icon colour', '2ranq-forms' ), 'default' => '#f8b54a' ), 'icon_size' => array( 'type' => 'size', 'var' => 'gaja-icon-size', 'label' => __( 'Icon size', '2ranq-forms' ), 'default' => '50', 'min' => 24, 'max' => 72 ), 'row_title' => array( 'type' => 'color', 'var' => 'gaja-row-title', 'label' => __( 'Row title colour', '2ranq-forms' ), 'default' => '#252525' ), 'row_size' => array( 'type' => 'size', 'var' => 'gaja-row-size', 'label' => __( 'Row title size', '2ranq-forms' ), 'default' => '24', 'min' => 15, 'max' => 34 ), 'row_value' => array( 'type' => 'color', 'var' => 'gaja-row-value', 'label' => __( 'Row value colour', '2ranq-forms' ), 'default' => '#252525' ), 'line' => array( 'type' => 'color', 'var' => 'gaja-line', 'label' => __( 'Divider colour', '2ranq-forms' ), 'default' => '#252525' ), 'line_space' => array( 'type' => 'size', 'var' => 'gaja-line-space', 'label' => __( 'Space around the divider', '2ranq-forms' ), 'default' => '32', 'min' => 8, 'max' => 60 ), ), ), 'eyebrow' => array( 'label' => __( 'Small line above the heading', '2ranq-forms' ), 'controls' => array( 'eyebrow_text' => array( 'type' => 'text', 'part' => 'eyebrow', 'label' => __( 'Text', '2ranq-forms' ), 'default' => 'Contact' ), 'eyebrow_color' => array( 'type' => 'color', 'var' => 'gaja-eyebrow', 'label' => __( 'Colour', '2ranq-forms' ), 'default' => '#f8b54a' ), 'eyebrow_size' => array( 'type' => 'size', 'var' => 'gaja-eyebrow-size', 'label' => __( 'Size', '2ranq-forms' ), 'default' => '14', 'min' => 10, 'max' => 20 ), ), ), 'heading' => array( 'label' => __( 'Heading', '2ranq-forms' ), 'controls' => array( 'heading' => array( 'type' => 'text', 'part' => 'heading', 'label' => __( 'Text', '2ranq-forms' ) ), 'title_color' => array( 'type' => 'color', 'var' => 'gaja-title', 'label' => __( 'Colour', '2ranq-forms' ), 'default' => '#252525' ), 'title_size' => array( 'type' => 'size', 'var' => 'gaja-title-size', 'label' => __( 'Size', '2ranq-forms' ), 'default' => '48', 'min' => 24, 'max' => 72 ), ), ), 'lead' => array( 'label' => __( 'Text under the heading', '2ranq-forms' ), 'controls' => array( 'lead' => array( 'type' => 'textarea', 'part' => 'lead', 'label' => __( 'Text', '2ranq-forms' ) ), 'lead_color' => array( 'type' => 'color', 'var' => 'gaja-lead', 'label' => __( 'Colour', '2ranq-forms' ), 'default' => '#252525' ), 'lead_size' => array( 'type' => 'size', 'var' => 'gaja-lead-size', 'label' => __( 'Size', '2ranq-forms' ), 'default' => '15', 'min' => 13, 'max' => 22 ), ), ), ); } /** * Everything that can be changed on the booking card taken from * transfergaja.rs. * * @return array */ private static function parts_gaja_book() { return array( 'section' => array( 'label' => __( 'Card', '2ranq-forms' ), 'controls' => array( 'bg' => array( 'type' => 'color', 'var' => 'gjb-bg', 'label' => __( 'Card background', '2ranq-forms' ), 'default' => '#1a1a1a' ), 'border' => array( 'type' => 'color', 'var' => 'gjb-border', 'label' => __( 'Border colour', '2ranq-forms' ), 'default' => '#363636' ), 'radius' => array( 'type' => 'size', 'var' => 'gjb-radius', 'label' => __( 'Corner rounding', '2ranq-forms' ), 'default' => '10', 'min' => 0, 'max' => 32 ), 'width' => array( 'type' => 'size', 'var' => 'gjb-width', 'label' => __( 'Widest the card gets', '2ranq-forms' ), 'default' => '1200', 'min' => 480, 'max' => 1400 ), 'pad' => array( 'type' => 'size', 'var' => 'gjb-pad', 'label' => __( 'Space inside, left and right', '2ranq-forms' ), 'default' => '32', 'min' => 12, 'max' => 64 ), 'outer' => array( 'type' => 'color', 'var' => 'gjb-outer', 'label' => __( 'Behind the card', '2ranq-forms' ), 'default' => 'transparent' ), 'outer_pad' => array( 'type' => 'size', 'var' => 'gjb-outer-pad', 'label' => __( 'Space above and below', '2ranq-forms' ), 'default' => '0', 'min' => 0, 'max' => 160 ), ), ), 'badge' => array( 'label' => __( 'Icon in the header', '2ranq-forms' ), 'controls' => array( 'badge_shape' => array( 'type' => 'select', 'label' => __( 'Which icon', '2ranq-forms' ), 'default' => 'car', 'server' => true, 'options' => array( 'car' => __( 'Car', '2ranq-forms' ), 'plane' => __( 'Plane', '2ranq-forms' ), 'clock' => __( 'Clock', '2ranq-forms' ), 'pin' => __( 'Map pin', '2ranq-forms' ), 'phone' => __( 'Phone', '2ranq-forms' ), ), ), 'badge_bg' => array( 'type' => 'color', 'var' => 'gjb-badge-bg', 'label' => __( 'Icon background', '2ranq-forms' ), 'default' => '#f8b54a' ), 'badge_ink' => array( 'type' => 'color', 'var' => 'gjb-badge-ink', 'label' => __( 'Icon colour', '2ranq-forms' ), 'default' => '#1a1a1a' ), 'badge_size' => array( 'type' => 'size', 'var' => 'gjb-badge-size', 'label' => __( 'Icon box size', '2ranq-forms' ), 'default' => '50', 'min' => 32, 'max' => 80 ), ), ), 'heading' => array( 'label' => __( 'Heading', '2ranq-forms' ), 'controls' => array( 'heading' => array( 'type' => 'text', 'part' => 'heading', 'label' => __( 'Text', '2ranq-forms' ) ), 'title_color' => array( 'type' => 'color', 'var' => 'gjb-title', 'label' => __( 'Colour', '2ranq-forms' ), 'default' => '#ffffff' ), 'title_size' => array( 'type' => 'size', 'var' => 'gjb-title-size', 'label' => __( 'Size', '2ranq-forms' ), 'default' => '40', 'min' => 18, 'max' => 60 ), ), ), 'lead' => array( 'label' => __( 'Line under the heading', '2ranq-forms' ), 'controls' => array( 'lead' => array( 'type' => 'text', 'part' => 'lead', 'label' => __( 'Text', '2ranq-forms' ) ), 'lead_color' => array( 'type' => 'color', 'var' => 'gjb-lead', 'label' => __( 'Colour', '2ranq-forms' ), 'default' => '#999999' ), 'lead_size' => array( 'type' => 'size', 'var' => 'gjb-lead-size', 'label' => __( 'Size', '2ranq-forms' ), 'default' => '14', 'min' => 11, 'max' => 20 ), ), ), ); } /** * Everything that can be changed on the section taken from mitaleks.rs. * * @return array */ private static function parts_mitaleks() { return array( 'section' => array( 'label' => __( 'Section', '2ranq-forms' ), 'controls' => array( 'bg' => array( 'type' => 'color', 'var' => 'mit-bg', 'label' => __( 'Background', '2ranq-forms' ), 'default' => '#12291a' ), 'pad' => array( 'type' => 'size', 'var' => 'mit-pad', 'label' => __( 'Space above and below', '2ranq-forms' ), 'default' => '76', 'min' => 24, 'max' => 160 ), 'split' => array( 'type' => 'size', 'var' => 'mit-split', 'label' => __( 'Left column width', '2ranq-forms' ), 'default' => '50', 'min' => 35, 'max' => 65, 'unit' => '%' ), 'gap' => array( 'type' => 'size', 'var' => 'mit-gap', 'label' => __( 'Space between columns', '2ranq-forms' ), 'default' => '60', 'min' => 16, 'max' => 120 ), 'align' => array( 'type' => 'select', 'var' => 'mit-align', 'label' => __( 'Line the two columns up', '2ranq-forms' ), 'default' => 'center', 'options' => array( 'start' => __( 'By the top', '2ranq-forms' ), 'center' => __( 'By the middle', '2ranq-forms' ), 'end' => __( 'By the bottom', '2ranq-forms' ), 'stretch' => __( 'Same height', '2ranq-forms' ), ), ), ), ), 'heading' => array( 'label' => __( 'Heading', '2ranq-forms' ), 'controls' => array( 'heading' => array( 'type' => 'text', 'part' => 'heading', 'label' => __( 'Text', '2ranq-forms' ) ), 'title_color' => array( 'type' => 'color', 'var' => 'mit-title', 'label' => __( 'Colour', '2ranq-forms' ), 'default' => '#ffffff' ), 'title_size' => array( 'type' => 'size', 'var' => 'mit-title-size', 'label' => __( 'Size', '2ranq-forms' ), 'default' => '43', 'min' => 22, 'max' => 64 ), ), ), 'lead' => array( 'label' => __( 'Text under the heading', '2ranq-forms' ), 'controls' => array( 'lead' => array( 'type' => 'textarea', 'part' => 'lead', 'label' => __( 'Text', '2ranq-forms' ) ), 'lead_color' => array( 'type' => 'color', 'var' => 'mit-lead', 'label' => __( 'Colour', '2ranq-forms' ), 'default' => 'rgba(255,255,255,.76)' ), 'lead_size' => array( 'type' => 'size', 'var' => 'mit-lead-size', 'label' => __( 'Size', '2ranq-forms' ), 'default' => '16', 'min' => 13, 'max' => 22 ), ), ), 'buttons' => array( 'label' => __( 'Two buttons', '2ranq-forms' ), 'controls' => array( 'call_text' => array( 'type' => 'text', 'part' => 'call', 'label' => __( 'Call button text', '2ranq-forms' ), 'default' => 'Call us now' ), 'mail_text' => array( 'type' => 'text', 'part' => 'mail', 'label' => __( 'Email button text', '2ranq-forms' ), 'default' => 'Send an email' ), 'btn_bg' => array( 'type' => 'color', 'var' => 'mit-btn-bg', 'label' => __( 'Filled button background', '2ranq-forms' ), 'default' => '#ffffff' ), 'btn_ink' => array( 'type' => 'color', 'var' => 'mit-btn-ink', 'label' => __( 'Filled button text', '2ranq-forms' ), 'default' => '#12291a' ), 'btn_line' => array( 'type' => 'color', 'var' => 'mit-btn-line', 'label' => __( 'Outlined button border', '2ranq-forms' ), 'default' => 'rgba(255,255,255,.45)' ), 'btn2_ink' => array( 'type' => 'color', 'var' => 'mit-btn2-ink', 'label' => __( 'Outlined button text', '2ranq-forms' ), 'default' => '#ffffff' ), 'btn_radius' => array( 'type' => 'size', 'var' => 'mit-btn-radius', 'label' => __( 'Corner rounding', '2ranq-forms' ), 'default' => '10', 'min' => 0, 'max' => 40 ), ), ), 'rows' => array( 'label' => __( 'Company details', '2ranq-forms' ), 'controls' => array( 'name_text' => array( 'type' => 'text', 'part' => 'name', 'label' => __( 'Company name', '2ranq-forms' ) ), 'phone' => array( 'type' => 'text', 'label' => __( 'Phone', '2ranq-forms' ), 'server' => true ), 'email' => array( 'type' => 'text', 'label' => __( 'Email', '2ranq-forms' ), 'server' => true ), 'street' => array( 'type' => 'text', 'label' => __( 'Street address', '2ranq-forms' ), 'server' => true ), 'city' => array( 'type' => 'text', 'label' => __( 'City, state and ZIP', '2ranq-forms' ), 'server' => true ), 'hours' => array( 'type' => 'text', 'label' => __( 'Opening hours', '2ranq-forms' ), 'server' => true ), 'rows' => array( 'type' => 'rows', 'label' => __( 'Which rows to show', '2ranq-forms' ) ), 'name_color' => array( 'type' => 'color', 'var' => 'mit-name', 'label' => __( 'Company name colour', '2ranq-forms' ), 'default' => '#ffffff' ), 'name_size' => array( 'type' => 'size', 'var' => 'mit-name-size', 'label' => __( 'Company name size', '2ranq-forms' ), 'default' => '24', 'min' => 15, 'max' => 34 ), 'icon' => array( 'type' => 'color', 'var' => 'mit-icon', 'label' => __( 'Icon colour', '2ranq-forms' ), 'default' => '#4a9a4f' ), 'row_value' => array( 'type' => 'color', 'var' => 'mit-row', 'label' => __( 'Row text colour', '2ranq-forms' ), 'default' => 'rgba(255,255,255,.8)' ), 'row_size' => array( 'type' => 'size', 'var' => 'mit-row-size', 'label' => __( 'Row text size', '2ranq-forms' ), 'default' => '15', 'min' => 12, 'max' => 20 ), 'row_gap' => array( 'type' => 'size', 'var' => 'mit-row-gap', 'label' => __( 'Space between rows', '2ranq-forms' ), 'default' => '13', 'min' => 4, 'max' => 40 ), ), ), ); } /** * Everything that can be changed on the section taken from ortopedijauna.rs. * * @return array */ private static function parts_una() { return array( 'section' => array( 'label' => __( 'Section', '2ranq-forms' ), 'controls' => array( 'bg' => array( 'type' => 'color', 'var' => 'una-bg', 'label' => __( 'Background', '2ranq-forms' ), 'default' => '#282a53' ), 'pad' => array( 'type' => 'size', 'var' => 'una-pad', 'label' => __( 'Space above and below', '2ranq-forms' ), 'default' => '21', 'min' => 0, 'max' => 120 ), 'width' => array( 'type' => 'size', 'var' => 'una-card-width', 'label' => __( 'Card width', '2ranq-forms' ), 'default' => '62', 'min' => 40, 'max' => 100, 'unit' => '%' ), ), ), 'heading' => array( 'label' => __( 'Heading', '2ranq-forms' ), 'controls' => array( 'heading' => array( 'type' => 'text', 'part' => 'heading', 'label' => __( 'Text', '2ranq-forms' ) ), 'call_text' => array( 'type' => 'text', 'part' => 'call', 'label' => __( 'Wording of the phone link', '2ranq-forms' ), 'default' => 'give us a call' ), 'phone' => array( 'type' => 'text', 'label' => __( 'Phone', '2ranq-forms' ), 'server' => true ), 'title_color' => array( 'type' => 'color', 'var' => 'una-title', 'label' => __( 'Colour', '2ranq-forms' ), 'default' => '#ffffff' ), 'title_size' => array( 'type' => 'size', 'var' => 'una-title-size', 'label' => __( 'Size', '2ranq-forms' ), 'default' => '40', 'min' => 20, 'max' => 60 ), 'call_color' => array( 'type' => 'color', 'var' => 'una-link', 'label' => __( 'Phone link colour', '2ranq-forms' ), 'default' => '#ffffff' ), 'link_color' => array( 'type' => 'color', 'var' => 'una-link-hover', 'label' => __( 'Phone link on hover', '2ranq-forms' ), 'default' => '#0076fe' ), ), ), 'card' => array( 'label' => __( 'Card around the form', '2ranq-forms' ), 'controls' => array( 'card_bg' => array( 'type' => 'color', 'var' => 'una-card-bg', 'label' => __( 'Background', '2ranq-forms' ), 'default' => '#ffffff' ), 'card_radius' => array( 'type' => 'size', 'var' => 'una-card-radius', 'label' => __( 'Corner rounding', '2ranq-forms' ), 'default' => '20', 'min' => 0, 'max' => 40 ), 'card_pad' => array( 'type' => 'size', 'var' => 'una-card-pad', 'label' => __( 'Space inside', '2ranq-forms' ), 'default' => '30', 'min' => 8, 'max' => 60 ), 'card_shadow' => array( 'type' => 'color', 'var' => 'una-card-shadow', 'label' => __( 'Shadow colour', '2ranq-forms' ), 'default' => 'rgba(0,0,0,.5)' ), ), ), ); } /** * Everything that can be changed on the section taken from mary-jana.com. * * @return array */ private static function parts_maryjana() { return array( 'section' => array( 'label' => __( 'Section', '2ranq-forms' ), 'controls' => array( 'bg' => array( 'type' => 'color', 'var' => 'mj-bg', 'label' => __( 'Background', '2ranq-forms' ), 'default' => 'transparent' ), 'pad' => array( 'type' => 'size', 'var' => 'mj-pad', 'label' => __( 'Space above and below', '2ranq-forms' ), 'default' => '40', 'min' => 0, 'max' => 140 ), 'split' => array( 'type' => 'size', 'var' => 'mj-split', 'label' => __( 'Left column width', '2ranq-forms' ), 'default' => '50', 'min' => 35, 'max' => 65, 'unit' => '%' ), 'gap' => array( 'type' => 'size', 'var' => 'mj-gap', 'label' => __( 'Space between columns', '2ranq-forms' ), 'default' => '48', 'min' => 0, 'max' => 120 ), 'align' => array( 'type' => 'select', 'var' => 'mj-align', 'label' => __( 'Line the two columns up', '2ranq-forms' ), 'default' => 'center', 'options' => array( 'start' => __( 'By the top', '2ranq-forms' ), 'center' => __( 'By the middle', '2ranq-forms' ), 'end' => __( 'By the bottom', '2ranq-forms' ), 'stretch' => __( 'Same height', '2ranq-forms' ), ), ), ), ), 'heading' => array( 'label' => __( 'Two headings', '2ranq-forms' ), 'controls' => array( 'heading' => array( 'type' => 'text', 'part' => 'heading', 'label' => __( 'Left heading', '2ranq-forms' ) ), 'form_title' => array( 'type' => 'text', 'part' => 'formtitle', 'label' => __( 'Right heading, above the form', '2ranq-forms' ), 'default' => 'Send an email' ), 'title_color' => array( 'type' => 'color', 'var' => 'mj-title', 'label' => __( 'Colour', '2ranq-forms' ), 'default' => '#473122' ), 'title_size' => array( 'type' => 'size', 'var' => 'mj-title-size', 'label' => __( 'Size', '2ranq-forms' ), 'default' => '22', 'min' => 15, 'max' => 40 ), 'rule_color' => array( 'type' => 'color', 'var' => 'mj-rule', 'label' => __( 'Line next to the heading', '2ranq-forms' ), 'default' => 'rgba(0,0,0,.11)' ), ), ), 'rows' => array( 'label' => __( 'Details grid', '2ranq-forms' ), 'controls' => array( 'phone' => array( 'type' => 'text', 'label' => __( 'Phone', '2ranq-forms' ), 'server' => true ), 'email' => array( 'type' => 'text', 'label' => __( 'Email', '2ranq-forms' ), 'server' => true ), 'street' => array( 'type' => 'text', 'label' => __( 'Street address', '2ranq-forms' ), 'server' => true ), 'city' => array( 'type' => 'text', 'label' => __( 'City, state and ZIP', '2ranq-forms' ), 'server' => true ), 'hours' => array( 'type' => 'text', 'label' => __( 'Opening hours', '2ranq-forms' ), 'server' => true ), 'rows' => array( 'type' => 'rows', 'label' => __( 'Which rows to show', '2ranq-forms' ) ), 'icon' => array( 'type' => 'color', 'var' => 'mj-icon', 'label' => __( 'Icon colour', '2ranq-forms' ), 'default' => '#875e41' ), 'icon_size' => array( 'type' => 'size', 'var' => 'mj-icon-size', 'label' => __( 'Icon size', '2ranq-forms' ), 'default' => '40', 'min' => 20, 'max' => 64 ), 'row_key' => array( 'type' => 'color', 'var' => 'mj-row-key', 'label' => __( 'Row title colour', '2ranq-forms' ), 'default' => '#242424' ), 'row_value' => array( 'type' => 'color', 'var' => 'mj-row', 'label' => __( 'Row text colour', '2ranq-forms' ), 'default' => '#3a3a3a' ), 'row_size' => array( 'type' => 'size', 'var' => 'mj-row-size', 'label' => __( 'Row text size', '2ranq-forms' ), 'default' => '16', 'min' => 12, 'max' => 22 ), 'row_gap' => array( 'type' => 'size', 'var' => 'mj-row-gap', 'label' => __( 'Space between rows', '2ranq-forms' ), 'default' => '28', 'min' => 8, 'max' => 60 ), ), ), ); } /** * Everything that can be changed on the section taken from * cryptomenjacnica.com. * * @return array */ private static function parts_crypto() { return array( 'section' => array( 'label' => __( 'Section', '2ranq-forms' ), 'controls' => array( 'bg' => array( 'type' => 'color', 'var' => 'cry-bg', 'label' => __( 'Background', '2ranq-forms' ), 'default' => '#0b2a4a' ), 'glow' => array( 'type' => 'color', 'var' => 'cry-glow', 'label' => __( 'Glow at the top', '2ranq-forms' ), 'default' => 'rgba(0,179,136,.12)' ), 'pad' => array( 'type' => 'size', 'var' => 'cry-pad', 'label' => __( 'Space above and below', '2ranq-forms' ), 'default' => '72', 'min' => 24, 'max' => 160 ), 'width' => array( 'type' => 'size', 'var' => 'cry-form-width', 'label' => __( 'Form width', '2ranq-forms' ), 'default' => '640', 'min' => 360, 'max' => 1100 ), ), ), 'heading' => array( 'label' => __( 'Heading', '2ranq-forms' ), 'controls' => array( 'heading' => array( 'type' => 'text', 'part' => 'heading', 'label' => __( 'Text', '2ranq-forms' ) ), 'title_color' => array( 'type' => 'color', 'var' => 'cry-title', 'label' => __( 'Colour', '2ranq-forms' ), 'default' => '#ffffff' ), 'title_size' => array( 'type' => 'size', 'var' => 'cry-title-size', 'label' => __( 'Size', '2ranq-forms' ), 'default' => '40', 'min' => 22, 'max' => 60 ), ), ), 'lead' => array( 'label' => __( 'Text under the heading', '2ranq-forms' ), 'controls' => array( 'lead' => array( 'type' => 'textarea', 'part' => 'lead', 'label' => __( 'Text', '2ranq-forms' ) ), 'lead_color' => array( 'type' => 'color', 'var' => 'cry-lead', 'label' => __( 'Colour', '2ranq-forms' ), 'default' => 'rgba(255,255,255,.78)' ), 'lead_size' => array( 'type' => 'size', 'var' => 'cry-lead-size', 'label' => __( 'Size', '2ranq-forms' ), 'default' => '18', 'min' => 14, 'max' => 24 ), ), ), 'buttons' => array( 'label' => __( 'Three buttons', '2ranq-forms' ), 'controls' => array( 'call_text' => array( 'type' => 'text', 'part' => 'call', 'label' => __( 'Call button text', '2ranq-forms' ), 'default' => 'Call us' ), 'wa_text' => array( 'type' => 'text', 'part' => 'wa', 'label' => __( 'WhatsApp button text', '2ranq-forms' ), 'default' => 'WhatsApp' ), // The account comes BEFORE the button text, because without an account there // is no button. `needs` tells the builder to say so, instead of leaving a // person typing text and wondering why nothing happens in the preview. 'tg_handle' => array( 'type' => 'text', 'label' => __( 'Telegram username, without the at sign', '2ranq-forms' ), 'server' => true, 'default' => '' ), 'tg_text' => array( 'type' => 'text', 'part' => 'tg', 'label' => __( 'Telegram button text', '2ranq-forms' ), 'default' => 'Telegram', 'needs' => 'tg_handle' ), 'phone' => array( 'type' => 'text', 'label' => __( 'Phone', '2ranq-forms' ), 'server' => true ), 'btn_line' => array( 'type' => 'color', 'var' => 'cry-btn-line', 'label' => __( 'Button border', '2ranq-forms' ), 'default' => 'rgba(255,255,255,.3)' ), 'btn_ink' => array( 'type' => 'color', 'var' => 'cry-btn-ink', 'label' => __( 'Button text', '2ranq-forms' ), 'default' => '#ffffff' ), 'btn_radius' => array( 'type' => 'size', 'var' => 'cry-btn-radius', 'label' => __( 'Corner rounding', '2ranq-forms' ), 'default' => '10', 'min' => 0, 'max' => 40 ), ), ), ); } /** * Everything that can be changed on the section taken from * sigurnitelefoni.com. * * @return array */ private static function parts_sigurni() { return array( 'section' => array( 'label' => __( 'Section', '2ranq-forms' ), 'controls' => array( 'bg' => array( 'type' => 'color', 'var' => 'st-bg', 'label' => __( 'Background', '2ranq-forms' ), 'default' => '#f7f7fb' ), 'pad' => array( 'type' => 'size', 'var' => 'st-pad', 'label' => __( 'Space above and below', '2ranq-forms' ), 'default' => '64', 'min' => 0, 'max' => 160 ), 'split' => array( 'type' => 'size', 'var' => 'st-split', 'label' => __( 'Card column width', '2ranq-forms' ), 'default' => '50', 'min' => 35, 'max' => 65, 'unit' => '%' ), 'gap' => array( 'type' => 'size', 'var' => 'st-gap', 'label' => __( 'Space between columns', '2ranq-forms' ), 'default' => '24', 'min' => 0, 'max' => 80 ), 'align' => array( 'type' => 'select', 'var' => 'st-align', 'label' => __( 'Line the two columns up', '2ranq-forms' ), 'default' => 'center', 'options' => array( 'start' => __( 'By the top', '2ranq-forms' ), 'center' => __( 'By the middle', '2ranq-forms' ), 'end' => __( 'By the bottom', '2ranq-forms' ), 'stretch' => __( 'Same height', '2ranq-forms' ), ), ), ), ), 'heading' => array( 'label' => __( 'Heading', '2ranq-forms' ), 'controls' => array( 'heading' => array( 'type' => 'text', 'part' => 'heading', 'label' => __( 'Text', '2ranq-forms' ) ), 'title_color' => array( 'type' => 'color', 'var' => 'st-title', 'label' => __( 'Colour', '2ranq-forms' ), 'default' => '#111013' ), 'title_size' => array( 'type' => 'size', 'var' => 'st-title-size', 'label' => __( 'Size', '2ranq-forms' ), 'default' => '26', 'min' => 16, 'max' => 44 ), ), ), 'lead' => array( 'label' => __( 'Text under the heading', '2ranq-forms' ), 'controls' => array( 'lead' => array( 'type' => 'textarea', 'part' => 'lead', 'label' => __( 'Text', '2ranq-forms' ) ), 'lead_color' => array( 'type' => 'color', 'var' => 'st-lead', 'label' => __( 'Colour', '2ranq-forms' ), 'default' => '#797a8c' ), 'lead_size' => array( 'type' => 'size', 'var' => 'st-lead-size', 'label' => __( 'Size', '2ranq-forms' ), 'default' => '17', 'min' => 13, 'max' => 22 ), ), ), 'card' => array( 'label' => __( 'Card with the picture', '2ranq-forms' ), 'controls' => array( 'image' => array( 'type' => 'image', 'part' => 'photo', 'label' => __( 'Picture', '2ranq-forms' ), 'default' => RANQ_FORMS_URL . 'assets/img/desk-laptop.webp', ), 'card_bg' => array( 'type' => 'color', 'var' => 'st-card-bg', 'label' => __( 'Card background', '2ranq-forms' ), 'default' => '#f3f3f4' ), 'card_radius' => array( 'type' => 'size', 'var' => 'st-card-radius', 'label' => __( 'Corner rounding', '2ranq-forms' ), 'default' => '10', 'min' => 0, 'max' => 32 ), 'card_pad' => array( 'type' => 'size', 'var' => 'st-card-pad', 'label' => __( 'Space inside', '2ranq-forms' ), 'default' => '24', 'min' => 0, 'max' => 60 ), 'photo_width' => array( 'type' => 'size', 'var' => 'st-photo-width', 'label' => __( 'Picture width', '2ranq-forms' ), 'default' => '46', 'min' => 25, 'max' => 70, 'unit' => '%' ), ), ), 'rows' => array( 'label' => __( 'Contact rows', '2ranq-forms' ), 'controls' => array( 'phone' => array( 'type' => 'text', 'label' => __( 'Phone', '2ranq-forms' ), 'server' => true ), 'email' => array( 'type' => 'text', 'label' => __( 'Email', '2ranq-forms' ), 'server' => true ), 'street' => array( 'type' => 'text', 'label' => __( 'Street address', '2ranq-forms' ), 'server' => true ), 'city' => array( 'type' => 'text', 'label' => __( 'City, state and ZIP', '2ranq-forms' ), 'server' => true ), 'hours' => array( 'type' => 'text', 'label' => __( 'Opening hours', '2ranq-forms' ), 'server' => true ), 'rows' => array( 'type' => 'rows', 'label' => __( 'Which rows to show', '2ranq-forms' ) ), 'icon' => array( 'type' => 'color', 'var' => 'st-icon', 'label' => __( 'Icon colour', '2ranq-forms' ), 'default' => '#4a81d3' ), 'row_key' => array( 'type' => 'color', 'var' => 'st-row-key', 'label' => __( 'Row title colour', '2ranq-forms' ), 'default' => '#212529' ), 'row_size' => array( 'type' => 'size', 'var' => 'st-row-key-size', 'label' => __( 'Row title size', '2ranq-forms' ), 'default' => '17', 'min' => 13, 'max' => 24 ), 'row_value' => array( 'type' => 'color', 'var' => 'st-row', 'label' => __( 'Row text colour', '2ranq-forms' ), 'default' => '#797a8c' ), 'row_gap' => array( 'type' => 'size', 'var' => 'st-row-gap', 'label' => __( 'Space between rows', '2ranq-forms' ), 'default' => '22', 'min' => 6, 'max' => 50 ), ), ), ); } /** * Everything that can be changed on the section taken from * fizikalneterapije.rs. * * @return array */ private static function parts_fizio() { return array( 'section' => array( 'label' => __( 'Section', '2ranq-forms' ), 'controls' => array( 'bg' => array( 'type' => 'color', 'var' => 'fz-bg', 'label' => __( 'Background', '2ranq-forms' ), 'default' => '#ffffff' ), 'pad' => array( 'type' => 'size', 'var' => 'fz-pad', 'label' => __( 'Space above and below', '2ranq-forms' ), 'default' => '56', 'min' => 0, 'max' => 140 ), 'split' => array( 'type' => 'size', 'var' => 'fz-split', 'label' => __( 'Picture column width', '2ranq-forms' ), 'default' => '38', 'min' => 25, 'max' => 60, 'unit' => '%' ), 'gap' => array( 'type' => 'size', 'var' => 'fz-gap', 'label' => __( 'Space between columns', '2ranq-forms' ), 'default' => '48', 'min' => 0, 'max' => 100 ), 'align' => array( 'type' => 'select', 'var' => 'fz-align', 'label' => __( 'Line the two columns up', '2ranq-forms' ), 'default' => 'center', 'options' => array( 'start' => __( 'By the top', '2ranq-forms' ), 'center' => __( 'By the middle', '2ranq-forms' ), 'end' => __( 'By the bottom', '2ranq-forms' ), 'stretch' => __( 'Same height', '2ranq-forms' ), ), ), ), ), 'photo' => array( 'label' => __( 'Picture', '2ranq-forms' ), 'controls' => array( 'image' => array( 'type' => 'image', 'part' => 'photo', 'label' => __( 'Picture', '2ranq-forms' ), 'default' => RANQ_FORMS_URL . 'assets/img/physio-room.webp', ), 'photo_radius' => array( 'type' => 'size', 'var' => 'fz-photo-radius', 'label' => __( 'Corner rounding', '2ranq-forms' ), 'default' => '0', 'min' => 0, 'max' => 32 ), 'photo_height' => array( 'type' => 'size', 'var' => 'fz-photo-height', 'label' => __( 'Picture height', '2ranq-forms' ), 'default' => '543', 'min' => 200, 'max' => 700 ), ), ), 'heading' => array( 'label' => __( 'Heading', '2ranq-forms' ), 'controls' => array( 'heading' => array( 'type' => 'text', 'part' => 'heading', 'label' => __( 'Text', '2ranq-forms' ) ), 'title_color' => array( 'type' => 'color', 'var' => 'fz-title', 'label' => __( 'Colour', '2ranq-forms' ), 'default' => '#075aad' ), 'title_size' => array( 'type' => 'size', 'var' => 'fz-title-size', 'label' => __( 'Size', '2ranq-forms' ), 'default' => '40', 'min' => 22, 'max' => 60 ), ), ), 'rows' => array( 'label' => __( 'Contact rows', '2ranq-forms' ), 'controls' => array( 'phone' => array( 'type' => 'text', 'label' => __( 'Phone', '2ranq-forms' ), 'server' => true ), 'email' => array( 'type' => 'text', 'label' => __( 'Email', '2ranq-forms' ), 'server' => true ), 'street' => array( 'type' => 'text', 'label' => __( 'Street address', '2ranq-forms' ), 'server' => true ), 'city' => array( 'type' => 'text', 'label' => __( 'City, state and ZIP', '2ranq-forms' ), 'server' => true ), 'hours' => array( 'type' => 'text', 'label' => __( 'Opening hours', '2ranq-forms' ), 'server' => true ), 'rows' => array( 'type' => 'rows', 'label' => __( 'Which rows to show', '2ranq-forms' ) ), 'icon' => array( 'type' => 'color', 'var' => 'fz-icon', 'label' => __( 'Icon colour', '2ranq-forms' ), 'default' => '#075aad' ), 'icon_size' => array( 'type' => 'size', 'var' => 'fz-icon-size', 'label' => __( 'Icon size', '2ranq-forms' ), 'default' => '24', 'min' => 14, 'max' => 40 ), 'row_value' => array( 'type' => 'color', 'var' => 'fz-row', 'label' => __( 'Row text colour', '2ranq-forms' ), 'default' => '#d47940' ), 'row_size' => array( 'type' => 'size', 'var' => 'fz-row-size', 'label' => __( 'Row text size', '2ranq-forms' ), 'default' => '16', 'min' => 12, 'max' => 22 ), 'row_gap' => array( 'type' => 'size', 'var' => 'fz-row-gap', 'label' => __( 'Space between rows', '2ranq-forms' ), 'default' => '18', 'min' => 6, 'max' => 44 ), ), ), ); } /** * Everything that can be changed on the section taken from * belgradehotspot.com. * * @return array */ private static function parts_hotspot() { return array( 'section' => array( 'label' => __( 'Section', '2ranq-forms' ), 'controls' => array( 'bg' => array( 'type' => 'color', 'var' => 'bh-bg', 'label' => __( 'Background', '2ranq-forms' ), 'default' => '#090330' ), 'pad' => array( 'type' => 'size', 'var' => 'bh-pad', 'label' => __( 'Space above and below', '2ranq-forms' ), 'default' => '80', 'min' => 0, 'max' => 180 ), 'width' => array( 'type' => 'size', 'var' => 'bh-width', 'label' => __( 'Widest the content gets', '2ranq-forms' ), 'default' => '1140', 'min' => 600, 'max' => 1400 ), ), ), 'heading' => array( 'label' => __( 'Heading', '2ranq-forms' ), 'controls' => array( 'heading' => array( 'type' => 'text', 'part' => 'heading', 'label' => __( 'Text', '2ranq-forms' ) ), 'title_color' => array( 'type' => 'color', 'var' => 'bh-title', 'label' => __( 'Colour', '2ranq-forms' ), 'default' => '#ffffff' ), 'title_size' => array( 'type' => 'size', 'var' => 'bh-title-size', 'label' => __( 'Size', '2ranq-forms' ), 'default' => '40', 'min' => 22, 'max' => 64 ), 'title_gap' => array( 'type' => 'size', 'var' => 'bh-title-gap', 'label' => __( 'Space under the heading', '2ranq-forms' ), 'default' => '32', 'min' => 0, 'max' => 90 ), ), ), 'lead' => array( 'label' => __( 'Text under the heading', '2ranq-forms' ), 'controls' => array( 'lead' => array( 'type' => 'textarea', 'part' => 'lead', 'label' => __( 'Text', '2ranq-forms' ) ), 'lead_color' => array( 'type' => 'color', 'var' => 'bh-lead', 'label' => __( 'Colour', '2ranq-forms' ), 'default' => 'rgba(255,255,255,.75)' ), 'lead_size' => array( 'type' => 'size', 'var' => 'bh-lead-size', 'label' => __( 'Size', '2ranq-forms' ), 'default' => '17', 'min' => 13, 'max' => 24 ), ), ), ); } /** * Everything that can be changed on the section taken from cvecaranena.rs. * * @return array */ private static function parts_cvecara() { return array( 'section' => array( 'label' => __( 'Section', '2ranq-forms' ), 'controls' => array( 'bg' => array( 'type' => 'color', 'var' => 'cv-bg', 'label' => __( 'Background', '2ranq-forms' ), 'default' => '#ffffff' ), 'pad' => array( 'type' => 'size', 'var' => 'cv-pad', 'label' => __( 'Space above and below', '2ranq-forms' ), 'default' => '56', 'min' => 0, 'max' => 140 ), 'over' => array( 'type' => 'size', 'var' => 'cv-overlap', 'label' => __( 'How far the card sits over the picture', '2ranq-forms' ), 'default' => '60', 'min' => 0, 'max' => 200 ), ), ), 'heading' => array( 'label' => __( 'Heading', '2ranq-forms' ), 'controls' => array( 'heading' => array( 'type' => 'text', 'part' => 'heading', 'label' => __( 'Text', '2ranq-forms' ) ), 'title_color' => array( 'type' => 'color', 'var' => 'cv-title', 'label' => __( 'Colour', '2ranq-forms' ), 'default' => '#222222' ), 'title_size' => array( 'type' => 'size', 'var' => 'cv-title-size', 'label' => __( 'Size', '2ranq-forms' ), 'default' => '48', 'min' => 24, 'max' => 64 ), ), ), 'lead' => array( 'label' => __( 'Text under the heading', '2ranq-forms' ), 'controls' => array( 'lead' => array( 'type' => 'textarea', 'part' => 'lead', 'label' => __( 'Text', '2ranq-forms' ) ), 'lead_color' => array( 'type' => 'color', 'var' => 'cv-lead', 'label' => __( 'Colour', '2ranq-forms' ), 'default' => '#000000' ), 'lead_size' => array( 'type' => 'size', 'var' => 'cv-lead-size', 'label' => __( 'Size', '2ranq-forms' ), 'default' => '20', 'min' => 14, 'max' => 26 ), ), ), 'photo' => array( 'label' => __( 'Picture', '2ranq-forms' ), 'controls' => array( 'image' => array( 'type' => 'image', 'part' => 'photo', 'label' => __( 'Picture or map', '2ranq-forms' ), 'default' => RANQ_FORMS_URL . 'assets/img/storefront.webp', ), 'photo_radius' => array( 'type' => 'size', 'var' => 'cv-photo-radius', 'label' => __( 'Corner rounding', '2ranq-forms' ), 'default' => '15', 'min' => 0, 'max' => 40 ), 'photo_height' => array( 'type' => 'size', 'var' => 'cv-photo-height', 'label' => __( 'Height', '2ranq-forms' ), 'default' => '580', 'min' => 240, 'max' => 800 ), ), ), 'card' => array( 'label' => __( 'Card with the details', '2ranq-forms' ), 'controls' => array( 'card_title' => array( 'type' => 'text', 'part' => 'cardtitle', 'label' => __( 'Card heading', '2ranq-forms' ), 'default' => 'Contact details' ), 'card_bg' => array( 'type' => 'color', 'var' => 'cv-card-bg', 'label' => __( 'Card background', '2ranq-forms' ), 'default' => 'rgba(255,249,245,.92)' ), 'card_radius' => array( 'type' => 'size', 'var' => 'cv-card-radius', 'label' => __( 'Corner rounding', '2ranq-forms' ), 'default' => '15', 'min' => 0, 'max' => 40 ), 'card_pad' => array( 'type' => 'size', 'var' => 'cv-card-pad', 'label' => __( 'Space inside', '2ranq-forms' ), 'default' => '24', 'min' => 8, 'max' => 60 ), 'card_width' => array( 'type' => 'size', 'var' => 'cv-card-width', 'label' => __( 'Card width', '2ranq-forms' ), 'default' => '435', 'min' => 280, 'max' => 700 ), 'ink' => array( 'type' => 'color', 'var' => 'cv-ink', 'label' => __( 'Text colour on the card', '2ranq-forms' ), 'default' => '#513065' ), ), ), 'rows' => array( 'label' => __( 'Contact rows', '2ranq-forms' ), 'controls' => array( 'phone' => array( 'type' => 'text', 'label' => __( 'Phone', '2ranq-forms' ), 'server' => true ), 'email' => array( 'type' => 'text', 'label' => __( 'Email', '2ranq-forms' ), 'server' => true ), 'street' => array( 'type' => 'text', 'label' => __( 'Street address', '2ranq-forms' ), 'server' => true ), 'city' => array( 'type' => 'text', 'label' => __( 'City, state and ZIP', '2ranq-forms' ), 'server' => true ), 'hours' => array( 'type' => 'text', 'label' => __( 'Opening hours', '2ranq-forms' ), 'server' => true ), 'rows' => array( 'type' => 'rows', 'label' => __( 'Which rows to show', '2ranq-forms' ) ), 'icon' => array( 'type' => 'color', 'var' => 'cv-icon', 'label' => __( 'Icon colour', '2ranq-forms' ), 'default' => '#c2185b' ), 'row_size' => array( 'type' => 'size', 'var' => 'cv-row-size', 'label' => __( 'Row text size', '2ranq-forms' ), 'default' => '15', 'min' => 12, 'max' => 20 ), 'row_gap' => array( 'type' => 'size', 'var' => 'cv-row-gap', 'label' => __( 'Space between rows', '2ranq-forms' ), 'default' => '14', 'min' => 4, 'max' => 40 ), ), ), ); } /** * Everything that can be changed on the section taken from * medijacijabeograd.com. * * @return array */ private static function parts_medijacija() { return array( 'section' => array( 'label' => __( 'Section', '2ranq-forms' ), 'controls' => array( 'bg' => array( 'type' => 'color', 'var' => 'md-bg', 'label' => __( 'Background', '2ranq-forms' ), 'default' => '#0b1b2a' ), 'pad' => array( 'type' => 'size', 'var' => 'md-pad', 'label' => __( 'Space above and below', '2ranq-forms' ), 'default' => '60', 'min' => 0, 'max' => 140 ), 'split' => array( 'type' => 'size', 'var' => 'md-split', 'label' => __( 'Form column width', '2ranq-forms' ), 'default' => '50', 'min' => 35, 'max' => 70, 'unit' => '%' ), 'gap' => array( 'type' => 'size', 'var' => 'md-gap', 'label' => __( 'Space between columns', '2ranq-forms' ), 'default' => '60', 'min' => 0, 'max' => 120 ), 'align' => array( 'type' => 'select', 'var' => 'md-align', 'label' => __( 'Line the two columns up', '2ranq-forms' ), 'default' => 'center', 'options' => array( 'start' => __( 'By the top', '2ranq-forms' ), 'center' => __( 'By the middle', '2ranq-forms' ), 'end' => __( 'By the bottom', '2ranq-forms' ), 'stretch' => __( 'Same height', '2ranq-forms' ), ), ), ), ), 'badge' => array( 'label' => __( 'Logo or picture', '2ranq-forms' ), 'controls' => array( 'image' => array( 'type' => 'image', 'part' => 'photo', 'label' => __( 'Picture', '2ranq-forms' ), 'default' => RANQ_FORMS_URL . 'assets/img/office-reception.webp', ), 'photo_size' => array( 'type' => 'size', 'var' => 'md-photo-size', 'label' => __( 'Size', '2ranq-forms' ), 'default' => '160', 'min' => 60, 'max' => 320 ), 'photo_radius' => array( 'type' => 'size', 'var' => 'md-photo-radius', 'label' => __( 'Corner rounding', '2ranq-forms' ), 'default' => '12', 'min' => 0, 'max' => 999 ), ), ), 'name' => array( 'label' => __( 'Name and small print', '2ranq-forms' ), 'controls' => array( 'name_text' => array( 'type' => 'text', 'part' => 'name', 'label' => __( 'Name and title', '2ranq-forms' ) ), 'note_text' => array( 'type' => 'text', 'part' => 'note', 'label' => __( 'Small print, such as a licence number', '2ranq-forms' ), 'default' => '' ), 'name_color' => array( 'type' => 'color', 'var' => 'md-name', 'label' => __( 'Colour', '2ranq-forms' ), 'default' => '#ffffff' ), 'name_size' => array( 'type' => 'size', 'var' => 'md-name-size', 'label' => __( 'Size', '2ranq-forms' ), 'default' => '17', 'min' => 13, 'max' => 26 ), ), ), 'rows' => array( 'label' => __( 'Contact rows', '2ranq-forms' ), 'controls' => array( 'phone' => array( 'type' => 'text', 'label' => __( 'Phone', '2ranq-forms' ), 'server' => true ), 'email' => array( 'type' => 'text', 'label' => __( 'Email', '2ranq-forms' ), 'server' => true ), 'street' => array( 'type' => 'text', 'label' => __( 'Street address', '2ranq-forms' ), 'server' => true ), 'city' => array( 'type' => 'text', 'label' => __( 'City, state and ZIP', '2ranq-forms' ), 'server' => true ), 'hours' => array( 'type' => 'text', 'label' => __( 'Opening hours', '2ranq-forms' ), 'server' => true ), 'rows' => array( 'type' => 'rows', 'label' => __( 'Which rows to show', '2ranq-forms' ) ), 'icon' => array( 'type' => 'color', 'var' => 'md-icon', 'label' => __( 'Icon colour', '2ranq-forms' ), 'default' => '#f88054' ), 'row_value' => array( 'type' => 'color', 'var' => 'md-row', 'label' => __( 'Row text colour', '2ranq-forms' ), 'default' => '#ffffff' ), 'row_size' => array( 'type' => 'size', 'var' => 'md-row-size', 'label' => __( 'Row text size', '2ranq-forms' ), 'default' => '16', 'min' => 12, 'max' => 22 ), 'row_gap' => array( 'type' => 'size', 'var' => 'md-row-gap', 'label' => __( 'Space between rows', '2ranq-forms' ), 'default' => '14', 'min' => 4, 'max' => 40 ), ), ), ); } /** * Everything that can be changed on the section taken from fairplay.org.rs. * * @return array */ private static function parts_fairplay() { return array( 'section' => array( 'label' => __( 'Section', '2ranq-forms' ), 'controls' => array( 'bg' => array( 'type' => 'color', 'var' => 'fp-bg', 'label' => __( 'Background', '2ranq-forms' ), 'default' => 'transparent' ), 'pad' => array( 'type' => 'size', 'var' => 'fp-pad', 'label' => __( 'Space above and below', '2ranq-forms' ), 'default' => '48', 'min' => 0, 'max' => 140 ), 'split' => array( 'type' => 'size', 'var' => 'fp-split', 'label' => __( 'Card column width', '2ranq-forms' ), 'default' => '50', 'min' => 35, 'max' => 65, 'unit' => '%' ), 'gap' => array( 'type' => 'size', 'var' => 'fp-gap', 'label' => __( 'Space between columns', '2ranq-forms' ), 'default' => '32', 'min' => 0, 'max' => 100 ), 'align' => array( 'type' => 'select', 'var' => 'fp-align', 'label' => __( 'Line the two columns up', '2ranq-forms' ), 'default' => 'center', 'options' => array( 'start' => __( 'By the top', '2ranq-forms' ), 'center' => __( 'By the middle', '2ranq-forms' ), 'end' => __( 'By the bottom', '2ranq-forms' ), 'stretch' => __( 'Same height', '2ranq-forms' ), ), ), ), ), 'heading' => array( 'label' => __( 'Heading', '2ranq-forms' ), 'controls' => array( 'heading' => array( 'type' => 'text', 'part' => 'heading', 'label' => __( 'Text', '2ranq-forms' ) ), 'title_color' => array( 'type' => 'color', 'var' => 'fp-title', 'label' => __( 'Colour', '2ranq-forms' ), 'default' => '#242424' ), 'title_size' => array( 'type' => 'size', 'var' => 'fp-title-size', 'label' => __( 'Size', '2ranq-forms' ), 'default' => '48', 'min' => 24, 'max' => 64 ), ), ), 'card' => array( 'label' => __( 'Dark card', '2ranq-forms' ), 'controls' => array( 'card_bg' => array( 'type' => 'color', 'var' => 'fp-card-bg', 'label' => __( 'Card background', '2ranq-forms' ), 'default' => '#242424' ), 'card_radius' => array( 'type' => 'size', 'var' => 'fp-card-radius', 'label' => __( 'Corner rounding', '2ranq-forms' ), 'default' => '6', 'min' => 0, 'max' => 32 ), 'card_pad' => array( 'type' => 'size', 'var' => 'fp-card-pad', 'label' => __( 'Space inside', '2ranq-forms' ), 'default' => '36', 'min' => 10, 'max' => 70 ), ), ), 'rows' => array( 'label' => __( 'Contact rows', '2ranq-forms' ), 'controls' => array( 'phone' => array( 'type' => 'text', 'label' => __( 'Phone', '2ranq-forms' ), 'server' => true ), 'email' => array( 'type' => 'text', 'label' => __( 'Email', '2ranq-forms' ), 'server' => true ), 'street' => array( 'type' => 'text', 'label' => __( 'Street address', '2ranq-forms' ), 'server' => true ), 'city' => array( 'type' => 'text', 'label' => __( 'City, state and ZIP', '2ranq-forms' ), 'server' => true ), 'hours' => array( 'type' => 'text', 'label' => __( 'Opening hours', '2ranq-forms' ), 'server' => true ), 'rows' => array( 'type' => 'rows', 'label' => __( 'Which rows to show', '2ranq-forms' ) ), 'icon' => array( 'type' => 'color', 'var' => 'fp-icon', 'label' => __( 'Icon colour', '2ranq-forms' ), 'default' => '#ffcc01' ), 'icon_size' => array( 'type' => 'size', 'var' => 'fp-icon-size', 'label' => __( 'Icon size', '2ranq-forms' ), 'default' => '26', 'min' => 16, 'max' => 44 ), 'row_key' => array( 'type' => 'color', 'var' => 'fp-row-key', 'label' => __( 'Row title colour', '2ranq-forms' ), 'default' => '#ffffff' ), 'row_size' => array( 'type' => 'size', 'var' => 'fp-row-key-size', 'label' => __( 'Row title size', '2ranq-forms' ), 'default' => '17', 'min' => 13, 'max' => 26 ), 'row_value' => array( 'type' => 'color', 'var' => 'fp-row', 'label' => __( 'Row text colour', '2ranq-forms' ), 'default' => 'rgba(255,255,255,.85)' ), 'row_gap' => array( 'type' => 'size', 'var' => 'fp-row-gap', 'label' => __( 'Space between rows', '2ranq-forms' ), 'default' => '24', 'min' => 8, 'max' => 50 ), ), ), ); } /** * The list of trades. * * @return array */ public static function all() { // Every section is a COPY of one of our own live sites, by the rules in // `10-PRAVILA-FULL-WIDGET.md`. They are added one at a time, when finished. $list = array( array( 'key' => 'site-fairplay', 'parts' => self::parts_fairplay(), 'purpose' => 'ours', 'title' => __( 'Dark list of channels, plain form beside it', '2ranq-forms' ), 'description' => __( 'A charcoal card listing every way to reach you, and a plain form with a yellow button next to it.', '2ranq-forms' ), 'group' => 'org', 'family' => 'exact-fairplay', 'accent' => '#ffcc01', 'photo' => '', 'style' => 'yellowsubmit', 'name' => 'Level Field Association', 'heading' => __( 'Contact us', '2ranq-forms' ), 'lead' => '', 'note' => '', 'street' => '88 Union Avenue', 'city' => 'Pittsburgh, PA 15222', 'phone' => '(412) 555-0198', 'email' => 'office@levelfield.example', 'hours' => __( 'Monday to Friday, 9am to 5pm', '2ranq-forms' ), ), array( 'key' => 'site-medijacija', 'parts' => self::parts_medijacija(), 'purpose' => 'ours', 'title' => __( 'Dark navy, form left and card right', '2ranq-forms' ), 'description' => __( 'Dark navy band. The form on the left with outlined fields and a coral button, and a picture, a name and the contact rows on the right.', '2ranq-forms' ), 'group' => 'money', 'family' => 'exact-medijacija', 'accent' => '#f88054', 'photo' => '', 'style' => 'coralmidnight', 'name' => 'Harper Mediation', 'heading' => __( 'Write to us', '2ranq-forms' ), 'lead' => '', 'note' => '', 'street' => '340 Court Street', 'city' => 'Denver, CO 80202', 'phone' => '(303) 555-0155', 'email' => 'office@harpermediation.example', 'hours' => __( 'Monday to Friday, 9am to 5pm', '2ranq-forms' ), ), array( 'key' => 'site-cvecara', 'parts' => self::parts_cvecara(), 'purpose' => 'ours', 'title' => __( 'Picture with a cream card over it', '2ranq-forms' ), 'description' => __( 'A wide picture or map, and a soft cream card sitting over its right side with the details and the form.', '2ranq-forms' ), 'group' => 'shop', 'family' => 'exact-cvecara', 'accent' => '#513065', 'photo' => '', 'style' => 'plumcream', 'name' => 'Wildflower Studio', 'heading' => __( 'Contact', '2ranq-forms' ), 'lead' => __( 'Whether you need help choosing a bouquet, want to know about delivery, or have a special request, we are here.', '2ranq-forms' ), 'note' => '', 'street' => '12 Garden Row', 'city' => 'Savannah, GA 31401', 'phone' => '(912) 555-0187', 'email' => 'orders@wildflowerstudio.example', 'hours' => __( 'Monday to Saturday, 8am to 7pm', '2ranq-forms' ), ), array( 'key' => 'site-hotspot', 'parts' => self::parts_hotspot(), 'purpose' => 'ours', 'title' => __( 'Nightlife, one dark band and a wide form', '2ranq-forms' ), 'description' => __( 'Almost black band, heading in the middle, and the whole form under it in two columns with a mint button across the width.', '2ranq-forms' ), 'group' => 'events', 'family' => 'exact-hotspot', 'accent' => '#17e5be', 'photo' => '', 'style' => 'neonnight', 'name' => 'Lantern Rooms', 'heading' => __( 'Book your table now', '2ranq-forms' ), 'lead' => __( 'Tell us the night, the size of your group and the room. We hold the table for thirty minutes.', '2ranq-forms' ), 'note' => '', 'street' => '5 Lantern Street', 'city' => 'Chicago, IL 60607', 'phone' => '(312) 555-0166', 'email' => 'tables@lanternrooms.example', 'hours' => __( 'Thursday to Sunday, 8pm to 4am', '2ranq-forms' ), ), array( 'key' => 'site-fizio', 'parts' => self::parts_fizio(), 'purpose' => 'ours', 'title' => __( 'Clinic, photo on the left and form on the right', '2ranq-forms' ), 'description' => __( 'A photo of the door on the left. On the right a big blue heading, the contact rows, and a short form.', '2ranq-forms' ), 'group' => 'health', 'family' => 'exact-fizio', 'accent' => '#075aad', 'photo' => '', 'style' => 'clinicblue', 'name' => 'Riverside Physio', 'heading' => __( 'Contact', '2ranq-forms' ), 'lead' => '', 'note' => '', 'street' => '62 Riverside Drive', 'city' => 'Cleveland, OH 44113', 'phone' => '(216) 555-0134', 'email' => 'office@riversidephysio.example', 'hours' => __( 'Monday to Friday, 8am to 8pm', '2ranq-forms' ), ), array( 'key' => 'site-sigurni', 'parts' => self::parts_sigurni(), 'purpose' => 'ours', 'title' => __( 'Card with a picture, form beside it', '2ranq-forms' ), 'description' => __( 'Light section. A grey card holds a picture and the contact rows, and the form stands next to it with no labels, just placeholder text.', '2ranq-forms' ), 'group' => 'tech', 'family' => 'exact-sigurni', 'accent' => '#4a81d3', 'photo' => '', 'style' => 'slateblue', 'name' => 'Ridgeway Devices', 'heading' => __( 'Send us your question', '2ranq-forms' ), 'lead' => __( 'Tell us what you need the device for, at work or at home, and we will point you to the right model.', '2ranq-forms' ), 'note' => '', 'street' => '215 Ridgeway Boulevard', 'city' => 'Austin, TX 78701', 'phone' => '(512) 555-0119', 'email' => 'ask@ridgewaydevices.example', 'hours' => __( 'Monday to Friday, 9am to 6pm', '2ranq-forms' ), ), array( 'key' => 'site-crypto', 'parts' => self::parts_crypto(), 'purpose' => 'ours', 'title' => __( 'Navy band, three ways to reach you', '2ranq-forms' ), 'description' => __( 'Everything in the middle: heading, one line under it, buttons for phone, WhatsApp and Telegram, and the form below.', '2ranq-forms' ), 'group' => 'money', 'family' => 'exact-crypto', 'accent' => '#00b388', 'photo' => '', 'style' => 'mintnavy', 'name' => 'Harborline Exchange', 'heading' => __( 'Ready when you are', '2ranq-forms' ), 'lead' => __( 'Call, message, or leave your details below. We answer the same day, every day.', '2ranq-forms' ), 'note' => '', 'street' => '77 Harbor Street', 'city' => 'Baltimore, MD 21202', 'phone' => '(410) 555-0123', 'email' => 'desk@harborlineexchange.example', 'hours' => __( 'Every day, 9am to 9pm', '2ranq-forms' ), ), array( 'key' => 'site-maryjana', 'parts' => self::parts_maryjana(), 'purpose' => 'ours', 'title' => __( 'Two headings with a rule, details grid', '2ranq-forms' ), 'description' => __( 'No background of its own. Contact details in a two by two grid on the left, the form on the right, each half under a heading with a thin rule.', '2ranq-forms' ), 'group' => 'shop', 'family' => 'exact-maryjana', 'accent' => '#875e41', 'photo' => '', 'style' => 'warmclay', 'name' => 'Juniper Hair Studio', 'heading' => __( 'Contact us', '2ranq-forms' ), 'lead' => '', 'note' => '', 'street' => '9 Juniper Lane', 'city' => 'Portland, OR 97205', 'phone' => '(503) 555-0148', 'email' => 'hello@juniperhair.example', 'hours' => __( 'Every day, 9am to 5pm', '2ranq-forms' ), ), array( 'key' => 'site-una', 'parts' => self::parts_una(), 'purpose' => 'ours', 'title' => __( 'Shop enquiry, navy band with a white card', '2ranq-forms' ), 'description' => __( 'Deep navy band, one bold line with a phone link, and the form on a white rounded card in the middle.', '2ranq-forms' ), 'group' => 'shop', 'family' => 'exact-una', 'accent' => '#009970', 'photo' => '', 'style' => 'emeraldcard', 'name' => 'Northgate Orthopaedics', 'heading' => __( 'Have a question? Write to us or', '2ranq-forms' ), 'lead' => '', 'note' => '', 'street' => '18 Northgate Avenue', 'city' => 'Rochester, NY 14607', 'phone' => '(585) 555-0171', 'email' => 'shop@northgateortho.example', 'hours' => __( 'Monday to Friday, 9am to 5pm', '2ranq-forms' ), ), array( 'key' => 'site-mitaleks', 'parts' => self::parts_mitaleks(), 'purpose' => 'ours', 'title' => __( 'Wholesale, deep green with two buttons', '2ranq-forms' ), 'description' => __( 'Dark green band, uppercase heading, call and email buttons, company details with green icons, and the form on the right.', '2ranq-forms' ), 'group' => 'trade', 'family' => 'exact-mitaleks', 'accent' => '#4a9a4f', 'photo' => '', 'style' => 'forestnight', 'name' => 'Fairfield Produce Co.', 'heading' => __( 'Ready to work together?', '2ranq-forms' ), 'lead' => __( 'Tell us which items you need, how much, and for which date. You get a quote back the same day.', '2ranq-forms' ), 'note' => '', 'street' => '400 Market Street', 'city' => 'Columbus, OH 43215', 'phone' => '(614) 555-0138', 'email' => 'orders@fairfieldproduce.example', 'hours' => __( 'Monday to Saturday, 4am to 2pm', '2ranq-forms' ), ), array( 'key' => 'site-gaja-book', 'parts' => self::parts_gaja_book(), 'purpose' => 'ours', 'title' => __( 'Booking card, dark with an amber button', '2ranq-forms' ), 'description' => __( 'One dark card: icon, heading, and the whole booking form inside it. Made for rides, tables and appointments.', '2ranq-forms' ), 'group' => 'travel', 'family' => 'exact-gaja-book', 'accent' => '#f8b54a', 'photo' => '', 'style' => 'midnightamber', 'name' => 'Runway Transfers', 'heading' => __( 'Book Your Transfer', '2ranq-forms' ), 'lead' => __( 'Fill in the form and reserve your ride', '2ranq-forms' ), 'note' => '', 'street' => '2 Terminal Road', 'city' => 'Newark, NJ 07114', 'phone' => '(973) 555-0106', 'email' => 'rides@runwaytransfers.example', 'hours' => __( 'Every day, around the clock', '2ranq-forms' ), ), array( 'key' => 'site-gaja', 'parts' => self::parts_gaja(), 'purpose' => 'ours', 'title' => __( 'Airport transfer, warm and open', '2ranq-forms' ), 'description' => __( 'White section, three contact rows with line icons on the left, the form on the right with underlined fields and an amber button.', '2ranq-forms' ), 'group' => 'travel', 'family' => 'exact-gaja', 'accent' => '#f8b54a', 'photo' => '', 'style' => 'amberline', 'name' => 'Runway Transfers', 'heading' => __( 'Send a transfer request', '2ranq-forms' ), 'lead' => __( 'Tell us the date, the time and where you are going. We confirm with a fixed price and the right vehicle.', '2ranq-forms' ), 'note' => '', 'street' => '2 Terminal Road', 'city' => 'Newark, NJ 07114', 'phone' => '(973) 555-0106', 'email' => 'rides@runwaytransfers.example', 'hours' => __( 'Every day, around the clock', '2ranq-forms' ), ), array( 'key' => 'site-2ranq', 'parts' => self::parts_2ranq(), 'purpose' => 'ours', 'title' => __( 'Agency, dark with a lime button', '2ranq-forms' ), 'description' => __( 'Black band, a short explanation on the left, the form in a dark card on the right with a lime button.', '2ranq-forms' ), 'group' => 'tech', 'family' => 'exact-2ranq', 'accent' => '#b2ff2e', 'photo' => '', 'style' => 'nightlime', 'name' => 'Northline Studio', 'heading' => __( 'How do you start a project with us?', '2ranq-forms' ), 'lead' => __( 'Send a short description of what you are building. We answer the same working day.', '2ranq-forms' ), 'note' => '', 'street' => '46 Foundry Street, Studio 3', 'city' => 'Brooklyn, NY 11222', 'phone' => '+1 (347) 555-0198', 'email' => 'work@northlinestudio.example', 'hours' => __( 'Monday to Friday, 9am to 6pm', '2ranq-forms' ), ), ); /** * Adding trades from modules. * * @param array $list The trades. */ return apply_filters( 'ranq_forms_business_list', $list ); } }