Basically, I wanted to list various projects I've worked on, so I built this very simple projects list plug-in for wordpress. You can see it in action on my project page here.
Installation:
- Download it: wp_projects.zip (4.5kb)
- Unzip it...
- Copy into your Plugins Directory...
- Go to the admin screen, and activate it.
- Style up your CSS
CSS Styling
I use this to style my projects. Feel free to use it, but if you've tweaked the template, you'll need to fix this up.
-
.project{
-
width: 80%;
-
margin: 4em;
-
border: 1px solid #2E5C84;
-
border-left: 4px solid #2E5C84;
-
}
-
-
.project:hover{
-
border-left: 4px solid #FC0;
-
}
-
-
.project p{
-
background: #FFF;
-
margin: 0;
-
border-bottom: 1px solid #EFEFEF;
-
border-right: 1px solid #EFEFEF;
-
}
-
-
.project a{
-
text-decoration: none;
-
border: none;
-
display: block;
-
color: #2E5C84;
-
background: none;
-
padding: 1em;
-
}
-
-
.project a:hover{ }
-
-
.project h2{
-
font-weight: bold;
-
text-align: center;
-
font-size: 2em;
-
background: #EFEFEF;
-
margin:0;
-
}
Usage:
Go to Manage->Projects, and add a project.
Note that all projects are stored in a table in your wordpress database called $table_prefix."projects". The admin page just wraps this nicely and handles insertion and deletion and editing of the projects.
Usage in a page:
Fairly simple - just add this to any page/post:
-
<!--wp_projects_list-->
Modifying the template:
Open up wp-projects.php, and find the $template value. Modify it to what you want. Note that it uses php's s/printf standard positional arguments formatting. It currently looks like this:
History:
- July 26 2006 - Initial Release
Licence:
LICENSE: This source file is subject to the MIT license that is available through the world-wide-web at the following URI: http://www.opensource.org/licenses/mit-license.html.
Copyright (c) 2006 Simon Greenhill, dev@simon.net.nz
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Probably none of my business but you do know that will not work in IE 6
Ahh, crappy browsers :). Thanks BlackNine, I'll look into it!