alexblicharz / staff-list Goto Github PK
View Code? Open in Web Editor NEWWordpress plugin to list the staff / members of a business or organization on a website.
Wordpress plugin to list the staff / members of a business or organization on a website.
We should really create an icon for the staff list custom post type. Keep in mind that on small screens the WordPress Navigation is icon only so it is identical to the posts icon.
Here's what the menu looks like shrunk down:
As you can see there are actually three pin icons! One belongs to the default posts, one belongs to this plugin, and one belongs to a custom post type specific to MCL.
After discussing w/ Alex the cf
class I found out it was a clearfix. We may as well keep that in there but just make it more obvious to users what the class if for. We will also obviously need to include it in the plugin and not the theme.
There is a ton of theme specific styling in the stylesheet. We should remove the specific things like height: x;
, float: left;
, etc and leave that up to the theme.
I suppose it most likely wont hurt to keep a couple of base styles like list-style: none;
that 99% of themes will use anyway.
We should add an optional Description field using the rich text editor. This will work great for team pages where they write a paragraph or two about the employee.
From the Writing a Plugin page in the WordPress Codex:
The next step is to create a PHP file with a name derived from your chosen Plugin name. For instance, if your Plugin will be called "Fabulous Functionality", you might call your PHP file fabulous-functionality.php. Again, try to choose a unique name. People who install your Plugin will be putting this PHP file into the WordPress Plugins directory in their installation (usually wp-content/plugins/), so no two Plugins they are using can have the same PHP file name.
Another option is to split your Plugin into multiple files. Your WordPress Plugin must have at least one PHP file; it could also contain JavaScript files, CSS files, image files, language files, etc. If there are multiple files, pick a unique name for a directory and a name of your choice (usually the same) for the main PHP file of your Plugin, such as fabulous-functionality and fabulous-functionality.php
To help other developers and users it is a good idea to rename the main plugin file to something more semantic like staff-list.php
.
Instead of having a mix of spaces and tabs it is usually a good idea to just choose one and stick with it. WordPress recommends tabs so that's what we should do.
You can see the mix of spaces and tabs in this screenshot from Sublime Text 2:
Add a button to the editor toolbar to insert a staff list block. This block would also have 2 drop downs. One to choose the department and the other to choose the way to list it.
Inline styles work but it is probably a better idea to include style sheets that can be cached.
Add the ability to add or remove fields that the user may or may not have a use for. For example add in a on/off switch for the user phone number.
Right now the staff list always appears at the top of the page even though the shortcode may be in the center of the page. This should be corrected so that the shortcode prints out where it is placed in the content.
We should add a templating system so that we can easily modify the template layout on any given theme.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.