|
44 | 44 | <div class='col-md-9 m-0'>
|
45 | 45 | <h4 class='list-group-item-heading p-0'>
|
46 | 46 |
|
47 |
| - <?php |
48 |
| - |
49 |
| - if ($current_plugin->isActive()) { |
50 |
| - echo "<a class='color-primary' id='" . $current_plugin->root_dir . "' href='" . config('horizontcms.backend_prefix') . '/plugin/run/' . $current_plugin->getSlug() . "'>" . $current_plugin->getName() . '</a>'; |
51 |
| - } else { |
52 |
| - echo "<a class='color-primary' id='" . $current_plugin->root_dir . "' >" . $current_plugin->getName() . '</a>'; |
53 |
| - } |
54 |
| - |
55 |
| - echo " <small class='text-muted'>version: " . |
56 |
| - $current_plugin->getInfo('version') . |
57 |
| - " | author: <a href='" . |
58 |
| - $current_plugin->getInfo('author_url') . |
59 |
| - "'>" . |
60 |
| - $current_plugin->getInfo('author') . |
61 |
| - "</a></small></h4> |
62 |
| - |
63 |
| - <p class='text-white'>" . |
64 |
| - $current_plugin->getInfo('description') . |
65 |
| - '</p>'; |
66 |
| - |
67 |
| - echo '</div>'; |
68 |
| - |
69 |
| - echo "<div class='col-md-2 col-sm-4 col-xs-4 text-end'>"; |
70 |
| - |
71 |
| - if (!$current_plugin->isInstalled()) { |
72 |
| - echo "<a id='install' class='btn btn-primary btn-block' href='" . config('horizontcms.backend_prefix') . '/plugin/install/' . $current_plugin->root_dir . "'>Install</a>"; |
73 |
| - } else { |
74 |
| - if (!$current_plugin->isActive()) { |
75 |
| - echo "<a class='btn btn-success btn-block' href='" . config('horizontcms.backend_prefix') . '/plugin/activate/' . $current_plugin->root_dir . "'>Activate</a>"; |
76 |
| - } else { |
77 |
| - echo "<a class='btn btn-info btn-block' href='" . config('horizontcms.backend_prefix') . '/plugin/deactivate/' . $current_plugin->root_dir . "'>Deactivate</a>"; |
78 |
| - } |
79 |
| - } |
80 |
| - echo "<button class='btn btn-danger btn-block' data-bs-toggle='modal' data-bs-target='#delete_" . $current_plugin->root_dir . "' >Delete</button>"; |
81 |
| - |
82 |
| - ?> |
| 47 | + @if ($current_plugin->isActive()) |
| 48 | + <a class='color-primary' id='{{ $current_plugin->root_dir }}' |
| 49 | + href='{{ config('horizontcms.backend_prefix') . '/plugin/run/' . $current_plugin->getSlug() }}'>{{ $current_plugin->getName() }}</a> |
| 50 | + @else |
| 51 | + <a class='color-primary' |
| 52 | + id='{{ $current_plugin->root_dir }}'>{{ $current_plugin->getName() }}</a> |
| 53 | + @endif |
| 54 | + |
| 55 | + |
| 56 | + <small class='text-muted'>version: {{ $current_plugin->getInfo('version') }} |
| 57 | + | author: <a href='{{ $current_plugin->getInfo('author_url') }}'> |
| 58 | + {{ $current_plugin->getInfo('author') }}</a> |
| 59 | + </small> |
| 60 | + </h4> |
| 61 | + |
| 62 | + <p class='text-white'> |
| 63 | + {{ $current_plugin->getInfo('description') }} |
| 64 | + </p> |
| 65 | + |
| 66 | + </div> |
| 67 | + |
| 68 | + <div class='col-md-2 col-sm-4 col-xs-4 text-end'> |
| 69 | + |
| 70 | + |
| 71 | + @if (!$current_plugin->isInstalled()) |
| 72 | + <a id='install' class='btn btn-primary btn-block' |
| 73 | + href='{{ config('horizontcms.backend_prefix') }}/plugin/install/{{ $current_plugin->root_dir }}'>Install</a> |
| 74 | + @else |
| 75 | + @if (!$current_plugin->isActive()) |
| 76 | + <a class='btn btn-success btn-block' |
| 77 | + href='{{ config('horizontcms.backend_prefix') }}/plugin/activate/{{ $current_plugin->root_dir }}'>Activate</a> |
| 78 | + @else |
| 79 | + <a class='btn btn-info btn-block' |
| 80 | + href='{{ config('horizontcms.backend_prefix') }}/plugin/deactivate/{{ $current_plugin->root_dir }}'>Deactivate</a> |
| 81 | + @endif |
| 82 | + @endif |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + <button class='btn btn-danger btn-block' data-bs-toggle='modal' |
| 87 | + data-bs-target='#delete_{{ $current_plugin->root_dir }}'>{{ trans('actions.delete') }}</button> |
| 88 | + |
83 | 89 |
|
84 | 90 | </div>
|
85 | 91 |
|
|
127 | 133 | </div>
|
128 | 134 | <div class='modal-footer'>
|
129 | 135 | <button type='submit' class='btn btn-primary'>Upload</button></form>
|
130 |
| - <button type='button' class='btn btn-default' data-bs-dismiss='modal'>Cancel</button> |
| 136 | + <button type='button' class='btn btn-default' |
| 137 | + data-bs-dismiss='modal'>{{ trans('actions.cancel') }}</button> |
131 | 138 | </div>
|
132 | 139 | </div><!-- /.modal-content -->
|
133 | 140 | </div><!-- /.modal-dialog -->
|
|
0 commit comments