Display your last Foursquare checkin as a map widget in the sidebar or embedded in a post or page, fully authenticated via OAuth 2.0.
WP Quadratum supports a single shortcode, [wp_quadratum]. Adding this shortcode to the content of a post or page or into a theme template as content, expands the shortcode and replaces it with a checkin map.
The shortcode also supports multiple attributes which allow you to customise the way in which the shortcode is expanded into the checkin map:
width attributeheight attributezoom attributeThe width attribute, in conjunction with the height attribute specifies the width, in pixels, of the map to be inserted into a post or page. If omitted, the map width defaults to a value of 300px.
The height attribute, in conjunction with the width attribute specifies the height, in pixels, of the map to be inserted into a post or page. If omitted, the map height defaults to a value of 300px.
The zoom attribute specifies the zoom level to be used when displaying the checkin map. If omitted, the zoom level defaults to a value of 16 which is roughly analogous to a neighbourhood zoom.
WP Quadratum supports a single filter, which is described below.
Applied to the strapline that is displayed via the plugin's widget or shortcode. The strapline is the text that appears immediately below the checkin map.
Example: Change the date and time formatting in the strapline
add_filter ('wp_quadratum_strapline', 'format_strapline', 10, 2);
function format_strapline ($content, $params) {
// $params = array (
// 'venue-url' => '4Sq venue url for checkin',
// 'venue-name' => 'checkin venue name',
// 'checked-in-at' => 'timestamp of checkin'
// );
$strapline = '<h5>Last seen at <a href="' . $params['venue-url'] . '" target="_blank">' . $params['venue-name'] . '</a> on ' . date ('l jS \of F Y h:i:s A', $params['checked-in-at']) . '</h5>';
return $strapline;
}
Requires: 3.4 or higher
Compatible up to: 3.4.2
Last Updated: 2012-11-6
Downloads: 622
Got something to say? Need help?