Преглед изворни кода

Ticket #3783 - No Picture image for contexts.

AntonLV пре 4 година
родитељ
комит
5fea87aebb
26 измењених фајлова са 119 додато и 1 уклоњено
  1. 9 1
      modules/base/profile/classes/BxBaseModProfileTemplate.php
  2. BIN
      modules/boonex/channels/template/images/no-pciture-big.png
  3. BIN
      modules/boonex/channels/template/images/no-picture-icon.png
  4. BIN
      modules/boonex/channels/template/images/no-picture-preview.png
  5. BIN
      modules/boonex/channels/template/images/no-picture-thumb.png
  6. 24 0
      modules/boonex/channels/template/images/no-picture.svg
  7. BIN
      modules/boonex/courses/template/images/no-pciture-big.png
  8. BIN
      modules/boonex/courses/template/images/no-picture-icon.png
  9. BIN
      modules/boonex/courses/template/images/no-picture-preview.png
  10. BIN
      modules/boonex/courses/template/images/no-picture-thumb.png
  11. 19 0
      modules/boonex/courses/template/images/no-picture.svg
  12. BIN
      modules/boonex/events/template/images/no-pciture-big.png
  13. BIN
      modules/boonex/events/template/images/no-picture-icon.png
  14. BIN
      modules/boonex/events/template/images/no-picture-preview.png
  15. BIN
      modules/boonex/events/template/images/no-picture-thumb.png
  16. 19 0
      modules/boonex/events/template/images/no-picture.svg
  17. BIN
      modules/boonex/groups/template/images/no-pciture-big.png
  18. BIN
      modules/boonex/groups/template/images/no-picture-icon.png
  19. BIN
      modules/boonex/groups/template/images/no-picture-preview.png
  20. BIN
      modules/boonex/groups/template/images/no-picture-thumb.png
  21. 24 0
      modules/boonex/groups/template/images/no-picture.svg
  22. BIN
      modules/boonex/spaces/template/images/no-pciture-big.png
  23. BIN
      modules/boonex/spaces/template/images/no-picture-icon.png
  24. BIN
      modules/boonex/spaces/template/images/no-picture-preview.png
  25. BIN
      modules/boonex/spaces/template/images/no-picture-thumb.png
  26. 24 0
      modules/boonex/spaces/template/images/no-picture.svg

+ 9 - 1
modules/base/profile/classes/BxBaseModProfileTemplate.php

@@ -656,7 +656,15 @@ class BxBaseModProfileTemplate extends BxBaseModGeneralTemplate
             if ($oImagesTranscoder)
                 $sImageUrl = $oImagesTranscoder->getFileUrl($aData[$sField]);
         }
-        return $bSubstituteNoImage && !$sImageUrl ? $this->getImageUrl($sNoImage) : $sImageUrl;
+
+        if(!$bSubstituteNoImage || $sImageUrl)
+            return $sImageUrl;
+
+        $sImageUrl = $this->getImageUrl($sNoImage);
+        if(!$sImageUrl)
+            $sImageUrl = $this->getImageUrl(substr($sNoImage, 0, strrpos($sNoImage, '-')) . '.svg');
+
+        return $sImageUrl;
     }
 
     protected function _getUnitClass($aData, $sTemplateName = 'unit.html')

BIN
modules/boonex/channels/template/images/no-pciture-big.png


BIN
modules/boonex/channels/template/images/no-picture-icon.png


BIN
modules/boonex/channels/template/images/no-picture-preview.png


BIN
modules/boonex/channels/template/images/no-picture-thumb.png


+ 24 - 0
modules/boonex/channels/template/images/no-picture.svg

