Changeset 27882 for trunk/themes


Ignore:
Timestamp:
Mar 22, 2014, 2:03:45 PM (10 years ago)
Author:
rvelices
Message:

bug 3056: quick search OR operator priority taken into account
search for 'mary qwerty' will ignore 'qwerty' and return only results for 'mary' if there is no such thing as 'qwerty' in the photos (if there was 'mary' and 'qwerty', the results for both 'mary' AND 'qwerty' would be shown)

Location:
trunk/themes/default
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/themes/default/template/index.tpl

    r24802 r27882  
    122122{if !empty($PLUGIN_INDEX_CONTENT_BEGIN)}{$PLUGIN_INDEX_CONTENT_BEGIN}{/if}
    123123
     124{if !empty($no_search_results)}
     125<p class="search_results">{'No results for'|@translate} :
     126        <em><strong>
     127        {foreach $no_search_results as $res}
     128        {if !$res@first} &mdash; {/if}
     129        {$res}
     130        {/foreach}
     131        </strong></em>
     132</p>
     133{/if}
     134
    124135{if !empty($category_search_results)}
    125 <div class="category_search_results">{'Album results for'|@translate} <strong>{$QUERY_SEARCH}</strong> :
     136<p class="search_results">{'Album results for'|@translate} <strong>{$QUERY_SEARCH}</strong> :
    126137        <em><strong>
    127138        {foreach from=$category_search_results item=res name=res_loop}
     
    130141        {/foreach}
    131142        </strong></em>
    132 </div>
     143</p>
    133144{/if}
    134145
    135146{if !empty($tag_search_results)}
    136 <div class="tag_search_results">{'Tag results for'|@translate} <strong>{$QUERY_SEARCH}</strong> :
     147<p class="search_results">{'Tag results for'|@translate} <strong>{$QUERY_SEARCH}</strong> :
    137148        <em><strong>
    138149        {foreach from=$tag_search_results item=tag name=res_loop}
     
    140151        {/foreach}
    141152        </strong></em>
    142 </div>
     153</p>
    143154{/if}
    144155
  • trunk/themes/default/theme.css

    r25746 r27882  
    115115
    116116/* category and tag results paragraphs on a quick search */
    117 .category_search_results, .tag_search_results {
     117.search_results {
    118118  font-size: 16px;
    119119  margin: 10px 16px;
Note: See TracChangeset for help on using the changeset viewer.