
內容簡介
**總結:**
Image Credit Companion(ICC)是一個全面的WordPress外掛,旨在幫助內容創作者和編輯正確追蹤、管理和顯示圖像歸屬信息。無論您是運行新聞網站、博客還是任何內容驅動型網站,ICC確保您保持適當的圖片來源和符合授權要求。
**問題與答案:**
1. ICC的主要功能有哪些?
- 自動圖片檢測
- 編輯人員友好的界面
- 彈性輸出選項
- 全面的管理界面
- 樣板系統
- 性能優化
- 安全控制
2. ICC是如何工作的?
- 檢測:當保存文章時,ICC會自動掃描不同格式的圖片,包括Gutenberg塊、經典編輯器HTML內容和段落塊中的內嵌圖像。
- 存儲:圖片使用情況會在自定義數據庫表中跟踪,而元數據(作者、來源、授權許可)則存儲為附件文章元數據。
- 管理:編輯人員可以通過Gutenberg側邊欄面板(按文章查看)、媒體對話框(全局附件編輯)和管理員批量編輯界面添加元數據。
- 顯示:圖片來源可以通過短碼、動態塊或自動頁腳注入來展示。
3. ICC支持哪些圖片來源?
- 核心圖像塊
- 圖庫塊
- 封面塊
- 媒體與文本塊
- 經典編輯器HTML圖像
- 段落塊中的內嵌圖像
4. ICC提供哪些輸出格式?
- 無序列表:乾淨的項目符號格式
- 有序列表:編號列表格式
- 內聯:逗號分隔的內聯格式
5. 如何使用模板自定義?
- 在主題中創建模板:
- yourtheme/image-credit-companion/list-ul.php
- yourtheme/image-credit-companion/list-ol.php
- yourtheme/image-credit-companion/list-inline.php
6. 如何使用基本短碼?
- 顯示當前文章的圖片來源:[imagcrco_image_sources]
- 在整個網站上顯示所有圖像來源:[imagcrco_image_sources scope="site"]
- 特定格式化顯示:[imagcrco_image_sources list="ol" show_missing="true"]
7. 如何使用高級短碼屬性?
- scope: "post"(默認)或"site"
- post_id: 特定文章ID(用於文章範圍)
- list: "ul"(默認)、"ol"或"inline"
- show_missing: "true"或"false"(默認為false)
8. 如何使用動態塊?
- 在文章或頁面中添加“Image Sources”塊
- 在側邊欄中配置塊設置
- 選擇範圍、列表樣式和其他選項
- 這個塊會自動顯示適當的圖片來源。
外掛標籤
開發者團隊
原文外掛簡介
Image Credit Companion (ICC) is a comprehensive WordPress plugin designed to help content creators and editors properly track, manage, and display image attribution information. Whether you’re running a news site, blog, or any content-driven website, ICC ensures you maintain proper image credits and comply with licensing requirements.
Key Features
Automatic Image Detection: Automatically scans and tracks images used in posts, supporting both Gutenberg blocks and Classic Editor content
Editor-Friendly Interface: Gutenberg sidebar panel for easy metadata management during content creation
Flexible Output Options: Display image sources via shortcodes, dynamic blocks, or automatic footer injection
Comprehensive Admin Interface: Site-wide overview with filtering, bulk editing, and usage statistics
Template System: Customizable output templates with theme override support
Performance Optimized: Efficient database design with caching and indexed queries
Security First: Proper sanitization, validation, and capability-based access control
How It Works
Detection: When you save a post, ICC automatically scans the content for images in various formats:
Gutenberg blocks (Image, Gallery, Cover, Media & Text)
Classic Editor HTML content
Inline images in paragraph blocks
Storage: Image usage is tracked in a custom database table, while metadata (author, source, license) is stored as attachment post meta
Management: Editors can add metadata through:
Gutenberg sidebar panel (per-post view)
Media modal (global attachment editing)
Admin bulk editing interface
Display: Image sources can be shown using:
Shortcodes: [imagcrco_image_sources] or [imagcrco_post_image_sources]
Dynamic block: “Image Sources” block
Automatic footer injection (configurable)
Supported Image Sources
Core Image blocks
Gallery blocks
Cover blocks
Media & Text blocks
Classic Editor HTML images
Inline images in paragraph blocks
Output Formats
Unordered List: Clean bullet-point format
Ordered List: Numbered list format
Inline: Comma-separated inline format
Template Customization
ICC supports theme overrides for complete customization. Create templates in your theme:
yourtheme/image-credit-companion/list-ul.php
yourtheme/image-credit-companion/list-ol.php
yourtheme/image-credit-companion/list-inline.php
Usage Examples
Basic Shortcode Usage
Display image sources for the current post:
[imagcrco_image_sources]
Display all image sources site-wide:
[imagcrco_image_sources scope=”site”]
Display with specific formatting:
[imagcrco_image_sources list=”ol” show_missing=”true”]
Note: For backward compatibility, the legacy shortcodes [image_sources] and [post_image_sources] are still supported but the prefixed versions above are recommended.
Advanced Shortcode Attributes
scope: “post” (default) or “site”
post_id: Specific post ID (for post scope)
list: “ul” (default), “ol”, or “inline”
show_missing: “true” or “false” (default: false)
Dynamic Block Usage
Add the “Image Sources” block to your post or page
Configure the block settings in the sidebar
Choose scope, list style, and other options
The block will automatically display the appropriate image sources
Support
For support, feature requests, or bug reports, please visit the plugin support forum.
Privacy Policy
This plugin does not collect, store, or transmit any personal data. All image metadata is stored locally on your WordPress installation and is not shared with external services.
Credits
Developed with ❤️ for the WordPress community. Special thanks to all contributors and testers who helped make this plugin possible.