@@ -0,0 +1,24 @@
+<svg width="240" height="240" viewBox="0 0 240 240" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path fill-rule="evenodd" clip-rule="evenodd" d="M89.4058 196.52C90.7359 193.317 88.3729 189.822 84.9053 189.745C72.4675 189.469 61.4816 188.96 51.8195 188.181C49.1096 187.962 46.6821 189.918 46.4516 192.627C44.6404 213.913 48.8595 223.34 58.9122 226.033C70.0619 229.021 79.1381 221.247 89.4058 196.52ZM114.011 116.88C113.536 118.699 111.88 120 110 120V120C94.1976 120 80.2643 120.255 68.0279 120.816C64.6323 120.971 62.0349 117.798 62.9123 114.514C63.019 114.114 63.1263 113.713 63.2341 113.311C84.8227 32.7412 97.5411 8.62303 115.852 13.5295C133.435 18.2407 133.171 43.5481 114.011 116.88Z" fill="url(#paint0_linear_435_2643)"/>
+<path fill-rule="evenodd" clip-rule="evenodd" d="M128.912 226.033C147.223 230.94 159.942 206.821 181.53 126.252C181.619 125.92 181.708 125.589 181.796 125.258C182.68 121.953 180.044 118.766 176.628 118.952C164.642 119.602 150.929 119.931 135.307 119.99C133.038 119.999 131.044 121.564 130.472 123.76C111.591 196.263 111.416 221.345 128.912 226.033ZM155.129 43.5979C153.814 46.792 156.16 50.2719 159.613 50.3674C172.177 50.7148 183.189 51.3186 192.791 52.2207C195.518 52.4769 197.987 50.5299 198.236 47.802C200.237 25.9048 196.04 16.2594 185.852 13.5295C174.619 10.5197 165.491 18.4321 155.129 43.5979Z" fill="url(#paint1_linear_435_2643)"/>
+<path fill-rule="evenodd" clip-rule="evenodd" d="M126.673 105.739C126.142 107.902 127.772 110 130 110V110C213.412 110 240 103.957 240 85.0001C240 66.8536 215.637 60.5406 140.392 60.0338C137.894 60.017 135.74 61.8524 135.351 64.3199C133.508 75.9865 130.613 89.6905 126.673 105.739ZM65.1363 69.2426C66.2362 65.8091 63.4822 62.3347 59.9008 62.7499C30.72 66.1325 20 72.9628 20 85.0001C20 95.5427 28.2231 102.091 49.8696 105.827C52.3593 106.257 54.7397 104.683 55.41 102.247C58.7898 89.9625 62.0132 78.9918 65.1363 69.2426Z" fill="url(#paint2_linear_435_2643)"/>
+<path fill-rule="evenodd" clip-rule="evenodd" d="M193.776 134.854C191.259 134.345 188.81 135.923 188.127 138.398C184.864 150.231 181.746 160.836 178.723 170.298C177.617 173.757 180.419 177.245 184.018 176.76C210.246 173.227 220 166.482 220 155C220 145.071 212.707 138.685 193.776 134.854ZM108.369 175.698C107.98 178.162 105.83 179.997 103.336 179.987C25.1651 179.663 -8.60626e-06 173.443 -6.99392e-06 155C-5.33663e-06 136.043 26.5882 130 110 130C110.577 130 111.151 130 111.723 130.001C114.966 130.004 117.334 133.058 116.568 136.21C112.868 151.432 110.133 164.504 108.369 175.698Z" fill="url(#paint3_linear_435_2643)"/>
+<defs>
+<linearGradient id="paint0_linear_435_2643" x1="87.3822" y1="12.9231" x2="87.3822" y2="226.64" gradientUnits="userSpaceOnUse">
+<stop stop-color="#FB923C"/>
+<stop offset="1" stop-color="#EA580C"/>
+</linearGradient>
+<linearGradient id="paint1_linear_435_2643" x1="157.382" y1="12.9231" x2="157.382" y2="226.64" gradientUnits="userSpaceOnUse">
+<stop stop-color="#FB923C"/>
+<stop offset="1" stop-color="#EA580C"/>
+</linearGradient>
+<linearGradient id="paint2_linear_435_2643" x1="130" y1="60.0337" x2="130" y2="110" gradientUnits="userSpaceOnUse">
+<stop stop-color="#34D399"/>
+<stop offset="1" stop-color="#059669"/>
+</linearGradient>
+<linearGradient id="paint3_linear_435_2643" x1="110" y1="130" x2="110" y2="179.987" gradientUnits="userSpaceOnUse">
+<stop stop-color="#34D399"/>
+<stop offset="1" stop-color="#059669"/>
+</linearGradient>
+</defs>
+</svg>

