From: danix Date: Wed, 4 Jul 2018 16:03:21 +0000 (+0200) Subject: initial commit X-Git-Url: https://git.danix.xyz/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=danixland-user-panel.git initial commit --- 80ada5400b9bcfcccc1ac741727dc6dfc04896e8 diff --git a/danixland-user-panel.php b/danixland-user-panel.php new file mode 100644 index 0000000..aded94a --- /dev/null +++ b/danixland-user-panel.php @@ -0,0 +1,378 @@ + < http://mikejolley.com > +big kudos to him!!! +**************************************************************************************/ + +/** + * Add plugin i18n domain: dnxup + * @since 1.1.1 + */ +load_plugin_textdomain('dnxup', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/'); + +/** + * Include settings options for our plugin + * @since 1.1.1 + */ +function dnxup_settings() { + add_options_page('danixland User Panel Settings', __('User Panel Options', 'dnxup'), 'manage_options', 'dnxup_options', 'dnxup_settings_display'); +} +add_action('admin_menu', 'dnxup_settings' ); + +/** + * The function that outputs our admin page + * @since 1.1.1 + */ +function dnxup_settings_display() { +?> +
+

+
+ +

+ + +

+
+
+ true, + 'logged_out_heading' => 'Howdy Guest', + 'logged_in_heading' => 'Howdy %username%', + 'logged_in_links' => "" . __('Dashboard','dnxup') . "\n" . __('Profile','dnxup') . "", + // database version + 'dnxup_DB_VERSION' => '1' + ); + return $defaults; +} + +// helper function that starts up the DB +function dnxup_db_init() { + global $dnxup_options; + $dnxup_options = get_option('dnxup_options'); + if( false === $dnxup_options ) { + $dnxup_options = dnxup_db_defaults(); + } + update_option('dnxup_options', $dnxup_options); +} + +// helper function that performs a DB version update when needed +function dnxup_db_update($db_version) { + global $dnxup_options; + $db_defaults = dnxup_db_defaults(); + $merge = wp_parse_args( $dnxup_options, $db_defaults ); + // update DB version + $merge['dnxup_DB_VERSION'] = $db_version; + update_option('dnxup_options', $merge); +} + +// helper function that performs a DB check and then an init/update action +function dnxup_db_check() { + global $dnxup_options; + if(false === $dnxup_options) { + dnxup_db_init(); + } + $old_db_version = $dnxup_options['dnxup_DB_VERSION']; + $new_db_version = DNXUP_CURRENT_DB_VERSION; + if(empty($old_db_version)) { + dnxup_db_init(); + } + if( intval($old_db_version) < intval($new_db_version) ) { + dnxup_db_update( $new_db_version ); + } +} +function dnxup_set_db_version() { + // Define plugin database version. This should only change when new settings are added. + if ( ! defined( 'DNXUP_CURRENT_DB_VERSION' ) ) { + define( 'DNXUP_CURRENT_DB_VERSION', 2 ); + } +} +/** + * Add function on plugin activation that'll set our DB version and perform a check for update + * @since 1.1.3 + */ +register_activation_hook( __FILE__, 'dnxup_set_db_version' ); +register_activation_hook( __FILE__, 'dnxup_db_check' ); + + +/** + * function that returns the actual url for redirection after logout + * as seen on sidebar-login by Mike Jolley with small modifications + * @since 1.1.3 + */ +function dnxup_current_url($url = '') { + + global $wpdb, $post, $cat, $tag, $author, $year, $monthnum, $day, $wp_query; + $pageURL = ""; + + if ( is_home() && $wp_query->is_posts_page==1) + { + $pageURL = get_permalink(get_option('page_for_posts')); + } + elseif (is_home() || is_front_page()) + { + $pageURL = get_bloginfo('url'); + } + elseif (is_post_type_archive()) + { + $pageURL = get_post_type_archive_link( get_query_var('post_type') ); + } + elseif (is_single() || is_page()) + { + $pageURL = get_permalink($wp_query->post->ID); + } + elseif (is_category()) + { + $pageURL = get_category_link($cat); + } + elseif (is_tag()) + { + $tag_id = $wpdb->get_var("SELECT ".$wpdb->terms.".term_id FROM $wpdb->term_taxonomy + LEFT JOIN $wpdb->terms + ON (".$wpdb->term_taxonomy.".term_id = ".$wpdb->terms.".term_id) + WHERE ".$wpdb->terms.".slug = '$tag' + AND ".$wpdb->term_taxonomy.".taxonomy = 'post_tag' LIMIT 1"); + $pageURL = get_tag_link($tag_id); + } + elseif (is_author()) + { + $pageURL = get_author_posts_url($author); + } + elseif (is_date()) + { + + if ($day) + { + $pageURL = get_day_link( $year, $monthnum, $day); + } + elseif ($monthnum) + { + $pageURL = get_month_link( $year, $monthnum, $day); + } + elseif ($year) + { + $pageURL = get_year_link( $year, $monthnum, $day); + } + + } + elseif (is_search()) + { + $pageURL = get_bloginfo('wpurl'); + if ("/" != substr($pageURL, -1)) $pageURL = $pageURL . "/"; + $pageURL .= '?s='.stripslashes(strip_tags($_REQUEST['s'])).''; + } + + if (!$pageURL || $pageURL=="" || !is_string($pageURL)) { + $pageURL = ""; + $pageURL = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https://' : 'http://'; + + if ($_SERVER["SERVER_PORT"] != "80") { + $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; + } else { + $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; + } + + //————–added by mick + if (!strstr(get_bloginfo('url'),'www.')) $pageURL = str_replace('www.','', $pageURL ); + //——————– + } + if ($pageURL && !is_search()) if ("/" != substr($pageURL, -1)) $pageURL = $pageURL . "/"; + + + return $pageURL; +} + +/** + * Add function to widgets_init that'll load our widget. + * @since 0.1 + */ +add_action( 'widgets_init', 'danixland_user_panel' ); + +/** + * Register our widget. + * 'User_Panel' is the widget class used below. + * + * @since 0.1 + */ +function danixland_user_panel() { + register_widget( 'User_Panel' ); +} + +/** + * User_Panel class. + * This class handles everything that needs to be handled with the widget: + * the settings, form, display, and update. Nice! + * + * @since 0.1 + */ +class User_Panel extends WP_Widget { + + /** + * Widget setup. + */ + function __construct() { + parent::__construct( + 'dnx-user-panel', // id_base + __('danixland User Panel', 'dnxup' ), // Name + array( 'description' => __('An improved version of the meta widget', 'dnxup') ) + ); + } + + /** + * How to display the widget on the public side of the site. + */ + public function widget( $args, $instance ) { + extract( $args ); + global $user_ID, $current_user; + $dnxup_options = get_option('dnxup_options'); + extract( $dnxup_options ); + + // Let's use our title + if($user_ID != '') { // if user is logged in let's greet him good + $current_user = wp_get_current_user(); + if( '' != $logged_in_heading ) { + $title = apply_filters('widget_title', str_replace('%username%',ucwords($current_user->display_name),$logged_in_heading)); + } else { + $title = false; + } + } else { // user is not logged in, let's treat him as a guest + if( '' != $logged_out_heading ) { + $title = apply_filters('widget_title', str_replace('%username%',ucwords($current_user->display_name),$logged_out_heading)); + } else { + $title = false; + } + } + + + /* Before widget (defined by themes). */ + echo $before_widget; + + /* Display the widget title if one was input (before and after defined by themes). */ + if ( $title ) + echo $before_title . $title . $after_title; + + /** + * if user is logged in to your site + * @since 0.8 + */ + if( $user_ID != '' ) { + /* If show_gravatar was selected, show the User's Gravatar. */ + if ( $show_gravatar ) { + echo get_avatar($user_ID, 75); + } + echo ''; + /** + * else if user is logged out and registration is disabled + * @since 0.8 + */ + } else { + if( ! get_option('users_can_register') ) { + echo ''; + /** + * or if user is still logged out but user registration is enabled + * @since 0.9 + */ + } else { + echo ''; + } + } + /* After widget (defined by themes). */ + echo $after_widget; + } + + /** + * Displays just a quick notice with a link to the Settings page + */ + public function form( $instance ) { + ?> + + +

