diff options
author | friendica <info@friendica.com> | 2013-03-21 02:20:32 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-03-21 02:20:32 -0700 |
commit | 6db6f6640e73b85ddedbcbacb60f06b185372065 (patch) | |
tree | 36ba57422c6fb54ed44b693cda9ca11e2a8b76e3 | |
parent | 6a82fd609a5761072206b151846271bbefd92041 (diff) | |
parent | 06c5d0fcc2b5a2a5babe0ef3b2fcaadf4cefbc31 (diff) | |
download | volse-hubzilla-6db6f6640e73b85ddedbcbacb60f06b185372065.tar.gz volse-hubzilla-6db6f6640e73b85ddedbcbacb60f06b185372065.tar.bz2 volse-hubzilla-6db6f6640e73b85ddedbcbacb60f06b185372065.zip |
Merge pull request #38 from beardy-unixer/master
Small fixes
-rw-r--r-- | mod/profiles.php | 7 | ||||
-rw-r--r-- | view/theme/redbasic/php/style.php | 3 | ||||
-rw-r--r-- | view/tpl/nav.tpl | 3 | ||||
-rw-r--r-- | view/tpl/profile_edit.tpl | 9 | ||||
-rw-r--r-- | view/tpl/smarty3/nav.tpl | 3 | ||||
-rw-r--r-- | view/tpl/smarty3/profile_edit.tpl | 9 |
6 files changed, 32 insertions, 2 deletions
diff --git a/mod/profiles.php b/mod/profiles.php index e857c4216..0a8b2b9dc 100644 --- a/mod/profiles.php +++ b/mod/profiles.php @@ -232,6 +232,7 @@ function profiles_post(&$a) { $about = fix_mce_lf(escape_tags(trim($_POST['about']))); $interest = fix_mce_lf(escape_tags(trim($_POST['interest']))); $contact = fix_mce_lf(escape_tags(trim($_POST['contact']))); + $channels = fix_mce_lf(escape_tags(trim($_POST['channels']))); $music = fix_mce_lf(escape_tags(trim($_POST['music']))); $book = fix_mce_lf(escape_tags(trim($_POST['book']))); $tv = fix_mce_lf(escape_tags(trim($_POST['tv']))); @@ -393,6 +394,7 @@ function profiles_post(&$a) { `about` = '%s', `interest` = '%s', `contact` = '%s', + `channels` = '%s', `music` = '%s', `book` = '%s', `tv` = '%s', @@ -426,6 +428,7 @@ function profiles_post(&$a) { dbesc($about), dbesc($interest), dbesc($contact), + dbesc($channels), dbesc($music), dbesc($book), dbesc($tv), @@ -550,6 +553,7 @@ function profiles_content(&$a) { '$lbl_about' => t('Tell us about yourself...'), '$lbl_hobbies' => t('Hobbies/Interests'), '$lbl_social' => t('Contact information and Social Networks'), + '$lbl_channels' => t('My other channels'), '$lbl_music' => t('Musical interests'), '$lbl_book' => t('Books, literature'), '$lbl_tv' => t('Television'), @@ -593,7 +597,8 @@ function profiles_content(&$a) { '$romance' => $r[0]['romance'], '$work' => $r[0]['work'], '$education' => $r[0]['education'], - '$contact' => $r[0]['contact'] + '$contact' => $r[0]['contact'], + '$channels' => $r[0]['channels'], )); $arr = array('profile' => $r[0], 'entry' => $o); diff --git a/view/theme/redbasic/php/style.php b/view/theme/redbasic/php/style.php index 6e8bd8a18..e011d6185 100644 --- a/view/theme/redbasic/php/style.php +++ b/view/theme/redbasic/php/style.php @@ -2,7 +2,8 @@ // This needs changing now, if we're going for global settings. Admin settings have been removed in preparation, You *should* just be able to remove all // the get_config bits, though this is untested. // We also need to eventually. Use the page owners settings for everybody - get_pconfig(page_owner()) or whatever that would look like. - + load_pconfig(local_user(),'redbasic'); + $line_height = false; $redbasic_font_size = false; $resolution = false; diff --git a/view/tpl/nav.tpl b/view/tpl/nav.tpl index 7b11c3794..e97064d5f 100644 --- a/view/tpl/nav.tpl +++ b/view/tpl/nav.tpl @@ -58,6 +58,9 @@ </li> {{ endif }} + {{ if $nav.register }}<li id="nav-register-link" class="nav-menu $nav.register.2"><a href="$nav.register.0" title="$nav.register.3" >$nav.register.1</a><li>{{ endif }} + + {{ if $nav.messages }} <li id="nav-mail-link" class="nav-menu $sel.messages"> <a class="$nav.messages.2" href="$nav.messages.0" title="$nav.messages.3" >$nav.messages.1</a> diff --git a/view/tpl/profile_edit.tpl b/view/tpl/profile_edit.tpl index a498f3a65..6ff4cf8c1 100644 --- a/view/tpl/profile_edit.tpl +++ b/view/tpl/profile_edit.tpl @@ -206,6 +206,15 @@ $lbl_social </div> <div id="contact-jot-end"></div> +<div id="channels-jot-wrapper" > +<p id="channels-jot-desc" > +$lbl_channels +</p> + +<textarea rows="10" cols="72" id="channels-jot-text" name="channels" >$channels</textarea> + +</div> +<div id="channels-jot-end"></div> <div class="profile-edit-submit-wrapper" > <input type="submit" name="submit" class="profile-edit-submit-button" value="$submit" /> diff --git a/view/tpl/smarty3/nav.tpl b/view/tpl/smarty3/nav.tpl index 3774333bb..beddc9109 100644 --- a/view/tpl/smarty3/nav.tpl +++ b/view/tpl/smarty3/nav.tpl @@ -63,6 +63,9 @@ </li> {{/if}} + {{if $nav.register}}<li id="nav-register-link" class="nav-menu {{$nav.register.2}}"><a href="{{$nav.register.0}}" title="{{$nav.register.3}}" >{{$nav.register.1}}</a><li>{{/if}} + + {{if $nav.messages}} <li id="nav-mail-link" class="nav-menu {{$sel.messages}}"> <a class="{{$nav.messages.2}}" href="{{$nav.messages.0}}" title="{{$nav.messages.3}}" >{{$nav.messages.1}}</a> diff --git a/view/tpl/smarty3/profile_edit.tpl b/view/tpl/smarty3/profile_edit.tpl index 3a2652a68..864599244 100644 --- a/view/tpl/smarty3/profile_edit.tpl +++ b/view/tpl/smarty3/profile_edit.tpl @@ -211,6 +211,15 @@ </div> <div id="contact-jot-end"></div> +<div id="channels-jot-wrapper" > +<p id="channels-jot-desc" > +{{$lbl_channels}} +</p> + +<textarea rows="10" cols="72" id="channels-jot-text" name="channels" >{{$channels}}</textarea> + +</div> +<div id="channels-jot-end"></div> <div class="profile-edit-submit-wrapper" > <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" /> |