BIN
modules/boonex/courses/template/images/no-pciture-big.png


BIN
modules/boonex/courses/template/images/no-picture-icon.png


BIN
modules/boonex/courses/template/images/no-picture-preview.png


BIN
modules/boonex/courses/template/images/no-picture-thumb.png


+ 19 - 0
modules/boonex/courses/template/images/no-picture.svg

@@ -0,0 +1,19 @@
+<svg width="240" height="240" viewBox="0 0 240 240" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path fill-rule="evenodd" clip-rule="evenodd" d="M189.909 143.498C189.806 139.974 186.093 137.817 182.873 139.252C137.37 159.537 102.506 159.639 57.1093 139.556C53.8867 138.131 50.1788 140.296 50.082 143.819C50.0269 145.822 50 147.882 50 150C50 203.08 66.9197 220 120 220C173.08 220 190 203.08 190 150C190 147.769 189.97 145.602 189.909 143.498Z" fill="url(#paint0_linear_435_3054)"/>
+<path fill-rule="evenodd" clip-rule="evenodd" d="M27.7223 124.666C24.479 122.826 20.3921 124.947 20.2542 128.673C20.0793 133.402 20 138.82 20 145C20 179.123 22.4171 190 30 190C37.5829 190 40 179.123 40 145C40 141.089 39.9683 137.484 39.9006 134.165C39.8636 132.35 38.8278 130.708 37.222 129.859C36.7575 129.614 36.2918 129.367 35.8249 129.118C32.9983 127.61 30.2975 126.127 27.7223 124.666Z" fill="url(#paint1_linear_435_3054)"/>
+<path fill-rule="evenodd" clip-rule="evenodd" d="M51.3903 56.4436C99.8241 84.4069 116.471 91.2271 120.263 84.6601C124.054 78.0932 109.824 67.0864 61.3903 39.1231V39.1231C60.0653 38.3581 60.1571 36.4159 61.5492 35.781C109.361 13.9741 143.839 16.7137 195 43.9999C251.872 74.3315 251.872 93.6683 195 124C138.129 154.331 101.872 154.331 45.0005 124C-8.23 95.6103 -11.6381 76.8527 34.7761 49.6965C36.3262 48.7895 38.2759 48.7923 39.8234 49.7037C43.4408 51.834 47.2932 54.0782 51.3903 56.4436Z" fill="url(#paint2_linear_435_3054)"/>
+<defs>
+<linearGradient id="paint0_linear_435_3054" x1="50" y1="208" x2="190" y2="212" gradientUnits="userSpaceOnUse">
+<stop stop-color="#6EE7B7"/>
+<stop offset="1" stop-color="#10B981"/>
+</linearGradient>
+<linearGradient id="paint1_linear_435_3054" x1="30" y1="123.992" x2="30" y2="190" gradientUnits="userSpaceOnUse">
+<stop stop-color="#FB923C"/>
+<stop offset="1" stop-color="#EA580C"/>
+</linearGradient>
+<linearGradient id="paint2_linear_435_3054" x1="125" y1="147" x2="120" y2="21" gradientUnits="userSpaceOnUse">
+<stop stop-color="#60A5FA"/>
+<stop offset="1" stop-color="#2563EB"/>
+</linearGradient>
+</defs>
+</svg>

