Browse Source

Intégrons un lien permanent avec les urls de forum, sur la bonne pagination.

svn/root
marcimat@rezo.net 4 years ago
parent
commit
8a378e0234
  1. 2
      inclure/presentation-intro-message.html
  2. 2
      inclure/presentation-intro-reponse.html
  3. 2
      inclure/presentation-reponse.html
  4. 5
      inclure/publication-auteur.html
  5. 1
      lang/galactic_forum_fr.php
  6. 16
      scss/galactic_theme.scss
  7. 9
      urls/trad.php

2
inclure/presentation-intro-message.html

@ -41,7 +41,7 @@
</div>
<div class="message_reponse">
]
<INCLURE{fond=inclure/publication-auteur, id_auteur, nom, date, lien_lang=#LANG, lien_lang_dir=#LANG_DIR} />
<INCLURE{fond=inclure/publication-auteur, id_auteur, id_forum, nom, date, lien_lang=#LANG, lien_lang_dir=#LANG_DIR} />
[<p class="extrait">(#TEXTE|couper{240})</p>]
[(#GET{reponse}|oui)
</div></div>]

2
inclure/presentation-intro-reponse.html

@ -8,7 +8,7 @@
</div>
</div>
<div class="ligneSujet__description">
<INCLURE{fond=inclure/publication-auteur, id_auteur, nom, date, lien_lang=#LANG, lien_lang_dir=#LANG_DIR} />
<INCLURE{fond=inclure/publication-auteur, id_auteur, id_forum, nom, date, lien_lang=#LANG, lien_lang_dir=#LANG_DIR} />
[<p class="extrait">(#TEXTE|couper{240})</p>]
</div>
</div>

2
inclure/presentation-reponse.html

@ -21,7 +21,7 @@
</div>
<div class="ligneSujet__description">
<INCLURE{fond=inclure/publication-auteur, id_auteur, nom, date, lien_lang=#LANG, lien_lang_dir=#LANG_DIR} />
<INCLURE{fond=inclure/publication-auteur, id_auteur, id_forum, nom, date, lien_lang=#LANG, lien_lang_dir=#LANG_DIR} />
[<div class="texte #EDIT{texte}">(#TEXTE)</div>]
</div>

5
inclure/publication-auteur.html

@ -11,6 +11,9 @@
<//B_auteur>
</div>
<div class="publication_date">
<abbr class="published" title="[(#DATE|date_iso)]">[(#DATE|date_interface)]</abbr>
<a href="#URL_FORUM{#ID_FORUM}" class="permalink">
<span class="fa fa-link" aria-hidden="true" title="<:galactic_forum:permalink|attribut_html:>"></span>
<abbr class="published" title="[(#DATE|date_iso)]">[(#DATE|date_interface)]</abbr>
</a>
</div>
</div>

1
lang/galactic_forum_fr.php

@ -166,6 +166,7 @@ $GLOBALS[$GLOBALS['idx_lang']] = array(
'par_pertinence' => 'Par pertinence',
'par_note' => 'Par note',
'participants' => 'Participants',
'permalink' => 'Lien permanent',
// Q
'questions' => 'Questions',

16
scss/galactic_theme.scss

@ -25,6 +25,7 @@
.article__statut {
.tags {
text-align:center;
margin: 0 .5em;
.bouton_action_post {
display:inline-block;
border:none;
@ -208,10 +209,21 @@ $largeur-enbref-bordure: 72px - 4px;
@include vendor-prefix('flex-grow', 1);
}
.publication_date {
width:16em;
@include vendor-prefix('flex', '0 0 16em');
width:18em;
@include vendor-prefix('flex', '0 0 18em');
text-align:right;
abbr.published { border-bottom:0; }
a.permalink {
color:$couleur-texte;
.fa {
color: $couleur-gris5;
margin-right:.5em;
transition: color 0.3s;
}
&:hover .fa {
color: $couleur-lien-hover;
}
}
}
}
.texte p:last-child {

9
urls/trad.php

@ -65,12 +65,17 @@ if (!function_exists('generer_url_article')) {
}
function generer_url_forum($id_forum) {
$s = spip_query("SELECT id_thread, id_forum FROM spip_forum WHERE id_forum=$id_forum");
$t = sql_fetsel(
array('id_thread', 'id_forum'),
'spip_forum',
array('id_forum=' . intval($id_forum))
);
$lang = langue_choix($id_forum, 'forum');
if ($t = sql_fetch($s)) {
if ($t) {
$url = $lang . "_" . $t['id_thread'] . '.html';
if ($t['id_forum'] <> $t['id_thread']) {
$url .= '#forum' . $t['id_forum'];
$url = parametre_url($url, 'debut_forums', '@' . $id_forum);
}
return $url;
}

Loading…
Cancel
Save