Files
Jacek Pyziak 4d5e220b3c Add BackPRO News theme and update database schema for article tracking
- Introduced a new WordPress theme "BackPRO News" with a lightweight magazine-style design.
- Added columns for tracking retry attempts and timestamps for unpublished/generated articles in the articles table.
- Included remote service metadata fields in the sites table for better management.
- Created log files for image replacements, installer actions, OpenAI article generation, and publishing processes.
- Implemented a dashboard template for site management, including permalink settings and theme installation options.
2026-02-17 20:08:02 +01:00

37 lines
811 B
PHP

<?php
if (!defined('ABSPATH')) {
exit;
}
function backpro_news_setup(): void
{
add_theme_support('title-tag');
add_theme_support('post-thumbnails');
add_theme_support('html5', ['search-form', 'comment-form', 'comment-list', 'gallery', 'caption']);
}
add_action('after_setup_theme', 'backpro_news_setup');
function backpro_news_enqueue_assets(): void
{
wp_enqueue_style(
'backpro-news-style',
get_stylesheet_uri(),
[],
wp_get_theme()->get('Version')
);
}
add_action('wp_enqueue_scripts', 'backpro_news_enqueue_assets');
function backpro_news_parent_categories(): array
{
return get_categories([
'taxonomy' => 'category',
'hide_empty' => true,
'parent' => 0,
'orderby' => 'name',
'order' => 'ASC',
]);
}