Changeset 108105 in spip-zone


Ignore:
Timestamp:
Dec 18, 2017, 1:40:31 PM (18 months ago)
Author:
real3t@…
Message:

Rich Snippet SearchBox? : https://developers.google.com/search/docs/data-types/sitelinks-searchbox

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _squelettes_/soyezcreateurs_net/trunk/plugins/soyezcreateurs/formulaires/recherche.html

    r41290 r108105  
    1 <form action='[(#ENV{action})]' method='get' id='form_rech' class='searchfrm'>
     1<div itemscope itemtype="http://schema.org/WebSite">
     2<meta itemprop="url" content="#URL_SITE_SPIP"/>
     3<form action='[(#ENV{action})]' method='get' id='form_rech' class='searchfrm' itemprop="potentialAction" itemscope itemtype="http://schema.org/SearchAction">
     4<meta itemprop="target" content="[(#URL_PAGE{recherche}|parametre_url{recherche,\{recherche\}}|replace{%7B,\{}|replace{%7D,\}}|url_absolue)]"/>
    25<div>
    36        [(#ENV{action}|form_hidden)]
    47        [<input type="hidden" name="lang" value="(#ENV{lang})" />]
    58        <label for="formulaire_recherche" title="<:soyezcreateurs:recherche_title:>"><:soyezcreateurs:recherche_label:></label>
    6         <input name='recherche' type='text' id='formulaire_recherche' class="searchfield" title="<:soyezcreateurs:recherche_title:>" value="[(#ENV{recherche}|?{#ENV{recherche},<:soyezcreateurs:recherche_value:>})]" onfocus="if (this.value=='<:soyezcreateurs:recherche_value:>') this.value=''" />
     9        <input itemprop="query-input" name='recherche' type='search' id='formulaire_recherche' class="searchfield" title="<:soyezcreateurs:recherche_title:>"[ value="(#ENV{recherche})"] placeholder="<:soyezcreateurs:recherche_value:>" autocapitalize="off" autocorrect="off" />
    710        <input type="submit" id="sendsearch" class="okfield form_submit" title="<:soyezcreateurs:recherche_title_ok:>" value="<:pass_ok:>" />
    811</div>
    912</form>
     13</div>
Note: See TracChangeset for help on using the changeset viewer.