@@ -31,7 +31,16 @@ $base = $this->categories;
31
31
<div class="media">
32
32
<div class="media-body">
33
33
<h1 class="media-heading"><?= $ this ->base_data ['TITLE ' ]; ?>
34
- <small><?= $ this ->base_data ['HOST ' ]; ?> </small>
34
+ <?php if (isset ($ this ->base_data ['ALT_HOST ' ])): ?>
35
+ <select class="form-control">
36
+ <option selected><?= $ this ->base_data ['HOST ' ]; ?> </option>
37
+ <?php foreach (explode (', ' , $ this ->base_data ['ALT_HOST ' ]) as $ host ): ?>
38
+ <option><?= $ host ; ?> </option>
39
+ <?php endforeach ; ?>
40
+ </select>
41
+ <?php else : ?>
42
+ <small><?= $ this ->base_data ['HOST ' ]; ?> </small>
43
+ <?php endif ; ?>
35
44
</h1>
36
45
<p class="lead"><?= $ this ->base_data ['DESC ' ]; ?> </p>
37
46
</div>
@@ -151,7 +160,7 @@ $base = $this->categories;
151
160
</a>
152
161
<p class="lead"><?= $ transition ->description ; ?> </p>
153
162
<?php if (!empty ($ transition ->requests )): ?>
154
- <?php foreach ($ transition ->requests as $ key=> $ request ): ?>
163
+ <?php foreach ($ transition ->requests as $ key => $ request ): ?>
155
164
<div class="panel panel-default">
156
165
<div class="panel-heading">
157
166
<h4 class="request panel-title"
@@ -162,9 +171,10 @@ $base = $this->categories;
162
171
</h4>
163
172
</div>
164
173
165
- <div class="collapse <?php if ($ key <1 ):?> in<?php endif ;?> request-panel panel-body"
166
- id="request-coll-<?= $ transition ->get_href (); ?> ">
167
- <?= $ request ->description ;?>
174
+ <div
175
+ class="collapse <?php if ($ key < 1 ): ?> in<?php endif ; ?> request-panel panel-body"
176
+ id="request-coll-<?= $ transition ->get_href (); ?> ">
177
+ <?= $ request ->description ; ?>
168
178
<?php if ($ transition ->url_variables !== []): ?>
169
179
<h5>Example URI</h5>
170
180
<span class="base-url"><?= $ this ->base_data ['HOST ' ]; ?> </span>
@@ -219,7 +229,7 @@ $base = $this->categories;
219
229
<?php endforeach ; ?>
220
230
<?php endif ; ?>
221
231
<?php if (isset ($ transition ->responses )): ?>
222
- <?php foreach ($ transition ->responses as $ key=> $ response ): ?>
232
+ <?php foreach ($ transition ->responses as $ key => $ response ): ?>
223
233
<div class="panel panel-default">
224
234
<div class="panel-heading">
225
235
<h4 class="panel-title response"
@@ -231,9 +241,10 @@ $base = $this->categories;
231
241
class="glyphicon indicator glyphicon-menu-down pull-right"></span>
232
242
</h4>
233
243
</div>
234
- <div class="panel-body collapse <?php if ($ key <1 ):?> in<?php endif ;?> response-panel"
235
- id="request-coll--<?= $ transition ->get_href () . '- ' . $ response ->statuscode ; ?> ">
236
- <?= $ response ->description ;?>
244
+ <div
245
+ class="panel-body collapse <?php if ($ key < 1 ): ?> in<?php endif ; ?> response-panel"
246
+ id="request-coll--<?= $ transition ->get_href () . '- ' . $ response ->statuscode ; ?> ">
247
+ <?= $ response ->description ; ?>
237
248
<?php if ($ response ->headers !== []): ?>
238
249
<h5>Headers</h5>
239
250
<ul class="headers list-unstyled">
@@ -310,6 +321,7 @@ $base = $this->categories;
310
321
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"
311
322
integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
312
323
crossorigin="anonymous"></script>
313
- <script><?= Minifier::minify_js (file_get_contents (__DIR__ . '/ ' . $ this ->template . '.js ' )); ?> </script>
324
+ <!--<script>--><? //= Minifier::minify_js(file_get_contents(__DIR__ . '/' . $this->template . '.js')); ?> <!--</script>-->
325
+ <script><?= file_get_contents (__DIR__ . '/ ' . $ this ->template . '.js ' ); ?> </script>
314
326
</body>
315
327
</html>
0 commit comments