Use new code style
This commit is contained in:
@ -19,19 +19,21 @@ defined('ABSPATH') || exit;
|
||||
*/
|
||||
function wu_render_empty_state($args = array()) {
|
||||
|
||||
$args = wp_parse_args($args, array(
|
||||
'message' => __('This is not yet available...'),
|
||||
'sub_message' => __('We\'re still working on this part of the product.'),
|
||||
'link_label' => __('← Go Back', 'wp-ultimo'),
|
||||
'link_url' => 'javascript:history.go(-1)',
|
||||
'link_classes' => '',
|
||||
'link_icon' => '',
|
||||
'display_background_image' => true,
|
||||
));
|
||||
$args = wp_parse_args(
|
||||
$args,
|
||||
array(
|
||||
'message' => __('This is not yet available...'),
|
||||
'sub_message' => __('We\'re still working on this part of the product.'),
|
||||
'link_label' => __('← Go Back', 'wp-ultimo'),
|
||||
'link_url' => 'javascript:history.go(-1)',
|
||||
'link_classes' => '',
|
||||
'link_icon' => '',
|
||||
'display_background_image' => true,
|
||||
)
|
||||
);
|
||||
|
||||
return wu_get_template_contents('base/empty-state', $args);
|
||||
|
||||
} // end wu_render_empty_state;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if should use wrap container or not based on user setting.
|
||||
@ -41,8 +43,7 @@ function wu_render_empty_state($args = array()) {
|
||||
function wu_wrap_use_container() {
|
||||
|
||||
echo get_user_setting('wu_use_container', false) ? 'admin-lg:wu-container admin-lg:wu-mx-auto' : '';
|
||||
|
||||
} // end wu_wrap_use_container;
|
||||
}
|
||||
|
||||
/**
|
||||
* Renders the responsive table single-line.
|
||||
@ -56,14 +57,16 @@ function wu_wrap_use_container() {
|
||||
*/
|
||||
function wu_responsive_table_row($args = array(), $first_row = array(), $second_row = array()) {
|
||||
|
||||
$args = wp_parse_args($args, array(
|
||||
'id' => '',
|
||||
'title' => __('No Title', 'wp-ultimo'),
|
||||
'url' => '#',
|
||||
'status' => '',
|
||||
'image' => '',
|
||||
));
|
||||
$args = wp_parse_args(
|
||||
$args,
|
||||
array(
|
||||
'id' => '',
|
||||
'title' => __('No Title', 'wp-ultimo'),
|
||||
'url' => '#',
|
||||
'status' => '',
|
||||
'image' => '',
|
||||
)
|
||||
);
|
||||
|
||||
return wu_get_template_contents('base/responsive-table-row', compact('args', 'first_row', 'second_row'));
|
||||
|
||||
} // end wu_responsive_table_row;
|
||||
}
|
||||
|
Reference in New Issue
Block a user