Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">
  2. <head>
  3. <title>Sharegate Item Shape</title>
  4.  
  5. <!--[if gte mso 9]><xml>
  6. <mso:CustomDocumentProperties>
  7.     <mso:TemplateHidden msdt:dt="string">0</mso:TemplateHidden>
  8.     <mso:MasterPageDescription msdt:dt="string">Displays a result tailored for a picture.</mso:MasterPageDescription>
  9.     <mso:ContentTypeId msdt:dt="string">0x0101002039C03B61C64EC4A04F5361F385106603</mso:ContentTypeId>
  10.     <mso:TargetControlType msdt:dt="string">;#Content Web Parts;#SearchResults;#</mso:TargetControlType>
  11.     <mso:ManagedPropertyMapping msdt:dt="string">'Title':'Title','Path':'Path','Description':'Description','PictureURL':'PictureURL'</mso:ManagedPropertyMapping>
  12.     <mso:HtmlDesignAssociated msdt:dt="string">1</mso:HtmlDesignAssociated>
  13. </mso:CustomDocumentProperties>
  14. </xml><![endif]-->
  15. </head>
  16. <body>
  17.     <div id="Item">
  18. <!--#_
  19. var siteURL = SP.PageContextInfo.get_siteServerRelativeUrl();
  20. var linkURL = $getItemValue(ctx, "Path");
  21. linkURL.overrideValueRenderer($urlHtmlEncode);
  22. var title = $getItemValue(ctx, "Title");
  23. var description = $getItemValue(ctx, "Description");
  24. var pictureURL = $getItemValue(ctx, "PictureURL");
  25. _#-->
  26.  
  27.  
  28.                 <a href="_#= linkURL =#_" data-path-hover="m 180,34.57627 -180,0 L 0,0 180,0 z">
  29.                     <figure>
  30.                         <img src="_#= pictureURL =#_"/>
  31.                         <svg viewBox="0 0 180 320" preserveAspectRatio="none"><path d="M 180,160 0,218 0,0 180,0 z"/></svg>
  32.                         <figcaption>
  33.                             <h2>_#= $htmlEncode(title) =#_</h2>
  34.                             <p>_#= $htmlEncode(description) =#_</p>
  35.                             <button>View</button>
  36.                         </figcaption>
  37.                     </figure>
  38.                 </a>
  39.     </div>
  40. </body>
  41. </html>