Per Søderlind

I code for fun

Metro Share Social Fonts

Metro Share Social Fonts is a lightweight add-on plugin to the Metro Share plugin. It will replace the default Metro Share social icons with icomoon social fonts   Lightweight CSS 2849 Bytes Fonts 9405 Bytes (icomoon.min.eot 1927B, icomoon.min.svg 2606B, icomoon.min.ttf 1880B and icomoon.woff 2992B) Prerequisite The Metro Share plugin. Download The...

AceCustomFieldType

An Ace Custom Field Type for the Admin Page Framework.   Adding AceCustomFieldType class My_Settings extends AdminPageFramework { public function start_My_Settings() { if (! class_exists('AceCustomFieldType')) include_once(dirname( __FILE__ ) . '/AceCustomFieldType/AceCustomFieldType.php'); $sClassName = get_class( $this ); new AceCustomFieldType( $sClassName ); } public function setUp() { /* add section etc */ $this->addSettingFields(...

TablePress Extension: Chartist

[gallery link="file" ids="4467,4468,4469,4470,4471,4472,4484,4494,4495"]   Using Chartist.js, this TablePress extension creates a responsive chart based on the data in a TablePress table. Usage Add the Shortcode [table-chart id=123 /] to a post or page to create a chart from the TablePress table 123. Optional parameters Show/hide chart line: showline=true (default: true)...

MEXP 23, a 23 Video extention for WordPress Media Explorer

This plugin is an extension for WordPress Media Explorer plugin that adds the 23 Video service. The extension allows user to search vidoes from 23 Video by text and tag. Development of this plugin is done on GitHub. Pull requests welcome. The plugin is also available from the WordPress plugin directory. Requirements and...

WP Live Preview Links

[gallery link="file" ids="4347,4523"] WP Live Preview Links allows you to see a live scaled preview of the site you are linking to in a pop-up dialog style window prior to clicking on it. WP Live Preview Links does not use an external service to create these "thumbnails". In the admin...

WordPress Twitter Widget Pro with mentions

Added support for GET statuses/mentions_timeline. The user can select, in the widget and shortcode, if he wants to display mentions or not (default = false). Mentions are merged into GET statuses/user_timeline and the merged timeline is sorted on created_at Here's some of changes [diff] - $response = $this->_wp_twitter_oauth->send_authed_request( 'statuses/user_timeline', 'GET', $parameters ); -...

WordPress - Hook into another hook

This is a hack, so if you know a better way of doing this please tell me. I wanted to add a filter to get_permalink, but only when get_permalink was called from a function in another plugin. Here's the function I wanted to hook into, it's part of the Digg...

WordPress Debug Bar, List Script & Style Dependencies

We all know that when we're add a script or style to WordPress, we should use wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer ) and wp_enqueue_style( $handle, $src, $deps, $ver, $media ) as in: <br /> function themeslug_enqueue_style() {<br /> wp_enqueue_style( 'core', 'style.css', array('twentytwelve-style') );<br /> }</p> <p>function themeslug_enqueue_script() {<br />...

Debug WordPress with Sublime Text 2 and XDebug

XDebug installation Run the Xdebug wizard and follow the instructions.I develop on Mac OS X Mountain Lion, and phpize complained that autoconf is missing. Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable is set correctly and then rerun this script. Luckily Sebastien has the recipe on how to...

Relocating my WordPress plugins to GitHub

I'm, slowly .. literally, git svn is sooo slow , copying my plugins to GitHub. I'm using my svn2git.sh bash script to do the job. I'll use the GitHub repositories during development, and publish my plugins in the WordPress Plugin Directory