BIN
modules/boonex/events/template/images/no-pciture-big.png


BIN
modules/boonex/events/template/images/no-picture-icon.png


BIN
modules/boonex/events/template/images/no-picture-preview.png


BIN
modules/boonex/events/template/images/no-picture-thumb.png


+ 19 - 0
modules/boonex/events/template/images/no-picture.svg

@@ -0,0 +1,19 @@
+<svg width="240" height="240" viewBox="0 0 240 240" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path fill-rule="evenodd" clip-rule="evenodd" d="M20 120C20 108.444 20.4639 97.9794 21.4648 88.5246C21.9851 83.609 26.2086 80 31.1517 80H208.848C213.791 80 218.015 83.609 218.535 88.5246C219.536 97.9794 220 108.444 220 120C220 203.412 195.829 230 120 230C44.171 230 20 203.412 20 120ZM132.554 110.438C127.419 100.032 112.581 100.032 107.446 110.438L102.685 120.084C100.646 124.216 96.7037 127.08 92.1438 127.743L81.4983 129.29C70.0152 130.958 65.4301 145.07 73.7393 153.169L81.4425 160.678C84.7421 163.894 86.2477 168.528 85.4688 173.07L83.6504 183.672C81.6888 195.109 93.6929 203.83 103.964 198.431L113.485 193.425C117.564 191.281 122.436 191.281 126.515 193.425L136.036 198.431C146.307 203.83 158.311 195.109 156.35 183.672L154.531 173.07C153.752 168.528 155.258 163.894 158.558 160.678L166.261 153.169C174.57 145.07 169.985 130.958 158.502 129.29L147.856 127.743C143.296 127.08 139.354 124.216 137.315 120.084L132.554 110.438Z" fill="url(#paint0_linear_429_6025)"/>
+<path fill-rule="evenodd" clip-rule="evenodd" d="M120 10C175.201 10 203.026 24.0902 214.08 63.9351C214.936 67.0177 212.555 70 209.356 70H30.6428C27.4438 70 25.0635 67.0177 25.9187 63.9351C36.9725 24.0902 64.7981 10 120 10ZM89.999 30C84.4762 30 79.999 34.4772 79.999 40C79.999 45.5228 84.4762 50 89.999 50H149.999C155.522 50 159.999 45.5228 159.999 40C159.999 34.4772 155.522 30 149.999 30H89.999Z" fill="url(#paint1_linear_429_6025)"/>
+<path d="M115.516 114.085C117.35 110.369 122.65 110.369 124.484 114.085L133.531 132.417C134.26 133.893 135.667 134.916 137.296 135.153L157.527 138.092C161.628 138.688 163.266 143.728 160.298 146.621L145.659 160.891C144.48 162.039 143.943 163.694 144.221 165.316L147.677 185.466C148.377 189.55 144.09 192.665 140.422 190.736L122.327 181.223C120.87 180.457 119.13 180.457 117.673 181.223L99.5781 190.736C95.91 192.665 91.6228 189.55 92.3234 185.466L95.7792 165.316C96.0574 163.694 95.5197 162.039 94.3412 160.891L79.7019 146.621C76.7343 143.728 78.3719 138.688 82.473 138.092L102.704 135.153C104.333 134.916 105.74 133.893 106.469 132.417L115.516 114.085Z" fill="url(#paint2_linear_429_6025)"/>
+<defs>
+<linearGradient id="paint0_linear_429_6025" x1="120" y1="80" x2="120" y2="230" gradientUnits="userSpaceOnUse">
+<stop stop-color="#7DD3FC"/>
+<stop offset="1" stop-color="#0EA5E9"/>
+</linearGradient>
+<linearGradient id="paint1_linear_429_6025" x1="120" y1="10" x2="120" y2="70" gradientUnits="userSpaceOnUse">
+<stop stop-color="#FB7185"/>
+<stop offset="1" stop-color="#F43F5E"/>
+</linearGradient>
+<linearGradient id="paint2_linear_429_6025" x1="120" y1="105" x2="120" y2="205" gradientUnits="userSpaceOnUse">
+<stop stop-color="#FB923C"/>
+<stop offset="1" stop-color="#EA580C"/>
+</linearGradient>
+</defs>
+</svg>

