templates/parts/request-city.html.twig line 1

Open in your IDE?
  1. {% if(request.cityIpFrom or request.regionIpFrom) %}
  2.     <span class="ip-popup-container">
  3.         <span class="ip-popup-icon">
  4.             <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
  5.                  y="0px" width="16px" height="16px" fill="#404A51" viewBox="0 0 31.404 31.405"
  6.                  style="enable-background:new 0 0 31.404 31.405;" xml:space="preserve">
  7.                 <g>
  8.                     <g>
  9.                         <path d="M30.676,27.108l-2.783-2.781c1.193-2.621,0.72-5.82-1.432-7.974c-2.771-2.771-7.279-2.771-10.054,0.001
  10.                             c-2.771,2.771-2.771,7.279,0.003,10.051c2.15,2.151,5.352,2.625,7.973,1.434l2.782,2.781c0.972,0.97,2.542,0.97,3.511,0
  11.                             c0.465-0.465,0.729-1.096,0.729-1.754S31.141,27.573,30.676,27.108z M24.688,24.63c-1.793,1.793-4.713,1.793-6.504,0
  12.                             c-1.793-1.792-1.793-4.711,0-6.504c1.791-1.792,4.711-1.792,6.504,0C26.479,19.917,26.482,22.838,24.688,24.63z"></path>
  13.                         <path d="M21.721,4.602l-1.242-1.115L19.014,3.2l-0.035,0.672l1.437,1.4l0.703,0.827l-0.792,0.413l-0.643-0.19l-0.963-0.401
  14.                             l0.033-0.777l-1.265-0.521l-0.42,1.826l-1.274,0.289l0.127,1.02l1.658,0.32l0.286-1.63l1.37,0.203l0.637,0.373h1.021l0.701,1.401
  15.                             l1.854,1.881l-0.136,0.732l-1.496-0.191l-2.583,1.305l-1.808,2.168c1.209-0.688,2.578-1.061,4.008-1.061
  16.                             c2.17,0,4.209,0.844,5.742,2.376c1.889,1.891,2.683,4.59,2.23,7.161c1.113-2.144,1.754-4.571,1.754-7.155
  17.                             c0-3.209-0.973-6.193-2.637-8.672l-0.465,0.148L25.576,7.34l-0.701,1.119l-0.508-0.161l-1.977-1.782l-0.289-0.927L21.721,4.602z"></path>
  18.                         <path d="M14.011,15.373l0.301,1.274l0.526-0.605l0.501-0.018c0.115-0.13,0.228-0.264,0.352-0.388
  19.                             c0.146-0.146,0.3-0.278,0.454-0.412l-0.924-0.426L14.011,15.373z"></path>
  20.                         <path d="M20.084,29.373l-0.559,0.372l-0.285,1.031c1.324-0.318,2.581-0.812,3.75-1.443c-0.516,0.101-1.042,0.156-1.564,0.156
  21.                             C20.971,29.489,20.523,29.446,20.084,29.373z"></path>
  22.                         <path d="M15.693,27.12c-1.532-1.528-2.377-3.568-2.377-5.739c0-1.258,0.291-2.468,0.827-3.563l-1.664-0.373l-0.86-1.802v1.069
  23.                             H11.24l-2.234-3.028v-2.487l-1.639-2.66L4.768,8.998h-1.75L2.136,8.42l1.125-0.891L2.139,7.788C0.788,10.096,0,12.774,0,15.642
  24.                             c0,8.605,6.976,15.584,15.582,15.584c0.663,0,1.312-0.057,1.955-0.136l-0.162-1.889c0,0,0.075-0.295,0.176-0.693
  25.                             C16.877,28.141,16.251,27.677,15.693,27.12z"></path>
  26.                         <path d="M5.791,5.082L8.56,4.696l1.276-0.7l1.435,0.414l2.294-0.127l0.786-1.235l1.146,0.189l2.783-0.262l0.766-0.844l1.082-0.722
  27.                             l1.529,0.229l0.558-0.084c-2.016-0.948-4.258-1.497-6.633-1.497c-4.837,0-9.163,2.204-12.019,5.666h0.008L5.791,5.082z
  28.                              M16.24,1.606l1.593-0.876l1.022,0.59l-1.48,1.127l-1.412,0.142l-0.637-0.412L16.24,1.606z M11.526,1.734l0.702,0.293l0.919-0.293
  29.                             l0.501,0.868l-2.122,0.557l-1.021-0.597C10.505,2.563,11.503,1.92,11.526,1.734z"></path>
  30.                     </g>
  31.                 </g>
  32.             </svg>
  33.         </span>
  34.         <span class="ip-popup-body">
  35.             <time>
  36.                 <nobr><i>Місто за Ip:</i></nobr>
  37.                 <br>
  38.                 <nobr>
  39.                     {% if(otpuskDb.findByRecId(request.cityIpFrom,'city')) %}
  40.                         {{ otpuskDb.findByRecId(request.cityIpFrom,'city').nameukr }},
  41.                         {% if(otpuskDb.country(otpuskDb.findByRecId(request.cityIpFrom,'city').countryid)) %}
  42.                             {{ otpuskDb.country(otpuskDb.findByRecId(request.cityIpFrom,'city').countryid).nameukr }}
  43.                         {% endif %}
  44.                     {% elseif(otpuskDb.findByRecId(request.regionIpFrom,'region')) %}
  45.                         {{ otpuskDb.findByRecId(request.regionIpFrom,'region').nameukr }}
  46.                         {% if(otpuskDb.findByRecId(otpuskDb.findByRecId(request.regionIpFrom,'region').city,'city')) %}
  47.                             ,{{ otpuskDb.country(otpuskDb.findByRecId(otpuskDb.findByRecId(request.regionIpFrom,'region').city,'city').countryid).nameukr }}
  48.                         {% endif %}
  49.                     {% endif %}
  50.                 </nobr>
  51.             </time>
  52.         </span>
  53.     </span>
  54. {% endif %}