Skip to content

Commit 6bb2502

Browse files
committed
v7.6.4
1 parent 8a8d7b7 commit 6bb2502

28 files changed

+1023
-884
lines changed

application/config/constants.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php if ( ! defined( 'BASEPATH' ) ) {
22
exit( 'No direct script access allowed' );}
33

4-
define( 'UIFORM_VERSION', '7.5.9' );
4+
define( 'UIFORM_VERSION', '7.6.4' );
55
define( 'ZIGAFORM_F_LITE', 1 );
66
define( 'UIFORM_DEBUG', 0 );
77
define( 'UIFORM_DEMO', 0 );

application/modules/formbuilder/controllers/frontend.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,7 @@ public function shortcode_uifm_form_var($atts)
685685
'atr2' => '',
686686
'atr3' => '',
687687
'atr4' => '',
688+
'hide_fields' => '',
688689
'opt' => '', // quick option
689690
),
690691
$atts
@@ -708,6 +709,7 @@ public function shortcode_uifm_form_var($atts)
708709
$data2 = array();
709710
$data2['data'] = $tmp_data;
710711
$data2['show_only_value'] = ($vars['atr2'] === 'show_only_value')?'yes':'no';
712+
$data2['hide_fields_ids'] = !empty($vars['hide_fields'])? explode(',', $vars['hide_fields']):[];
711713
$output = $this->load->view('formbuilder/frontend/mail_generate_fields', $data2, true);
712714
break;
713715
case 'rec_url_fm':

application/modules/formbuilder/views/fields/modal/settings_form_more.php

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,40 @@ class="sfdc-form-control">
254254
<div class="space5"></div>
255255
</div>
256256
</fieldset>
257+
<fieldset >
258+
<legend><?php echo __('For summary shortcode', 'FRocket_admin'); ?> </legend>
259+
<div class="zgpb-modal-body-tab-inner" >
260+
261+
<div class="sfdc-row ">
262+
<div class="sfdc-col-md-12">
263+
<div class="sfdc-form-group">
264+
<div class="sfdc-col-md-6">
265+
<label for=""><?php echo __('ID', 'FRocket_admin'); ?></label>
266+
<a data-original-title="<?php echo __('It can be used for summary shortcode in backend', 'FRocket_admin'); ?>" data-placement="right" data-toggle="tooltip" href="javascript:void(0);"><span class="fa fa-question-circle"></span></a>
267+
</div>
268+
<div class="sfdc-col-md-6 copy-field-wrapper">
269+
<input
270+
class="sfdc-form-control copy-target"
271+
value="<?php echo esc_attr( $field_id ); ?>"
272+
readonly
273+
onclick="rocketform.copyToClipboard(this)"
274+
/>
275+
276+
<i class="fa fa-clipboard copy-btn"
277+
title="<?php esc_attr_e( 'Copy to clipboard', 'FRocket_admin' ); ?>"
278+
onclick="rocketform.copyToClipboard(jQuery(this).siblings('.copy-target'))">
279+
</i>
280+
281+
<div class="copy-feedback">Copied!</div>
282+
</div>
283+
284+
</div>
285+
</div>
286+
</div>
287+
288+
<div class="space5"></div>
289+
</div>
290+
</fieldset>
257291
<!-- load modules -->
258292
<?php echo $modules_field_more; ?>
259293

application/modules/formbuilder/views/forms/list_forms_table.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
id="guidetour-flist-shortcode"
3838
data-intro="<?php echo __('Copy and paste the shortcode to your desired page', 'FRocket_admin'); ?>"
3939
><?php echo __('Shortcode', 'FRocket_admin'); ?></th>
40+
<th><?php echo __('ID', 'FRocket_admin'); ?></th>
4041
<th><?php echo __('Created', 'FRocket_admin'); ?></th>
4142
<th><?php echo __('Status', 'FRocket_admin'); ?></th>
4243
<th><?php echo __('Options', 'FRocket_admin'); ?></th>
@@ -59,6 +60,7 @@ class="uiform-listform-chk-id"
5960
<?php echo __('Get shortcode', 'FRocket_admin'); ?></a>
6061

6162
</td>
63+
<td><?php echo $row->fmb_id; ?></td>
6264
<td><?php echo $row->created_date; ?></td>
6365
<td>
6466
<?php

application/modules/formbuilder/views/forms/settings_form_email.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,14 @@ class="sfdc-col-sm-12"
560560

561561
<p><?php echo __('it shows without units and total', 'FRocket_admin'); ?></p>
562562
<textarea style="width:100%;" onclick="this.select();">[uifm_var opt="rec_summ" atr2="show_only_value" atr3="hide_total" ]</textarea>
563-
563+
<p>
564+
<?php echo __(
565+
'To hide specific fields in the summary shortcode, use their field IDs. For example, <code>uiytnx07yvp</code> is a field ID. You can find the field ID by editing the field, going to the "More" tab, and checking the bottom section labeled "For summary shortcode."
566+
You can hide multiple fields by separating their IDs with commas.',
567+
'FRocket_admin'
568+
); ?>
569+
</p>
570+
<textarea style="width:100%;" onclick="this.select();">[uifm_var opt="rec_summ" hide_fields="uiytnx07yvp,uiytnx07yvp"]</textarea>
564571
</td>
565572
</tr>
566573
<tr>

application/modules/formbuilder/views/frontend/mail_generate_fields.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
<?php
2323
if (!empty($data)) {
2424
foreach ($data as $key => $value) {
25+
26+
if( !empty($hide_fields_ids) && in_array($key, $hide_fields_ids, true) ){
27+
continue;
28+
}
29+
2530
if (!empty($value['input'])) {
2631
?>
2732

assets/backend/css/admin.debug.css

Lines changed: 59 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/backend/css/admin.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/backend/js/admin.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)