BIN
modules/boonex/groups/template/images/no-pciture-big.png


BIN
modules/boonex/groups/template/images/no-picture-icon.png


BIN
modules/boonex/groups/template/images/no-picture-preview.png


BIN
modules/boonex/groups/template/images/no-picture-thumb.png


+ 24 - 0
modules/boonex/groups/template/images/no-picture.svg

@@ -0,0 +1,24 @@
+<svg width="240" height="240" viewBox="0 0 240 240" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path fill-rule="evenodd" clip-rule="evenodd" d="M60.8307 70.0068C60.5544 70.0023 60.2774 70 60 70C32.3858 70 10 92.3858 10 120C10 147.614 32.3858 170 60 170C87.6142 170 110 147.614 110 120C110 119.723 109.998 119.446 109.993 119.169C84.8736 114.952 65.0479 95.1264 60.8307 70.0068Z" fill="url(#paint0_linear_429_5623)"/>
+<path fill-rule="evenodd" clip-rule="evenodd" d="M169.993 60.8307C169.998 60.5544 170 60.2774 170 60C170 32.3858 147.614 10 120 10C92.3858 10 70 32.3858 70 60C70 87.6142 92.3858 110 120 110C120.277 110 120.554 109.998 120.831 109.993C125.048 84.8736 144.874 65.0479 169.993 60.8307Z" fill="url(#paint1_linear_429_5623)"/>
+<path fill-rule="evenodd" clip-rule="evenodd" d="M70.0068 179.169C70.0023 179.446 70 179.723 70 180C70 207.614 92.3858 230 120 230C147.614 230 170 207.614 170 180C170 152.386 147.614 130 120 130C119.723 130 119.446 130.002 119.169 130.007C114.952 155.126 95.1264 174.952 70.0068 179.169Z" fill="url(#paint2_linear_429_5623)"/>
+<path fill-rule="evenodd" clip-rule="evenodd" d="M180 170C207.614 170 230 147.614 230 120C230 92.3858 207.614 70 180 70C152.386 70 130 92.3858 130 120C130 120.277 130.002 120.554 130.007 120.831C155.126 125.048 174.952 144.874 179.169 169.993C179.446 169.998 179.723 170 180 170Z" fill="url(#paint3_linear_429_5623)"/>
+<defs>
+<linearGradient id="paint0_linear_429_5623" x1="60" y1="70" x2="60" y2="170" gradientUnits="userSpaceOnUse">
+<stop stop-color="#FB7185"/>
+<stop offset="1" stop-color="#E11D48"/>
+</linearGradient>
+<linearGradient id="paint1_linear_429_5623" x1="120" y1="10" x2="120" y2="110" gradientUnits="userSpaceOnUse">
+<stop stop-color="#34D399"/>
+<stop offset="1" stop-color="#059669"/>
+</linearGradient>
+<linearGradient id="paint2_linear_429_5623" x1="120" y1="130" x2="120" y2="230" gradientUnits="userSpaceOnUse">
+<stop stop-color="#FB923C"/>
+<stop offset="1" stop-color="#EA580C"/>
+</linearGradient>
+<linearGradient id="paint3_linear_429_5623" x1="180" y1="70" x2="180" y2="170" gradientUnits="userSpaceOnUse">
+<stop stop-color="#60A5FA"/>
+<stop offset="1" stop-color="#2563EB"/>
+</linearGradient>
+</defs>
+</svg>

BIN
modules/boonex/spaces/template/images/no-pciture-big.png


