menu_title = __('Widgets', 'clearfy');
$this->page_menu_short_description = __('Disable unused widgets', 'clearfy');
parent::__construct($plugin);
$this->plugin = $plugin;
}
/**
* Permalinks options.
*
* @return mixed[]
* @since 1.0.0
*/
public function getPageOptions()
{
$options = array();
$options[] = array(
'type' => 'html',
'html' => '
'
);
$options[] = array(
'type' => 'checkbox',
'way' => 'buttons',
'name' => 'remove_unneeded_widget_page',
'title' => __('Remove the "Pages" widget', 'clearfy'),
'layout' => array('hint-type' => 'icon', 'hint-icon-color' => 'grey'),
'default' => false
);
$options[] = array(
'type' => 'checkbox',
'way' => 'buttons',
'name' => 'remove_unneeded_widget_calendar',
'title' => __('Remove calendar widget', 'clearfy'),
'layout' => array('hint-type' => 'icon', 'hint-icon-color' => 'grey'),
'default' => false
);
$options[] = array(
'type' => 'checkbox',
'way' => 'buttons',
'name' => 'remove_unneeded_widget_tag_cloud',
'title' => __('Remove the "Cloud of tags" widget', 'clearfy'),
'layout' => array('hint-type' => 'icon', 'hint-icon-color' => 'grey'),
'default' => false
);
$options[] = array(
'type' => 'checkbox',
'way' => 'buttons',
'name' => 'remove_unneeded_widget_archives',
'title' => __('Remove the "Archives" widget', 'clearfy'),
'layout' => array('hint-type' => 'icon', 'hint-icon-color' => 'grey'),
'default' => false
);
$options[] = array(
'type' => 'checkbox',
'way' => 'buttons',
'name' => 'remove_unneeded_widget_links',
'title' => __('Remove the "Links" widget', 'clearfy'),
'layout' => array('hint-type' => 'icon', 'hint-icon-color' => 'grey'),
'default' => false
);
$options[] = array(
'type' => 'checkbox',
'way' => 'buttons',
'name' => 'remove_unneeded_widget_meta',
'title' => __('Remove the "Meta" widget', 'clearfy'),
'layout' => array('hint-type' => 'icon', 'hint-icon-color' => 'grey'),
'default' => false
);
$options[] = array(
'type' => 'checkbox',
'way' => 'buttons',
'name' => 'remove_unneeded_widget_search',
'title' => __('Remove the "Search" widget', 'clearfy'),
'layout' => array('hint-type' => 'icon', 'hint-icon-color' => 'grey'),
'default' => false
);
$options[] = array(
'type' => 'checkbox',
'way' => 'buttons',
'name' => 'remove_unneeded_widget_text',
'title' => __('Remove the "Text" widget', 'clearfy'),
'layout' => array('hint-type' => 'icon', 'hint-icon-color' => 'grey'),
'default' => false
);
$options[] = array(
'type' => 'checkbox',
'way' => 'buttons',
'name' => 'remove_unneeded_widget_categories',
'title' => __('Remove the "Categories" widget', 'clearfy'),
'layout' => array('hint-type' => 'icon', 'hint-icon-color' => 'grey'),
'default' => false
);
$options[] = array(
'type' => 'checkbox',
'way' => 'buttons',
'name' => 'remove_unneeded_widget_recent_posts',
'title' => __('Remove the "Recent Posts" widget', 'clearfy'),
'layout' => array('hint-type' => 'icon', 'hint-icon-color' => 'grey'),
'default' => false
);
$options[] = array(
'type' => 'checkbox',
'way' => 'buttons',
'name' => 'remove_unneeded_widget_recent_comments',
'title' => __('Remove the "Recent Comments" widget', 'clearfy'),
'layout' => array('hint-type' => 'icon', 'hint-icon-color' => 'grey'),
'default' => false
);
$options[] = array(
'type' => 'checkbox',
'way' => 'buttons',
'name' => 'remove_unneeded_widget_rss',
'title' => __('Remove the "RSS" widget', 'clearfy'),
'layout' => array('hint-type' => 'icon', 'hint-icon-color' => 'grey'),
'default' => false
);
$options[] = array(
'type' => 'checkbox',
'way' => 'buttons',
'name' => 'remove_unneeded_widget_menu',
'title' => __('Remove the "Menu" widget', 'clearfy'),
'layout' => array('hint-type' => 'icon', 'hint-icon-color' => 'grey'),
'default' => false
);
$options[] = array(
'type' => 'checkbox',
'way' => 'buttons',
'name' => 'remove_unneeded_widget_twenty_eleven_ephemera',
'title' => __('Remove the "Twenty Eleven Ephemera" widget', 'clearfy'),
'layout' => array('hint-type' => 'icon', 'hint-icon-color' => 'grey'),
'default' => false
);
$form_options = array();
$form_options[] = array(
'type' => 'form-group',
'items' => $options,
//'cssClass' => 'postbox'
);
return apply_filters('wbcr_clr_widgets_form_options', $form_options, $this);
}
}