Changeset 3371380
- Timestamp:
- 10/01/2025 06:59:06 PM (5 months ago)
- Location:
- atomic-events-calendar
- Files:
-
- 2 edited
-
tags/1.0.3/README.md (modified) (13 diffs)
-
trunk/README.md (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
atomic-events-calendar/tags/1.0.3/README.md
r3371369 r3371380 2 2 Contributors: lehelm 3 3 Donate link: https://matyus.me/ 4 Tags: events, event, atomic events4 Tags: events, event, calendar 5 5 Requires at least: 5.8 6 6 Tested up to: 6.8 … … 18 18 Instead of starting from scratch on every project, Atomic Events Calendar gives you: 19 19 20 -A ready-to-use **Events post type**21 -Essential event fields (date, venue, type, etc.)22 -Developer-friendly **shortcodes** to display and filter events23 -A robust **theming structure** for easy overrides and custom designs20 – A ready-to-use **Events post type** 21 – Essential event fields (date, venue, type, etc.) 22 – Developer-friendly **shortcodes** to display and filter events 23 – A robust **theming structure** for easy overrides and custom designs 24 24 25 25 ✨ Think of it as a lightweight **framework disguised as a plugin**: everything you need to set up events quickly, with the freedom to extend and customize as you like. … … 29 29 == Features == 30 30 31 * **Developer-Friendly** -Clean code structure with services architecture32 * **Responsive Design** -Built with Tailwind CSS for modern, responsive layouts33 * **Structured Data for Search Engines** -Automatic JSON-LD schema markup for better SEO and rich snippets34 * **Custom Post Type** -Dedicated 'atomic-event' post type with all necessary fields35 * **Template Override System** -Easy theme integration with template hierarchy36 * **Shortcode Support** -Display events anywhere with `[atomic-events]` shortcode37 * **Featured Events** -Mark and display featured events prominently38 * **Location Management** -Complete address fields (street, city, state, country, postcode)39 * **Date & Time Support** -Start/end dates with time support40 * **Image Support** -Featured images with captions41 * **Member-Only Events** -Restrict events to members only42 * **Performance Caching** -Automatic shortcode caching with smart invalidation31 * **Developer-Friendly** – Clean code structure with services architecture 32 * **Responsive Design** – Built with Tailwind CSS for modern, responsive layouts 33 * **Structured Data for Search Engines** – Automatic JSON-LD schema markup for better SEO and rich snippets 34 * **Custom Post Type** – Dedicated 'atomic-event' post type with all necessary fields 35 * **Template Override System** – Easy theme integration with template hierarchy 36 * **Shortcode Support** – Display events anywhere with `[atomic-events]` shortcode 37 * **Featured Events** – Mark and display featured events prominently 38 * **Location Management** – Complete address fields (street, city, state, country, postcode) 39 * **Date & Time Support** – Start/end dates with time support 40 * **Image Support** – Featured images with captions 41 * **Member-Only Events** – Restrict events to members only 42 * **Performance Caching** – Automatic shortcode caching with smart invalidation 43 43 44 44 Basic usage is through shortcode: 45 45 46 `` 47 [atomic-events filter max='10' columns='3' featured='0' skip_first_x='0' skip skip_first_x_featured='1' order='ASC'] 48 `` 46 <code> 47 [atomic-events filter max='10' columns='3' featured='0' 48 skip_first_x='0' skip skip_first_x_featured='1' order='ASC'] 49 </code> 49 50 50 51 == Installation == … … 70 71 71 72 If you experience 404 errors when viewing event pages: 72 1. Go to WordPress Admin → Events →Settings73 1. Go to WordPress Admin <span aria-hidden="true" class="wp-exclude-emoji">→</span> Events <span aria-hidden="true" class="wp-exclude-emoji">→</span> Settings 73 74 2. Click "Flush Rewrite Rules" 74 3. If that doesn't work, go to Settings →Permalinks and click "Save Changes"75 3. If that doesn't work, go to Settings <span aria-hidden="true" class="wp-exclude-emoji">→</span> Permalinks and click "Save Changes" 75 76 76 77 … … 79 80 The plugin provides a comprehensive template override system. You can override any template by creating files in your theme: 80 81 81 <pre> 82 your-theme/ 83 └── atomic-events/ 84 │ ├── cards/ 85 │ │ ├── card-item-default.php 86 │ │ ├── card-item-featured.php 87 │ │ ├── card-list-header-default.php 88 │ │ └── card-list-footer-default.php 89 │ ├── single/ 90 │ │ └── single-atomic-event.php 91 │ ├── content/ 92 │ │ └── single-event.php 93 │ │ 94 │ 95 <pre> 82 your-theme/ 83 └── atomic-events/ 84 │ ├── cards/ 85 │ │ ├── card-item-default.php 86 │ │ ├── card-item-featured.php 87 │ │ ├── card-list-header-default.php 88 │ │ └── card-list-footer-default.php 89 │ ├── single/ 90 │ │ └── single-atomic-event.php 91 │ ├── content/ 92 │ │ └── single-event.php 93 │ │ 94 │ 96 95 97 96 === Template Hierarchy === … … 107 106 The plugin uses a custom template loader that checks for theme templates first, then falls back to the plugin's default template. This ensures: 108 107 109 -**Theme compatibility**: Works with any WordPress theme110 -**Customization flexibility**: Easy to override in themes111 -**Update safety**: Plugin updates won't break custom templates112 -**Developer-friendly**: Clear hierarchy and fallback system108 – **Theme compatibility**: Works with any WordPress theme 109 – **Customization flexibility**: Easy to override in themes 110 – **Update safety**: Plugin updates won't break custom templates 111 – **Developer-friendly**: Clear hierarchy and fallback system 113 112 114 113 **Template Hierarchy Priority:** … … 119 118 120 119 **Available Templates:** 121 -**Shortcode Templates**: Override how events appear in lists and grids122 -**Single Event Templates**: Customize individual event page layouts123 -**Content Templates**: Modify event content display120 – **Shortcode Templates**: Override how events appear in lists and grids 121 – **Single Event Templates**: Customize individual event page layouts 122 – **Content Templates**: Modify event content display 124 123 125 124 The default template includes: 126 -WordPress header/footer integration127 -Event model for accessing custom fields128 -Template loader for modular content parts129 -Proper WordPress loop structure125 – WordPress header/footer integration 126 – Event model for accessing custom fields 127 – Template loader for modular content parts 128 – Proper WordPress loop structure 130 129 131 130 === Custom Fields Available === … … 133 132 When creating custom templates, you have access to these event fields: 134 133 135 ```php 134 <pre> 135 <code> 136 136 $event_model = new AtomicEventModel(get_the_ID()); 137 137 … … 156 156 $event_model->get_event_image_id(); 157 157 $event_model->get_permalink(); 158 ``` 158 </code> 159 </pre> 159 160 160 161 === Creating Custom Templates === … … 169 170 The plugin provides several hooks for customization: 170 171 171 `` 172 <pre> 172 173 // Filter the template path 173 174 add_filter('atomic_events_template_path', 'my_custom_template_path', 10, 2); … … 178 179 // Filter whether to show event in lists 179 180 add_filter('atomic_events_should_show_in_list', 'my_custom_visibility_logic', 10, 2); 180 `` 181 </pre> 181 182 182 183 === Shortcode Parameters === … … 184 185 The `[atomic-events]` shortcode supports these parameters: 185 186 186 -`filter`: "future" or "past" (default: "future")187 -`max`: Maximum number of events (default: 20)188 -`columns`: Number of columns (default: 3)189 -`featured`: Show only featured events (true/false)190 -`skip_first_x`: Skip first X events191 -`skip_first_x_featured`: Skip first X featured events192 -`order`: "ASC" or "DESC" (default: "ASC")187 – `filter`: "future" or "past" (default: "future") 188 – `max`: Maximum number of events (default: 20) 189 – `columns`: Number of columns (default: 3) 190 – `featured`: Show only featured events (true/false) 191 – `skip_first_x`: Skip first X events 192 – `skip_first_x_featured`: Skip first X featured events 193 – `order`: "ASC" or "DESC" (default: "ASC") 193 194 194 195 === Best Practices === … … 208 209 Simply place a shortcode in your page content area like so: 209 210 210 `` 211 [atomic-events filter="future" max="10" columns="3" featured="0" skip_first_x="0" skip_first_x_featured="1" order="ASC"]212 `` 211 212 [atomic-events filter="future" max="10" columns="3" featured="0" skip_first_x="0" skip_first_x_featured="1" order="ASC"] 213 213 214 214 215 == Screenshots == -
atomic-events-calendar/trunk/README.md
r3371369 r3371380 2 2 Contributors: lehelm 3 3 Donate link: https://matyus.me/ 4 Tags: events, event, atomic events4 Tags: events, event, calendar 5 5 Requires at least: 5.8 6 6 Tested up to: 6.8 … … 18 18 Instead of starting from scratch on every project, Atomic Events Calendar gives you: 19 19 20 -A ready-to-use **Events post type**21 -Essential event fields (date, venue, type, etc.)22 -Developer-friendly **shortcodes** to display and filter events23 -A robust **theming structure** for easy overrides and custom designs20 – A ready-to-use **Events post type** 21 – Essential event fields (date, venue, type, etc.) 22 – Developer-friendly **shortcodes** to display and filter events 23 – A robust **theming structure** for easy overrides and custom designs 24 24 25 25 ✨ Think of it as a lightweight **framework disguised as a plugin**: everything you need to set up events quickly, with the freedom to extend and customize as you like. … … 29 29 == Features == 30 30 31 * **Developer-Friendly** -Clean code structure with services architecture32 * **Responsive Design** -Built with Tailwind CSS for modern, responsive layouts33 * **Structured Data for Search Engines** -Automatic JSON-LD schema markup for better SEO and rich snippets34 * **Custom Post Type** -Dedicated 'atomic-event' post type with all necessary fields35 * **Template Override System** -Easy theme integration with template hierarchy36 * **Shortcode Support** -Display events anywhere with `[atomic-events]` shortcode37 * **Featured Events** -Mark and display featured events prominently38 * **Location Management** -Complete address fields (street, city, state, country, postcode)39 * **Date & Time Support** -Start/end dates with time support40 * **Image Support** -Featured images with captions41 * **Member-Only Events** -Restrict events to members only42 * **Performance Caching** -Automatic shortcode caching with smart invalidation31 * **Developer-Friendly** – Clean code structure with services architecture 32 * **Responsive Design** – Built with Tailwind CSS for modern, responsive layouts 33 * **Structured Data for Search Engines** – Automatic JSON-LD schema markup for better SEO and rich snippets 34 * **Custom Post Type** – Dedicated 'atomic-event' post type with all necessary fields 35 * **Template Override System** – Easy theme integration with template hierarchy 36 * **Shortcode Support** – Display events anywhere with `[atomic-events]` shortcode 37 * **Featured Events** – Mark and display featured events prominently 38 * **Location Management** – Complete address fields (street, city, state, country, postcode) 39 * **Date & Time Support** – Start/end dates with time support 40 * **Image Support** – Featured images with captions 41 * **Member-Only Events** – Restrict events to members only 42 * **Performance Caching** – Automatic shortcode caching with smart invalidation 43 43 44 44 Basic usage is through shortcode: 45 45 46 `` 47 [atomic-events filter max='10' columns='3' featured='0' skip_first_x='0' skip skip_first_x_featured='1' order='ASC'] 48 `` 46 <code> 47 [atomic-events filter max='10' columns='3' featured='0' 48 skip_first_x='0' skip skip_first_x_featured='1' order='ASC'] 49 </code> 49 50 50 51 == Installation == … … 70 71 71 72 If you experience 404 errors when viewing event pages: 72 1. Go to WordPress Admin → Events →Settings73 1. Go to WordPress Admin <span aria-hidden="true" class="wp-exclude-emoji">→</span> Events <span aria-hidden="true" class="wp-exclude-emoji">→</span> Settings 73 74 2. Click "Flush Rewrite Rules" 74 3. If that doesn't work, go to Settings →Permalinks and click "Save Changes"75 3. If that doesn't work, go to Settings <span aria-hidden="true" class="wp-exclude-emoji">→</span> Permalinks and click "Save Changes" 75 76 76 77 … … 79 80 The plugin provides a comprehensive template override system. You can override any template by creating files in your theme: 80 81 81 <pre> 82 your-theme/ 83 └── atomic-events/ 84 │ ├── cards/ 85 │ │ ├── card-item-default.php 86 │ │ ├── card-item-featured.php 87 │ │ ├── card-list-header-default.php 88 │ │ └── card-list-footer-default.php 89 │ ├── single/ 90 │ │ └── single-atomic-event.php 91 │ ├── content/ 92 │ │ └── single-event.php 93 │ │ 94 │ 95 <pre> 82 your-theme/ 83 └── atomic-events/ 84 │ ├── cards/ 85 │ │ ├── card-item-default.php 86 │ │ ├── card-item-featured.php 87 │ │ ├── card-list-header-default.php 88 │ │ └── card-list-footer-default.php 89 │ ├── single/ 90 │ │ └── single-atomic-event.php 91 │ ├── content/ 92 │ │ └── single-event.php 93 │ │ 94 │ 96 95 97 96 === Template Hierarchy === … … 107 106 The plugin uses a custom template loader that checks for theme templates first, then falls back to the plugin's default template. This ensures: 108 107 109 -**Theme compatibility**: Works with any WordPress theme110 -**Customization flexibility**: Easy to override in themes111 -**Update safety**: Plugin updates won't break custom templates112 -**Developer-friendly**: Clear hierarchy and fallback system108 – **Theme compatibility**: Works with any WordPress theme 109 – **Customization flexibility**: Easy to override in themes 110 – **Update safety**: Plugin updates won't break custom templates 111 – **Developer-friendly**: Clear hierarchy and fallback system 113 112 114 113 **Template Hierarchy Priority:** … … 119 118 120 119 **Available Templates:** 121 -**Shortcode Templates**: Override how events appear in lists and grids122 -**Single Event Templates**: Customize individual event page layouts123 -**Content Templates**: Modify event content display120 – **Shortcode Templates**: Override how events appear in lists and grids 121 – **Single Event Templates**: Customize individual event page layouts 122 – **Content Templates**: Modify event content display 124 123 125 124 The default template includes: 126 -WordPress header/footer integration127 -Event model for accessing custom fields128 -Template loader for modular content parts129 -Proper WordPress loop structure125 – WordPress header/footer integration 126 – Event model for accessing custom fields 127 – Template loader for modular content parts 128 – Proper WordPress loop structure 130 129 131 130 === Custom Fields Available === … … 133 132 When creating custom templates, you have access to these event fields: 134 133 135 ```php 134 <pre> 135 <code> 136 136 $event_model = new AtomicEventModel(get_the_ID()); 137 137 … … 156 156 $event_model->get_event_image_id(); 157 157 $event_model->get_permalink(); 158 ``` 158 </code> 159 </pre> 159 160 160 161 === Creating Custom Templates === … … 169 170 The plugin provides several hooks for customization: 170 171 171 `` 172 <pre> 172 173 // Filter the template path 173 174 add_filter('atomic_events_template_path', 'my_custom_template_path', 10, 2); … … 178 179 // Filter whether to show event in lists 179 180 add_filter('atomic_events_should_show_in_list', 'my_custom_visibility_logic', 10, 2); 180 `` 181 </pre> 181 182 182 183 === Shortcode Parameters === … … 184 185 The `[atomic-events]` shortcode supports these parameters: 185 186 186 -`filter`: "future" or "past" (default: "future")187 -`max`: Maximum number of events (default: 20)188 -`columns`: Number of columns (default: 3)189 -`featured`: Show only featured events (true/false)190 -`skip_first_x`: Skip first X events191 -`skip_first_x_featured`: Skip first X featured events192 -`order`: "ASC" or "DESC" (default: "ASC")187 – `filter`: "future" or "past" (default: "future") 188 – `max`: Maximum number of events (default: 20) 189 – `columns`: Number of columns (default: 3) 190 – `featured`: Show only featured events (true/false) 191 – `skip_first_x`: Skip first X events 192 – `skip_first_x_featured`: Skip first X featured events 193 – `order`: "ASC" or "DESC" (default: "ASC") 193 194 194 195 === Best Practices === … … 208 209 Simply place a shortcode in your page content area like so: 209 210 210 `` 211 [atomic-events filter="future" max="10" columns="3" featured="0" skip_first_x="0" skip_first_x_featured="1" order="ASC"]212 `` 211 212 [atomic-events filter="future" max="10" columns="3" featured="0" skip_first_x="0" skip_first_x_featured="1" order="ASC"] 213 213 214 214 215 == Screenshots ==
Note: See TracChangeset
for help on using the changeset viewer.