From 3b18c6cb0c7e8761017a494ae3dbc5413f4cb674 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 4 Oct 2015 12:24:00 +0200 Subject: [PATCH 1/2] Small optical changes in "vier" --- view/theme/vier/style.css | 2 +- view/theme/vier/wide.css | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/view/theme/vier/style.css b/view/theme/vier/style.css index aadd09c61..d6d13b9d3 100644 --- a/view/theme/vier/style.css +++ b/view/theme/vier/style.css @@ -874,7 +874,7 @@ ul.menu-popup .empty { right_aside { width: 0px; top: 32px; - display: block; + display: none; } /* aside */ diff --git a/view/theme/vier/wide.css b/view/theme/vier/wide.css index ecffd485e..6f8d5427c 100644 --- a/view/theme/vier/wide.css +++ b/view/theme/vier/wide.css @@ -39,7 +39,7 @@ right_aside img.directory-photo-img { } right_aside #right_services img { - width: 32px; + width: 34px; } right_aside #lastusers-wrapper, From 1d71dde7ef40736cd98cf96b9afb4fb5e7e713f3 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 4 Oct 2015 14:40:02 +0200 Subject: [PATCH 2/2] Beautyfied code. Link to "follow" on community profiles --- view/theme/vier/config.php | 58 +++++++++++++++++++------------------- view/theme/vier/theme.php | 3 +- 2 files changed, 31 insertions(+), 30 deletions(-) diff --git a/view/theme/vier/config.php b/view/theme/vier/config.php index 5084a2605..9f4fb0f93 100644 --- a/view/theme/vier/config.php +++ b/view/theme/vier/config.php @@ -17,12 +17,12 @@ function theme_content(&$a){ if ($style == "") $style = "plus"; - $show_pages = get_vier_config('show_pages', true); - $show_profiles = get_vier_config('show_profiles', true); - $show_helpers = get_vier_config('show_helpers', true); - $show_services = get_vier_config('show_services', true); - $show_friends = get_vier_config('show_friends', true); - $show_lastusers = get_vier_config('show_lastusers', true); + $show_pages = get_vier_config('show_pages', true); + $show_profiles = get_vier_config('show_profiles', true); + $show_helpers = get_vier_config('show_helpers', true); + $show_services = get_vier_config('show_services', true); + $show_friends = get_vier_config('show_friends', true); + $show_lastusers = get_vier_config('show_lastusers', true); return vier_form($a,$style, $show_pages, $show_profiles, $show_helpers, $show_services, $show_friends, $show_lastusers); @@ -34,12 +34,12 @@ function theme_post(&$a){ if (isset($_POST['vier-settings-submit'])){ set_pconfig(local_user(), 'vier', 'style', $_POST['vier_style']); - set_pconfig(local_user(), 'vier', 'show_pages', $_POST['vier_show_pages']); - set_pconfig(local_user(), 'vier', 'show_profiles', $_POST['vier_show_profiles']); - set_pconfig(local_user(), 'vier', 'show_helpers', $_POST['vier_show_helpers']); - set_pconfig(local_user(), 'vier', 'show_services', $_POST['vier_show_services']); - set_pconfig(local_user(), 'vier', 'show_friends', $_POST['vier_show_friends']); - set_pconfig(local_user(), 'vier', 'show_lastusers', $_POST['vier_show_lastusers']); + set_pconfig(local_user(), 'vier', 'show_pages', $_POST['vier_show_pages']); + set_pconfig(local_user(), 'vier', 'show_profiles', $_POST['vier_show_profiles']); + set_pconfig(local_user(), 'vier', 'show_helpers', $_POST['vier_show_helpers']); + set_pconfig(local_user(), 'vier', 'show_services', $_POST['vier_show_services']); + set_pconfig(local_user(), 'vier', 'show_friends', $_POST['vier_show_friends']); + set_pconfig(local_user(), 'vier', 'show_lastusers', $_POST['vier_show_lastusers']); } } @@ -57,12 +57,12 @@ function theme_admin(&$a){ '$helperlist' => array('vier_helperlist', t('Comma separated list of helper forums'), $helperlist, '', ''), )); - $show_pages = get_vier_config('show_pages', true, true); - $show_profiles = get_vier_config('show_profiles', true, true); - $show_helpers = get_vier_config('show_helpers', true, true); - $show_services = get_vier_config('show_services', true, true); - $show_friends = get_vier_config('show_friends', true, true); - $show_lastusers = get_vier_config('show_lastusers', true, true); + $show_pages = get_vier_config('show_pages', true, true); + $show_profiles = get_vier_config('show_profiles', true, true); + $show_helpers = get_vier_config('show_helpers', true, true); + $show_services = get_vier_config('show_services', true, true); + $show_friends = get_vier_config('show_friends', true, true); + $show_lastusers = get_vier_config('show_lastusers', true, true); $o .= vier_form($a,$style, $show_pages, $show_profiles, $show_helpers, $show_services, $show_friends, $show_lastusers); @@ -73,11 +73,11 @@ function theme_admin_post(&$a){ if (isset($_POST['vier-settings-submit'])){ set_config('vier', 'style', $_POST['vier_style']); set_config('vier', 'show_pages', $_POST['vier_show_pages']); - set_config('vier', 'show_profiles', $_POST['vier_show_profiles']); - set_config('vier', 'show_helpers', $_POST['vier_show_helpers']); - set_config('vier', 'show_services', $_POST['vier_show_services']); - set_config('vier', 'show_friends', $_POST['vier_show_friends']); - set_config('vier', 'show_lastusers', $_POST['vier_show_lastusers']); + set_config('vier', 'show_profiles', $_POST['vier_show_profiles']); + set_config('vier', 'show_helpers', $_POST['vier_show_helpers']); + set_config('vier', 'show_services', $_POST['vier_show_services']); + set_config('vier', 'show_friends', $_POST['vier_show_friends']); + set_config('vier', 'show_lastusers', $_POST['vier_show_lastusers']); set_config('vier', 'helperlist', $_POST['vier_helperlist']); } } @@ -93,7 +93,7 @@ function vier_form(&$a, $style, $show_pages, $show_profiles, $show_helpers, $sho "flat"=>"Flat" ); - $show_or_not = array('0'=>t("don't show"), '1'=>t("show"),); + $show_or_not = array('0'=>t("don't show"), '1'=>t("show"),); $t = get_markup_template("theme_settings.tpl"); $o .= replace_macros($t, array( @@ -102,11 +102,11 @@ function vier_form(&$a, $style, $show_pages, $show_profiles, $show_helpers, $sho '$title' => t("Theme settings"), '$style' => array('vier_style',t ('Set style'),$style,'',$styles), '$show_pages' => array('vier_show_pages', t('Community Pages'), $show_pages, '', $show_or_not), - '$show_profiles' => array('vier_show_profiles', t('Community Profiles'), $show_profiles, '', $show_or_not), - '$show_helpers' => array('vier_show_helpers', t('Help or @NewHere ?'), $show_helpers, '', $show_or_not), - '$show_services' => array('vier_show_services', t('Connect Services'), $show_services, '', $show_or_not), - '$show_friends' => array('vier_show_friends', t('Find Friends'), $show_friends, '', $show_or_not), - '$show_lastusers' => array('vier_show_lastusers', t('Last users'), $show_lastusers, '', $show_or_not) + '$show_profiles' => array('vier_show_profiles', t('Community Profiles'), $show_profiles, '', $show_or_not), + '$show_helpers' => array('vier_show_helpers', t('Help or @NewHere ?'), $show_helpers, '', $show_or_not), + '$show_services' => array('vier_show_services', t('Connect Services'), $show_services, '', $show_or_not), + '$show_friends' => array('vier_show_friends', t('Find Friends'), $show_friends, '', $show_or_not), + '$show_lastusers' => array('vier_show_lastusers', t('Last users'), $show_lastusers, '', $show_or_not) )); return $o; } diff --git a/view/theme/vier/theme.php b/view/theme/vier/theme.php index df28c0689..6d3ac1caf 100644 --- a/view/theme/vier/theme.php +++ b/view/theme/vier/theme.php @@ -130,7 +130,8 @@ function vier_community_info() { foreach($r as $rr) { $entry = replace_macros($tpl,array( '$id' => $rr['id'], - '$profile_link' => zrl($rr['url']), + //'$profile_link' => zrl($rr['url']), + '$profile_link' => $a->get_baseurl().'/follow/?url='.urlencode($rr['url']), '$photo' => proxy_url($rr['photo']), '$alt_text' => $rr['name'], ));