@@ -393,7 +393,7 @@ discard block |
||
| 393 | 393 | * @param string $id |
| 394 | 394 | * @param string $search_for_id |
| 395 | 395 | * |
| 396 | - * @return mixed |
|
| 396 | + * @return string |
|
| 397 | 397 | */ |
| 398 | 398 | public static function shortcode_button( $id = '', $search_for_id = '' ) { |
| 399 | 399 | ob_start(); |
@@ -423,7 +423,7 @@ discard block |
||
| 423 | 423 | * Makes SD work with the siteOrigin page builder. |
| 424 | 424 | * |
| 425 | 425 | * @since 1.0.6 |
| 426 | - * @return mixed |
|
| 426 | + * @return string |
|
| 427 | 427 | */ |
| 428 | 428 | public static function siteorigin_js() { |
| 429 | 429 | ob_start(); |
@@ -998,7 +998,7 @@ discard block |
||
| 998 | 998 | /** |
| 999 | 999 | * Gets some CSS for the widgets screen. |
| 1000 | 1000 | * |
| 1001 | - * @return mixed |
|
| 1001 | + * @return string |
|
| 1002 | 1002 | */ |
| 1003 | 1003 | public function widget_css() { |
| 1004 | 1004 | ob_start(); |
@@ -1052,7 +1052,7 @@ discard block |
||
| 1052 | 1052 | /** |
| 1053 | 1053 | * Gets some JS for the widgets screen. |
| 1054 | 1054 | * |
| 1055 | - * @return mixed |
|
| 1055 | + * @return string |
|
| 1056 | 1056 | */ |
| 1057 | 1057 | public function widget_js() { |
| 1058 | 1058 | ob_start(); |
@@ -1592,7 +1592,7 @@ discard block |
||
| 1592 | 1592 | * @since 1.0.4 Added block_wrap property which will set the block wrapping output element ie: div, span, p or empty for no wrap. |
| 1593 | 1593 | * @since 1.0.9 Save numbers as numbers and not strings. |
| 1594 | 1594 | * @since 1.1.0 Font Awesome classes can be used for icons. |
| 1595 | - * @return mixed |
|
| 1595 | + * @return string |
|
| 1596 | 1596 | */ |
| 1597 | 1597 | public function block() { |
| 1598 | 1598 | ob_start(); |
@@ -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 | } |