diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-03-01 08:38:17 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-03-01 08:38:17 +0100 |
commit | 844bef5070b071aa5ddf823036d2fe2285b40a7b (patch) | |
tree | 129a67cbed69c4ed6f286e9a0bf3770b9c82ffc6 | |
parent | 97e329906e3cde0bacafcceb94780bedd44f1f32 (diff) | |
parent | 6210b7727f6c8542daaa62d1ed7f9ec1f74323f2 (diff) | |
download | volse-hubzilla-844bef5070b071aa5ddf823036d2fe2285b40a7b.tar.gz volse-hubzilla-844bef5070b071aa5ddf823036d2fe2285b40a7b.tar.bz2 volse-hubzilla-844bef5070b071aa5ddf823036d2fe2285b40a7b.zip |
Merge branch 'dev' into 3.2RC
66 files changed, 230 insertions, 48 deletions
diff --git a/Zotlabs/Module/Display.php b/Zotlabs/Module/Display.php index 11dd0d174..8e8a1ed24 100644 --- a/Zotlabs/Module/Display.php +++ b/Zotlabs/Module/Display.php @@ -215,6 +215,7 @@ class Display extends \Zotlabs\Web\Controller { $pager_sql = sprintf(" LIMIT %d OFFSET %d ", intval(\App::$pager['itemspage']),intval(\App::$pager['start'])); if($load || ($checkjs->disabled()) || ($module_format !== 'html')) { + $r = null; require_once('include/channel.php'); @@ -235,7 +236,7 @@ class Display extends \Zotlabs\Web\Controller { } } - if($r === null) { + if(! $r) { // in case somebody turned off public access to sys channel content using permissions // make that content unsearchable by ensuring the owner uid can't match @@ -281,7 +282,7 @@ class Display extends \Zotlabs\Web\Controller { } } - if($r === null) { + if(! $r) { // in case somebody turned off public access to sys channel content using permissions // make that content unsearchable by ensuring the owner_xchan can't match if(! perm_is_allowed($sysid,$observer_hash,'view_stream')) diff --git a/Zotlabs/Module/Email_validation.php b/Zotlabs/Module/Email_validation.php index b8bb720cd..c1ba9a01a 100644 --- a/Zotlabs/Module/Email_validation.php +++ b/Zotlabs/Module/Email_validation.php @@ -7,12 +7,11 @@ class Email_validation extends \Zotlabs\Web\Controller { function post() { + $success = false; if($_POST['token']) { // This will redirect internally on success unless the channel is auto_created - if(! account_approve(trim(basename($_POST['token'])))) { - notice('Token verification failed.'); - } - else { + if(account_approve(trim(basename($_POST['token'])))) { + $success = true; if(get_config('system','auto_channel_create')) { $next_page = get_config('system', 'workflow_channel_next', 'profiles'); } @@ -21,7 +20,9 @@ class Email_validation extends \Zotlabs\Web\Controller { } } } - + if(! $success) { + notice( t('Token verification failed.') . EOL); + } } diff --git a/Zotlabs/Module/Go.php b/Zotlabs/Module/Go.php index d23e940c3..d33136d9e 100644 --- a/Zotlabs/Module/Go.php +++ b/Zotlabs/Module/Go.php @@ -36,7 +36,7 @@ class Go extends \Zotlabs\Web\Controller { 'cover_photo' => t('Upload a cover photo'), 'profiles' => t('Edit your default profile'), 'suggest' => t('View friend suggestions'), - 'directory' => t('View the directory to find other interesting channels'), + 'directory' => t('View the channel directory'), 'settings' => t('View/edit your channel settings'), 'help' => t('View the site or project documentation'), 'channel/' . $channel['channel_address'] => t('Visit your channel homepage'), diff --git a/Zotlabs/Module/Register.php b/Zotlabs/Module/Register.php index c7fa1cee8..5356669e9 100644 --- a/Zotlabs/Module/Register.php +++ b/Zotlabs/Module/Register.php @@ -123,9 +123,6 @@ class Register extends \Zotlabs\Web\Controller { if($policy == REGISTER_OPEN ) { if($email_verify) { $res = verify_email_address($result); - if($res) { - info( t('Registration successful. Please check your email for validation instructions.') . EOL ) ; - } } else { $res = send_register_success_email($result['email'],$result['password']); @@ -133,7 +130,8 @@ class Register extends \Zotlabs\Web\Controller { if($res) { if($invite_code) { info( t('Registration successful. Continue to create your first channel...') . EOL ) ; - } else { + } + else { info( t('Registration successful. Please check your email for validation instructions.') . EOL ) ; } } diff --git a/Zotlabs/Module/Settings/Featured.php b/Zotlabs/Module/Settings/Featured.php index 9c5a7b16c..1da139206 100644 --- a/Zotlabs/Module/Settings/Featured.php +++ b/Zotlabs/Module/Settings/Featured.php @@ -61,7 +61,8 @@ class Featured { $tpl = get_markup_template("settings_addons.tpl"); $o .= replace_macros($tpl, array( '$form_security_token' => get_form_security_token("settings_featured"), - '$title' => t('Feature/Addon Settings'), + '$title' => t('Addon Settings'), + '$descrip' => t('Please save/submit changes to any panel before opening another.'), '$settings_addons' => $settings_addons )); return $o; diff --git a/Zotlabs/Widget/Newmember.php b/Zotlabs/Widget/Newmember.php new file mode 100644 index 000000000..898942ccc --- /dev/null +++ b/Zotlabs/Widget/Newmember.php @@ -0,0 +1,83 @@ +<?php + +namespace Zotlabs\Widget; + +class Newmember { + + function widget($arr) { + + if(! local_channel()) + return EMPTY_STR; + + $c = \App::get_channel(); + if(! $c) + return EMPTY_STR; + + + $a = \App::get_account(); + if(! $a) + return EMPTY_STR; + + + if(datetime_convert('UTC','UTC',$a['account_created']) < datetime_convert('UTC','UTC', 'now - 60 days')) + return EMPTY_STR; + + // This could be a new account that was used to clone a very old channel + + $ob = \App::get_observer(); + if($ob && array_key_exists('xchan_name_date',$ob) && $ob['xchan_name_date'] < datetime_convert('UTC','UTC','now - 60 days')) + return EMPTY_STR; + + + $options = [ + t('Profile Creation'), + [ + 'profile_photo' => t('Upload profile photo'), + 'cover_photo' => t('Upload cover photo'), + 'profiles' => t('Edit your profile'), + ], + + t('Find and Connect with others'), + [ + 'directory' => t('View the channel directory'), + 'suggest' => t('View friend suggestions'), + 'connections' => t('Manage your connections'), + ], + + t('Communicate'), + [ + 'channel/' . $channel['channel_address'] => t('View your channel homepage'), + 'network' => t('View your network stream'), + ], + + t('Miscellaneous'), + [ + 'settings' => t('Settings'), + 'help' => t('Documentation'), + ] + ]; + + $site_firehose = ((intval(get_config('system','site_firehose',0))) ? true : false); + $net_firehose = ((get_config('system','disable_discover_tab',1)) ? false : true); + + + // hack to put this in the correct spot of the array + + if($site_firehose || $net_firehose) { + $options[5]['pubstream'] = t('View public stream. Warning: not moderated'); + } + + $o = replace_macros(get_markup_template('new_member.tpl'), [ + '$title' => t('New Member Links'), + '$options' => $options + + ]); + + return $o; + + } + +} + + + diff --git a/Zotlabs/Widget/Settings_menu.php b/Zotlabs/Widget/Settings_menu.php index e15ed96a5..455fdcb9b 100644 --- a/Zotlabs/Widget/Settings_menu.php +++ b/Zotlabs/Widget/Settings_menu.php @@ -54,7 +54,7 @@ class Settings_menu { } $tabs[] = array( - 'label' => t('Feature/Addon settings'), + 'label' => t('Addon settings'), 'url' => z_root().'/settings/featured', 'selected' => ((argv(1) === 'featured') ? 'active' : ''), ); @@ -79,7 +79,7 @@ class Settings_menu { 'selected' => '' ); - if(get_account_techlevel() > 0) { + if(feature_enabled(local_channel(),'oauth_clients')) { $tabs[] = array( 'label' => t('Connected apps'), 'url' => z_root() . '/settings/oauth', @@ -87,7 +87,7 @@ class Settings_menu { ); } - if(get_account_techlevel() > 2) { + if(feature_enabled(local_channel(),'access_tokens')) { $tabs[] = array( 'label' => t('Guest Access Tokens'), 'url' => z_root() . '/settings/tokens', @@ -50,7 +50,7 @@ require_once('include/attach.php'); require_once('include/bbcode.php'); define ( 'PLATFORM_NAME', 'hubzilla' ); -define ( 'STD_VERSION', '3.2RC' ); +define ( 'STD_VERSION', '3.3' ); define ( 'ZOT_REVISION', '1.3' ); define ( 'DB_UPDATE_VERSION', 1206 ); diff --git a/include/account.php b/include/account.php index 3ac485974..40cf281c3 100644 --- a/include/account.php +++ b/include/account.php @@ -530,7 +530,7 @@ function account_deny($hash) { function account_approve($hash) { - $ret = array('success' => false); + $ret = false; // Note: when the password in the register table is 'verify', the uid actually contains the account_id diff --git a/include/datetime.php b/include/datetime.php index 1e9a1fa51..766c90d16 100644 --- a/include/datetime.php +++ b/include/datetime.php @@ -125,7 +125,7 @@ function datetime_convert($from = 'UTC', $to = 'UTC', $s = 'now', $fmt = "Y-m-d */ function dob($dob) { - if ($dob === '0000-00-00') + if ($dob === '0000-00-00' || $dob === '') $value = ''; else $value = (($year) ? datetime_convert('UTC','UTC',$dob,'Y-m-d') : datetime_convert('UTC','UTC',$dob,'m-d')); diff --git a/include/features.php b/include/features.php index 839faff67..993266977 100644 --- a/include/features.php +++ b/include/features.php @@ -54,14 +54,6 @@ function get_features($filtered = true) { t('General Features'), - [ - 'multi_profiles', - t('Multiple Profiles'), - t('Ability to create multiple profiles'), - false, - get_config('feature_lock','multi_profiles'), - feature_level('multi_profiles',3), - ], [ 'advanced_profiles', @@ -163,14 +155,6 @@ function get_features($filtered = true) { feature_level('ajaxchat',1), ], - [ - 'permcats', - t('Permission Groups'), - t('Provide alternate connection permission roles.'), - false, - get_config('feature_lock','permcats'), - feature_level('permcats',2), - ], [ 'smart_birthdays', @@ -219,6 +203,58 @@ function get_features($filtered = true) { ], ], + + 'access_control' => [ + t('Access Control and Permissions'), + + [ + 'groups', + t('Privacy Groups'), + t('Enable management and selection of privacy groups'), + true, + get_config('feature_lock','groups'), + feature_level('groups',0), + ], + + [ + 'multi_profiles', + t('Multiple Profiles'), + t('Ability to create multiple profiles'), + false, + get_config('feature_lock','multi_profiles'), + feature_level('multi_profiles',3), + ], + + + [ + 'permcats', + t('Permission Groups'), + t('Provide alternate connection permission roles.'), + false, + get_config('feature_lock','permcats'), + feature_level('permcats',2), + ], + + [ + 'oauth_clients', + t('OAuth Clients'), + t('Manage authenticatication tokens for mobile and remote apps.'), + false, + get_config('feature_lock','oauth_clients'), + feature_level('oauth_clients',1), + ], + + [ + 'access_tokens', + t('Access Tokens'), + t('Create access tokens so that non-members can access private content.'), + false, + get_config('feature_lock','access_tokens'), + feature_level('access_tokens',2), + ], + + ], + // Post composition 'composition' => [ @@ -312,14 +348,6 @@ function get_features($filtered = true) { feature_level('archives',1), ], - [ - 'groups', - t('Privacy Groups'), - t('Enable management and selection of privacy groups'), - true, - get_config('feature_lock','groups'), - feature_level('groups',0), - ], [ 'savedsearch', diff --git a/view/pdl/mod_admin.pdl b/view/pdl/mod_admin.pdl index deee4551b..1cf49750d 100644 --- a/view/pdl/mod_admin.pdl +++ b/view/pdl/mod_admin.pdl @@ -3,4 +3,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_appman.pdl b/view/pdl/mod_appman.pdl index d2b1379a5..8bd407372 100644 --- a/view/pdl/mod_appman.pdl +++ b/view/pdl/mod_appman.pdl @@ -3,4 +3,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_apps.pdl b/view/pdl/mod_apps.pdl index d2b1379a5..8bd407372 100644 --- a/view/pdl/mod_apps.pdl +++ b/view/pdl/mod_apps.pdl @@ -3,4 +3,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_articles.pdl b/view/pdl/mod_articles.pdl index c7599a008..b823787f4 100644 --- a/view/pdl/mod_articles.pdl +++ b/view/pdl/mod_articles.pdl @@ -5,4 +5,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_blocks.pdl b/view/pdl/mod_blocks.pdl index 6ef7993b5..4a90a4f36 100644 --- a/view/pdl/mod_blocks.pdl +++ b/view/pdl/mod_blocks.pdl @@ -3,4 +3,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_cal.pdl b/view/pdl/mod_cal.pdl index c34898dd5..7e15fc869 100644 --- a/view/pdl/mod_cal.pdl +++ b/view/pdl/mod_cal.pdl @@ -3,4 +3,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_cards.pdl b/view/pdl/mod_cards.pdl index f5606dcb8..f0403e380 100644 --- a/view/pdl/mod_cards.pdl +++ b/view/pdl/mod_cards.pdl @@ -5,4 +5,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_cdav.pdl b/view/pdl/mod_cdav.pdl index d31308d90..c0f9a511f 100644 --- a/view/pdl/mod_cdav.pdl +++ b/view/pdl/mod_cdav.pdl @@ -3,4 +3,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_channel.pdl b/view/pdl/mod_channel.pdl index f7ac0b4ef..5857fca95 100644 --- a/view/pdl/mod_channel.pdl +++ b/view/pdl/mod_channel.pdl @@ -10,4 +10,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_chanview.pdl b/view/pdl/mod_chanview.pdl index 5c8ca77d5..a5461df50 100644 --- a/view/pdl/mod_chanview.pdl +++ b/view/pdl/mod_chanview.pdl @@ -3,4 +3,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_chat.pdl b/view/pdl/mod_chat.pdl index 2f1f5c8d1..808ba3d5a 100644 --- a/view/pdl/mod_chat.pdl +++ b/view/pdl/mod_chat.pdl @@ -7,4 +7,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_cloud.pdl b/view/pdl/mod_cloud.pdl index 5c8ca77d5..a5461df50 100644 --- a/view/pdl/mod_cloud.pdl +++ b/view/pdl/mod_cloud.pdl @@ -3,4 +3,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_common.pdl b/view/pdl/mod_common.pdl index c34898dd5..7e15fc869 100644 --- a/view/pdl/mod_common.pdl +++ b/view/pdl/mod_common.pdl @@ -3,4 +3,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_connect.pdl b/view/pdl/mod_connect.pdl index 23b8d9f71..d7e5d29f3 100644 --- a/view/pdl/mod_connect.pdl +++ b/view/pdl/mod_connect.pdl @@ -3,4 +3,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_connections.pdl b/view/pdl/mod_connections.pdl index 7cead4fe8..b777cada5 100644 --- a/view/pdl/mod_connections.pdl +++ b/view/pdl/mod_connections.pdl @@ -6,4 +6,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_connedit.pdl b/view/pdl/mod_connedit.pdl index 3f57ed87b..4bdadb5e8 100644 --- a/view/pdl/mod_connedit.pdl +++ b/view/pdl/mod_connedit.pdl @@ -6,4 +6,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_defperms.pdl b/view/pdl/mod_defperms.pdl index 53a3ac9e5..37c85c765 100644 --- a/view/pdl/mod_defperms.pdl +++ b/view/pdl/mod_defperms.pdl @@ -3,4 +3,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_directory.pdl b/view/pdl/mod_directory.pdl index 7b430738b..2e408c29f 100644 --- a/view/pdl/mod_directory.pdl +++ b/view/pdl/mod_directory.pdl @@ -6,4 +6,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_display.pdl b/view/pdl/mod_display.pdl index e657fa88b..95f069031 100644 --- a/view/pdl/mod_display.pdl +++ b/view/pdl/mod_display.pdl @@ -1,3 +1,4 @@ [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_editblock.pdl b/view/pdl/mod_editblock.pdl index 6ef7993b5..4a90a4f36 100644 --- a/view/pdl/mod_editblock.pdl +++ b/view/pdl/mod_editblock.pdl @@ -3,4 +3,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_editlayout.pdl b/view/pdl/mod_editlayout.pdl index 6ef7993b5..4a90a4f36 100644 --- a/view/pdl/mod_editlayout.pdl +++ b/view/pdl/mod_editlayout.pdl @@ -3,4 +3,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_editwebpage.pdl b/view/pdl/mod_editwebpage.pdl index 6ef7993b5..4a90a4f36 100644 --- a/view/pdl/mod_editwebpage.pdl +++ b/view/pdl/mod_editwebpage.pdl @@ -3,4 +3,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_events.pdl b/view/pdl/mod_events.pdl index b26f3b0d0..e9a91e219 100644 --- a/view/pdl/mod_events.pdl +++ b/view/pdl/mod_events.pdl @@ -4,4 +4,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_go.pdl b/view/pdl/mod_go.pdl index c34898dd5..7e15fc869 100644 --- a/view/pdl/mod_go.pdl +++ b/view/pdl/mod_go.pdl @@ -3,4 +3,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_group.pdl b/view/pdl/mod_group.pdl index 0a31e17d9..34eb7ddd1 100644 --- a/view/pdl/mod_group.pdl +++ b/view/pdl/mod_group.pdl @@ -3,4 +3,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_help.pdl b/view/pdl/mod_help.pdl index 2eab7aa63..4bb380cc9 100644 --- a/view/pdl/mod_help.pdl +++ b/view/pdl/mod_help.pdl @@ -3,4 +3,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_hq.pdl b/view/pdl/mod_hq.pdl index 450fcb9a7..1bcdb2c65 100644 --- a/view/pdl/mod_hq.pdl +++ b/view/pdl/mod_hq.pdl @@ -3,4 +3,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_id.pdl b/view/pdl/mod_id.pdl index c34898dd5..7e15fc869 100644 --- a/view/pdl/mod_id.pdl +++ b/view/pdl/mod_id.pdl @@ -3,4 +3,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_layouts.pdl b/view/pdl/mod_layouts.pdl index 6ef7993b5..4a90a4f36 100644 --- a/view/pdl/mod_layouts.pdl +++ b/view/pdl/mod_layouts.pdl @@ -3,4 +3,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_locs.pdl b/view/pdl/mod_locs.pdl index 53a3ac9e5..37c85c765 100644 --- a/view/pdl/mod_locs.pdl +++ b/view/pdl/mod_locs.pdl @@ -3,4 +3,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_mail.pdl b/view/pdl/mod_mail.pdl index 52f908919..d572b7244 100644 --- a/view/pdl/mod_mail.pdl +++ b/view/pdl/mod_mail.pdl @@ -4,4 +4,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_menu.pdl b/view/pdl/mod_menu.pdl index 6ef7993b5..4a90a4f36 100644 --- a/view/pdl/mod_menu.pdl +++ b/view/pdl/mod_menu.pdl @@ -3,4 +3,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_message.pdl b/view/pdl/mod_message.pdl index f9dd8f623..3f1dd594f 100644 --- a/view/pdl/mod_message.pdl +++ b/view/pdl/mod_message.pdl @@ -3,4 +3,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_mitem.pdl b/view/pdl/mod_mitem.pdl index 4db06cb49..0cca7fd85 100644 --- a/view/pdl/mod_mitem.pdl +++ b/view/pdl/mod_mitem.pdl @@ -4,4 +4,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_network.pdl b/view/pdl/mod_network.pdl index 44e29ffbd..09fdba573 100644 --- a/view/pdl/mod_network.pdl +++ b/view/pdl/mod_network.pdl @@ -14,4 +14,5 @@ $content [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_photos.pdl b/view/pdl/mod_photos.pdl index 4d1a5b2ea..6a3d30b1c 100644 --- a/view/pdl/mod_photos.pdl +++ b/view/pdl/mod_photos.pdl @@ -4,4 +4,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_profile.pdl b/view/pdl/mod_profile.pdl index c34898dd5..7e15fc869 100644 --- a/view/pdl/mod_profile.pdl +++ b/view/pdl/mod_profile.pdl @@ -3,4 +3,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_profile_photo.pdl b/view/pdl/mod_profile_photo.pdl index c34898dd5..7e15fc869 100644 --- a/view/pdl/mod_profile_photo.pdl +++ b/view/pdl/mod_profile_photo.pdl @@ -3,4 +3,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_profiles.pdl b/view/pdl/mod_profiles.pdl index c34898dd5..7e15fc869 100644 --- a/view/pdl/mod_profiles.pdl +++ b/view/pdl/mod_profiles.pdl @@ -3,4 +3,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_profperm.pdl b/view/pdl/mod_profperm.pdl index c34898dd5..7e15fc869 100644 --- a/view/pdl/mod_profperm.pdl +++ b/view/pdl/mod_profperm.pdl @@ -3,4 +3,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_pubstream.pdl b/view/pdl/mod_pubstream.pdl index e657fa88b..95f069031 100644 --- a/view/pdl/mod_pubstream.pdl +++ b/view/pdl/mod_pubstream.pdl @@ -1,3 +1,4 @@ [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_rate.pdl b/view/pdl/mod_rate.pdl index 5c8ca77d5..a5461df50 100644 --- a/view/pdl/mod_rate.pdl +++ b/view/pdl/mod_rate.pdl @@ -3,4 +3,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_ratings.pdl b/view/pdl/mod_ratings.pdl index cfa39e408..f6e87cb7c 100644 --- a/view/pdl/mod_ratings.pdl +++ b/view/pdl/mod_ratings.pdl @@ -7,4 +7,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_search.pdl b/view/pdl/mod_search.pdl index e69657dac..ed1f77c5a 100644 --- a/view/pdl/mod_search.pdl +++ b/view/pdl/mod_search.pdl @@ -2,4 +2,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_settings.pdl b/view/pdl/mod_settings.pdl index 53a3ac9e5..37c85c765 100644 --- a/view/pdl/mod_settings.pdl +++ b/view/pdl/mod_settings.pdl @@ -3,4 +3,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_sharedwithme.pdl b/view/pdl/mod_sharedwithme.pdl index e657fa88b..95f069031 100644 --- a/view/pdl/mod_sharedwithme.pdl +++ b/view/pdl/mod_sharedwithme.pdl @@ -1,3 +1,4 @@ [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_sources.pdl b/view/pdl/mod_sources.pdl index 53a3ac9e5..37c85c765 100644 --- a/view/pdl/mod_sources.pdl +++ b/view/pdl/mod_sources.pdl @@ -3,4 +3,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_suggest.pdl b/view/pdl/mod_suggest.pdl index 392a36dd6..b74391cba 100644 --- a/view/pdl/mod_suggest.pdl +++ b/view/pdl/mod_suggest.pdl @@ -4,4 +4,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_uexport.pdl b/view/pdl/mod_uexport.pdl index 53a3ac9e5..37c85c765 100644 --- a/view/pdl/mod_uexport.pdl +++ b/view/pdl/mod_uexport.pdl @@ -3,4 +3,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_viewconnections.pdl b/view/pdl/mod_viewconnections.pdl index c34898dd5..7e15fc869 100644 --- a/view/pdl/mod_viewconnections.pdl +++ b/view/pdl/mod_viewconnections.pdl @@ -3,4 +3,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_webpages.pdl b/view/pdl/mod_webpages.pdl index 4e60dc2a7..d13bf8862 100644 --- a/view/pdl/mod_webpages.pdl +++ b/view/pdl/mod_webpages.pdl @@ -4,4 +4,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/pdl/mod_wiki.pdl b/view/pdl/mod_wiki.pdl index 1b98b6379..be86be7e3 100644 --- a/view/pdl/mod_wiki.pdl +++ b/view/pdl/mod_wiki.pdl @@ -4,4 +4,5 @@ [/region] [region=right_aside] [widget=notifications][/widget] +[widget=newmember][/widget] [/region] diff --git a/view/tpl/email_validation.tpl b/view/tpl/email_validation.tpl index f049a040f..9913e0971 100644 --- a/view/tpl/email_validation.tpl +++ b/view/tpl/email_validation.tpl @@ -2,15 +2,15 @@ <div class="descriptive-paragraph" style="font-size: 1.2em;"><p>{{$desc}}</p></div> -<form action="email_validation" method="post"> +<form action="email_validation/{{$email}}" method="post"> {{include file="field_input.tpl" field=$token}} -<div class="pull-right"> - <a href="email_resend/{{$email}}" class="btn btn-warning">{{$resend}}</a> -</div> -<div class="submit-wrapper" > +<div class="pull-right submit-wrapper"> <button type="submit" name="submit" class="btn btn-primary">{{$submit}}</button> </div> +<div class="resend-email" > + <a href="email_resend/{{$email}}" class="btn btn-warning">{{$resend}}</a> +</div> </form> <div class="clear"></div> diff --git a/view/tpl/new_member.tpl b/view/tpl/new_member.tpl new file mode 100644 index 000000000..60e347ab3 --- /dev/null +++ b/view/tpl/new_member.tpl @@ -0,0 +1,17 @@ +<div class="widget"> +<h3>{{$title}}</h3> +{{if $options}} +<ul class="nav nav-pills flex-column"> +{{foreach $options as $x}} + {{if is_array($x) }} + {{foreach $x as $y => $z}} + <li class="nav-item"><a href="{{$y}}" class="nav-link">{{$z}}</a></li> + {{/foreach}} + {{else}} + <div><strong>{{$x}}</strong></div> + {{/if}} +{{/foreach}} +</ul> +{{/if}} +</div> + diff --git a/view/tpl/settings_addons.tpl b/view/tpl/settings_addons.tpl index 52f8d9d3f..2a925f1f7 100755 --- a/view/tpl/settings_addons.tpl +++ b/view/tpl/settings_addons.tpl @@ -1,5 +1,6 @@ <div class="generic-content-wrapper"> <div class="section-title-wrapper"> + <div class="descriptive-text pull-right">{{$descrip}}</div> <h2>{{$title}}</h2> </div> <form action="settings/featured" method="post" autocomplete="off"> |