Browse Source

On essaie d’améliorer la recherche et de mettre en valeur un peu les mots clés de recherche dans les textes retournés.

svn/root
marcimat@rezo.net 3 years ago
parent
commit
d53b5378c9
  1. 22
      inclure/head-theme.html
  2. 7
      inclure/liste-messages.html
  3. 5
      inclure/liste-reponses.html
  4. 7
      inclure/liste-sujets-resolus.html
  5. 7
      inclure/liste-sujets-vides.html
  6. 7
      inclure/liste-sujets.html
  7. 4
      inclure/presentation-intro-message.html
  8. 2
      inclure/presentation-intro-reponse.html
  9. 2
      inclure/presentation-reponse.html
  10. 3
      scss/galactic_theme.scss

22
inclure/head-theme.html

@ -2,4 +2,24 @@
[(#REM) Feuille de style CSS pour les icones ]
[<link rel="stylesheet" href="(#CHEMIN{css/font-awesome.min.css}|direction_css|timestamp)" type="text/css" media="all" />]
[(#REM) Feuille de style CSS pour la coloration ]
[<link rel="stylesheet" href="(#CHEMIN{css/geshi.css}|timestamp)" type="text/css" media="all" />]
[<link rel="stylesheet" href="(#CHEMIN{css/geshi.css}|timestamp)" type="text/css" media="all" />]
[(#REM) Décorer les recherche ]
[<script type='text/javascript' src='(#CHEMIN{javascript/SearchHighlight.js}|timestamp)'></script>]
<script type='text/javascript'>/*<!\[CDATA\[*/
GalacticHighlight = function ($lieu, $recherche) {
$($lieu).SearchHighlight({
tag_name: 'mark',
style_name: 'spip_surligne',
exact: 'whole',
style_name_suffix: false,
engines: [],
highlight: $lieu + ' .surlignable',
nohighlight: '.pas_surlignable',
keys: $recherche,
min_length: 3
});
};
/*\]\]>*/</script>

7
inclure/liste-messages.html

@ -11,7 +11,7 @@
{id_mot?}
{notation}
{plat}
{recherche?}
{recherche_fulltext?}
{age ?<=#ENV{age}}
{date_heure ?> #ENV{date_heure}}
{date_thread ?> #ENV{date_thread}}
@ -26,6 +26,11 @@
[<div class="pagination">(#PAGINATION)</div>]
</div>
<script type='text/javascript'>/*<!\[CDATA\[*/
jQuery(function($) {
GalacticHighlight('.Sujets', '#ENV{recherche}');
});
/*\]\]>*/</script>
</B_forums>
[<p class="nb_resultats">(#GRAND_TOTAL|forum_pluraliser{galactic_forum:messages})</p>]
<//B_forums>

5
inclure/liste-reponses.html

@ -19,4 +19,9 @@
[<div class="pagination">(#PAGINATION)</div>]
</div>
<script type='text/javascript'>/*<!\[CDATA\[*/
jQuery(function($) {
GalacticHighlight('.Sujets', '#ENV{recherche}');
});
/*\]\]>*/</script>
</B_forums>

7
inclure/liste-sujets-resolus.html

@ -14,7 +14,7 @@
{age ?<=#ENV{age}}
{date_heure ?> #ENV{date_heure}}
{date_thread ?> #ENV{date_thread}}
{recherche?}
{recherche_fulltext?}
{par #ENV{par,date_heure}}{inverse #ENV{inverse,1}}
{pagination 10}
>
@ -26,6 +26,11 @@
[<div class="pagination">(#PAGINATION)</div>]
</div>
<script type='text/javascript'>/*<!\[CDATA\[*/
jQuery(function($) {
GalacticHighlight('.Sujets', '#ENV{recherche}');
});
/*\]\]>*/</script>
</B_forums>
[<p class="nb_resultats">(#GRAND_TOTAL|forum_pluraliser{galactic_forum:questions_resolues})</p>]
<//B_forums>

7
inclure/liste-sujets-vides.html

@ -14,7 +14,7 @@
{age ?<=#ENV{age}}
{date_heure ?> #ENV{date_heure}}
{date_thread ?> #ENV{date_thread}}
{recherche?}
{recherche_fulltext?}
{par #ENV{par,date_heure}}{inverse #ENV{inverse,1}}
{pagination 10}
>
@ -26,6 +26,11 @@
[<div class="pagination">(#PAGINATION)</div>]
</div>
<script type='text/javascript'>/*<!\[CDATA\[*/
jQuery(function($) {
GalacticHighlight('.Sujets', '#ENV{recherche}');
});
/*\]\]>*/</script>
</B_forums>
[<p class="nb_resultats">(#GRAND_TOTAL|forum_pluraliser{galactic_forum:questions_sans_reponse})</p>]
<//B_forums>

7
inclure/liste-sujets.html

@ -13,7 +13,7 @@
{age ?<=#ENV{age}}
{date_heure ?> #ENV{date_heure}}
{date_thread ?> #ENV{date_thread}}
{recherche?}
{recherche_fulltext?}
{par #ENV{par,date_heure}}{inverse #ENV{inverse,1}}
{!par date_heure}
{pagination 10}
@ -33,6 +33,11 @@
[<div class="pagination">(#PAGINATION)</div>]
</div>
<script type='text/javascript'>/*<!\[CDATA\[*/
jQuery(function($) {
GalacticHighlight('.Sujets', '#ENV{recherche}');
});
/*\]\]>*/</script>
</B_forums>
[<p class="nb_resultats">(#GRAND_TOTAL|forum_pluraliser{#ENV{dernier_message}|?{galactic_forum:questions_activite,galactic_forum:questions}})</p>]
<//B_forums>

4
inclure/presentation-intro-message.html

@ -31,7 +31,7 @@
</div>
<div class="ligneSujet__description">
<a href="#URL_FORUM" class="h4 titre">[(#GET{titre_racine}|echapper_tags_hors_code)]</a>
<a href="#URL_FORUM" class="h4 titre surlignable">[(#GET{titre_racine}|echapper_tags_hors_code)]</a>
[(#GET{reponse}|oui)
<div class="reponse">
<div class="link">
@ -42,7 +42,7 @@
<div class="message_reponse">
]
<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>]
[<p class="surlignable extrait">(#TEXTE|couper{240})</p>]
[(#GET{reponse}|oui)
</div></div>]
</div>

2
inclure/presentation-intro-reponse.html

@ -9,7 +9,7 @@
</div>
<div class="ligneSujet__description">
<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>]
[<p class="surlignable extrait">(#TEXTE|couper{240})</p>]
</div>
</div>
</BOUCLE_forum>

2
inclure/presentation-reponse.html

@ -22,7 +22,7 @@
<div class="ligneSujet__description">
<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 class="surlignable texte #EDIT{texte}">(#TEXTE)</div>]
</div>
</div>

3
scss/galactic_theme.scss

@ -545,6 +545,9 @@ $largeur-enbref-bordure: 72px - 4px;
.pagination {
margin-bottom:2.5em;
}
.spip_surligne {
background: #b109bb;
}
@import "scss/theme/badges_labels";
@import "scss/theme/onglets";

Loading…
Cancel
Save