function draw() { $dash = new PageLinesDashboard(); // PageLines Plus $args = array('title' => __('Available Plus Extensions', 'pagelines'), 'data' => PageLines_RSS::get_dash_rss(array('feed' => 'http://api.pagelines.com/rss/plus.php', 'items' => 50)), 'icon' => PL_ADMIN_ICONS . '/plusbtn.png', 'excerpt-trim' => false, 'format' => 'plus-extensions'); $view = $this->get_welcome_billboard(); $view .= $dash->wrap_dashboard_pane('tips', $args); return $view; }
function draw() { $dash = new PageLinesDashboard(); $view = $this->get_welcome_billboard(); // PageLines Plus $args = array('title' => __('PageLines Support', 'pagelines'), 'data' => $this->support_array(), 'icon' => PL_ADMIN_ICONS . '/balloon-white.png', 'excerpt-trim' => false, 'format' => 'button-links'); $view .= $dash->wrap_dashboard_pane('tips', $args); // PageLines Plus $args = array('title' => __('Other PageLines Resources', 'pagelines'), 'data' => $this->resources_array(), 'icon' => PL_ADMIN_ICONS . '/toolbox.png', 'excerpt-trim' => false, 'format' => 'button-links'); $view .= $dash->wrap_dashboard_pane('tips', $args); return $view; }
/** * Get Welcome * * Pull all of the components together and returns them via the 'pagelines_welcome_intro' filter * * @uses get_intro * @uses get_plugins_billboard * * @internal uses 'pagelines_welcome_finally' filter - text at the end of the welcome page * * @return mixed|void */ function get_welcome() { $dash = new PageLinesDashboard(); // PageLines Plus $args = array('title' => __('Some Tips To Get You Started', 'pagelines'), 'data' => $this->welcome_array(), 'icon' => PL_ADMIN_ICONS . '/light-bulb.png', 'excerpt-trim' => false); $view = $this->get_welcome_billboard(); $view .= $dash->wrap_dashboard_pane('tips', $args); $view .= $this->getting_started_video(); $args = array('title' => __('Core WordPress Graphical/Functional Support', 'pagelines'), 'data' => $this->get_welcome_plugins(), 'icon' => PL_ADMIN_ICONS . '/extend-plugins.png', 'excerpt-trim' => false, 'align' => 'right', 'btn-text' => 'Get It', 'target' => 'new'); $view .= $this->get_support_banner(); $view .= $dash->wrap_dashboard_pane('support-plugins', $args); return apply_filters('pagelines_welcome_intro', $view); }
/** * Welcome Message * * @since 2.0.0 */ function pl_add_dashboard() { $dash = new PageLinesDashboard(); $a = array('icon' => PL_ADMIN_ICONS . '/newspapers.png', 'pagelines_dashboard' => array('type' => 'text_content', 'flag' => 'hide_option', 'exp' => $dash->draw())); return $a; }