BIN
modules/boonex/spaces/template/images/no-picture-icon.png


BIN
modules/boonex/spaces/template/images/no-picture-preview.png


BIN
modules/boonex/spaces/template/images/no-picture-thumb.png


+ 24 - 0
modules/boonex/spaces/template/images/no-picture.svg

@@ -0,0 +1,24 @@
+<svg width="240" height="240" viewBox="0 0 240 240" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path fill-rule="evenodd" clip-rule="evenodd" d="M111.066 111.066C137.875 84.2563 137.875 67.1648 111.066 40.3552C84.2563 13.5456 67.1648 13.5457 40.3552 40.3552C13.5457 67.1648 13.5456 84.2563 40.3552 111.066V111.066C41.8025 112.513 44.1171 112.563 45.7148 111.284C67.3387 93.9711 84.3592 93.9688 105.982 111.277C107.498 112.491 109.693 112.439 111.066 111.066V111.066Z" fill="url(#paint0_linear_435_2166)"/>
+<path fill-rule="evenodd" clip-rule="evenodd" d="M129.161 105.315C128.02 106.728 128.07 108.781 129.355 110.066V110.066C156.165 136.875 173.256 136.875 200.066 110.066C226.875 83.2563 226.875 66.1648 200.066 39.3552C173.256 12.5456 156.165 12.5457 129.355 39.3552V39.3552C127.996 40.7141 127.947 42.8874 129.154 44.3829C146.823 66.2759 146.825 83.4227 129.161 105.315Z" fill="url(#paint1_linear_435_2166)"/>
+<path fill-rule="evenodd" clip-rule="evenodd" d="M135.555 129.087C133.695 127.629 131.026 127.684 129.355 129.355V129.355C102.546 156.165 102.546 173.256 129.355 200.066C156.165 226.876 173.256 226.876 200.066 200.066C226.875 173.256 226.875 156.165 200.066 129.355V129.355C198.469 127.758 195.918 127.701 194.14 129.095C173.195 145.515 156.502 145.512 135.555 129.087Z" fill="url(#paint2_linear_435_2166)"/>
+<path fill-rule="evenodd" clip-rule="evenodd" d="M110.066 200.066C111.752 198.38 111.812 195.688 110.348 193.805C94.2779 173.128 94.2805 156.569 110.356 135.891C111.884 133.925 111.826 131.116 110.066 129.355V129.355C83.2563 102.546 66.1648 102.546 39.3552 129.355C12.5457 156.165 12.5456 173.256 39.3552 200.066C66.1648 226.875 83.2563 226.875 110.066 200.066V200.066Z" fill="url(#paint3_linear_435_2166)"/>
+<defs>
+<linearGradient id="paint0_linear_435_2166" x1="75.7106" y1="20.248" x2="75.7106" y2="112.2" gradientUnits="userSpaceOnUse">
+<stop stop-color="#2DD4BF"/>
+<stop offset="1" stop-color="#0D9488"/>
+</linearGradient>
+<linearGradient id="paint1_linear_435_2166" x1="174.231" y1="19.248" x2="174.231" y2="130.173" gradientUnits="userSpaceOnUse">
+<stop stop-color="#C084FC"/>
+<stop offset="1" stop-color="#9333EA"/>
+</linearGradient>
+<linearGradient id="paint2_linear_435_2166" x1="164.711" y1="128.045" x2="164.711" y2="220.173" gradientUnits="userSpaceOnUse">
+<stop stop-color="#FB923C"/>
+<stop offset="1" stop-color="#EA580C"/>
+</linearGradient>
+<linearGradient id="paint3_linear_435_2166" x1="65.3479" y1="109.248" x2="65.3479" y2="220.173" gradientUnits="userSpaceOnUse">
+<stop stop-color="#7DD3FC"/>
+<stop offset="1" stop-color="#0EA5E9"/>
+</linearGradient>
+</defs>
+</svg>