feat: added info

This commit is contained in:
MrRaph_
2025-05-23 11:43:19 +00:00
parent 356ea8df9c
commit e1699f8d02
2 changed files with 70 additions and 9 deletions

View File

@@ -1,15 +1,20 @@
<?php <?php
/** /**
* Plugin Name: Elementor Category Grid Widget * Plugin Name: Elementor Category Grid Widget
* Description: Custom Elementor widget to display a grid of post categories with images. * Plugin URI: https://git.mrraph.fr/WordPress/elementor-category-grid-widget
* Version: 1.2.0 * Description: Grille responsive de catégories darticles avec image pour Elementor.
* Author: MrRaph_ * Version: 1.2.1
* Author: MrRaph_
* Author URI: https://mrraph.photo
* Requires at least: 5.8
* Requires PHP: 7.0
* Text Domain: category-grid-widget * Text Domain: category-grid-widget
* Requires Plugins: elementor * Requires Plugins: elementor
* Elementor tested up to: 3.25.0 * License: GPLv2 or later
* Elementor Pro tested up to: 3.25.0 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/ */
if ( ! defined( 'ABSPATH' ) ) { if ( ! defined( 'ABSPATH' ) ) {
exit; // Sécurité : empêche l'accès direct. exit; // Sécurité : empêche l'accès direct.
} }
@@ -36,7 +41,7 @@ function ccgw_enqueue_media_uploader( $hook_suffix ) {
'ccgw-category-image', 'ccgw-category-image',
plugin_dir_url( __FILE__ ) . 'admin/js/category-image.js', plugin_dir_url( __FILE__ ) . 'admin/js/category-image.js',
[ 'jquery' ], [ 'jquery' ],
'1.2.0', '1.2.1',
true true
); );
@@ -172,7 +177,7 @@ function ccgw_enqueue_front_styles() {
'ccgw-category-grid-style', 'ccgw-category-grid-style',
plugin_dir_url( __FILE__ ) . 'css/style.css', plugin_dir_url( __FILE__ ) . 'css/style.css',
[], [],
'1.2.0' '1.2.1'
); );
} }
} }

56
readme.txt Normal file
View File

@@ -0,0 +1,56 @@
=== Elementor Category Grid Widget ===
Contributors: mrraph
Donate link: https://your-site.example/donate
Tags: elementor, category, grid, widget, posts
Requires at least: 5.8
Tested up to: 6.8.1
Requires PHP: 7.0
Stable tag: 1.2.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Responsive grid of post categories with images for Elementor.
Allows manual selection of categories to display, inclusion of subcategories, hiding categories without images, and control over number of columns, image sizes, style settings, and hover effects.
== Description ==
**Elementor Category Grid Widget** adds a simple yet powerful widget to Elementor for displaying your post categories in a grid:
- Manual selection of categories to display
- Option to show subcategories
- Option to hide categories without an image
- Configurable number of columns (16)
- Choice of image size (thumbnail, medium, large, full)
- **Style** tab: spacing, card background & border, typography, shadow
- **Hover** tab: customizable overlay (color & opacity), title color on hover
- Each card is clickable and links to the category archive page
The widget uses WordPresss native category image feature (a “Category Image” field added in the admin).
== Installation ==
1. Upload the `elementor-category-grid-widget` folder to `/wp-content/plugins/`.
2. Activate **Elementor Category Grid Widget** in the **Plugins** menu.
3. In Elementor, add the **Category Grid** widget to your layout.
4. Configure: select categories, columns, style, and hover effects.
== Screenshots ==
1. Elementor editor: widget settings panel
2. 4-column grid with hover overlay
3. Mobile: responsive single column
4. Advanced options in the Style tab
== Frequently Asked Questions ==
= How do I assign an image to a category? =
When creating or editing a category, a “Category Image” field appears in the admin. Click “Select Image” to set it.
= Can I hide categories without an image? =
Yes, enable the **“Hide categories without image”** option in the widgets Content tab.
= How do I customize the hover effect? =
Open the **Style » Hover** tab: choose the overlay color & opacity, and the title color on hover.
== Changelog ==
= 1.2.1 =
* Initial release
* Manual category and subcategory selection
* Configurable number of columns and image size
* Option to hide categories without image
* Added Style and Hover tabs for advanced customization