Changeset 29485 for trunk


Ignore:
Timestamp:
Sep 11, 2014, 2:50:39 PM (10 years ago)
Author:
plg
Message:

feature 3139: add details about search on id: in the help

Move CSS outside the help file

bug fixed: fallback on en_UK in case of missing help file

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/popuphelp.php

    r28587 r29485  
    4848  )
    4949{
    50   $help_content =
    51     load_language('help/'.$_GET['page'].'.html', '', array('return'=>true) );
     50  $help_content = load_language(
     51    'help/'.$_GET['page'].'.html',
     52    '',
     53    array(
     54      'force_fallback' => 'en_UK',
     55      'return' => true,
     56      )
     57    );
    5258
    5359  if ($help_content == false)
     
    5662  }
    5763
    58   $help_content = trigger_change(
    59     'get_popup_help_content', $help_content, $_GET['page']);
     64  $help_content = trigger_change('get_popup_help_content', $help_content, $_GET['page']);
    6065}
    6166else
  • trunk/admin/themes/default/theme.css

    r29480 r29485  
    12441244  opacity:0.5;
    12451245}
     1246
     1247/* table in help/quick_search.html */
     1248table.qsearch_help_table {
     1249  border-collapse:collapse;
     1250  text-align:left;
     1251  margin:1em;
     1252}
     1253table.qsearch_help_table q {
     1254        font-family: Courier, Fixed;
     1255        font-weight: bold;
     1256}
     1257table.qsearch_help_table q:before {
     1258        content: '\'';
     1259        color: green;
     1260}
     1261table.qsearch_help_table q:after {
     1262        content: '\'';
     1263        color: green;
     1264}
     1265table.qsearch_help_table td {
     1266        border: 1px solid #ccc;
     1267  padding:5px;
     1268  vertical-align:top;
     1269}
  • trunk/admin/themes/roma/theme.css

    r29406 r29485  
    354354.userPropertiesContainer {border-color:#333;}
    355355.userPrefs {border-color:#333;}
     356
     357table.qsearch_help_table td {
     358        border-color: #444;
     359}
  • trunk/language/en_UK/help/quick_search.html

    r28092 r29485  
    11<h2>Search</h2>
    2 <style>
    3 q {
    4         font-family: Courier, Fixed;
    5         font-weight: bold;
    6 }
    7 q:before {
    8         content: '\'';
    9         color: green;
    10 }
    11 q:after {
    12         content: '\'';
    13         color: green;
    14 }
    15 TD {
    16         border: 1px solid
    17 }
    18 </style>
    192
     3<p>By default all searched terms must match. Searches are case-insensitive.</p>
    204
    21 <p>By default all searched terms must match. Searches are case-insesitive.</p>
    22 
    23 <table style="border-collapse:collapse;text-align:left">
     5<table class="qsearch_help_table">
    246<tr>
    257<td>quoted phrase<br>
     
    6143<br>
    6244
    63 <table style="border-collapse:collapse;text-align:left">
     45<table class="qsearch_help_table">
    6446
    6547<tr>
     
    143125<q>filesize:1m..10m</q> finds files between 1MB and 10MB.</td>
    144126</tr>
     127<tr>
     128<td><q>id:</q>
     129</td>
     130<td>Searches photos by its numeric identifier in Piwigo<br>
     131<q>id:123..126</q> finds photo 123 to 126 (it may find between 0 and 4 photos, because photos can be deleted).</td>
     132</tr>
    145133
    146134</table>
Note: See TracChangeset for help on using the changeset viewer.