Changeset 3293841
- Timestamp:
- 05/15/2025 07:34:52 AM (10 months ago)
- Location:
- romethemeform
- Files:
-
- 97 added
- 13 edited
-
tags/1.2.2 (added)
-
tags/1.2.2/assets (added)
-
tags/1.2.2/assets/css (added)
-
tags/1.2.2/assets/css/admin_style.css (added)
-
tags/1.2.2/assets/css/rtmicons.css (added)
-
tags/1.2.2/assets/css/style.css (added)
-
tags/1.2.2/assets/fonts (added)
-
tags/1.2.2/assets/fonts/rtmicon.eot (added)
-
tags/1.2.2/assets/fonts/rtmicon.svg (added)
-
tags/1.2.2/assets/fonts/rtmicon.ttf (added)
-
tags/1.2.2/assets/fonts/rtmicon.woff (added)
-
tags/1.2.2/assets/images (added)
-
tags/1.2.2/assets/images/RomethemeKit_Pirus.png (added)
-
tags/1.2.2/assets/images/RomethemeKit_Pirus_Black.png (added)
-
tags/1.2.2/assets/images/img-hero-1.jpg (added)
-
tags/1.2.2/assets/images/rform.png (added)
-
tags/1.2.2/assets/images/rform.svg (added)
-
tags/1.2.2/assets/images/rform20x20.png (added)
-
tags/1.2.2/assets/images/rform25x25.png (added)
-
tags/1.2.2/assets/images/rform_icon.png (added)
-
tags/1.2.2/assets/images/rometheme.svg (added)
-
tags/1.2.2/assets/images/romethemeform1a.png (added)
-
tags/1.2.2/assets/images/section-1.png (added)
-
tags/1.2.2/assets/images/section2.png (added)
-
tags/1.2.2/assets/images/section3.png (added)
-
tags/1.2.2/assets/js (added)
-
tags/1.2.2/assets/js/notice.js (added)
-
tags/1.2.2/autoloader.php (added)
-
tags/1.2.2/bootstrap (added)
-
tags/1.2.2/bootstrap/css (added)
-
tags/1.2.2/bootstrap/css/bootstrap.css (added)
-
tags/1.2.2/bootstrap/css/bootstrap.css.map (added)
-
tags/1.2.2/bootstrap/css/bootstrap.min.css (added)
-
tags/1.2.2/bootstrap/css/bootstrap.rtl.css (added)
-
tags/1.2.2/bootstrap/css/bootstrap.rtl.min.css (added)
-
tags/1.2.2/bootstrap/js (added)
-
tags/1.2.2/bootstrap/js/bootstrap.js (added)
-
tags/1.2.2/bootstrap/js/bootstrap.min.js (added)
-
tags/1.2.2/controls (added)
-
tags/1.2.2/controls/assets (added)
-
tags/1.2.2/controls/assets/css (added)
-
tags/1.2.2/controls/assets/css/form_modal.css (added)
-
tags/1.2.2/controls/assets/js (added)
-
tags/1.2.2/controls/assets/js/form_modal.js (added)
-
tags/1.2.2/controls/assets/js/form_picker.js (added)
-
tags/1.2.2/controls/form_controls.php (added)
-
tags/1.2.2/libs (added)
-
tags/1.2.2/libs/notice (added)
-
tags/1.2.2/libs/notice/notice.php (added)
-
tags/1.2.2/modules (added)
-
tags/1.2.2/modules/form (added)
-
tags/1.2.2/modules/form/assets (added)
-
tags/1.2.2/modules/form/assets/js (added)
-
tags/1.2.2/modules/form/assets/js/form.js (added)
-
tags/1.2.2/modules/form/form.php (added)
-
tags/1.2.2/modules/form/views (added)
-
tags/1.2.2/modules/form/views/entries-table.php (added)
-
tags/1.2.2/modules/form/views/entries-view.php (added)
-
tags/1.2.2/modules/form/views/form-view.php (added)
-
tags/1.2.2/plugin.php (added)
-
tags/1.2.2/readme.txt (added)
-
tags/1.2.2/rometheme-form.php (added)
-
tags/1.2.2/views (added)
-
tags/1.2.2/views/welcome.php (added)
-
tags/1.2.2/widgets (added)
-
tags/1.2.2/widgets/assets (added)
-
tags/1.2.2/widgets/assets/css (added)
-
tags/1.2.2/widgets/assets/css/intlTelInput.css (added)
-
tags/1.2.2/widgets/assets/css/rform-button.css (added)
-
tags/1.2.2/widgets/assets/css/rform-checkbox.css (added)
-
tags/1.2.2/widgets/assets/css/rform-radiobutton.css (added)
-
tags/1.2.2/widgets/assets/css/rform-select.css (added)
-
tags/1.2.2/widgets/assets/css/rform.css (added)
-
tags/1.2.2/widgets/assets/css/rtform_text.css (added)
-
tags/1.2.2/widgets/assets/css/spinner-loading.css (added)
-
tags/1.2.2/widgets/assets/img (added)
-
tags/1.2.2/widgets/assets/img/flags.png (added)
-
tags/1.2.2/widgets/assets/img/flags@2x.png (added)
-
tags/1.2.2/widgets/assets/js (added)
-
tags/1.2.2/widgets/assets/js/intl_tel_input.min.js (added)
-
tags/1.2.2/widgets/assets/js/intl_tel_input_utils.js (added)
-
tags/1.2.2/widgets/assets/js/rform.js (added)
-
tags/1.2.2/widgets/assets/js/rform_select.js (added)
-
tags/1.2.2/widgets/assets/js/rform_tel_input.js (added)
-
tags/1.2.2/widgets/assets/js/rtform_text.js (added)
-
tags/1.2.2/widgets/rform-button-submit.php (added)
-
tags/1.2.2/widgets/rform-checkbox.php (added)
-
tags/1.2.2/widgets/rform-input-number.php (added)
-
tags/1.2.2/widgets/rform-input-tel.php (added)
-
tags/1.2.2/widgets/rform-select.php (added)
-
tags/1.2.2/widgets/rtform-date.php (added)
-
tags/1.2.2/widgets/rtform-email.php (added)
-
tags/1.2.2/widgets/rtform-radio-btn.php (added)
-
tags/1.2.2/widgets/rtform-text-area.php (added)
-
tags/1.2.2/widgets/rtform-text.php (added)
-
tags/1.2.2/widgets/rtform-time.php (added)
-
tags/1.2.2/widgets/rtform.php (added)
-
trunk/controls/form_controls.php (modified) (3 diffs)
-
trunk/modules/form/form.php (modified) (1 diff)
-
trunk/readme.txt (modified) (5 diffs)
-
trunk/rometheme-form.php (modified) (2 diffs)
-
trunk/widgets/assets/css/rform-button.css (modified) (2 diffs)
-
trunk/widgets/assets/css/rform-checkbox.css (modified) (1 diff)
-
trunk/widgets/assets/css/spinner-loading.css (modified) (2 diffs)
-
trunk/widgets/assets/js/rform.js (modified) (2 diffs)
-
trunk/widgets/rform-button-submit.php (modified) (5 diffs)
-
trunk/widgets/rform-input-number.php (modified) (2 diffs)
-
trunk/widgets/rtform-date.php (modified) (1 diff)
-
trunk/widgets/rtform-time.php (modified) (1 diff)
-
trunk/widgets/rtform.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
romethemeform/trunk/controls/form_controls.php
r3234440 r3293841 39 39 $list = []; 40 40 41 $template = get_posts(['post_type' => 'romethemeform_form' , 'posts_per_page' => -1]);41 $template = get_posts(['post_type' => 'romethemeform_form', 'posts_per_page' => -1]); 42 42 $list = []; 43 43 foreach ($template as $form) { … … 59 59 <div class="rform-modal-header"> 60 60 <div class="rform-logo"> 61 <svg width="30" height="30" id="eohpCl3PVjW1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 300 300" shape-rendering="geometricPrecision" text-rendering="geometricPrecision"> 62 <g transform="matrix(.11326 0 0-.113381-20.251951 319.628716)"> 63 <path d="M372,2749c-46-14-109-80-122-128-7-27-10-384-8-1148l3-1108l24-38c13-21,42-50,64-65l41-27h1131h1131l41,27c22,15,51,44,64,65l24,38v812v813l-383,382-382,383-798,2c-485,1-810-2-830-8Zm1500-932c211-120,337-197,335-206-2-14-262-170-285-170-7-1-102,50-212,113l-200,115-200-115c-110-63-204-114-209-114-21,0-292,163-288,174c6,19,691,407,707,400c8-3,167-92,352-197Zm-151-319c82-46,148-86,149-89c0-3-12-11-27-18-26-12-20-16,183-131c115-66,210-123,212-128c3-9-277-172-296-172-7,0-107,54-222,120l-210,120-208-120c-115-66-215-120-223-120-24,1-284,155-286,170-2,10,125,88,380,232c210,120,386,218,391,218s76-37,157-82Z" transform="matrix(1.00378 0 0 1.013853-5.68208-20.7254)" fill="#858585" /> 61 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="esTFm6Uueg21" width="30" height="30" viewBox="0 0 492.94 492.94" shape-rendering="geometricPrecision" text-rendering="geometricPrecision" project-id="f39061fa0d7140c0b843c54bc4fc263e" export-id="8175fbc5b63142aeb21ae9d901b96505" cached="false" fill="#00cea6"> 62 <g transform="matrix(1.449639 0 0 1.449639-132.842546-145.601744)"> 63 <rect width="82.32" height="82.32" rx="0" ry="0" transform="translate(123.22 294.99)" fill="currenColor" stroke-width="0" /> 64 <g> 65 <polygon points="342.61,268.16 316.74,293.64 261.59,238.49 287.45,212.63 342.61,268.16" opacity="0.6" fill="currenColor" stroke-width="0" /> 66 <polygon points="400.1,377.31 288.12,377.31 270.64,359.83 260.83,350.02 205.69,294.88 123.22,212.41 123.22,100.44 123.43,100.65 400.06,377.27 400.1,377.31" fill="currenColor" stroke-width="0" /> 67 </g> 68 <path d="M395.54,206.04c2.63,2.62,2.61,6.89-.03,9.49l-18.16,17.89-.21.21-34.52,34.53-11.88,11.33l3.92-3.74c4.36-4.16,4.45-11.1.18-15.37L197.92,123.48h114.16c.53,0,1.04.21,1.41.58l82.04,81.98h.01Z" fill="currenColor" stroke-width="0" /> 64 69 </g> 65 <path d="M199.680417,24.709473v75.9h76.5l-76.5-75.9Z" transform="matrix(1.075983 0 0 1.177621-4.45472-23.399398)" fill="#474747" stroke="#3f5787" stroke-width="0.6" />66 70 </svg> 67 <strong>R OMETHEMEFORM</strong>71 <strong>RTMForm</strong> 68 72 </div> 69 73 <div> … … 216 220 <div class="elementor-editor-header-iframe"> 217 221 <div class="rform-editor-header"> 218 <svg width="30" height="30" id="eohpCl3PVjW1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 300 300" shape-rendering="geometricPrecision" text-rendering="geometricPrecision"><g transform="matrix(.11326 0 0-.113381-20.251951 319.628716)"><path d="M372,2749c-46-14-109-80-122-128-7-27-10-384-8-1148l3-1108l24-38c13-21,42-50,64-65l41-27h1131h1131l41,27c22,15,51,44,64,65l24,38v812v813l-383,382-382,383-798,2c-485,1-810-2-830-8Zm1500-932c211-120,337-197,335-206-2-14-262-170-285-170-7-1-102,50-212,113l-200,115-200-115c-110-63-204-114-209-114-21,0-292,163-288,174c6,19,691,407,707,400c8-3,167-92,352-197Zm-151-319c82-46,148-86,149-89c0-3-12-11-27-18-26-12-20-16,183-131c115-66,210-123,212-128c3-9-277-172-296-172-7,0-107,54-222,120l-210,120-208-120c-115-66-215-120-223-120-24,1-284,155-286,170-2,10,125,88,380,232c210,120,386,218,391,218s76-37,157-82Z" transform="matrix(1.00378 0 0 1.013853-5.68208-20.7254)" fill="#f0f0f1"/></g><path d="M199.680417,24.709473v75.9h76.5l-76.5-75.9Z" transform="matrix(1.075983 0 0 1.177621-4.45472-23.399398)" fill="#a1a1a1" stroke="#3f5787" stroke-width="0.6"/></svg> 219 <strong>ROMETHEMEFORM</strong> 222 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="esTFm6Uueg21" width="30" height="30" viewBox="0 0 492.94 492.94" shape-rendering="geometricPrecision" text-rendering="geometricPrecision" project-id="f39061fa0d7140c0b843c54bc4fc263e" export-id="8175fbc5b63142aeb21ae9d901b96505" cached="false" fill="#00cea6"> 223 <g transform="matrix(1.449639 0 0 1.449639-132.842546-145.601744)"> 224 <rect width="82.32" height="82.32" rx="0" ry="0" transform="translate(123.22 294.99)" fill="currenColor" stroke-width="0" /> 225 <g> 226 <polygon points="342.61,268.16 316.74,293.64 261.59,238.49 287.45,212.63 342.61,268.16" opacity="0.6" fill="currenColor" stroke-width="0" /> 227 <polygon points="400.1,377.31 288.12,377.31 270.64,359.83 260.83,350.02 205.69,294.88 123.22,212.41 123.22,100.44 123.43,100.65 400.06,377.27 400.1,377.31" fill="currenColor" stroke-width="0" /> 228 </g> 229 <path d="M395.54,206.04c2.63,2.62,2.61,6.89-.03,9.49l-18.16,17.89-.21.21-34.52,34.53-11.88,11.33l3.92-3.74c4.36-4.16,4.45-11.1.18-15.37L197.92,123.48h114.16c.53,0,1.04.21,1.41.58l82.04,81.98h.01Z" fill="currenColor" stroke-width="0" /> 230 </g> 231 </svg> 232 <strong>RTMForm</strong> 220 233 </div> 221 234 <button id="rform-editform-button" data-control-uid="<?php echo esc_js($control_uid) ?>" class="rform-modal-btn elementor-modal-iframe-btn-control "><?php echo esc_html__('SAVE & CLOSE', 'romethemeform') ?></button> -
romethemeform/trunk/modules/form/form.php
r3234440 r3293841 67 67 } 68 68 } else { 69 if ($screen->id === 'romethemekit_page_themebuilder' ) {69 if ($screen->id === 'romethemekit_page_themebuilder' || str_contains($screen->id , 'rtmkit')) { 70 70 wp_enqueue_script('rform-js', $this->url . 'assets/js/form.js', ['jquery'], \RomeThemeForm::rform_version()); 71 71 wp_localize_script('rform-js', 'romethemeform_ajax_url', array( -
romethemeform/trunk/readme.txt
r3234440 r3293841 1 === R omethemeForm For Elementor ===1 === RTMForm Builder for Elementor === 2 2 Contributors: dickoandrean 3 3 Tags: addons, widget, elementor, form ,form builder , extension 4 4 Requires at least: 6.6 5 Tested up to: 6. 7.15 Tested up to: 6.8.1 6 6 Requires PHP: 7.4 7 Stable tag: 1.2. 17 Stable tag: 1.2.2 8 8 License: GPLv3 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html 10 10 11 R omethemeForm For Elementor Plugin is an Form Builder for Elementor, and Widget Ready to use.11 RTMForm For Elementor Plugin is an Form Builder for Elementor, and Widget Ready to use. 12 12 13 13 == Description == 14 R omethemeForm is a Contact Form Builder for Elementor. It's easy, fast, and also safe to create any fancy contact form in just minutes. Collect information, make your content interactive, and generate more conversions.14 RTMForm is a Contact Form Builder for Elementor. It's easy, fast, and also safe to create any fancy contact form in just minutes. Collect information, make your content interactive, and generate more conversions. 15 15 16 16 Features … … 19 19 • User Confirmation Email: A confirmation email can be sent when a user registers or enters their data to confirm their registration. 20 20 • Saved Entries in the Admin Panel: Save all the data that users give to fill up the form and display it in the admin panel. 21 • Export Entries as CSV: Export multiple data from your R omethemeForm that the user enters in a single CSV file and downloads in a spreadsheet.21 • Export Entries as CSV: Export multiple data from your RTMForm that the user enters in a single CSV file and downloads in a spreadsheet. 22 22 • Required Login to Submit the Form: This feature of the secure contact form, will show all the required fields to fill up the form by giving a simple red star icon and providing an error message if needed. 23 23 … … 38 38 1. Upload the plugin files to the `/wp-content/plugins/plugin-name` directory, or install the plugin through the WordPress plugins screen directly. 39 39 2. Activate the plugin through the \'Plugins\' screen in WordPress 40 3. All Settings will be found in the Admin sidebar -> R omethemeForm40 3. All Settings will be found in the Admin sidebar -> RTMForm 41 41 4. (Make your instructions match the desired user flow for activating and installing your plugin. Include any steps that might be needed for explanatory purposes) 42 42 … … 47 47 == Frequently Asked Questions == 48 48 49 = How to use R omethemeForm for Elementor? =49 = How to use RTMForm for Elementor? = 50 50 51 Login your WordPress dashboard, From the left menu click the R omethemeForm icon.51 Login your WordPress dashboard, From the left menu click the RTMForm icon. 52 52 53 53 == Changelog == 54 Version 1.2.2 55 * Fixed : Issue on Button can't click save & editing in the "Form" theme builder. 56 * Improved : Added background and border controls for the icon in the "Submit Button" widget 57 54 58 Version 1.2.1 55 59 * Update Phone Widget … … 99 103 100 104 Version : 1.0.0 101 * Initial version of R omethemeForm for Elementor Plugin105 * Initial version of RTMForm for Elementor Plugin -
romethemeform/trunk/rometheme-form.php
r3234440 r3293841 2 2 3 3 /** 4 * Plugin Name: R omethemeForm4 * Plugin Name: RTMForm Builder for Elementor 5 5 * Description: The Advanced Form Builder for Elementor 6 * Version: 1.2. 16 * Version: 1.2.2 7 7 * Author: Rometheme 8 8 * Author URI: https://rometheme.net/ … … 79 79 static function rform_version() 80 80 { 81 return '1.2. 1';81 return '1.2.2'; 82 82 } 83 83 -
romethemeform/trunk/widgets/assets/css/rform-button.css
r2869144 r3293841 4 4 } 5 5 6 .rform-button-submit{6 button.rform-button-submit{ 7 7 position: relative; 8 8 transition: all 1s; 9 display: flex; 10 justify-content: center; 11 align-items: center; 12 background-color: #00cea6; 13 padding: 0.6rem; 14 cursor: pointer; 15 border: unset; 9 16 } 10 17 … … 12 19 width: 100% !important; 13 20 } 21 22 .rform-btn-icon { 23 display: block !important; 24 } 25 26 svg.rform-btn-icon { 27 width: 20px; 28 height: 20px; 29 } 30 31 i.rform-btn-icon { 32 font-size: 20px; 33 } 34 35 .rform-btn-icon-container { 36 aspect-ratio: 1 / 1 ; 37 transition: all 0.5s; 38 } -
romethemeform/trunk/widgets/assets/css/rform-checkbox.css
r2924626 r3293841 11 11 display: flex; 12 12 flex-direction: row; 13 flex-wrap: wrap; 13 14 } 14 15 -
romethemeform/trunk/widgets/assets/css/spinner-loading.css
r2869144 r3293841 5 5 border: 3px solid rgba(255, 255, 255, .3); 6 6 border-radius: 50%; 7 border-top-color: #fff;7 border-top-color: currentColor; 8 8 animation: spin 1s ease-in-out infinite; 9 9 -webkit-animation: spin 1s ease-in-out infinite; … … 19 19 justify-content: center; 20 20 align-items: center; 21 background-color: var(--button--color-background);21 background-color: #00cea6; 22 22 border-radius: var(--button--border-radius); 23 23 } -
romethemeform/trunk/widgets/assets/js/rform.js
r3090708 r3293841 1 1 jQuery(document).ready(($) => { 2 $('.rform-button-submit'). click(function (event) {2 $('.rform-button-submit').on('click' , function (event) { 3 3 event.preventDefault(); 4 4 var form = $(this).closest("form"); … … 19 19 20 20 }); 21 if (form .get(0).checkValidity()) {21 if (form[0].checkValidity()) { 22 22 if (form.find("[aria-invalid= true]").length == 0) { 23 23 // console.log('Form Valid'); -
romethemeform/trunk/widgets/rform-button-submit.php
r3234440 r3293841 126 126 'type' => \Elementor\Controls_Manager::SELECT, 127 127 'options' => [ 128 ' before' => esc_html__('Before', 'romethemeform'),129 ' after' => esc_html__('After', 'romethemeform'),128 'row' => esc_html__('Before', 'romethemeform'), 129 'row-reverse' => esc_html__('After', 'romethemeform'), 130 130 ], 131 'default' => 'before', 131 'default' => 'row', 132 'selectors' => [ 133 '{{WRAPPER}} .rform-button-submit' => 'flex-direction: {{VALUE}}' 134 ] 135 132 136 ]); 133 137 … … 297 301 298 302 $this->start_controls_section('icon_style', ['label' => esc_html__('Icon', 'romethemeform'), 'tab' => \Elementor\Controls_Manager::TAB_STYLE]); 299 $this->add_control('icon_color', [ 300 'label' => esc_html__('Icon Color', 'romethemeform'), 301 'type' => \Elementor\Controls_Manager::COLOR, 302 'selectors' => [ 303 '{{WRAPPER}} .rform-btn-icon' => 'color:{{VALUE}}' 304 ] 305 ]); 303 304 $this->add_responsive_control( 305 'icon_spacing', 306 [ 307 'label' => esc_html__('Icon Spacing', 'romethemeform'), 308 'type' => \Elementor\Controls_Manager::SLIDER, 309 'size_units' => ['px', 'em', 'rem'], 310 'range' => [ 311 'px' => [ 312 'min' => 0, 313 'max' => 100, 314 'step' => 1, 315 ], 316 'em' => [ 317 'min' => 0, 318 'max' => 50, 319 ], 320 'rem' => [ 321 'min' => 0, 322 'max' => 50, 323 ], 324 ], 325 'selectors' => [ 326 '{{WRAPPER}} .rform-button-submit' => 'gap: {{SIZE}}{{UNIT}};', 327 ] 328 ] 329 ); 306 330 307 331 $this->add_responsive_control( … … 327 351 ], 328 352 'selectors' => [ 329 '{{WRAPPER}} .rform-btn-icon' => 'font-size: {{SIZE}}{{UNIT}};', 330 ], 331 ] 332 ); 333 334 $this->add_responsive_control( 335 'padding_left', 336 [ 337 'label' => esc_html__('Padding Left', 'romethemeform'), 353 '{{WRAPPER}} i.rform-btn-icon' => 'font-size: {{SIZE}}{{UNIT}};', 354 '{{WRAPPER}} svg.rform-btn-icon' => 'width: {{SIZE}}{{UNIT}}; height : {{SIZE}}{{UNIT}};', 355 ], 356 ] 357 ); 358 359 $this->add_responsive_control( 360 'icon_padding', 361 [ 362 'label' => esc_html__('Padding', 'romethemeform'), 338 363 'type' => \Elementor\Controls_Manager::SLIDER, 339 364 'size_units' => ['px', 'em', 'rem'], … … 354 379 ], 355 380 'selectors' => [ 356 '{{WRAPPER}} .rform-btn-icon' => 'padding-left: {{SIZE}}{{UNIT}};', 357 ], 358 'condition' => [ 359 'icon_position' => 'after' 360 ] 361 ] 362 ); 363 364 $this->add_responsive_control( 365 'padding_right', 366 [ 367 'label' => esc_html__('Padding Right', 'romethemeform'), 368 'type' => \Elementor\Controls_Manager::SLIDER, 369 'size_units' => ['px', 'em', 'rem'], 370 'range' => [ 371 'px' => [ 372 'min' => 0, 373 'max' => 100, 374 'step' => 1, 375 ], 376 'em' => [ 377 'min' => 0, 378 'max' => 50, 379 ], 380 'rem' => [ 381 'min' => 0, 382 'max' => 50, 383 ], 384 ], 385 'selectors' => [ 386 '{{WRAPPER}} .rform-btn-icon' => 'padding-right: {{SIZE}}{{UNIT}};', 387 ], 388 'condition' => [ 389 'icon_position' => 'before' 390 ] 391 ] 392 ); 393 394 395 $this->add_responsive_control( 396 'vertical_align', 397 [ 398 'label' => esc_html__('Vertical Align', 'romethemeform'), 399 'type' => \Elementor\Controls_Manager::SLIDER, 400 'size_units' => ['px', 'em', 'rem'], 401 'range' => [ 402 'px' => [ 403 'min' => -20, 404 'max' => 20, 405 'step' => 1, 406 ], 407 'em' => [ 408 'min' => -5, 409 'max' => 5, 410 ], 411 'rem' => [ 412 'min' => -5, 413 'max' => 5, 414 ], 415 ], 416 'selectors' => [ 417 '{{WRAPPER}} .rform-btn-icon' => 'transform: translateY({{SIZE}}{{UNIT}});', 418 '{{WRAPPER}} .rform-btn-icon' => '-webkit-transform: translateY({{SIZE}}{{UNIT}});', 419 ], 420 ] 421 ); 381 '{{WRAPPER}} .rform-btn-icon-container' => 'padding: {{SIZE}}{{UNIT}};', 382 ], 383 ] 384 ); 385 386 $this->add_control( 387 'icon_radius', 388 [ 389 'label' => esc_html__('Border Radius', 'textdomain'), 390 'type' => \Elementor\Controls_Manager::DIMENSIONS, 391 'size_units' => ['px', '%', 'em', 'rem', 'custom'], 392 'selectors' => [ 393 '{{WRAPPER}} .rform-btn-icon-container' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', 394 ], 395 ] 396 ); 397 398 $this->start_controls_tabs('icon_tabs'); 399 400 $this->start_controls_tab('icon_tab_normal', ['label' => esc_html('Normal')]); 401 402 $this->add_control('icon_color', [ 403 'label' => esc_html__('Icon Color', 'romethemeform'), 404 'type' => \Elementor\Controls_Manager::COLOR, 405 'selectors' => [ 406 '{{WRAPPER}} i.rform-btn-icon' => 'color:{{VALUE}}', 407 '{{WRAPPER}} svg.rform-btn-icon' => 'fill:{{VALUE}}' 408 ] 409 ]); 410 411 $this->add_group_control( 412 \Elementor\Group_Control_Background::get_type(), 413 [ 414 'name' => 'icon_background_normal', 415 'types' => [ 'classic', 'gradient'], 416 'selector' => '{{WRAPPER}} .rform-btn-icon-container', 417 'exclude' => ['image'] 418 ] 419 ); 420 421 $this->add_group_control( 422 \Elementor\Group_Control_Border::get_type(), 423 [ 424 'name' => 'icon_border_normal', 425 'selector' => '{{WRAPPER}} .rform-btn-icon-container', 426 ] 427 ); 428 429 $this->end_controls_tab(); 430 431 $this->start_controls_tab('icon_tab_hover', ['label' => esc_html('Hover')]); 432 433 $this->add_control('icon_color_hover', [ 434 'label' => esc_html__('Icon Color', 'romethemeform'), 435 'type' => \Elementor\Controls_Manager::COLOR, 436 'selectors' => [ 437 '{{WRAPPER}} .rform-button-submit:hover i.rform-btn-icon' => 'color:{{VALUE}}', 438 '{{WRAPPER}} .rform-button-submit:hover svg.rform-btn-icon' => 'fill:{{VALUE}}' 439 ] 440 ]); 441 442 $this->add_group_control( 443 \Elementor\Group_Control_Background::get_type(), 444 [ 445 'name' => 'icon_background_hover', 446 'types' => [ 'classic', 'gradient' ], 447 'selector' => '{{WRAPPER}} .rform-button-submit:hover .rform-btn-icon-container', 448 'exclude' => ['image'] 449 ] 450 ); 451 452 $this->add_group_control( 453 \Elementor\Group_Control_Border::get_type(), 454 [ 455 'name' => 'icon_border_hover', 456 'selector' => '{{WRAPPER}} .rform-button-submit:hover .rform-btn-icon-container', 457 ] 458 ); 459 460 $this->end_controls_tab(); 461 462 $this->end_controls_tabs(); 422 463 423 464 $this->end_controls_section(); … … 431 472 <div class="rform-button-container"> 432 473 <button class="rform-button-submit <?php echo ($settings['btn_fullwidth'] === 'yes') ? 'rform-btn-fullwidth' : '' ?>" type="button" id="rform-button-submit"> 433 <?php if ($settings['icon_position'] == 'before') : 474 <div class="rform-btn-icon-container"> 475 <?php 434 476 \Elementor\Icons_Manager::render_icon($settings['btn_icon'], ['aria-hidden' => 'true', 'class' => 'rform-btn-icon']); 435 endif; ?> 477 ?> 478 </div> 436 479 <?php echo esc_html__($settings['button_text']); ?> 437 <?php if ($settings['icon_position'] == 'after') :438 \Elementor\Icons_Manager::render_icon($settings['btn_icon'], ['aria-hidden' => 'true', 'class' => 'rform-btn-icon']);439 endif; ?>440 480 <div class="loading"> 441 481 <div id="loading"></div> -
romethemeform/trunk/widgets/rform-input-number.php
r3234440 r3293841 514 514 $min_length = $settings['min_length']; 515 515 $max_length = $settings['max_length']; 516 $validation_type = $settings['validation_type'];517 516 $label_text = $settings['label_text']; 518 517 … … 526 525 </label> 527 526 <?php endif; ?> 528 <input name="<?php echo esc_attr($settings['name_input']) ?>" placeholder="<?php echo esc_attr($settings['placeholder_input']) ?>" class="rform-input-number" id="rform-input-number-<?php echo esc_attr($this->get_id_int()); ?>" type="number" onblur="validate_input( '<?php echo esc_js('rform-input-number-') ?>' , '<?php echo esc_js('rform-input-err-') ?>' ,'<?php echo esc_js($this->get_id_int()); ?>')" aria-invalid=false data-val="<?php echo esc_attr($validation_type) ?>"<?php if ($settings['max_length']) : ?> max="<?php echo esc_attr($max_length); ?>" <?php endif; ?> <?php if ($settings['min_length']) : ?> min="<?php echo esc_attr($min_length) ?>" <?php endif; ?> <?php echo ('yes' === $settings['required_input']) ? esc_attr('required') : '' ?>>527 <input name="<?php echo esc_attr($settings['name_input']) ?>" placeholder="<?php echo esc_attr($settings['placeholder_input']) ?>" class="rform-input-number" id="rform-input-number-<?php echo esc_attr($this->get_id_int()); ?>" type="number" onblur="validate_input( '<?php echo esc_js('rform-input-number-') ?>' , '<?php echo esc_js('rform-input-err-') ?>' ,'<?php echo esc_js($this->get_id_int()); ?>')" aria-invalid=false <?php if ($settings['max_length']) : ?> max="<?php echo esc_attr($max_length); ?>" <?php endif; ?> <?php if ($settings['min_length']) : ?> min="<?php echo esc_attr($min_length) ?>" <?php endif; ?> <?php echo ('yes' === $settings['required_input']) ? esc_attr('required') : '' ?>> 529 528 </div> 530 529 <span role="alert" class="rform-error" id="rform-input-err-<?php echo $this->get_id_int(); ?>"><?php echo esc_html__($settings['warning_message'], 'romethemeform') ?></span> -
romethemeform/trunk/widgets/rtform-date.php
r3142603 r3293841 536 536 </label> 537 537 <?php endif; ?> 538 <input name="<?php echo esc_attr($settings['name_input']) ?>" placeholder="<?php echo esc_attr($settings['placeholder_input']) ?>"class="rform-input" id="rform-input-text-<?php echo esc_attr($this->get_id_int()); ?>" type="date" dateformat="d-m-Y" onblur="validate_input( '<?php echo esc_js('rform-input-text-') ?>' , '<?php echo esc_js('rform-input-err-') ?>' ,'<?php echo esc_js($this->get_id_int()); ?>')" aria-invalid=false data-val="<?php echo esc_attr($validation_type) ?>" <?php if ($settings['max_length']) : ?> data-val-maxLength="<?php echo esc_attr($max_length); ?>" <?php endif; ?> <?php if ($settings['min_length']) : ?> data-val-minLength="<?php echo esc_attr($min_length) ?>" <?php endif; ?> <?php echo ('yes' === $settings['required_input']) ? esc_attr('required') : '' ?>>538 <input name="<?php echo esc_attr($settings['name_input']) ?>" class="rform-input" id="rform-input-text-<?php echo esc_attr($this->get_id_int()); ?>" type="date" dateformat="d-m-Y" onblur="validate_input( '<?php echo esc_js('rform-input-text-') ?>' , '<?php echo esc_js('rform-input-err-') ?>' ,'<?php echo esc_js($this->get_id_int()); ?>')" aria-invalid=false data-val="<?php echo esc_attr($validation_type) ?>" <?php if ($settings['max_length']) : ?> data-val-maxLength="<?php echo esc_attr($max_length); ?>" <?php endif; ?> <?php if ($settings['min_length']) : ?> data-val-minLength="<?php echo esc_attr($min_length) ?>" <?php endif; ?> <?php echo ('yes' === $settings['required_input']) ? esc_attr('required') : '' ?>> 539 539 </div> 540 540 <span role="alert" class="rform-error" id="rform-input-err-<?php echo $this->get_id_int(); ?>"><?php echo esc_html__($settings['warning_message'], 'romethemeform') ?></span> -
romethemeform/trunk/widgets/rtform-time.php
r3142603 r3293841 535 535 </label> 536 536 <?php endif; ?> 537 <input name="<?php echo esc_attr($settings['name_input']) ?>" placeholder="<?php echo esc_attr($settings['placeholder_input']) ?>"class="rform-input" id="rform-input-text-<?php echo esc_attr($this->get_id_int()); ?>" type="time" dateformat="d-m-Y" onblur="validate_input( '<?php echo esc_js('rform-input-text-') ?>' , '<?php echo esc_js('rform-input-err-') ?>' ,'<?php echo esc_js($this->get_id_int()); ?>')" aria-invalid=false data-val="<?php echo esc_attr($validation_type) ?>" <?php if ($settings['max_length']) : ?> data-val-maxLength="<?php echo esc_attr($max_length); ?>" <?php endif; ?> <?php if ($settings['min_length']) : ?> data-val-minLength="<?php echo esc_attr($min_length) ?>" <?php endif; ?> <?php echo ('yes' === $settings['required_input']) ? esc_attr('required') : '' ?>>537 <input name="<?php echo esc_attr($settings['name_input']) ?>" class="rform-input" id="rform-input-text-<?php echo esc_attr($this->get_id_int()); ?>" type="time" dateformat="d-m-Y" onblur="validate_input( '<?php echo esc_js('rform-input-text-') ?>' , '<?php echo esc_js('rform-input-err-') ?>' ,'<?php echo esc_js($this->get_id_int()); ?>')" aria-invalid=false data-val="<?php echo esc_attr($validation_type) ?>" <?php if ($settings['max_length']) : ?> data-val-maxLength="<?php echo esc_attr($max_length); ?>" <?php endif; ?> <?php if ($settings['min_length']) : ?> data-val-minLength="<?php echo esc_attr($min_length) ?>" <?php endif; ?> <?php echo ('yes' === $settings['required_input']) ? esc_attr('required') : '' ?>> 538 538 </div> 539 539 <span role="alert" class="rform-error" id="rform-input-err-<?php echo $this->get_id_int(); ?>"><?php echo esc_html__($settings['warning_message'], 'romethemeform') ?></span> -
romethemeform/trunk/widgets/rtform.php
r3142603 r3293841 9 9 public function get_title() 10 10 { 11 return 'R Form';11 return 'RTMForm'; 12 12 } 13 13 public function get_icon()
Note: See TracChangeset
for help on using the changeset viewer.