@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | 'fill' => '#4d4d4d', |
| 151 | 151 | 'orange' => '#f05a24', |
| 152 | 152 | ); |
| 153 | - $atts = array_merge( $defaults, $atts ); |
|
| 153 | + $atts = array_merge( $defaults, $atts ); |
|
| 154 | 154 | |
| 155 | 155 | return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 599.68 601.37" width="' . esc_attr( $atts['width'] ) . '" height="' . esc_attr( $atts['height'] ) . '"> |
| 156 | 156 | <path fill="' . esc_attr( $atts['orange'] ) . '" d="M289.6 384h140v76h-140z"/> |
@@ -346,7 +346,7 @@ discard block |
||
| 346 | 346 | * @return string |
| 347 | 347 | */ |
| 348 | 348 | public static function get_server_value( $value ) { |
| 349 | - return isset( $_SERVER[ $value ] ) ? wp_strip_all_tags( wp_unslash( $_SERVER[ $value ] ) ) : ''; |
|
| 349 | + return isset( $_SERVER[$value] ) ? wp_strip_all_tags( wp_unslash( $_SERVER[$value] ) ) : ''; |
|
| 350 | 350 | } |
| 351 | 351 | |
| 352 | 352 | /** |
@@ -369,7 +369,7 @@ discard block |
||
| 369 | 369 | ); |
| 370 | 370 | $ip = ''; |
| 371 | 371 | foreach ( $ip_options as $key ) { |
| 372 | - if ( ! isset( $_SERVER[ $key ] ) ) { |
|
| 372 | + if ( ! isset( $_SERVER[$key] ) ) { |
|
| 373 | 373 | continue; |
| 374 | 374 | } |
| 375 | 375 | |
@@ -394,10 +394,10 @@ discard block |
||
| 394 | 394 | |
| 395 | 395 | if ( $src == 'get' ) { |
| 396 | 396 | // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized |
| 397 | - $value = isset( $_POST[ $param ] ) ? wp_unslash( $_POST[ $param ] ) : ( isset( $_GET[ $param ] ) ? wp_unslash( $_GET[ $param ] ) : $default ); |
|
| 398 | - if ( ! isset( $_POST[ $param ] ) && isset( $_GET[ $param ] ) && ! is_array( $value ) ) { |
|
| 397 | + $value = isset( $_POST[$param] ) ? wp_unslash( $_POST[$param] ) : ( isset( $_GET[$param] ) ? wp_unslash( $_GET[$param] ) : $default ); |
|
| 398 | + if ( ! isset( $_POST[$param] ) && isset( $_GET[$param] ) && ! is_array( $value ) ) { |
|
| 399 | 399 | // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized |
| 400 | - $value = htmlspecialchars_decode( wp_unslash( $_GET[ $param ] ) ); |
|
| 400 | + $value = htmlspecialchars_decode( wp_unslash( $_GET[$param] ) ); |
|
| 401 | 401 | } |
| 402 | 402 | self::sanitize_value( $sanitize, $value ); |
| 403 | 403 | } else { |
@@ -418,7 +418,7 @@ discard block |
||
| 418 | 418 | } |
| 419 | 419 | |
| 420 | 420 | $p = trim( $p, ']' ); |
| 421 | - $value = isset( $value[ $p ] ) ? $value[ $p ] : $default; |
|
| 421 | + $value = isset( $value[$p] ) ? $value[$p] : $default; |
|
| 422 | 422 | } |
| 423 | 423 | } |
| 424 | 424 | |
@@ -474,26 +474,26 @@ discard block |
||
| 474 | 474 | 'sanitize' => 'sanitize_text_field', |
| 475 | 475 | 'serialized' => false, |
| 476 | 476 | ); |
| 477 | - $args = wp_parse_args( $args, $defaults ); |
|
| 477 | + $args = wp_parse_args( $args, $defaults ); |
|
| 478 | 478 | |
| 479 | 479 | $value = $args['default']; |
| 480 | 480 | if ( $args['type'] == 'get' ) { |
| 481 | - if ( $_GET && isset( $_GET[ $args['param'] ] ) ) { |
|
| 481 | + if ( $_GET && isset( $_GET[$args['param']] ) ) { |
|
| 482 | 482 | // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized |
| 483 | - $value = wp_unslash( $_GET[ $args['param'] ] ); |
|
| 483 | + $value = wp_unslash( $_GET[$args['param']] ); |
|
| 484 | 484 | } |
| 485 | 485 | } elseif ( $args['type'] == 'post' ) { |
| 486 | - if ( isset( $_POST[ $args['param'] ] ) ) { |
|
| 486 | + if ( isset( $_POST[$args['param']] ) ) { |
|
| 487 | 487 | // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized |
| 488 | - $value = wp_unslash( $_POST[ $args['param'] ] ); |
|
| 488 | + $value = wp_unslash( $_POST[$args['param']] ); |
|
| 489 | 489 | if ( $args['serialized'] === true && is_serialized_string( $value ) && is_serialized( $value ) ) { |
| 490 | 490 | self::unserialize_or_decode( $value ); |
| 491 | 491 | } |
| 492 | 492 | } |
| 493 | 493 | } else { |
| 494 | - if ( isset( $_REQUEST[ $args['param'] ] ) ) { |
|
| 494 | + if ( isset( $_REQUEST[$args['param']] ) ) { |
|
| 495 | 495 | // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized |
| 496 | - $value = wp_unslash( $_REQUEST[ $args['param'] ] ); |
|
| 496 | + $value = wp_unslash( $_REQUEST[$args['param']] ); |
|
| 497 | 497 | } |
| 498 | 498 | } |
| 499 | 499 | |
@@ -525,7 +525,7 @@ discard block |
||
| 525 | 525 | if ( is_array( $value ) ) { |
| 526 | 526 | $temp_values = $value; |
| 527 | 527 | foreach ( $temp_values as $k => $v ) { |
| 528 | - self::sanitize_value( $sanitize, $value[ $k ] ); |
|
| 528 | + self::sanitize_value( $sanitize, $value[$k] ); |
|
| 529 | 529 | } |
| 530 | 530 | } else { |
| 531 | 531 | $value = call_user_func( $sanitize, $value ); |
@@ -536,8 +536,8 @@ discard block |
||
| 536 | 536 | public static function sanitize_request( $sanitize_method, &$values ) { |
| 537 | 537 | $temp_values = $values; |
| 538 | 538 | foreach ( $temp_values as $k => $val ) { |
| 539 | - if ( isset( $sanitize_method[ $k ] ) ) { |
|
| 540 | - $values[ $k ] = call_user_func( $sanitize_method[ $k ], $val ); |
|
| 539 | + if ( isset( $sanitize_method[$k] ) ) { |
|
| 540 | + $values[$k] = call_user_func( $sanitize_method[$k], $val ); |
|
| 541 | 541 | } |
| 542 | 542 | } |
| 543 | 543 | } |
@@ -560,7 +560,7 @@ discard block |
||
| 560 | 560 | if ( is_array( $value ) ) { |
| 561 | 561 | $temp_values = $value; |
| 562 | 562 | foreach ( $temp_values as $k => $v ) { |
| 563 | - self::decode_specialchars( $value[ $k ] ); |
|
| 563 | + self::decode_specialchars( $value[$k] ); |
|
| 564 | 564 | } |
| 565 | 565 | } else { |
| 566 | 566 | self::decode_amp( $value ); |
@@ -637,7 +637,7 @@ discard block |
||
| 637 | 637 | $allowed_html = $html; |
| 638 | 638 | } elseif ( ! empty( $allowed ) ) { |
| 639 | 639 | foreach ( (array) $allowed as $a ) { |
| 640 | - $allowed_html[ $a ] = isset( $html[ $a ] ) ? $html[ $a ] : array(); |
|
| 640 | + $allowed_html[$a] = isset( $html[$a] ) ? $html[$a] : array(); |
|
| 641 | 641 | } |
| 642 | 642 | } |
| 643 | 643 | |
@@ -794,8 +794,8 @@ discard block |
||
| 794 | 794 | } |
| 795 | 795 | |
| 796 | 796 | global $wp_query; |
| 797 | - if ( isset( $wp_query->query_vars[ $param ] ) ) { |
|
| 798 | - $value = $wp_query->query_vars[ $param ]; |
|
| 797 | + if ( isset( $wp_query->query_vars[$param] ) ) { |
|
| 798 | + $value = $wp_query->query_vars[$param]; |
|
| 799 | 799 | } |
| 800 | 800 | |
| 801 | 801 | return $value; |
@@ -962,7 +962,7 @@ discard block |
||
| 962 | 962 | 'new_file_path' => self::plugin_path() . '/js', |
| 963 | 963 | ) |
| 964 | 964 | ); |
| 965 | - $new_file = new FrmCreateFile( $file_atts ); |
|
| 965 | + $new_file = new FrmCreateFile( $file_atts ); |
|
| 966 | 966 | |
| 967 | 967 | $files = array( |
| 968 | 968 | self::plugin_path() . '/js/jquery/jquery.placeholder.min.js', |
@@ -1274,8 +1274,8 @@ discard block |
||
| 1274 | 1274 | return $error; |
| 1275 | 1275 | } |
| 1276 | 1276 | |
| 1277 | - $nonce_value = ( $_REQUEST && isset( $_REQUEST[ $nonce_name ] ) ) ? sanitize_text_field( wp_unslash( $_REQUEST[ $nonce_name ] ) ) : ''; |
|
| 1278 | - if ( $_REQUEST && ( ! isset( $_REQUEST[ $nonce_name ] ) || ! wp_verify_nonce( $nonce_value, $nonce ) ) ) { |
|
| 1277 | + $nonce_value = ( $_REQUEST && isset( $_REQUEST[$nonce_name] ) ) ? sanitize_text_field( wp_unslash( $_REQUEST[$nonce_name] ) ) : ''; |
|
| 1278 | + if ( $_REQUEST && ( ! isset( $_REQUEST[$nonce_name] ) || ! wp_verify_nonce( $nonce_value, $nonce ) ) ) { |
|
| 1279 | 1279 | $frm_settings = self::get_settings(); |
| 1280 | 1280 | $error = $frm_settings->admin_permission; |
| 1281 | 1281 | } |
@@ -1310,7 +1310,7 @@ discard block |
||
| 1310 | 1310 | } else { |
| 1311 | 1311 | foreach ( $value as $k => $v ) { |
| 1312 | 1312 | if ( ! is_array( $v ) ) { |
| 1313 | - $value[ $k ] = call_user_func( $original_function, $v ); |
|
| 1313 | + $value[$k] = call_user_func( $original_function, $v ); |
|
| 1314 | 1314 | } |
| 1315 | 1315 | } |
| 1316 | 1316 | } |
@@ -1335,7 +1335,7 @@ discard block |
||
| 1335 | 1335 | $return = array_merge( $return, self::array_flatten( $value, $keys ) ); |
| 1336 | 1336 | } else { |
| 1337 | 1337 | if ( $keys == 'keep' ) { |
| 1338 | - $return[ $key ] = $value; |
|
| 1338 | + $return[$key] = $value; |
|
| 1339 | 1339 | } else { |
| 1340 | 1340 | $return[] = $value; |
| 1341 | 1341 | } |
@@ -1399,11 +1399,11 @@ discard block |
||
| 1399 | 1399 | } |
| 1400 | 1400 | |
| 1401 | 1401 | $ver = $default; |
| 1402 | - if ( ! isset( $wp_scripts->registered[ $handle ] ) ) { |
|
| 1402 | + if ( ! isset( $wp_scripts->registered[$handle] ) ) { |
|
| 1403 | 1403 | return $ver; |
| 1404 | 1404 | } |
| 1405 | 1405 | |
| 1406 | - $query = $wp_scripts->registered[ $handle ]; |
|
| 1406 | + $query = $wp_scripts->registered[$handle]; |
|
| 1407 | 1407 | if ( is_object( $query ) && ! empty( $query->ver ) ) { |
| 1408 | 1408 | $ver = $query->ver; |
| 1409 | 1409 | } |
@@ -1526,7 +1526,7 @@ discard block |
||
| 1526 | 1526 | |
| 1527 | 1527 | foreach ( array( 'name', 'description' ) as $var ) { |
| 1528 | 1528 | $default_val = isset( $record->{$var} ) ? $record->{$var} : ''; |
| 1529 | - $values[ $var ] = self::get_param( $var, $default_val, 'get', 'wp_kses_post' ); |
|
| 1529 | + $values[$var] = self::get_param( $var, $default_val, 'get', 'wp_kses_post' ); |
|
| 1530 | 1530 | unset( $var, $default_val ); |
| 1531 | 1531 | } |
| 1532 | 1532 | |
@@ -1584,9 +1584,9 @@ discard block |
||
| 1584 | 1584 | } |
| 1585 | 1585 | } |
| 1586 | 1586 | |
| 1587 | - $field_type = isset( $post_values['field_options'][ 'type_' . $field->id ] ) ? $post_values['field_options'][ 'type_' . $field->id ] : $field->type; |
|
| 1588 | - if ( isset( $post_values['item_meta'][ $field->id ] ) ) { |
|
| 1589 | - $new_value = $post_values['item_meta'][ $field->id ]; |
|
| 1587 | + $field_type = isset( $post_values['field_options']['type_' . $field->id] ) ? $post_values['field_options']['type_' . $field->id] : $field->type; |
|
| 1588 | + if ( isset( $post_values['item_meta'][$field->id] ) ) { |
|
| 1589 | + $new_value = $post_values['item_meta'][$field->id]; |
|
| 1590 | 1590 | self::unserialize_or_decode( $new_value ); |
| 1591 | 1591 | } else { |
| 1592 | 1592 | $new_value = $meta_value; |
@@ -1607,7 +1607,7 @@ discard block |
||
| 1607 | 1607 | |
| 1608 | 1608 | $field_array = array_merge( (array) $field->field_options, $field_array ); |
| 1609 | 1609 | |
| 1610 | - $values['fields'][ $field->id ] = $field_array; |
|
| 1610 | + $values['fields'][$field->id] = $field_array; |
|
| 1611 | 1611 | } |
| 1612 | 1612 | |
| 1613 | 1613 | /** |
@@ -1654,11 +1654,11 @@ discard block |
||
| 1654 | 1654 | } |
| 1655 | 1655 | |
| 1656 | 1656 | foreach ( $form->options as $opt => $value ) { |
| 1657 | - if ( isset( $post_values[ $opt ] ) ) { |
|
| 1658 | - $values[ $opt ] = $post_values[ $opt ]; |
|
| 1659 | - self::unserialize_or_decode( $values[ $opt ] ); |
|
| 1657 | + if ( isset( $post_values[$opt] ) ) { |
|
| 1658 | + $values[$opt] = $post_values[$opt]; |
|
| 1659 | + self::unserialize_or_decode( $values[$opt] ); |
|
| 1660 | 1660 | } else { |
| 1661 | - $values[ $opt ] = $value; |
|
| 1661 | + $values[$opt] = $value; |
|
| 1662 | 1662 | } |
| 1663 | 1663 | } |
| 1664 | 1664 | |
@@ -1672,8 +1672,8 @@ discard block |
||
| 1672 | 1672 | $form_defaults = FrmFormsHelper::get_default_opts(); |
| 1673 | 1673 | |
| 1674 | 1674 | foreach ( $form_defaults as $opt => $default ) { |
| 1675 | - if ( ! isset( $values[ $opt ] ) || $values[ $opt ] == '' ) { |
|
| 1676 | - $values[ $opt ] = ( $post_values && isset( $post_values['options'][ $opt ] ) ) ? $post_values['options'][ $opt ] : $default; |
|
| 1675 | + if ( ! isset( $values[$opt] ) || $values[$opt] == '' ) { |
|
| 1676 | + $values[$opt] = ( $post_values && isset( $post_values['options'][$opt] ) ) ? $post_values['options'][$opt] : $default; |
|
| 1677 | 1677 | } |
| 1678 | 1678 | |
| 1679 | 1679 | unset( $opt, $default ); |
@@ -1684,8 +1684,8 @@ discard block |
||
| 1684 | 1684 | } |
| 1685 | 1685 | |
| 1686 | 1686 | foreach ( array( 'before', 'after', 'submit' ) as $h ) { |
| 1687 | - if ( ! isset( $values[ $h . '_html' ] ) ) { |
|
| 1688 | - $values[ $h . '_html' ] = ( isset( $post_values['options'][ $h . '_html' ] ) ? $post_values['options'][ $h . '_html' ] : FrmFormsHelper::get_default_html( $h ) ); |
|
| 1687 | + if ( ! isset( $values[$h . '_html'] ) ) { |
|
| 1688 | + $values[$h . '_html'] = ( isset( $post_values['options'][$h . '_html'] ) ? $post_values['options'][$h . '_html'] : FrmFormsHelper::get_default_html( $h ) ); |
|
| 1689 | 1689 | } |
| 1690 | 1690 | unset( $h ); |
| 1691 | 1691 | } |
@@ -1835,10 +1835,10 @@ discard block |
||
| 1835 | 1835 | $time_strings = self::get_time_strings(); |
| 1836 | 1836 | |
| 1837 | 1837 | foreach ( $time_strings as $k => $v ) { |
| 1838 | - if ( $diff[ $k ] ) { |
|
| 1839 | - $time_strings[ $k ] = $diff[ $k ] . ' ' . ( $diff[ $k ] > 1 ? $v[1] : $v[0] ); |
|
| 1838 | + if ( $diff[$k] ) { |
|
| 1839 | + $time_strings[$k] = $diff[$k] . ' ' . ( $diff[$k] > 1 ? $v[1] : $v[0] ); |
|
| 1840 | 1840 | } else { |
| 1841 | - unset( $time_strings[ $k ] ); |
|
| 1841 | + unset( $time_strings[$k] ); |
|
| 1842 | 1842 | } |
| 1843 | 1843 | } |
| 1844 | 1844 | |
@@ -1919,17 +1919,17 @@ discard block |
||
| 1919 | 1919 | |
| 1920 | 1920 | case 1: |
| 1921 | 1921 | $l2 = $name; |
| 1922 | - self::add_value_to_array( $name, $l2, $this_val, $vars[ $l1 ] ); |
|
| 1922 | + self::add_value_to_array( $name, $l2, $this_val, $vars[$l1] ); |
|
| 1923 | 1923 | break; |
| 1924 | 1924 | |
| 1925 | 1925 | case 2: |
| 1926 | 1926 | $l3 = $name; |
| 1927 | - self::add_value_to_array( $name, $l3, $this_val, $vars[ $l1 ][ $l2 ] ); |
|
| 1927 | + self::add_value_to_array( $name, $l3, $this_val, $vars[$l1][$l2] ); |
|
| 1928 | 1928 | break; |
| 1929 | 1929 | |
| 1930 | 1930 | case 3: |
| 1931 | 1931 | $l4 = $name; |
| 1932 | - self::add_value_to_array( $name, $l4, $this_val, $vars[ $l1 ][ $l2 ][ $l3 ] ); |
|
| 1932 | + self::add_value_to_array( $name, $l4, $this_val, $vars[$l1][$l2][$l3] ); |
|
| 1933 | 1933 | } |
| 1934 | 1934 | |
| 1935 | 1935 | unset( $this_val, $n ); |
@@ -1948,8 +1948,8 @@ discard block |
||
| 1948 | 1948 | public static function add_value_to_array( $name, $l1, $val, &$vars ) { |
| 1949 | 1949 | if ( $name == '' ) { |
| 1950 | 1950 | $vars[] = $val; |
| 1951 | - } elseif ( ! isset( $vars[ $l1 ] ) ) { |
|
| 1952 | - $vars[ $l1 ] = $val; |
|
| 1951 | + } elseif ( ! isset( $vars[$l1] ) ) { |
|
| 1952 | + $vars[$l1] = $val; |
|
| 1953 | 1953 | } |
| 1954 | 1954 | } |
| 1955 | 1955 | |
@@ -1965,7 +1965,7 @@ discard block |
||
| 1965 | 1965 | 'email_subject' => esc_attr( sprintf( __( 'If you leave the subject blank, the default will be used: %1$s Form submitted on %2$s', 'formidable' ), $form_name, self::site_name() ) ), |
| 1966 | 1966 | ); |
| 1967 | 1967 | |
| 1968 | - if ( ! isset( $tooltips[ $name ] ) ) { |
|
| 1968 | + if ( ! isset( $tooltips[$name] ) ) { |
|
| 1969 | 1969 | return; |
| 1970 | 1970 | } |
| 1971 | 1971 | |
@@ -1975,7 +1975,7 @@ discard block |
||
| 1975 | 1975 | echo ' class="frm_help"'; |
| 1976 | 1976 | } |
| 1977 | 1977 | |
| 1978 | - echo ' title="' . esc_attr( $tooltips[ $name ] ); |
|
| 1978 | + echo ' title="' . esc_attr( $tooltips[$name] ); |
|
| 1979 | 1979 | |
| 1980 | 1980 | if ( 'open' != $class ) { |
| 1981 | 1981 | echo '"'; |
@@ -2028,13 +2028,13 @@ discard block |
||
| 2028 | 2028 | } |
| 2029 | 2029 | |
| 2030 | 2030 | private static function prepare_action_slashes( $val, $key, &$post_content ) { |
| 2031 | - if ( ! isset( $post_content[ $key ] ) ) { |
|
| 2031 | + if ( ! isset( $post_content[$key] ) ) { |
|
| 2032 | 2032 | return; |
| 2033 | 2033 | } |
| 2034 | 2034 | |
| 2035 | 2035 | if ( is_array( $val ) ) { |
| 2036 | 2036 | foreach ( $val as $k1 => $v1 ) { |
| 2037 | - self::prepare_action_slashes( $v1, $k1, $post_content[ $key ] ); |
|
| 2037 | + self::prepare_action_slashes( $v1, $k1, $post_content[$key] ); |
|
| 2038 | 2038 | unset( $k1, $v1 ); |
| 2039 | 2039 | } |
| 2040 | 2040 | } else { |
@@ -2042,7 +2042,7 @@ discard block |
||
| 2042 | 2042 | $val = stripslashes( $val ); |
| 2043 | 2043 | |
| 2044 | 2044 | // Add backslashes before double quotes and forward slashes only |
| 2045 | - $post_content[ $key ] = addcslashes( $val, '"\\/' ); |
|
| 2045 | + $post_content[$key] = addcslashes( $val, '"\\/' ); |
|
| 2046 | 2046 | } |
| 2047 | 2047 | } |
| 2048 | 2048 | |
@@ -2101,14 +2101,14 @@ discard block |
||
| 2101 | 2101 | continue; |
| 2102 | 2102 | } |
| 2103 | 2103 | $key = $input['name']; |
| 2104 | - if ( isset( $formatted[ $key ] ) ) { |
|
| 2105 | - if ( is_array( $formatted[ $key ] ) ) { |
|
| 2106 | - $formatted[ $key ][] = $input['value']; |
|
| 2104 | + if ( isset( $formatted[$key] ) ) { |
|
| 2105 | + if ( is_array( $formatted[$key] ) ) { |
|
| 2106 | + $formatted[$key][] = $input['value']; |
|
| 2107 | 2107 | } else { |
| 2108 | - $formatted[ $key ] = array( $formatted[ $key ], $input['value'] ); |
|
| 2108 | + $formatted[$key] = array( $formatted[$key], $input['value'] ); |
|
| 2109 | 2109 | } |
| 2110 | 2110 | } else { |
| 2111 | - $formatted[ $key ] = $input['value']; |
|
| 2111 | + $formatted[$key] = $input['value']; |
|
| 2112 | 2112 | } |
| 2113 | 2113 | } |
| 2114 | 2114 | |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | <?php |
| 24 | 24 | foreach ( $vars as $var ) { |
| 25 | 25 | ?> |
| 26 | - --<?php echo esc_html( str_replace( '_', '-', $var ) ); ?>:<?php echo esc_html( $defaults[ $var ] ); ?>; |
|
| 26 | + --<?php echo esc_html( str_replace( '_', '-', $var ) ); ?>:<?php echo esc_html( $defaults[$var] ); ?>; |
|
| 27 | 27 | <?php |
| 28 | 28 | } |
| 29 | 29 | ?> |
@@ -14,9 +14,9 @@ discard block |
||
| 14 | 14 | .<?php echo esc_html( $style_class ); ?> { |
| 15 | 15 | <?php |
| 16 | 16 | foreach ( $vars as $var ) { |
| 17 | - if ( isset( $settings[ $var ] ) && $settings[ $var ] !== '' && $settings[ $var ] !== $defaults[ $var ] ) { |
|
| 17 | + if ( isset( $settings[$var] ) && $settings[$var] !== '' && $settings[$var] !== $defaults[$var] ) { |
|
| 18 | 18 | ?> |
| 19 | - --<?php echo esc_html( str_replace( '_', '-', $var ) ); ?>:<?php echo esc_html( $settings[ $var ] ); ?>; |
|
| 19 | + --<?php echo esc_html( str_replace( '_', '-', $var ) ); ?>:<?php echo esc_html( $settings[$var] ); ?>; |
|
| 20 | 20 | <?php |
| 21 | 21 | } |
| 22 | 22 | } |
@@ -141,11 +141,11 @@ discard block |
||
| 141 | 141 | <?php } ?> |
| 142 | 142 | |
| 143 | 143 | .<?php echo esc_html( $style_class ); ?> .frm_icon_font.frm_minus_icon:before{ |
| 144 | - content:"\e<?php echo esc_html( isset( $minus_icons[ $repeat_icon ] ) ? $minus_icons[ $repeat_icon ]['-'] : $minus_icons[1]['-'] ); ?>"; |
|
| 144 | + content:"\e<?php echo esc_html( isset( $minus_icons[$repeat_icon] ) ? $minus_icons[$repeat_icon]['-'] : $minus_icons[1]['-'] ); ?>"; |
|
| 145 | 145 | } |
| 146 | 146 | |
| 147 | 147 | .<?php echo esc_html( $style_class ); ?> .frm_icon_font.frm_plus_icon:before{ |
| 148 | - content:"\e<?php echo esc_html( isset( $minus_icons[ $repeat_icon ] ) ? $minus_icons[ $repeat_icon ]['+'] : $minus_icons[1]['+'] ); ?>"; |
|
| 148 | + content:"\e<?php echo esc_html( isset( $minus_icons[$repeat_icon] ) ? $minus_icons[$repeat_icon]['+'] : $minus_icons[1]['+'] ); ?>"; |
|
| 149 | 149 | } |
| 150 | 150 | |
| 151 | 151 | .<?php echo esc_html( $style_class ); ?> .frm_icon_font.frm_minus_icon:before, |
@@ -157,14 +157,14 @@ discard block |
||
| 157 | 157 | } |
| 158 | 158 | |
| 159 | 159 | .<?php echo esc_html( $style_class ); ?> .frm_trigger.active .frm_icon_font.frm_arrow_icon:before{ |
| 160 | - content:"\e<?php echo esc_html( isset( $arrow_icons[ $collapse_icon ] ) ? $arrow_icons[ $collapse_icon ]['-'] : $arrow_icons[1]['-'] ); ?>"; |
|
| 160 | + content:"\e<?php echo esc_html( isset( $arrow_icons[$collapse_icon] ) ? $arrow_icons[$collapse_icon]['-'] : $arrow_icons[1]['-'] ); ?>"; |
|
| 161 | 161 | <?php if ( ! empty( $section_color ) ) { ?> |
| 162 | 162 | color:<?php echo esc_html( $section_color . $important ); ?>; |
| 163 | 163 | <?php } ?> |
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | .<?php echo esc_html( $style_class ); ?> .frm_trigger .frm_icon_font.frm_arrow_icon:before{ |
| 167 | - content:"\e<?php echo esc_html( isset( $arrow_icons[ $collapse_icon ] ) ? $arrow_icons[ $collapse_icon ]['+'] : $arrow_icons[1]['+'] ); ?>"; |
|
| 167 | + content:"\e<?php echo esc_html( isset( $arrow_icons[$collapse_icon] ) ? $arrow_icons[$collapse_icon]['+'] : $arrow_icons[1]['+'] ); ?>"; |
|
| 168 | 168 | <?php if ( ! empty( $section_color ) ) { ?> |
| 169 | 169 | color:<?php echo esc_html( $section_color . $important ); ?>; |
| 170 | 170 | <?php } ?> |