From 60979eb75d10a4bb4ff0ce7ef8ec9fa6bee70f65 Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Mon, 26 Mar 2007 15:39:45 +0000 Subject: [PATCH] Wiki for CV and add wiki preview for user freetext git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1613 839d8a87-29fc-0310-9880-83ba4fa771e5 --- classes/platalpage.php | 2 +- modules/profile.php | 1 + templates/profile/emploi.tpl | 8 ++++++-- templates/profile/general.tpl | 7 +++++-- templates/profile/profile.tpl | 4 ++-- 5 files changed, 15 insertions(+), 7 deletions(-) diff --git a/classes/platalpage.php b/classes/platalpage.php index e3cf01f..3cb32a2 100644 --- a/classes/platalpage.php +++ b/classes/platalpage.php @@ -54,6 +54,7 @@ class PlatalPage extends Smarty $this->_failure = false; $this->register_prefilter('at_to_globals'); + $this->addJsLink('xorg.js'); } // }}} @@ -87,7 +88,6 @@ class PlatalPage extends Smarty $this->register_prefilter('trimwhitespace'); $this->register_prefilter('form_force_encodings'); - $this->addJsLink('xorg.js'); $this->assign('xorg_errors', $this->_errors); $this->assign('xorg_failure', $this->_failure); $this->assign('globals', $globals); diff --git a/modules/profile.php b/modules/profile.php index c80edf7..63102d6 100644 --- a/modules/profile.php +++ b/modules/profile.php @@ -206,6 +206,7 @@ class ProfileModule extends PLModule $new = Env::v('modif') == 'new'; $user = get_user_details($login, S::v('uid'), $view); $user['freetext'] = MiniWiki::WikiToHTML($user['freetext']); + $user['cv'] = MiniWiki::WikiToHTML($user['cv']); $title = $user['prenom'] . ' ' . empty($user['nom_usage']) ? $user['nom'] : $user['nom_usage']; $page->assign('xorg_title', $title); diff --git a/templates/profile/emploi.tpl b/templates/profile/emploi.tpl index 98545dd..3867049 100644 --- a/templates/profile/emploi.tpl +++ b/templates/profile/emploi.tpl @@ -217,10 +217,14 @@ Curriculum vitae
Le CV n'est jamais public.
- Comment remplir mon CV ?
+ Comment remplir mon CV ?
+ {icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki - + + +
+ diff --git a/templates/profile/general.tpl b/templates/profile/general.tpl index 8b6b737..227f20d 100644 --- a/templates/profile/general.tpl +++ b/templates/profile/general.tpl @@ -346,13 +346,16 @@ Commentaire ? ICQ ? etc... - + + +
{icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki autorisée pour le commentaire - +
+ diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl index 2d62265..9891c95 100644 --- a/templates/profile/profile.tpl +++ b/templates/profile/profile.tpl @@ -127,7 +127,7 @@ function chgMainWinLoc(strPage) { {if $x.gpxs_join}
Groupe(s) X : {$x.gpxs_join|smarty:nodefaults}
{/if} {/if} {if $x.web}
Site Web : {$x.web}
{/if} - {if $x.freetext}
Commentaires :
{$x.freetext|nl2br|smarty:nodefaults}
{/if} + {if $x.freetext}
Commentaires :
{$x.freetext|smarty:nodefaults}
{/if} {if $x.adr} @@ -185,7 +185,7 @@ function chgMainWinLoc(strPage) {

Curriculum Vitae :

- {$x.cv|nl2br} + {$x.cv|smarty:nodefaults} {/if} -- 2.1.4