+ Settings Page?', 'dnxup'), + admin_url('options-general.php?page=dnxup_options') + ); ?> +

+ diff --git a/danixland-user-panel.pot b/danixland-user-panel.pot new file mode 100644 index 0000000..2c26aa9 --- /dev/null +++ b/danixland-user-panel.pot @@ -0,0 +1,135 @@ +# Copyright (C) 2015 danixland User Panel +# This file is distributed under the same license as the danixland User Panel package. +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: danixland User Panel\n" +"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/danixland-user-" +"panel\n" +"POT-Creation-Date: 2016-02-08 14:31+0100\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"PO-Revision-Date: 2016-02-08 14:09+0100\n" +"Language-Team: \n" +"X-Generator: Poedit 1.8.6\n" +"Last-Translator: danix \n" +"X-Poedit-Basepath: .\n" +"X-Poedit-KeywordsList: __;_e;_n;_x;_ex\n" +"X-Poedit-SearchPath-0: .\n" + +#: danixland-user-panel.php:33 +msgid "User Panel Options" +msgstr "" + +#: danixland-user-panel.php:44 +msgid "danixland User Panel Settings" +msgstr "" + +#: danixland-user-panel.php:79 danixland-user-panel.php:301 +#: include/plugin-options.php:89 +msgid "Dashboard" +msgstr "" + +#: danixland-user-panel.php:79 include/plugin-options.php:89 +msgid "Profile" +msgstr "" + +#: danixland-user-panel.php:253 +msgid "danixland User Panel" +msgstr "" + +#: danixland-user-panel.php:254 +msgid "An improved version of the meta widget" +msgstr "" + +#: danixland-user-panel.php:302 +msgid "Profile and personal options" +msgstr "" + +#: danixland-user-panel.php:334 +msgid "Exit" +msgstr "" + +#: danixland-user-panel.php:343 danixland-user-panel.php:353 +msgid "Login" +msgstr "" + +#: danixland-user-panel.php:344 danixland-user-panel.php:354 +msgid "Forgot your password?" +msgstr "" + +#: danixland-user-panel.php:352 +msgid "Register" +msgstr "" + +#: danixland-user-panel.php:370 +#, php-format +msgid "" +"Nothing to set here, already had a look at the Settings " +"Page?" +msgstr "" + +#: include/plugin-options.php:6 +msgid "Gravatar setting" +msgstr "" + +#: include/plugin-options.php:9 include/plugin-options.php:25 +msgid "Logged out Heading" +msgstr "" + +#: include/plugin-options.php:12 include/plugin-options.php:28 +msgid "Logged in Heading" +msgstr "" + +#: include/plugin-options.php:15 include/plugin-options.php:31 +msgid "Logged in Custom Links" +msgstr "" + +#: include/plugin-options.php:22 +msgid "Display Gravatar?" +msgstr "" + +#: include/plugin-options.php:39 +msgid "Select this if you want to display the Gravatar image on the widget" +msgstr "" + +#: include/plugin-options.php:44 +msgid "Heading for widget when user is logged out." +msgstr "" + +#: include/plugin-options.php:49 +msgid "Heading for widget when user is logged in." +msgstr "" + +#: include/plugin-options.php:54 +msgid "Custom Links to display when user is logged in." +msgstr "" + +#: include/plugin-options.php:65 +msgid "Select this to display the Gravatar image for the current user" +msgstr "" + +#: include/plugin-options.php:72 +msgid "" +"This is the heading your users will see when they're not logged in to your " +"site" +msgstr "" + +#: include/plugin-options.php:79 +msgid "" +"This is the heading your users will see when they're logged in. " +"%username% shows username." +msgstr "" + +#: include/plugin-options.php:88 +msgid "" +"One link per line. Note: Logout link will always show " +"regardless. Tip: Add |true after a link to only show it to " +"admin users or alternatively use a |user_capability and the " +"link will only be shown to users with that capability. See http://codex." +"wordpress.org/Roles_and_Capabilities for more info on roles and " +"Capabilities.
You can also type %USERNAME% and " +"%USERID% which will be replaced by the user info.
Example:" +msgstr "" diff --git a/include/options-register.php b/include/options-register.php new file mode 100644 index 0000000..506a17b --- /dev/null +++ b/include/options-register.php @@ -0,0 +1,52 @@ + array( + 'href' => array(), + 'title' => array(), + 'class' => array(), + 'id' => array() + ) + ); + $valid_input['logged_in_links'] = ('' == $input['logged_in_links'] ? '' : wp_kses($input['logged_in_links'], $valid_data) ); + } elseif($reset) { + $default_options = dnxup_db_defaults(); + // Show Gravatar + $valid_input['show_gravatar'] = $default_options['show_gravatar']; + // Logged out Heading + $valid_input['logged_out_heading'] = $default_options['logged_out_heading']; + // Logged in Heading + $valid_input['logged_in_heading'] = $default_options['logged_in_heading']; + // Logged in Links + $valid_input['logged_in_links'] = $default_options['logged_in_links']; + } + return $valid_input; +} +?> \ No newline at end of file diff --git a/include/plugin-options.php b/include/plugin-options.php new file mode 100644 index 0000000..2635375 --- /dev/null +++ b/include/plugin-options.php @@ -0,0 +1,94 @@ + +

