Make your WordPress site irresistible. Natural SEO attraction with: - robots.txt management - sitemap.xml generation - LLMs.txt support - Google integration (Analytics, Search Console, Tag Manager) - Schema.org structured data - Open Graph / Twitter Card meta tags - AMP support - Visual elements gallery - Built-in backup/restore module Includes build.sh and .distignore for WordPress-installable release ZIPs.
85 lines
3.4 KiB
PHP
85 lines
3.4 KiB
PHP
<?php
|
|
/**
|
|
* LLMs.txt admin page template
|
|
*/
|
|
|
|
// Prevent direct access
|
|
if (!defined('ABSPATH')) {
|
|
exit;
|
|
}
|
|
?>
|
|
|
|
<div class="seo-info-box">
|
|
<h3><?php _e('LLMs.txt Configuration', 'tigerstyle-heat'); ?></h3>
|
|
<p class="description">
|
|
<?php _e('Configure your LLMs.txt file to help AI systems understand your website content. This file provides machine-readable information about your site structure and important pages.', 'tigerstyle-heat'); ?>
|
|
</p>
|
|
<p class="description">
|
|
<strong><?php _e('Learn more:', 'tigerstyle-heat'); ?></strong>
|
|
<a href="https://llmstxt.org/" target="_blank"><?php _e('LLMs.txt Specification', 'tigerstyle-heat'); ?></a>
|
|
</p>
|
|
</div>
|
|
|
|
<form method="post" action="<?php echo admin_url('admin-post.php'); ?>">
|
|
<input type="hidden" name="action" value="update_llmstxt">
|
|
<?php wp_nonce_field('update_llmstxt', 'llmstxt_nonce'); ?>
|
|
|
|
<table class="form-table">
|
|
<tr>
|
|
<th scope="row"><?php _e('Enable LLMs.txt', 'tigerstyle-heat'); ?></th>
|
|
<td>
|
|
<label>
|
|
<input type="checkbox" name="llmstxt_enabled" value="1" <?php checked(TigerStyleSEO_Utils::get_option('llmstxt_enabled', false)); ?>>
|
|
<?php _e('Enable LLMs.txt generation', 'tigerstyle-heat'); ?>
|
|
</label>
|
|
<p class="description">
|
|
<?php _e('When enabled, your site will serve an LLMs.txt file at yoursite.com/llms.txt', 'tigerstyle-heat'); ?>
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">
|
|
<label for="llmstxt_content"><?php _e('Custom LLMs.txt Content', 'tigerstyle-heat'); ?></label>
|
|
</th>
|
|
<td>
|
|
<textarea
|
|
id="llmstxt_content"
|
|
name="llmstxt_content"
|
|
rows="20"
|
|
cols="80"
|
|
class="large-text code"
|
|
placeholder="<?php _e('Leave empty to auto-generate content based on your website structure...', 'tigerstyle-heat'); ?>"
|
|
><?php echo esc_textarea(TigerStyleSEO_Utils::get_option('llmstxt_content', '')); ?></textarea>
|
|
<p class="description">
|
|
<?php _e('Custom markdown content for your LLMs.txt file. Leave empty to auto-generate based on your site.', 'tigerstyle-heat'); ?>
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<?php submit_button(__('Update LLMs.txt Settings', 'tigerstyle-heat')); ?>
|
|
</form>
|
|
|
|
<?php if (TigerStyleSEO_Utils::get_option('llmstxt_enabled', false)): ?>
|
|
<div class="seo-info-box">
|
|
<h3><?php _e('Preview Current LLMs.txt', 'tigerstyle-heat'); ?></h3>
|
|
<p class="description">
|
|
<strong><?php _e('Current LLMs.txt URL:', 'tigerstyle-heat'); ?></strong>
|
|
<a href="<?php echo esc_url(home_url('/llms.txt')); ?>" target="_blank">
|
|
<?php echo esc_url(home_url('/llms.txt')); ?>
|
|
</a>
|
|
</p>
|
|
<textarea readonly rows="15" cols="80" class="large-text code" style="background: #f9f9f9;">
|
|
<?php
|
|
$llms_module = tigerstyle_heat()->get_module('llms_txt');
|
|
if ($llms_module) {
|
|
// Get content via reflection to access private method for preview
|
|
$reflection = new ReflectionClass($llms_module);
|
|
$method = $reflection->getMethod('get_llmstxt_content');
|
|
$method->setAccessible(true);
|
|
echo esc_textarea($method->invoke($llms_module));
|
|
}
|
|
?>
|
|
</textarea>
|
|
</div>
|
|
<?php endif; ?>
|