Plugin packaging and docs
This commit is contained in:
@@ -0,0 +1,90 @@
|
||||
<?php
|
||||
/**
|
||||
* IGNY8 Metadata Footer
|
||||
* Shows IGNY8-specific metadata in collapsible format
|
||||
*
|
||||
* @package Igny8Bridge
|
||||
*/
|
||||
|
||||
// Exit if accessed directly
|
||||
if (!defined('ABSPATH')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
// Only show if we have IGNY8 content ID
|
||||
if (!$content_id) {
|
||||
return;
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="igny8-metadata-footer">
|
||||
<details class="igny8-metadata-details">
|
||||
<summary class="igny8-metadata-summary">
|
||||
View IGNY8 Metadata
|
||||
</summary>
|
||||
<div class="igny8-metadata-content">
|
||||
<table class="igny8-metadata-table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Content ID:</th>
|
||||
<td><?php echo esc_html($content_id); ?></td>
|
||||
</tr>
|
||||
<?php if ($task_id): ?>
|
||||
<tr>
|
||||
<th>Task ID:</th>
|
||||
<td><?php echo esc_html($task_id); ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if ($content_type): ?>
|
||||
<tr>
|
||||
<th>Content Type:</th>
|
||||
<td><?php echo esc_html(ucfirst($content_type)); ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if ($structure): ?>
|
||||
<tr>
|
||||
<th>Structure:</th>
|
||||
<td><?php echo esc_html(ucfirst($structure)); ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if ($source): ?>
|
||||
<tr>
|
||||
<th>Source:</th>
|
||||
<td><?php echo esc_html(ucfirst($source)); ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if ($cluster_id): ?>
|
||||
<tr>
|
||||
<th>Cluster ID:</th>
|
||||
<td><?php echo esc_html($cluster_id); ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if ($sector_id): ?>
|
||||
<tr>
|
||||
<th>Sector ID:</th>
|
||||
<td><?php echo esc_html($sector_id); ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if ($keywords_array): ?>
|
||||
<tr>
|
||||
<th>Secondary Keywords:</th>
|
||||
<td>
|
||||
<div class="igny8-keywords-list">
|
||||
<?php foreach ($keywords_array as $kw): ?>
|
||||
<span class="igny8-keyword-tag"><?php echo esc_html($kw); ?></span>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if ($last_synced): ?>
|
||||
<tr>
|
||||
<th>Last Synced:</th>
|
||||
<td><?php echo esc_html(date('F j, Y, g:i a', strtotime($last_synced))); ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</details>
|
||||
</div>
|
||||
Reference in New Issue
Block a user