@@ -198,9 +198,9 @@ discard block |
||
| 198 | 198 | unset($param['default']); |
| 199 | 199 | } |
| 200 | 200 | $param['value'] = array(''=>__("No"),'1'=>__("Yes")); |
| 201 | - }elseif($param['type'] == 'select'){ |
|
| 201 | + } elseif($param['type'] == 'select'){ |
|
| 202 | 202 | $param['value'] = isset($val['options']) ? $val['options'] : array(); |
| 203 | - }else{ |
|
| 203 | + } else{ |
|
| 204 | 204 | $param['value'] = isset($val['default']) ? $val['default'] : ''; |
| 205 | 205 | } |
| 206 | 206 | |
@@ -658,7 +658,7 @@ discard block |
||
| 658 | 658 | <?php |
| 659 | 659 | if(! empty( $insert_shortcode_function )){ |
| 660 | 660 | echo $insert_shortcode_function; |
| 661 | - }else{ |
|
| 661 | + } else{ |
|
| 662 | 662 | |
| 663 | 663 | /** |
| 664 | 664 | * Function for super duper insert shortcode. |
@@ -1414,8 +1414,7 @@ discard block |
||
| 1414 | 1414 | $argument_values[ $key ] = isset( $instance[ $key ] ) ? $instance[ $key ] : ''; |
| 1415 | 1415 | if($args['type']=='checkbox' && $argument_values[ $key ] == ''){ |
| 1416 | 1416 | // don't set default for an empty checkbox |
| 1417 | - } |
|
| 1418 | - elseif ( $argument_values[ $key ] == '' && isset( $args['default'] ) ) { |
|
| 1417 | + } elseif ( $argument_values[ $key ] == '' && isset( $args['default'] ) ) { |
|
| 1419 | 1418 | $argument_values[ $key ] = $args['default']; |
| 1420 | 1419 | } |
| 1421 | 1420 | } |
@@ -1544,11 +1543,11 @@ discard block |
||
| 1544 | 1543 | $fa_type = ''; |
| 1545 | 1544 | if(substr( $icon, 0, 7 ) === "fas fa-"){ |
| 1546 | 1545 | $fa_type = 'solid'; |
| 1547 | - }elseif(substr( $icon, 0, 7 ) === "far fa-"){ |
|
| 1546 | + } elseif(substr( $icon, 0, 7 ) === "far fa-"){ |
|
| 1548 | 1547 | $fa_type = 'regular'; |
| 1549 | - }elseif(substr( $icon, 0, 7 ) === "fab fa-"){ |
|
| 1548 | + } elseif(substr( $icon, 0, 7 ) === "fab fa-"){ |
|
| 1550 | 1549 | $fa_type = 'brands'; |
| 1551 | - }else{ |
|
| 1550 | + } else{ |
|
| 1552 | 1551 | $icon = "'".$icon."'"; |
| 1553 | 1552 | } |
| 1554 | 1553 | |
@@ -1571,7 +1570,7 @@ discard block |
||
| 1571 | 1570 | if(isset($args['group'])){ |
| 1572 | 1571 | $temp_arguments[$args['group']][$key] = $args; |
| 1573 | 1572 | $add_sections = true; |
| 1574 | - }else{ |
|
| 1573 | + } else{ |
|
| 1575 | 1574 | $temp_arguments[$general][$key] = $args; |
| 1576 | 1575 | } |
| 1577 | 1576 | } |
@@ -1813,7 +1812,7 @@ discard block |
||
| 1813 | 1812 | ?> |
| 1814 | 1813 | el(wp.components.PanelBody, { |
| 1815 | 1814 | title: '<?php esc_attr_e($key); ?>', |
| 1816 | - initialOpen: <?php if($panel_count){echo "false";}else{echo "true";}?> |
|
| 1815 | + initialOpen: <?php if($panel_count){echo "false";} else{echo "true";}?> |
|
| 1817 | 1816 | }, |
| 1818 | 1817 | <?php |
| 1819 | 1818 | |
@@ -1826,7 +1825,7 @@ discard block |
||
| 1826 | 1825 | $panel_count++; |
| 1827 | 1826 | |
| 1828 | 1827 | } |
| 1829 | - }else{ |
|
| 1828 | + } else{ |
|
| 1830 | 1829 | foreach($this->arguments as $key => $args){ |
| 1831 | 1830 | $this->build_block_arguments($key, $args); |
| 1832 | 1831 | } |
@@ -1843,7 +1842,7 @@ discard block |
||
| 1843 | 1842 | // If the user sets block-output array then build it |
| 1844 | 1843 | if ( ! empty( $this->options['block-output'] ) ) { |
| 1845 | 1844 | $this->block_element( $this->options['block-output'] ); |
| 1846 | - }else{ |
|
| 1845 | + } else{ |
|
| 1847 | 1846 | // if no block-output is set then we try and get the shortcode html output via ajax. |
| 1848 | 1847 | ?> |
| 1849 | 1848 | el('div', { |
@@ -2380,7 +2379,7 @@ discard block |
||
| 2380 | 2379 | $panel_count++; |
| 2381 | 2380 | |
| 2382 | 2381 | } |
| 2383 | - }else{ |
|
| 2382 | + } else{ |
|
| 2384 | 2383 | foreach ( $arguments as $key => $args ) { |
| 2385 | 2384 | $this->widget_inputs( $args, $instance ); |
| 2386 | 2385 | } |