Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Shortcode for Guestbook */
- function my_guestbook( $args ) {
- $defaults = array(
- 'entriesPerPg' => 10, //Number of entries to show per page
- 'reverseOrder' => false, //Show newest entries first
- 'allowUploads' => true, //Allow users to upload images
- 'maxImgSizKb' => 50, //Max uploadable image size
- 'showBrowsers' => true, //Show visitor browser/OS icons
- 'showFlags' => true //Show visitor flags (Requires Ozh IP2Nation)
- );
- $r = wp_parse_args( $args, $defaults );
- extract( $r, EXTR_SKIP );
- if ( function_exists('vgb_GetGuestbook') ) {
- return vgb_GetGuestbook( $r );
- } else {
- return 'The Guestbook is currently deactivated.';
- }
- }
- add_shortcode('guestbook', 'my_guestbook');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement