Replace old plugin headers with proper file docblocks, add ABSPATH guards

- open-graph-tags.php: replace Plugin Name header with package docblock
- featured-image-generator.php: same cleanup
- sp-event-permalink.php: same cleanup, normalize indentation to tabs,
  collapse redundant switch cases (league/tournament both map to 'game')

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-06 08:33:15 -05:00
parent 7f0d0457e1
commit 6eb51a89b2
3 changed files with 96 additions and 74 deletions

View File

@@ -1,10 +1,15 @@
<?php
/*
Plugin Name: SP Event Image Generator
Description: Auto-generates featured images for SP Events by combining team colors and logos.
Version: 1.0
Author: Your Name
*/
/**
* SP Event featured-image generator.
*
* Auto-generates bisected team-color images for SP Events.
*
* @package Tonys_Sportspress_Enhancements
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
function generate_bisected_image($color1, $color2, $logo1_path, $logo2_path) {
$width = 1200;