You are here

adsense-cse-branding.html.twig in Google AdSense integration 8

AdSense CSE v1 (with branding) search box HTML code.

File

templates/adsense-cse-branding.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * AdSense CSE v1 (with branding) search box HTML code.
  5. */
  6. #}
  7. <style type="text/css">
  8. @import url(//www.google.com/cse/api/branding.css);
  9. </style>
  10. <div class="{{ class }}" style="background-color:#{{ bg_color }};color:#{{ color }}">
  11. <div class="cse-branding-form">
  12. <form action="{{ results_path }}" id="cse-search-box">
  13. <div>
  14. <input type="hidden" name="cx" value="partner-{{ client }}:{{ slot }}" />
  15. <input type="hidden" name="cof" value="FORID:{{ forid }}" />
  16. <input type="hidden" name="ie" value="{{ encoding }}" />
  17. <input type="text" name="q" size="{{ qsize }}" />
  18. <input type="submit" name="sa" value="{{ search }}" />
  19. </div>
  20. </form>
  21. </div>
  22. <div class="cse-branding-logo">
  23. <img src="//www.google.com/images/poweredby_transparent/poweredby_{{ bg_color }}.gif" alt="Google" />
  24. </div>
  25. <div class="cse-branding-text">
  26. {{ custom_search }}
  27. </div>
  28. </div>