quicktip.blade.php 2.32 KB
Newer Older
1
2
3
@if (sizeof($quicktip->details) > 0)
  <details>
    <summary class="quicktip-summary">
4
5
6
7
      <div class="quicktip-headline">
        @if ($quicktip->title != "")
          <h1 class="quicktip-title">
            @if ($quicktip->link != "")
8
              <a href="{{ $quicktip->link }}" target="_parent">{{ $quicktip->title }}</a>
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
            @else
              {{ $quicktip->title }}
            @endif
          </h1>
        @endif
        <div class="space-taker"></div>
        @if ($quicktip->gefVonLink != "")
          <a class="quicktip-hoster" href="{{ $quicktip->gefVonLink }}" target="_blank" rel="noopener">
            @if ($quicktip->gefVonTitle != "")
              {{ $quicktip->gefVonTitle }}
            @else
              {{ $quicktip->gefVonTitle }}
            @endif
          </a>
        @endif
        <i class="quicktip-extender fa fa-chevron-down"></i>
      </div>
      <p class="quicktip-description">{!! $quicktip->descr !!}</p>
27
28
29
      @if ($quicktip->author != "")
      <span class="author">{{ $quicktip->author }}</span>
      @endif
30
31
32
33
34
    </summary>
    @foreach ($quicktip->details as $detail)
      <div class="quicktip-detail">
        <h2>
          @if (isset($detail->link))
35
            <a href="{{ $detail->link }}" target="_parent">{{ $detail->title }}</a>
36
37
38
39
          @else
            {{ $detail->title }}
          @endif
        </h2>
40
        <p>{!! $detail->descr !!}</p>
41
42
43
44
      </div>
    @endforeach
  </details>
@else
45
  <div class="quicktip-summary">
46
47
48
49
    <div class="quicktip-headline">
      @if ($quicktip->title != "")
        <h1 class="quicktip-title">
          @if ($quicktip->link != "")
50
            <a href="{{ $quicktip->link }}" target="_parent">{{ $quicktip->title }}</a>
51
52
53
54
55
56
57
58
59
60
61
62
63
          @else
            {{ $quicktip->title }}
          @endif
        </h1>
        <div class="space-taker"></div>
        @if ($quicktip->gefVonLink != "")
          <a class="quicktip-hoster" href="{{ $quicktip->gefVonLink }}" target="_blank" rel="noopener">
            @if ($quicktip->gefVonTitle != "")
              {{ $quicktip->gefVonTitle }}
            @else
              {{ $quicktip->gefVonTitle }}
            @endif
          </a>
64
        @endif
65
66
      @endif
    </div>
67
    <p>{!! $quicktip->descr !!}</p>
68
69
70
    @if ($quicktip->author != "")
    <span class="author">{{ $quicktip->author }}</span>
    @endif
71
  </div>
72
@endif