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
+15
View File
@@ -2,6 +2,21 @@
- Welcome
*/
.um-about-wrap * {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.um-about-wrap a.um-about-icon {
margin: 0 0 0 15px !important;
padding: 0 !important;
text-decoration: none !important;
color: #777 !important;
font-size: 22px !important;
}
.um-about-wrap a.um-about-icon:hover {color: #3ba1da !important}
.um-badge {
color: #fff;
background: none !important;
+2 -1
View File
@@ -70,9 +70,10 @@
#redux-share {margin-top: 11px !important}
#redux-share a {
margin: 0 15px 0 0 !important;
text-decoration: none !important;
color: #777 !important;
font-size: 22px !important;
margin: 0 15px 0 0 !important;
}
#redux-share a:hover {color: #3ba1da !important}
@@ -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'
);
+61 -73
View File
@@ -1,97 +1,85 @@
<div class="wrap about-wrap">
<?php include_once um_path . 'admin/templates/about_header.php'; ?>
<div class="changelog headline-feature">
<h2>Introducing Twenty&nbsp;Fifteen</h2>
<div class="featured-image">
</div>
<div class="feature-section">
<div class="col">
<h3>Our newest default theme, Twenty Fifteen, is a blog-focused theme designed for clarity.</h3>
<p>Twenty Fifteen has flawless language support, with help from <a href="https://www.google.com/get/noto/">Google&#8217;s Noto font family</a>.</p>
<p>The straightforward typography is readable on any screen size.</p>
<p>Your content always takes center stage, whether viewed on a phone, tablet, laptop, or desktop computer.</p>
</div>
<div class="col">
</div>
</div>
<div class="clear"></div>
</div>
<hr />
<div class="changelog headline-feature dfw">
<h2>Distraction-free writing</h2>
<h2>Introducing Ultimate Member</h2>
<div class="feature-section">
<div class="dfw-container">
</div>
<h3><em>Just write.</em></h3>
<p>Sometimes, you just need to concentrate on putting your thoughts into words. Try turning on <strong>distraction-free writing mode</strong>. When you start typing, all the distractions will fade away, letting you focus solely on your writing. All your editing tools instantly return when you need them.</p>
</div>
</div>
<hr />
<div class="changelog feature-list finer-points">
<h2>The Finer Points</h2>
<div class="feature-section col two-col">
<div>
<h4>Choose a language</h4>
<p>Right now, WordPress 4.1 is already translated into <span id="translations-count">40</span> languages, with more always in progress. You can switch to any translation on the <a href="http://localhost/wp-admin/options-general.php">General Settings</a> screen.</p>
</div>
<div class="last-feature">
<h4>Vine embeds</h4>
<p>Embedding videos from Vine is as simple as pasting a URL onto its own line in a post. See the <a href="http://codex.wordpress.org/Embeds">full list</a> of supported embeds.</p>
</div>
<div>
<h4>Log out everywhere</h4>
<p>If you&#8217;ve ever worried you forgot to sign out from a shared computer, you can now go to <a href="http://localhost/wp-admin/profile.php">your profile</a> and log out everywhere.</p>
</div>
<div class="last-feature">
<h4>Plugin recommendations</h4>
<p>The <a href="http://localhost/wp-admin/plugin-install.php?tab=recommended">plugin installer</a> suggests plugins for you to try. Recommendations are based on the plugins you and other users have installed.</p>
</div>
<h3><em>Create beautiful community websites with WordPress!</em></h3>
<p>We'd like to thank you for installing Ultimate Member and we hope you enjoy using the plugin on your site. We created Ultimate Member with the aim of building a lightweight and powerful plugin that makes it extremely easy to make community and membership sites with WordPress.</p>
<p>We have <a href="https://trello.com/b/30quaczv/ultimate-member" target="_blank">big plans</a> for Ultimate Member and we hope you will join us on our journey to creating the most popular community/membership plugin. If youd like to get involved in improving the plugin you can join our <a href="http://ultimatemember.com/community-forum/" target="_blank">community forum</a> and discuss Ultimate Member with other users, provide feedback and make suggestions on how to improve the plugin. We also have an official <a href="https://github.com/ultimatemember/ultimatemember" target="_blank">GitHub repository</a> where you can contribute directly to the plugin.</p>
</div>
</div>
<hr />
<div class="changelog feature-list">
<h2>Under the Hood</h3>
<div class="feature-section col two-col">
<h2>Key Features</h2>
<div class="feature-section col three-col">
<div>
<h4>Complex Queries</h4>
<p>Metadata, date, and term queries now support advanced conditional logic, like nested clauses and multiple operators &mdash; <code>A&nbsp;AND&nbsp;(&nbsp;B&nbsp;OR&nbsp;C&nbsp;)</code>.</p>
<h4>Customizer API</h4>
<p>Expanded JavaScript APIs in the customizer enable a new media experience as well as dynamic and contextual controls, sections, and panels.</p>
<h4>Front-end Registration &amp; Login</h4>
<p>Create unlimited, custom frontend registration &amp; login forms easily with our drag-and-drop form builder.</p>
</div>
<div>
<h4>User Profiles</h4>
<p>Instant front-end user profiles that look beautiful. Allow users to view/edit profile from frontend, view each other's profile and more.</p>
</div>
<div class="last-feature">
<h4><code>&lt;title&gt;</code> tags in themes</h4>
<p><code>add_theme_support( 'title-tag' )</code> tells WordPress to handle the complexities of document titles.</p>
<h4>Developer Reference</h4>
<p>Continued improvements to inline code documentation have made the <a href="https://developer.wordpress.org/reference/">developer reference</a> more complete than ever.</p>
<h4>Membership Levels</h4>
<p>Create unlimited, custom <a href="<?php echo admin_url('edit.php?post_type=um_role'); ?>">membership levels</a> and set up permissions for each membership level easily.</p>
</div>
<div>
<h4>Profile Fields</h4>
<p>Create unlimited profile fields from image and file upload to ratings, checkboxes, and more, plus support for <strong><em>conditional fields</em></strong></p>
</div>
<div>
<h4>Member Directories</h4>
<p>Create member directories with our <a href="<?php echo admin_url('edit.php?post_type=um_directory'); ?>">directory creator</a> and make them show the member levels you want.</p>
</div>
<div class="last-feature">
<h4>Content Restriction</h4>
<p>Global and individual (per page/post) content restriction settings have been built to give you flexibility on what content should be visible, and who exactly can see it.</p>
</div>
<div>
<h4>Conditional Menus</h4>
<p> Show different menu links to logged in users, logged out users, and individual member levels with our conditional menu feature.</p>
</div>
<div>
<h4>Mobile Adaptive</h4>
<p>Ultimate Member has been built with a mobile adaptive approach meaning the front-end features have a different layout depending on the device size.</p>
</div>
<div class="last-feature">
<h4>Advanced Form Builder</h4>
<p>Use our advanced drag and drop form builder to easily create unique registration, login and profiles with multiple-column support.</p>
</div>
</div>
<hr />
<div class="return-to-dashboard">
<a href="<?php echo admin_url('admin.php?page=ultimatemember'); ?>">Go to Plugin Dashboard &rarr;</a>
<div class="alignright">
<?php global $reduxConfig; foreach ( $reduxConfig->args['share_icons'] as $k => $arr ) { ?><a href="<?php echo $arr['url']; ?>" class="um-about-icon um-admin-tipsy-n" title="<?php echo $arr['title']; ?>"><i class="<?php echo $arr['icon']; ?>"></i></a><?php } ?>
</div>
</div>
</div>
+2 -1
View File
@@ -1,3 +1,4 @@
<div class="wrap about-wrap um-about-wrap">
<h1>Welcome to Ultimate Member</h1>
@@ -7,7 +8,7 @@
<h2 class="nav-tab-wrapper">
<?php foreach( $um_admin->about_tabs as $k => $tab ) {
<?php foreach( $this->about_tabs as $k => $tab ) {
if ( $k == $template ) {
$active = 'nav-tab-active';
-1
View File
@@ -1,4 +1,3 @@
<div class="wrap about-wrap">
<?php include_once um_path . 'admin/templates/about_header.php'; ?>
-4
View File
@@ -15,10 +15,6 @@ class UM_Admin_API {
require_once( um_path . 'admin/core/um-admin-redux.php' );
}
$this->about_tabs['about'] = 'About';
$this->about_tabs['start'] = 'Getting Started';
}
/***
+14
View File
@@ -88,12 +88,26 @@
.um-col-133 {float: right;width: 30%;min-height: 1px;height: auto;}
#wp-admin-bar-um_parent .ab-icon:before{
font-family: "dashicons" !important;
content: "\f110" !important;
top: 3px !important;
}
@media screen and (max-width: 782px) {
#wpadminbar li#wp-admin-bar-um_parent {
display: block;
}
}
/*
- Font Icons
*/
.um-raty i {font-size: 26px}
.um-field-half .um-raty i {font-size: 21px}
.um-field-tri .um-raty i {font-size: 21px}
.um-button i {
+102 -1
View File
@@ -22,4 +22,105 @@
return true;
}
}
add_filter( 'show_admin_bar' , 'um_control_admin_bar');
add_filter( 'show_admin_bar' , 'um_control_admin_bar');
/***
*** @show admin bar menu for plugin
***/
add_action('admin_bar_menu', 'um_plugin_admin_bar', 1000);
function um_plugin_admin_bar() {
global $wp_admin_bar;
if( !is_super_admin() || !is_admin_bar_showing() || is_admin() ) return;
$args = array(
'id' => 'um_parent',
'title' => '<span class="ab-icon"></span><span class="ab-label">Ultimate Member</span>',
'href' => admin_url('admin.php?page=ultimatemember-about'),
'meta' => array( )
);
$wp_admin_bar->add_node( $args );
$args = array(
'parent' => 'um_parent',
'id' => 'um_sub1',
'title' => 'About this plugin',
'href' => admin_url('admin.php?page=ultimatemember-about'),
'meta' => array( )
);
$wp_admin_bar->add_node( $args );
$args = array(
'parent' => 'um_parent',
'id' => 'um_sub2',
'title' => 'Getting Started',
'href' => admin_url('admin.php?page=ultimatemember-start'),
'meta' => array( )
);
$wp_admin_bar->add_node( $args );
$args = array(
'parent' => 'um_parent',
'id' => 'um_sub3',
'title' => 'Dashboard',
'href' => admin_url('admin.php?page=ultimatemember'),
'meta' => array( )
);
$wp_admin_bar->add_node( $args );
$args = array(
'parent' => 'um_parent',
'id' => 'um_sub4',
'title' => 'Settings',
'href' => admin_url('admin.php?page=um_options'),
'meta' => array( )
);
$wp_admin_bar->add_node( $args );
$args = array(
'parent' => 'um_parent',
'id' => 'um_sub5',
'title' => 'Forms',
'href' => admin_url('edit.php?post_type=um_form'),
'meta' => array( )
);
$wp_admin_bar->add_node( $args );
$args = array(
'parent' => 'um_parent',
'id' => 'um_sub6',
'title' => 'Member Levels',
'href' => admin_url('edit.php?post_type=um_role'),
'meta' => array( )
);
$wp_admin_bar->add_node( $args );
$args = array(
'parent' => 'um_parent',
'id' => 'um_sub7',
'title' => 'Member Directories',
'href' => admin_url('edit.php?post_type=um_directory'),
'meta' => array( )
);
$wp_admin_bar->add_node( $args );
$args = array(
'parent' => 'um_parent',
'id' => 'um_sub8',
'title' => 'Members',
'href' => admin_url('users.php'),
'meta' => array( )
);
$wp_admin_bar->add_node( $args );
}
Binary file not shown.
+1 -1
View File
@@ -13,7 +13,7 @@ class UM_API {
add_action('init', array(&$this, 'init'), 0);
$this->honeypot = 'request';
}
/***