templates/widget/ges.html.twig line 1

Open in your IDE?
  1.  
  2.   {% set ges = annonce.ges   %} 
  3.    {% set coor = 0  %} 
  4.  {% if ges > 51 and ges < 90 %}
  5.      {% set coor = -230  %}  
  6. {% endif %}
  7.  {% if ges > 91 and ges < 150 %}
  8.      {% set coor = -160  %}  
  9. {% endif %}
  10.  {% if ges > 151 and ges < 230 %}
  11.      {% set coor = -100  %}  
  12. {% endif %}
  13.  {% if ges > 231 and ges < 330 %}
  14.      {% set coor = -40  %}  
  15. {% endif %}
  16.  {% if ges > 331 and ges < 450 %}
  17.      {% set coor = 20  %}  
  18. {% endif %}
  19.    {% if ges > '450' %}    {% set coor = 85  %}    {% endif %}
  20.     {% if ges <  '50' %}    {% set coor = -290  %}    {% endif %}
  21.    
  22.           
  23.                  
  24.                                           
  25. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  26. <!-- Created with Inkscape (http://www.inkscape.org/) -->
  27. <svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" id="svg3039" version="1.1" inkscape:version="0.48.2 r9819" width="474.55444" height="516.6778" sodipodi:docname="DPE.svg">
  28.   <metadata id="metadata3045">
  29.     <rdf:RDF>
  30.       <cc:Work rdf:about="">
  31.         <dc:format>image/svg+xml</dc:format>
  32.         <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
  33.         <dc:title/>
  34.       </cc:Work>
  35.     </rdf:RDF>
  36.   </metadata>
  37.   <defs id="defs3043"/>
  38.   <sodipodi:namedview pagecolor="#ffffff" bordercolor="#666666" borderopacity="1" objecttolerance="10" gridtolerance="10" guidetolerance="10" inkscape:pageopacity="0" inkscape:pageshadow="2" inkscape:window-width="1256" inkscape:window-height="753" id="namedview3041" showgrid="false" inkscape:zoom="0.41247896" inkscape:cx="249.28045" inkscape:cy="290.44049" inkscape:window-x="24" inkscape:window-y="0" inkscape:window-maximized="1" inkscape:current-layer="svg3039" fit-margin-top="0" fit-margin-left="0" fit-margin-right="0" fit-margin-bottom="0"/>
  39.   <rect style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:1.5;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" id="rect4256" width="473.05444" height="513.05646" x="0.75" y="0.75"/>
  40.   <path style="fill:none;stroke:#000000;stroke-width:1.5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" d="m 371.67802,1.2654846 0,514.6623154" id="path4258" inkscape:connector-curvature="0" sodipodi:nodetypes="cc"/>
  41.   <text xml:space="preserve" style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:BD Cartoon Shout;-inkscape-font-specification:BD Cartoon Shout" x="20.231075" y="74.967812" id="text3936" sodipodi:linespacing="125%"><tspan sodipodi:role="line" id="tspan3938" x="20.231075" y="74.967812"/></text>
  42.   <g id="g4206" transform="translate(11.071708,-6.3019311)">
  43.         <path id="path3828" inkscape:connector-curvature="0" sodipodi:nodetypes="cccccc" fill="#f6edfd" d="M-4.485,48.397
  44.         c21.947-0.225,43.894-0.214,65.841-0.214c8.413,8.845,18.177,16.522,26.271,25.65c-10.322,11.828-15.003,16.859-25.067,27.909
  45.         c-22.214,0.004-44.643-0.1-66.857-0.096C-4.411,48.427-4.281,101.64-4.485,48.397L-4.485,48.397z"/>
  46.     <path id="path3828_1_" inkscape:connector-curvature="0" sodipodi:nodetypes="cccccc" fill="#f6edfd" d="M-4.485,48.397
  47.         c21.947-0.225,43.894-0.214,65.841-0.214c8.413,8.845,18.177,16.522,26.271,25.65c-10.322,11.828-15.003,16.859-25.067,27.909
  48.         c-22.214,0.004-44.643-0.1-66.857-0.096C-4.411,48.427-4.281,101.64-4.485,48.397L-4.485,48.397z"/>
  49.     <path fill="#f6edfd" d="M62.561,101.742c26.145,0,26.145,0,26.145,0v-53.56h-27.35"/>
  50.     <text sodipodi:linespacing="125%" id="text3940" y="81.428566" x="2.5714288" style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:BD Cartoon Shout;-inkscape-font-specification:BD Cartoon Shout" xml:space="preserve"><tspan style="font-size:20px" y="81.428566" x="2.5714288" id="tspan3942" sodipodi:role="line">≤<tspan id="tspan3944" style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial">5</tspan></tspan></text>
  51.     <text sodipodi:linespacing="125%" id="text3932-0" y="84.738838" x="48.150673" style="font-size:32px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Arial;-inkscape-font-specification:Arial" xml:space="preserve"><tspan y="84.738838" x="48.150673" id="tspan3934-8" sodipodi:role="line">A</tspan></text>
  52.   </g>
  53.   <g id="g4214" transform="translate(11.071708,-5.701313)">
  54.     <path id="path3828-9" inkscape:connector-curvature="0" sodipodi:nodetypes="ccccccc" fill="#e1c2f8" d="M-4.485,111.189
  55.         c21.947-0.225,83.894-0.214,105.841-0.214c8.413,8.845,18.177,16.522,26.271,25.65c-10.322,11.828-15.003,16.859-25.067,27.909
  56.         c-22.214,0.004-84.643-0.1-106.857-0.096C-4.411,111.219-4.281,164.432-4.485,111.189L-4.485,111.189z"/>
  57.     <polyline fill="#e1c2f8" points="127.628,164.534 127.628,110.975 101.356,110.975 101.356,164.534     "/>  
  58.     <text sodipodi:linespacing="125%" id="text3932" y="147.42857" x="87.285713" style="font-size:32px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Arial;-inkscape-font-specification:Arial" xml:space="preserve"><tspan y="147.42857" x="87.285713" id="tspan3934" sodipodi:role="line">B</tspan></text>
  59.     <text sodipodi:linespacing="125%" id="text3967" y="142.42857" x="3.8604913" style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:BD Cartoon Shout;-inkscape-font-specification:BD Cartoon Shout" xml:space="preserve"><tspan style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial" y="142.42857" x="3.8604913" id="tspan3969" sodipodi:role="line">6 à 10</tspan></text>
  60.   </g>
  61.   <g id="g4221" transform="translate(11.071708,-5.1007101)">
  62.     <path id="path3828-9-7" inkscape:connector-curvature="0" sodipodi:nodetypes="ccccccc" fill="#d4a9f5" d="M-4.485,173.981
  63.         c21.947-0.225,125.894-0.214,147.841-0.214c8.413,8.845,18.177,16.522,26.271,25.65c-10.322,11.828-15.003,16.859-25.067,27.909
  64.         c-22.214,0.004-126.643-0.1-148.857-0.096C-4.411,174.011-4.281,227.224-4.485,173.981L-4.485,173.981z"/>
  65.     <polyline fill="#d4a9f5" points="169.628,227.326 169.628,173.767 143.356,173.767 88.062,227.326     "/>
  66.     <text sodipodi:linespacing="125%" id="text3932-8" y="210.04391" x="127.29173" style="font-size:32px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Arial;-inkscape-font-specification:Arial" xml:space="preserve"><tspan y="210.04391" x="127.29173" id="tspan3934-9" sodipodi:role="line">C</tspan></text>
  67.     <text sodipodi:linespacing="125%" id="text3967-4" y="207.04391" x="3.8604913" style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:BD Cartoon Shout;-inkscape-font-specification:BD Cartoon Shout" xml:space="preserve"><tspan style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial" y="207.04391" x="3.8604913" id="tspan3969-2" sodipodi:role="line">11 à 20</tspan></text>
  68.   </g>
  69.   <g id="g4228" transform="translate(11.071708,-4.500112)">
  70.     <path id="path3828-9-7-1" inkscape:connector-curvature="0" sodipodi:nodetypes="ccccccc" fill="#cb95f3" d="M-4.485,236.773
  71.         c21.947-0.225,167.894-0.214,189.841-0.214c8.413,8.845,18.177,16.522,26.271,25.65c-10.322,11.828-15.003,16.859-25.067,27.909
  72.         c-22.214,0.004-168.643-0.1-190.857-0.096C-4.411,236.803-4.281,290.016-4.485,236.773L-4.485,236.773z"/>
  73.     <polyline fill="#cb95f3" points="211.628,236.559 211.628,290.118 186.561,290.118 180.561,236.559     "/>
  74.     <text sodipodi:linespacing="125%" id="text3932-8-5" y="272.65308" x="166.98003" style="font-size:32px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Arial;-inkscape-font-specification:Arial" xml:space="preserve"><tspan y="272.65308" x="166.98003" id="tspan3934-9-6" sodipodi:role="line">D</tspan></text>
  75.     <text sodipodi:linespacing="125%" id="text3967-4-4" y="267.65308" x="2.512835" style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:BD Cartoon Shout;-inkscape-font-specification:BD Cartoon Shout" xml:space="preserve"><tspan style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial" y="267.65308" x="2.512835" id="tspan3969-2-2" sodipodi:role="line">21 à 35</tspan></text>
  76.   </g>
  77.   <g id="g4235" transform="translate(11.071708,-3.8995215)">
  78.     <path id="path3828-9-7-1-4" inkscape:connector-curvature="0" sodipodi:nodetypes="ccccccc" fill="#ba72ef" d="M-4.485,299.565
  79.         c21.947-0.225,207.894-0.214,229.841-0.214c8.413,8.845,18.177,16.522,26.271,25.65c-10.322,11.828-15.004,16.859-25.067,27.909
  80.         c-22.214,0.004-208.643-0.1-230.857-0.096C-4.411,299.596-4.281,352.808-4.485,299.565L-4.485,299.565z"/>
  81.     <polyline fill="#ba72ef" points="251.628,352.91 251.628,299.351 225.356,299.351 225.356,352.91     "/>
  82.     <text sodipodi:linespacing="125%" id="text3932-8-2" y="336.65308" x="208.98003" style="font-size:32px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Arial;-inkscape-font-specification:Arial" xml:space="preserve"><tspan y="336.65308" x="208.98003" id="tspan3934-9-2" sodipodi:role="line">E</tspan></text>
  83.     <text sodipodi:linespacing="125%" id="text3967-4-3" y="331.65308" x="4.1046319" style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:BD Cartoon Shout;-inkscape-font-specification:BD Cartoon Shout" xml:space="preserve"><tspan style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial" y="331.65308" x="4.1046319" id="tspan3969-2-3" sodipodi:role="line">36 à 55</tspan></text>
  84.   </g>
  85.   <g id="g4242" transform="translate(11.071708,-3.2989172)">
  86.     <path id="path3828-9-7-1-4-3" inkscape:connector-curvature="0" sodipodi:nodetypes="ccccccc" fill="#a74deb" d="M-4.485,362.357
  87.         c21.947-0.225,247.894-0.214,269.841-0.214c8.413,8.845,18.177,16.522,26.271,25.65c-10.322,11.828-15.004,16.859-25.066,27.909
  88.         c-22.215,0.004-248.644-0.1-270.858-0.096C-4.411,362.388-4.281,415.6-4.485,362.357L-4.485,362.357z"/>
  89.     <polyline fill="#a74deb" points="291.628,362.143 291.628,415.702 266.561,415.702 260.561,362.143     "/>
  90.     <text sodipodi:linespacing="125%" id="text3932-8-2-8" y="397.44498" x="248.98003" style="font-size:32px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Arial;-inkscape-font-specification:Arial" xml:space="preserve"><tspan y="397.44498" x="248.98003" id="tspan3934-9-2-5" sodipodi:role="line">F</tspan></text>
  91.     <text sodipodi:linespacing="125%" id="text3967-4-3-1" y="394.44498" x="3.8507257" style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:BD Cartoon Shout;-inkscape-font-specification:BD Cartoon Shout" xml:space="preserve"><tspan style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial" y="394.44498" x="3.8507257" id="tspan3969-2-3-4" sodipodi:role="line">56 à 80</tspan></text>
  92.   </g>
  93.   <g id="g4249" transform="translate(11.071708,-2.6983129)">
  94.     <path id="path3828-9-7-1-4-3-1" inkscape:connector-curvature="0" sodipodi:nodetypes="ccccccc" fill="#8a19df" d="M-4.485,425.148
  95.         c21.947-0.225,287.894-0.214,309.841-0.214c8.413,8.845,18.177,16.521,26.271,25.65c-10.322,11.828-15.003,16.859-25.067,27.909
  96.         c-22.214,0.004-288.643-0.1-310.857-0.096C-4.411,425.179-4.281,478.392-4.485,425.148L-4.485,425.148z"/>
  97.     <polyline fill="#8a19df" points="331.628,478.494 331.628,424.935 305.356,424.935 305.356,478.494     "/>
  98.     <text sodipodi:linespacing="125%" id="text3932-8-2-8-9" y="461.93228" x="290.49271" style="font-size:32px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#fafafa;fill-opacity:1;stroke:none;font-family:Arial;-inkscape-font-specification:Arial" xml:space="preserve"><tspan y="461.93228" x="290.49271" id="tspan3934-9-2-5-2" sodipodi:role="line">G</tspan></text>
  99.     <text sodipodi:linespacing="125%" id="text3967-4-3-1-7" y="456.93228" x="3.5968194" style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#fafafa;fill-opacity:1;stroke:none;font-family:BD Cartoon Shout;-inkscape-font-specification:BD Cartoon Shout" xml:space="preserve"><tspan style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;fill:#fafafa;fill-opacity:1;font-family:Arial;-inkscape-font-specification:Arial" y="456.93228" x="3.5968194" id="tspan3969-2-3-4-2" sodipodi:role="line">&gt; 80</tspan></text>
  100.   </g>
  101.    <text
  102.      xml:space="preserve"
  103.      style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:BD Cartoon Shout;-inkscape-font-specification:BD Cartoon Shout"
  104.      x="5.598731"
  105.      y="501.69891"
  106.      id="text4196"
  107.      sodipodi:linespacing="125%"><tspan
  108.        sodipodi:role="line"
  109.        id="tspan4198"
  110.        x="5.598731"
  111.        y="501.69891"
  112.        style="font-size:22px;font-style:italic;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial Bold Italic">Forte émission de GSE</tspan></text>
  113.   <text
  114.      xml:space="preserve"
  115.      style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:BD Cartoon Shout;-inkscape-font-specification:BD Cartoon Shout"
  116.      x="5.598731"
  117.      y="27.418032"
  118.      id="text4200"
  119.      sodipodi:linespacing="125%"><tspan
  120.        sodipodi:role="line"
  121.        id="tspan4202"
  122.        x="5.598731"
  123.        y="27.418032"
  124.        style="font-size:22px;font-style:italic;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial Bold Italic">Faible émission de GES</tspan></text>
  125.   <text
  126.      xml:space="preserve"
  127.      style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:BD Cartoon Shout;-inkscape-font-specification:BD Cartoon Shout"
  128.      x="-480.98462"
  129.      y="361.17355"
  130.      id="text3940-6"
  131.      sodipodi:linespacing="125%"
  132.      transform="scale(-1,1)"><tspan
  133.        sodipodi:role="line"
  134.        id="tspan3942-6"
  135.        x="-480.98462"
  136.        y="361.17355"
  137.        style="font-size:20px" /></text>
  138.   <g id="g4306" transform="translate(-8.340353,{{ coor }})">
  139.     <path id="path3828-4" sodipodi:nodetypes="cccccc" inkscape:connector-curvature="0" d="M476.381,332.46
  140.         c-21.947-0.225-43.895-0.213-65.842-0.213c-8.412,8.844-18.177,16.521-26.271,25.649c10.322,11.828,15.003,16.858,25.066,27.909
  141.         c22.215,0.004,44.644-0.1,66.856-0.096C476.307,332.491,476.177,385.704,476.381,332.46z"/>
  142.     <text transform="matrix(1.1188 0 0 1 411.6177 368.8013)" fill="#FFFCFC" font-family="'ArialMT'" font-size="32">{{ ges }}</text>
  143. </g>
  144.   <text
  145.      xml:space="preserve"
  146.      style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:BD Cartoon Shout;-inkscape-font-specification:BD Cartoon Shout"
  147.      x="350.85715"
  148.      y="401.82065"
  149.      id="text4313"
  150.      sodipodi:linespacing="125%"><tspan
  151.        sodipodi:role="line"
  152.        id="tspan4315"
  153.        x="350.85715"
  154.        y="401.82065"
  155.        style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial"> kgéqCO2/m2.an</tspan></text>
  156. </svg>
  157.