AyeCode / userswp

Lightweight WordPress User Profile Plugin, provides a front end login form, registration form, edit account form, forgot password, searchable users directory, and user profiles. It can be extended and we provide add-ons to integrate it with WooCommerce, Easy Digital Downloads, Wp Jobs Manager, GeoDirectory, MailChimp, and many other plugins.
https://userswp.io/
GNU General Public License v2.0
63 stars 26 forks source link

Improve UWP Authorbox widget #734

Open Stiofan opened 4 months ago

Stiofan commented 4 months ago

https://github.com/AyeCode/userswp/blob/master/widgets/authorbox.php

All UWP widgets need to be modernised. We use our super duper class that builds out a block, shortcode and a widget all from the one code base. (the point of this is to get you used to this)

We have AUI (AyeCode UI) which has many helper classes for this. Please take a look at all the blockstrap blocks for examples: https://github.com/AyeCode/blockstrap-page-builder-blocks/tree/main/blocks

Please add all things such as the paddings/margins, display options etc: https://github.com/AyeCode/blockstrap-page-builder-blocks/blob/main/blocks/class-blockstrap-widget-counter.php

This is how you can build custom wrapper classes https://github.com/AyeCode/blockstrap-page-builder-blocks/blob/main/blocks/class-blockstrap-widget-counter.php#L389

This is for the main wrapper class https://github.com/AyeCode/blockstrap-page-builder-blocks/blob/main/blocks/class-blockstrap-widget-counter.php#L417

This is for the main inline styles: https://github.com/AyeCode/blockstrap-page-builder-blocks/blob/main/blocks/class-blockstrap-widget-counter.php#L419

We use helper classes for this as the user can have bootstrap 4 or 5 selected so the helper classes will always output the right classes.

Once you have done the basics for the wrappers, i will then get you to add a few new features to the block also such as being able to position the image and select the size and shape, texts outputs and colours and sizes so that a custom card can be built.

Ping me if any questions.