Microweber\Providers\Ui::defaults PHP Method

defaults() public method

public defaults ( )
    public function defaults()
    {
        $btn = array();
        $btn['content_type'] = 'page';
        $btn['title'] = _e('Page', true);
        $btn['class'] = 'mw-icon-page';
        $this->module('content.create.menu', $btn);
        $btn = array();
        $btn['content_type'] = 'post';
        $btn['title'] = _e('Post', true);
        $btn['class'] = 'mw-icon-post';
        $this->module('content.create.menu', $btn);
        $btn = array();
        $btn['content_type'] = 'category';
        $btn['title'] = _e('Category', true);
        $btn['class'] = 'mw-icon-category';
        $this->module('content.create.menu', $btn);
        $notif_count = mw()->notifications_manager->get('is_read=0&count=1');
        $notif_count_html = false;
        if (intval($notif_count) > 0) {
            $notif_count_html = '<sup class="mw-notification-count">' . $notif_count . '</sup>';
        }
        $admin_dashboard_btn = array();
        $admin_dashboard_btn['view'] = 'admin__notifications';
        $admin_dashboard_btn['text'] = _e('Notifications', true) . $notif_count_html;
        $admin_dashboard_btn['icon_class'] = 'mw-icon-notification';
        $this->module('admin.dashboard.menu', $admin_dashboard_btn);
        $admin_dashboard_btn = array();
        $admin_dashboard_btn['view'] = 'content';
        $admin_dashboard_btn['text'] = _e('Manage Website', true);
        $admin_dashboard_btn['icon_class'] = 'mw-icon-website';
        $this->module('admin.dashboard.menu.second', $admin_dashboard_btn);
        $admin_dashboard_btn = array();
        $admin_dashboard_btn['view'] = 'modules';
        $admin_dashboard_btn['text'] = _e('Manage Modules', true);
        $admin_dashboard_btn['icon_class'] = 'mw-icon-module';
        $this->module('admin.dashboard.menu.second', $admin_dashboard_btn);
        $admin_dashboard_btn = array();
        $admin_dashboard_btn['view'] = 'files';
        $admin_dashboard_btn['text'] = _e('File Manager', true);
        $admin_dashboard_btn['icon_class'] = 'mw-icon-upload';
        $this->module('admin.dashboard.menu.second', $admin_dashboard_btn);
        $admin_dashboard_btn = array();
        $admin_dashboard_btn['view'] = 'upgrades';
        $admin_dashboard_btn['text'] = _e('Upgrades', true);
        $admin_dashboard_btn['icon_class'] = 'mw-icon-market';
        $this->module('admin.dashboard.menu.third', $admin_dashboard_btn);
        $notif_count = 0;
        $notif_count_html = false;
        if (intval($notif_count) > 0) {
            $notif_count_html = '<sup class="mw-notification-count">' . $notif_count . '</sup>';
        }
        $admin_dashboard_btn = array();
        $admin_dashboard_btn['view'] = 'updates';
        $admin_dashboard_btn['text'] = _e('Updates', true) . $notif_count_html;
        $admin_dashboard_btn['icon_class'] = 'mw-icon-updates';
        $this->module('admin.dashboard.menu.third', $admin_dashboard_btn);
        $admin_dashboard_btn = array();
        $admin_dashboard_btn['link'] = 'https://microweber.com/contact-us';
        $admin_dashboard_btn['text'] = _e('Suggest a feature', true);
        $admin_dashboard_btn['icon_class'] = 'mw-icon-suggest';
        $this->module('admin.dashboard.menu.third', $admin_dashboard_btn);
        $fields = array('price' => 'Price', 'text' => 'Text Field', 'radio' => 'Single Choice', 'dropdown' => 'Dropdown', 'checkbox' => 'Multiple choices', 'number' => 'Number', 'phone' => 'Phone', 'site' => 'Web Site', 'email' => 'E-mail', 'address' => 'Address', 'date' => 'Date', 'upload' => 'File Upload', 'property' => 'Property');
        $this->custom_fields = $fields;
    }