2018-10-19 04:49:25 +02:00
|
|
|
<h2>Item Source</h2>
|
2019-04-26 06:08:08 +02:00
|
|
|
<form action="admin/item/source" method="get" class="panel panel-default">
|
2018-10-19 04:49:25 +02:00
|
|
|
<div class="panel-body">
|
|
|
|
<div class="form-group">
|
|
|
|
{{include file="field_input.tpl" field=$guid}}
|
|
|
|
</div>
|
|
|
|
<p><button type="submit" class="btn btn-primary">Submit</button></p>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
{{if $source}}
|
|
|
|
<div class="itemsource-results">
|
2019-02-22 03:37:23 +01:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h3 class="panel-title">Item Id</h3>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
{{$item_id}}
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-10-19 04:49:25 +02:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h3 class="panel-title">Item URI</h3>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
{{$item_uri}}
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-02-22 03:37:23 +01:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h3 class="panel-title">Terms</h3>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<table class="table table-condensed table-striped">
|
|
|
|
<tr>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Term</th>
|
|
|
|
<th>URL</th>
|
|
|
|
</tr>
|
|
|
|
{{foreach $terms as $term}}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
{{if $term.type == 1}}Tag{{/if}}
|
|
|
|
{{if $term.type == 2}}Mention{{/if}}
|
|
|
|
{{if $term.type == 8}}Implicit Mention{{/if}}
|
|
|
|
</td>
|
|
|
|
<td>
|
2020-05-01 17:18:48 +02:00
|
|
|
{{$term.name}}
|
2019-02-22 03:37:23 +01:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{$term.url}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/foreach}}
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-10-19 04:49:25 +02:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h3 class="panel-title">Source</h3>
|
|
|
|
</div>
|
|
|
|
<pre><code class="language-php">{{$source}}</code></pre>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|