+ +

+ +

+ +

+ + /> + + + + + + +%username% shows username.', 'dnxup'); ?> + + +
+

+ One link per line. Note: Logout link will always show regardless. Tip: Add |true after a link to only show it to admin users or alternatively use a |user_capability and the link will only be shown to users with that capability. See http://codex.wordpress.org/Roles_and_Capabilities for more info on roles and Capabilities.
You can also type %USERNAME% and %USERID% which will be replaced by the user info.
Example:",'dnxup'); + echo '
<a href="'.get_bloginfo('wpurl').'/wp-admin/">'. __('Dashboard', 'dnxup') . '</a>
<a href="'.get_bloginfo('wpurl').'/wp-admin/profile.php">'. __('Profile', 'dnxup') .'</a>
'; ?> +

+
+ \ No newline at end of file diff --git a/languages/dnxup-az_AZ.mo b/languages/dnxup-az_AZ.mo new file mode 100644 index 0000000..4da46eb Binary files /dev/null and b/languages/dnxup-az_AZ.mo differ diff --git a/languages/dnxup-it_IT.mo b/languages/dnxup-it_IT.mo new file mode 100644 index 0000000..77ce927 Binary files /dev/null and b/languages/dnxup-it_IT.mo differ diff --git a/languages/it_IT.po b/languages/it_IT.po new file mode 100644 index 0000000..07eac3b --- /dev/null +++ b/languages/it_IT.po @@ -0,0 +1,150 @@ +# Copyright (C) 2015 danixland User Panel +# This file is distributed under the same license as the danixland User Panel package. +msgid "" +msgstr "" +"Project-Id-Version: danixland User Panel\n" +"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/danixland-user-" +"panel\n" +"POT-Creation-Date: 2016-02-08 14:31+0100\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"PO-Revision-Date: 2016-02-08 14:41+0100\n" +"Language-Team: \n" +"X-Generator: Poedit 1.8.6\n" +"X-Poedit-Basepath: .\n" +"X-Poedit-KeywordsList: __;_e;_n;_x;_ex\n" +"Last-Translator: danix \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"Language: it_IT\n" +"X-Poedit-SearchPath-0: .\n" + +#: danixland-user-panel.php:33 +msgid "User Panel Options" +msgstr "Opzioni di User Panel" + +#: danixland-user-panel.php:44 +msgid "danixland User Panel Settings" +msgstr "Impostazioni di danixland User Panel" + +#: danixland-user-panel.php:79 danixland-user-panel.php:301 +#: include/plugin-options.php:89 +msgid "Dashboard" +msgstr "Bacheca" + +#: danixland-user-panel.php:79 include/plugin-options.php:89 +msgid "Profile" +msgstr "Profilo" + +#: danixland-user-panel.php:253 +msgid "danixland User Panel" +msgstr "danixland User Panel" + +#: danixland-user-panel.php:254 +msgid "An improved version of the meta widget" +msgstr "Una versione migliorata del Meta Widget" + +#: danixland-user-panel.php:302 +msgid "Profile and personal options" +msgstr "Profilo e impostazioni personali" + +#: danixland-user-panel.php:334 +msgid "Exit" +msgstr "Esci" + +#: danixland-user-panel.php:343 danixland-user-panel.php:353 +msgid "Login" +msgstr "Login" + +#: danixland-user-panel.php:344 danixland-user-panel.php:354 +msgid "Forgot your password?" +msgstr "Password dimenticata?" + +#: danixland-user-panel.php:352 +msgid "Register" +msgstr "Registrati" + +#: danixland-user-panel.php:370 +#, php-format +msgid "" +"Nothing to set here, already had a look at the Settings " +"Page?" +msgstr "" +"Niente di importante quì. Hai già visto la pagina delle " +"impostazioni?" + +#: include/plugin-options.php:6 +msgid "Gravatar setting" +msgstr "Impostazioni Gravatar" + +#: include/plugin-options.php:9 include/plugin-options.php:25 +msgid "Logged out Heading" +msgstr "Intestazione utenti non registrati" + +#: include/plugin-options.php:12 include/plugin-options.php:28 +msgid "Logged in Heading" +msgstr "Intestazione utenti registrati" + +#: include/plugin-options.php:15 include/plugin-options.php:31 +msgid "Logged in Custom Links" +msgstr "Link personalizzati per utenti registrati" + +#: include/plugin-options.php:22 +msgid "Display Gravatar?" +msgstr "Mostrare il Gravatar?" + +#: include/plugin-options.php:39 +msgid "Select this if you want to display the Gravatar image on the widget" +msgstr "Seleziona se vuoi mostrare l'immagine Gravatar nel widget" + +#: include/plugin-options.php:44 +msgid "Heading for widget when user is logged out." +msgstr "Intestazione del widget per utenti non collegati al sito." + +#: include/plugin-options.php:49 +msgid "Heading for widget when user is logged in." +msgstr "Intestazione del widget per utenti collegati al sito." + +#: include/plugin-options.php:54 +msgid "Custom Links to display when user is logged in." +msgstr "Link personalizzati per utenti collegati al sito." + +#: include/plugin-options.php:65 +msgid "Select this to display the Gravatar image for the current user" +msgstr "Seleziona per mostrare l'immagine Gravatar dell'utente" + +#: include/plugin-options.php:72 +msgid "" +"This is the heading your users will see when they're not logged in to your " +"site" +msgstr "" +"Questa è l'intestazione visualizzata dagli utenti del sito non collegati" + +#: include/plugin-options.php:79 +msgid "" +"This is the heading your users will see when they're logged in. " +"%username% shows username." +msgstr "" +"Questa è l'intestazione visualizzata dagli utenti del sito collegati. " +"%username% visualizzerà il nome utente." + +#: include/plugin-options.php:88 +msgid "" +"One link per line. Note: Logout link will always show " +"regardless. Tip: Add |true after a link to only show it to " +"admin users or alternatively use a |user_capability and the " +"link will only be shown to users with that capability. See http://codex." +"wordpress.org/Roles_and_Capabilities for more info on roles and " +"Capabilities.
You can also type %USERNAME% and " +"%USERID% which will be replaced by the user info.
Example:" +msgstr "" +"Un link per riga. Nota: il link di logout sarà sempre " +"visibile. Puoi aggiungere |true dopo un link per mostrarlo " +"solo agli utenti amministratori oppure puoi usare una |" +"user_capability e il link sarà visibile solo agli utenti con quella " +"capacità. Leggi http://codex.wordpress.org/" +"Roles_and_Capabilities per ulteriori informazioni su ruoli e capacità." +"
Puoi anche usare %USERNAME% e %USERID% che " +"saranno sostituiti con le relative informazioni sull'utente.
Esempio:" diff --git a/readme.txt b/readme.txt new file mode 100644 index 0000000..7cb8823 --- /dev/null +++ b/readme.txt @@ -0,0 +1,165 @@ +=== danixland-user-panel === +Contributors: danixland +Donate link: http://danixland.net +Tags: user, panel, dashboard, widget, sidebar, gravatar, links, +Requires at least: 3.0.1 +Tested up to: 4.4 +Stable tag: 1.4.2 + +This widget is an enhanced version of the standard meta widget for the sidebar. + +== Description == + +danixland-user-panel is a plugin that adds a new widget to be used on the Sidebar (or wherever you like). +This widget is an enhanced version of the standard meta widget, it shows the current user's Gravatar (can be disabled +in the control panel), shows a link to your site's Dashboard, to the current user's options and detects if a user is +logged in or not. +If a user is not logged in, the widget checks if user registration is enabled and shows different links based on how +the admin set up registration on the site. +If registration is enabled, the widget shows a link to the registration page plus the usual "login" and "forgotten password" +where if registration is disabled, it shows only the standard "login" link. + +This plugin allows the admin to display a set of custom links which can be shown based on usernames, user ids or even user roles and capabilities. + +_Starting with version 1.2 this plugin uses some code from the sidebar-login by [Mike Jolley](http://mikejolley.com), so a big **thank you** goes to him for releasing this nice piece of software._ + + +== Installation == + +Installing danixland-user-panel is straightforward and requires just a few seconds: + +If you use the **"Add New Plugin"** pane from your dashboard just install it and activate it, then proceed to the last step and configure it. +Otherwise follow these steps: + +1. Download the latest version of the plugin. +1. If using the "Install Plugins->Upload" section on the WordPress admin area just upload the zip file, otherwise unpack the zip file and upload + the **"danixland-user-panel"** directory inside the "wp-content/plugins" directory of your WordPress installation using your favourite ftp client. +1. Activate the plugin through the 'Plugins' menu in WordPress. +1. Add the widget to your sidebar from Appearance->Widgets. +1. Configure the widget options through the Setting Panel which can be accessed from the sidebar clicking on Settings->User Panel Options. + +== Frequently Asked Questions == + += What can I do to customize even more the appearance of the widget? = + +The code generated by the plugin is wrapped in an HTML element with class `dnx-user-panel`, what kind of element is decided by your theme, if unsure ask his creator. +Contained in that element you'll find an unordered list with id `dnxup_login_links` and a variable class based on what kind of user is surfing the page; these are the classes you can use: + +* If the user is logged in to your site: `.user_logged_in` +* If the user is not logged in to your site and you have registration enabled: `.logged_out_yesreg` +* Or if the user is not logged in to your site and you don't want new users to register: `.logged_out_noreg` + +Also each custom list item has class `dnxup_custom_link`, predefined list items have a specific id, and you can specify ids and classes for your custom links too!! +These are the predefined ids for every list item: + +###### Logged out users, no registration: + +* `#login` +* `#lostpassword` + +###### Logged out users, registration enabled: + +* `#register` +* `#login` +* `#lostpassword` + +###### Logged in users: + +* `#dashboard` +* `#profile` +* `#logout` + += I'm stuck with your plugin and don't seem to be able to customize it/make it work, can you help me? = + +Of course, you can ask for help on [the forums](http://wordpress.org/support/) or write a comment on the main article for this plugin on [my site](http://danixland.net/blog/2010/603-danixland-user-panel-plugin/), I'll reply ASAP ;) + += I'd like this plugin to be translated in my language, can you do this for me? = + +Starting with version 1.2 the plugin ships with a .POT file that can be used to create a translation of the plugin in your language, so if you're familiar with english you can help by providing a translation and it will be added to future versions of the plugin along with a link to your site on these pages ;) + +To provide a translation simply edit the file "danixland-user-panel.pot" and fill every line with the traduction in your language, then save it as *yourlanguagecode.po* (E.G. it_IT.po for Italian), then contact me via the forums or my site and I'll tell you how to send this file to me. I'll add your translation ASAP. + +A number of softwares exists to help you with .po files, like [POEdit](http://sourceforge.net/projects/poedit/) or [Lokalize](http://userbase.kde.org/Lokalize "for kde users") + +####If you have any other questions feel free to ask + +== Screenshots == + +1. The link in the admin area's sidebar. It's accessible only to those users who can [manage-options](http://codex.wordpress.org/Roles_and_Capabilities#manage_options). +2. The heading of the settings page with the option to enable/disable the visualization of the Gravatar image. +3. The two heading options, here you can set a message to welcome your users, both when they are logged in or not. +4. The custom link area with two custom links set. Notice the tips in the description which will help you use it at its best. +5. The widget on the front page of the site, displayed in the footer of the standard twentyeleven theme with no customization. Here the user is logged in and has two custom links. +6. The same widget but showing only the "login" and "forgot password" links since the user is not logged in and registration is not allowed. +7. Here's the widget on the front site, the user has not logged in and registration of new users is allowed. + +== Changelog == + += 1.4.2 = +* fixed i18n functionality. This plugin is now fully international and is now shipping with a working POT and an italian translation. + += 1.4.1 = +* wp_currentuserinfo() is deprecated as of latest WordPress 4.5-alpha, so I had to switch to wp_get_current_user() instead. + += 1.4 = +* Plugin now uses the __construct method which is recommended since WP 4.3 + += 1.3 = +* Fixed errors that rendered the plugin unusable on WP 4.1 beta 1 + += 1.2.1 = +* Added Azerbaijani translation + += 1.2 = +* Migration to the [Settings API](http://codex.wordpress.org/Settings_API). +* Added options to set multiple custom links. +* [i18n](http://codex.wordpress.org/I18n_for_WordPress_Developers) setup and plugin shipping now with standard .pot file to help translators. + += 1.1.0 = +* Added possibility to add a custom link + += 1.0.2 = +* Fixed "plugin link" that was pointing to a wrong url + += 1.0.1 = +* Added "password forgotten" link in no registration mode. + += 1.0 = +* This is the first version of the plugin. + +== Upgrade Notice == + += 1.4.2 = +* Fixed translation system, no plugin functionalities modified. Upgrade if you want to enjoy this plugin in your own language. + += 1.4.1 = +* Small plugin edit that avoids using a function that will be deprecated with WordPress 4.5 (future proofing FTW!!). Upgrade recommended! + += 1.4 = +* Some plugin fixes to avoid returning errors because of the deprecated WP_Widget method. + += 1.2 = +* Major plugin changes, adopted the new [WordPress Settings API](http://codex.wordpress.org/Settings_API) which improves overall security, so it is higly recommended to upgrade. + += 1.1.0 = +* This version adds an useful functionality, so it is recommended to upgrade. + += 1.0.2 = +Minor fix, this version is the same as the 1.0.1 + += 1.0.1 = +This version adds the "password forgotten" in no registration mode, so it's useful to upgrade. + += 1.0 = +No upgrade since this is the first version ;) + + + +== ToDo list == + +List is actually empty, but I'm open to suggestions. + +== Translations == + +Azerbaijani translation (for previous version, not working anymore) by: [deqaxwer](http://wordpress.org/support/profile/deqaxwer) +Italian translation by me :)