Skip to content

Commit de7cdb1

Browse files
committed
v7.5.0
1 parent 89a1a69 commit de7cdb1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+860
-2105
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.4.9' );
4+
define( 'UIFORM_VERSION', '7.5.0' );
55
define( 'ZIGAFORM_F_LITE', 1 );
66
define( 'UIFORM_DEBUG', 0 );
77
define( 'UIFORM_DEMO', 0 );

application/helpers/hooking_helper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ function remove_filter( $name, $callback ) {
4141
}
4242
}
4343

44-
if ( ! function_exists( 'do_filter' ) ) {
45-
function do_filter( $name, $value , ...$args) {
46-
return get_hooking_instance()->do_filter( $name, $value, $args );
44+
if ( ! function_exists( 'apply_filters' ) ) {
45+
function apply_filters( $name, $value , ...$args) {
46+
return get_hooking_instance()->apply_filters( $name, $value, $args );
4747
}
4848
}
4949

application/libraries/Hooking.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,17 +135,17 @@ public function remove_filter( $name, $callback ) {
135135
}
136136

137137
/**
138-
* Hooking::do_filter()
138+
* Hooking::apply_filters()
139139
*
140140
* Calls the actual filter (usually placed in a view)
141141
* e.g.
142-
* <h1><?php echo do_filter('welcome_title', 'Welcome to Codeigniter'); ?></h1>
142+
* <h1><?php echo apply_filters('welcome_title', 'Welcome to Codeigniter'); ?></h1>
143143
*
144144
* @param string $name The name of the action to execute
145145
* @param array $args The list of parameters to pass on to the action (optional)
146146
* @return string
147147
*/
148-
public function do_filter( $name, $value, $args = array() ) {
148+
public function apply_filters( $name, $value, $args = array() ) {
149149
$result = $value;
150150
if ( isset( $this->_filters[ $name ] ) && is_array( $this->_filters[ $name ] ) ) {
151151
foreach ( $this->_filters[ $name ] as $filter ) {

application/modules/formbuilder/controllers/fields.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function ajax_dev_genfieldopts()
7070
{
7171

7272
$data_render = array();
73-
$this->back_cache_tab_more = do_filter('zgfm_back_field_opt_more', array());
73+
$this->back_cache_tab_more = apply_filters('zgfm_back_field_opt_more', array());
7474
$array = array( 1, 2, 3, 4, 5, 6, 8, 9, 10, 11 );
7575
foreach ( $array as $type) {
7676
switch ( intval($type)) {
@@ -291,7 +291,7 @@ public function load_field_options($type, $id, $block = null)
291291
if (intval(get_option('zgfm_fields_fastload', 0)) === 0) {
292292
$data['modules_field_more'] = $this->back_cache_tab_more;
293293
} else {
294-
$data['modules_field_more'] = do_filter('zgfm_back_field_opt_more', '');
294+
$data['modules_field_more'] = apply_filters('zgfm_back_field_opt_more', '');
295295
}
296296
$data['obj_sfm'] = Uiform_Form_Helper::get_font_library();
297297
$output .= $this->load->view('formbuilder/fields/modal/field_opt_text', $data, true);

application/modules/formbuilder/controllers/forms.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,7 +1353,7 @@ public function generate_form_html_multistep($form_id = null)
13531353
$str_output_2 .= $this->generate_form_css($form_id);
13541354

13551355
//generate css hook
1356-
$str_output_2 .= do_filter('zgfm_front_ms_aditional_css', $form_id);
1356+
$str_output_2 .= apply_filters('zgfm_front_ms_aditional_css', $form_id);
13571357

13581358
$return = array();
13591359
$return['output_html'] = $this->generate_form_container_multistep($form_id);
@@ -1373,8 +1373,8 @@ public function generate_form_container_multistep($id)
13731373
$data['onsubm'] = $this->current_data_onsubm;
13741374
$data['main'] = $this->current_data_main;
13751375
$data['connections'] = $this->current_data_conn;
1376-
$data['outertop'] = do_filter('zgfm_front_ms_form_outertop', '');
1377-
$data['innertop'] = do_filter('zgfm_front_ms_form_innertop', '');
1376+
$data['outertop'] = apply_filters('zgfm_front_ms_form_outertop', '');
1377+
$data['innertop'] = apply_filters('zgfm_front_ms_form_innertop', '');
13781378
return $this->load->view('formbuilder/forms/formhtml_form_parent', $data, true);
13791379
}
13801380

@@ -1609,7 +1609,7 @@ public function ajax_save_childform()
16091609

16101610

16111611
// addon data
1612-
$fmb_addon_data = do_filter('zgfm_back_addon_obtain_data', [], $data_form->fmb_parent);
1612+
$fmb_addon_data = apply_filters('zgfm_back_addon_obtain_data', [], $data_form->fmb_parent);
16131613

16141614
// all data fields
16151615
$fmb_data['addons'] = $fmb_addon_data;
@@ -1626,7 +1626,7 @@ public function ajax_save_childform()
16261626
);
16271627

16281628
// process addons
1629-
$fmb_data = do_filter('zgfm_back_animtocore', $fmb_data, $json['id']);
1629+
$fmb_data = apply_filters('zgfm_back_animtocore', $fmb_data, $json['id']);
16301630

16311631
// all data fields
16321632
//$this->current_data_addon = $fmb_data['addons'];
@@ -1787,7 +1787,7 @@ public function ajax_save_form()
17871787
);
17881788

17891789
// process addons
1790-
$fmb_data = do_filter('zgfm_saveForm_store', $fmb_data, $json['id']);
1790+
$fmb_data = apply_filters('zgfm_saveForm_store', $fmb_data, $json['id']);
17911791

17921792
// all data fields
17931793
$this->current_data_addon = $fmb_data['addons'];
@@ -1942,7 +1942,7 @@ protected function generate_form_getField($child_field)
19421942
$data['addon_extraclass'] = '';
19431943

19441944
// process addons
1945-
$data = do_filter('zgfm_field_addon_extraclass', $data);
1945+
$data = apply_filters('zgfm_field_addon_extraclass', $data);
19461946
// process addons
19471947
/*if (!empty(self::$_addons_actions)) {
19481948
foreach (self::$_addons_actions as $zkey => $zvalue) {

application/modules/formbuilder/controllers/frontend.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public function generate_cache($form_id)
200200
$form_variables['_uifmvar']['is_dev'] = 0;
201201
$form_variables['onload_scroll'] = $onload_scroll;
202202
$form_variables['preload_noconflict'] = $preload_noconflict;
203-
$enqueue_scripts = do_filter('zgfm_front_enqueue_scripts', array());
203+
$enqueue_scripts = apply_filters('zgfm_front_enqueue_scripts', array());
204204

205205
$data_scripts = array();
206206
$data_styles = array();
@@ -312,7 +312,7 @@ public function getform()
312312
$form_variables['_uifmvar']['is_dev'] = 0;
313313
$form_variables['onload_scroll'] = $onload_scroll;
314314
$form_variables['preload_noconflict'] = $preload_noconflict;
315-
$form_variables['enqueue_scripts'] = do_filter('zgfm_front_enqueue_scripts', array());
315+
$form_variables['enqueue_scripts'] = apply_filters('zgfm_front_enqueue_scripts', array());
316316
$form_variables['ajaxurl'] = '';
317317
$form_variables['uifm_baseurl'] = base_url();
318318
$form_variables['uifm_siteurl'] = site_url();

application/modules/formbuilder/views/fields/render_front/type_appprep.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
exit('No direct script access allowed');
1616
}
1717
ob_start();
18-
$nameField = do_filter('uifm_ms_render_field_front', "uiform_fields[".$id."]", $id, $type);
18+
$nameField = apply_filters('uifm_ms_render_field_front', "uiform_fields[".$id."]", $id, $type);
1919
?>
2020
<div class="sfdc-input-group">
2121
<div class="sfdc-input-group-addon rockfm-inp-preptxt"><?php echo urldecode($input['prepe_txt']); ?></div>

application/modules/formbuilder/views/fields/render_front/type_apptext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
exit('No direct script access allowed');
1616
}
1717
ob_start();
18-
$nameField = do_filter('uifm_ms_render_field_front', "uiform_fields[".$id."]", $id, $type);
18+
$nameField = apply_filters('uifm_ms_render_field_front', "uiform_fields[".$id."]", $id, $type);
1919
?>
2020
<div class="sfdc-input-group">
2121
<input placeholder="<?php echo htmlentities($input['placeholder'], ENT_QUOTES, 'UTF-8'); ?>"

application/modules/formbuilder/views/fields/render_front/type_checkbox.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class="rockfm-input2-wrap">
3636
usort($input2['options'], ['Uiform_Form_Helper', 'compareByOrder']);
3737
foreach ( $input2['options'] as $key => $value) {
3838
$checked = '';
39-
$nameField = do_filter('uifm_ms_render_field_front', "uiform_fields[".$id."][".$value['id']."]", $id, $type, $value['id']);
39+
$nameField = apply_filters('uifm_ms_render_field_front', "uiform_fields[".$id."][".$value['id']."]", $id, $type, $value['id']);
4040
if ( isset($value['checked']) && intval($value['checked']) === 1) {
4141
$checked = 'checked="checked"';
4242
}

application/modules/formbuilder/views/fields/render_front/type_colorpicker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
exit('No direct script access allowed');
1616
}
1717
ob_start();
18-
$nameField = do_filter('uifm_ms_render_field_front', "uiform_fields[".$id."]", $id, $type);
18+
$nameField = apply_filters('uifm_ms_render_field_front', "uiform_fields[".$id."]", $id, $type);
1919
?>
2020
<div class="sfdc-input-group rockfm-colorpicker-wrap"
2121
data-uifm-tabnum="<?php echo $tab_num; ?>"

0 commit comments

Comments
 (0)