slash25 code

  • Home
  • Work
  • Code
  • Github
  • WordPress Austin
  • Blog
You are here: Home / Archives for plugin
January 6, 2012 By Pat · 6 Comments · (Updated: August 17, 2016)

Genesis Accordion plugin

January 6, 2012 by Pat

Update: I’m working on a new release of this plugin that lets you choose either a horizontal accordion or a vertical one. I’ll release it on the WordPress plugins repository once I’ve got it finished.

If you would like to test a beta of the new version, you can download it here. I’d appreciate any feedback you have. The admin is still rough & needs some more attention. The basics are working, though. 

Interested in testing a Genesis plugin for WordPress? I had a client who wanted an accordion plugin (think Slide Deck) on their site. More than just sliding images around, it would have to draw from content: Posts, Pages, etc. A quick search of the Web led me to jQuery Easy Accordion. We’re in business.

I use Genesis for the WordPress themes I build. The good folks at StudioPress built a great slider plugin so it was a no-brainer to use that as my starting point. Rip out the javascript & replace that with jQuery Easy Accordion. Rename things so as not to conflict with Genesis Slider (should someone use both on their site). Build in new configuration options. Create the .pot file for translations. It’s a plugin!

You can download Genesis Accordion here.

Genesis Accordion requires you to be using the Genesis framework. Without that, this plugin won’t work.

You can set whether or not the accordion auto-starts. You can select which post type you want it to draw from, what category, etc. Each slide in the accordion has the slide title running vertically up the edge of the slide. By default, this is also the title of the Post / Page. Since these titles can run longer than the space on the edge of the slide allows, you can opt to either truncate the titles to a specific number of characters or you can create a custom field called Accordion Title & use that.

Download it & give it a shot. Leave a comment & let me know how it works, problems, conflicts, etc. It’s a relatively quick & dirt release, mostly a proof-of-concept. I make no guarantees with it, though I did test in on WP 3.3.1 with various other plugins enabled.

Tagged With: accordion, Genesis, plugin, slider

November 10, 2011 By Pat · 1 Comment · (Updated: August 17, 2016)

Fun with Google Webfonts API, Genesis and WordPress

November 10, 2011 by Pat

Google Webfonts, Genesis, and WordPress

Tagged With: Genesis, no-code, plugin, webfonts

October 28, 2011 By Pat · 5 Comments · (Updated: August 17, 2016)

Fluid Images Plugin

October 28, 2011 by Pat

WP Fluid Images runs when you insert an image into a Post or Page. It removes the fixed width and height attributes from the image tag. If you insert an image from the image uploader, by default, a width and height attribute is inserted into the image tag with fixed pixel values. This plugin prevents this from happening, because this can be problematic if your theme is built using responsive design methods. The plugin also adds a style tag in the header that sets a max-width rule of 100%. This insures that any image in a Post or Page won’t extend past the width of the Post or Page.

If you resize an image in the Visual Editor, a new width and height attribute get added to the image. WP Fluid Images loads a jQuery script that examines the .post, or .page divs for image tags. It calculate the image’s width as a percentage of the .post or .page div, removes the width and height attributes, and adds a style attribute with a width value set to the calculated percentage.

What is the concept of “Fluid Images”?

The idea behind fluid images is that instead of having images that size proportionally and smoothly as your web page’s width increases or decreases. Ethan Marcotte wrote an article on the idea at A List Apart:
You can also learn more at his site: Unstoppable Robot Ninjas. Fluid Images is an important consideration in responsive web design. Which segues to:

What is Responsive Web Design?

Responsive Web Design is the idea of having your site’s design be flexible enough to resize based on the width of the browser window. This allows you to create a single, adjustable design that works regardless of the size of the device. It’s a nice alternative to building separate designs for desktop browsing, tablets, mobile browsers, etc.

You can download WP Fluid Images here.

Tagged With: images, plugin, responsive

October 19, 2011 By Pat · Leave a Comment · (Updated: August 17, 2016)

Foomark WordPress Widget

October 19, 2011 by Pat

Foomark

Foomark is a bookmarking site, in the vein of Delicious & Magnolia. Up to now, there wasn’t a way to integrate your foomarks with your blog or website – somthing I wanted to do. Now there is.

This plugin lets you share your foomarks in a widget. It takes the JSON feed from Foomark & outputs the title of each foomark, linked to that bookmarked site. At the bottom of the widget is a link to your Foomark page.

You can download the plugin here.

Notes

  • The plugin reads Foomark’s JSON feed from api.foomark.com.
  • There is a 3-second timeout on the connection. If api.foomark.com isn’t able to respond, an error message appears, rather than holding up the rendering of your site.
  • The plugin is internationalized with Spanish (Mexican) and German translation files.

If you have any questions, please use the official support forums.

Tagged With: bookmarks, foomark, plugin, widget

copyright © 2020 slash25 code | privacy policy | pat on twitter

 

Loading Comments...