Follow up: Welcome tab

This commit is contained in:
ultimatemember
2014-12-21 17:47:37 +02:00
parent 2eb8c43ffc
commit 0f9e7547ee
14 changed files with 218 additions and 94 deletions
@@ -188,6 +188,9 @@
$this->slug = 'ultimatemember';
$this->about_tabs['about'] = 'About';
$this->about_tabs['start'] = 'Getting Started';
// Disregard WP AJAX 'heartbeat'call. Why waste resources?
if ( isset( $_POST ) && isset( $_POST['action'] ) && $_POST['action'] == 'heartbeat' ) {
@@ -1299,9 +1302,7 @@
* @return void
*/
public function _options_page() {
$um_admin = new UM_Admin_API();
$this->import_export->in_field();
if ( $this->args['menu_type'] == 'submenu' ) {
@@ -1310,7 +1311,7 @@
add_menu_page( __('Ultimate Member', $this->slug), __('Ultimate Member', $this->slug), 'manage_options', $this->slug, array(&$this, 'admin_page'), 'dashicons-admin-users', '50.78578');
foreach( $um_admin->about_tabs as $k => $tab ) {
foreach( $this->about_tabs as $k => $tab ) {
add_submenu_page( '_'. $k . '_um', sprintf(__('%s | Ultimate Member', $this->slug), $tab), sprintf(__('%s | Ultimate Member', $this->slug), $tab), 'manage_options', $this->slug . '-' . $k, array(&$this, 'admin_page') );
@@ -4317,9 +4318,7 @@
}
public function admin_page(){
$um_admin = new UM_Admin_API();
$page = $_REQUEST['page'];
if ( $page == 'ultimatemember' ) {
+1 -1
View File
@@ -14,7 +14,7 @@ class UM_Admin_Enqueue {
add_filter('enter_title_here', array(&$this, 'enter_title_here') );
add_filter('admin_footer_text', array(&$this, 'admin_footer_text') );
add_filter('admin_footer_text', array(&$this, 'admin_footer_text'), 1111 );
}
+14 -4
View File
@@ -115,22 +115,32 @@
// SOCIAL ICONS -> Setup custom links in the footer for quick links in your panel footer icons.
$this->args['share_icons'][] = array(
'url' => 'https://facebook.com/ultimatememberplugin',
'url' => '',
'title' => 'GitHub Repository',
'icon' => 'um-icon-github'
);
$this->args['share_icons'][] = array(
'url' => '',
'title' => 'Roadmap',
'icon' => 'um-icon-trello'
);
$this->args['share_icons'][] = array(
'url' => '',
'title' => 'Like us on Facebook',
'icon' => 'um-icon-facebook'
);
$this->args['share_icons'][] = array(
'url' => 'https://twitter.com/umplugin',
'url' => '',
'title' => 'Follow us on Twitter',
'icon' => 'um-icon-twitter'
);
$this->args['share_icons'][] = array(
'url' => 'https://plus.google.com/+UltimateMember/',
'url' => '',
'title' => 'Follow us on Google+',
'icon' => 'um-icon-google-plus'
);
$this->args['share_icons'][] = array(
'url' => 'https://youtube.com/user/umplugin',
'url' => '',
'title' => 'We\'re on YouTube',
'icon' => 'um-icon-youtube-alt'
);