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() { // Updates Dashboard $dashboards = ''; $updates = $this->get_updates(); $args = array('title' => __('Your Available Updates', 'pagelines'), 'data' => $updates, 'icon' => PL_ADMIN_ICONS . '/download.png', 'excerpt-trim' => 0); if (!EXTEND_NETWORK) { $dashboards = $this->dashboard_pane('updates', $args); } // PageLines Blog Dashboard $args = array('title' => __('News from the PageLines Blog', 'pagelines'), 'data' => PageLines_RSS::get_dash_rss(array('feed' => 'http://www.pagelines.com/feed/')), 'classes' => 'news-dash pl-dash-half pl-dash-space', 'icon' => PL_ADMIN_ICONS . '/welcome.png', 'footer' => sprintf('Visit <a href="%s">PageLines Blog</a>', 'http://www.pagelines.com/blog')); $dashboards .= $this->dashboard_pane('news', $args); // Latest from the Community $args = array('title' => __('From the Community', 'pagelines'), 'data' => PageLines_RSS::get_dash_rss(array('feed' => 'http://www.pagelines.com/type/link/feed/', 'community' => true)), 'classes' => 'news-dash pl-dash-half', 'icon' => PL_ADMIN_ICONS . '/users.png', 'footer' => sprintf('<a href="%s">Submit</a> a community article', 'mailto:hello@pagelines.com')); $dashboards .= $this->dashboard_pane('community', $args); // PageLines Store Latest Dash $args = array('title' => __('Updates on PageLines Store', 'pagelines'), 'data' => PageLines_RSS::get_dash_rss(), 'classes' => 'news-dash pl-dash-half pl-dash-space', 'icon' => PL_ADMIN_ICONS . '/store.png', 'footer' => sprintf('Visit <a href="%s">PageLines Store</a>', 'http://www.pagelines.com/store/')); $dashboards .= $this->dashboard_pane('store', $args); // PageLines Plus $args = array('title' => __('Latest Extensions', 'pagelines'), 'data' => PageLines_RSS::get_dash_rss(array('feed' => 'http://api.pagelines.com/rss/plus.php')), 'classes' => 'news-dash pl-dash-half', 'icon' => PL_ADMIN_ICONS . '/plusbtn.png', 'footer' => sprintf('Visit <a href="%s">Plus Overview</a>', 'http://www.pagelines.com/plus/')); $dashboards .= $this->dashboard_pane('extensions', $args); return $this->dashboard_wrap($dashboards); }