Skip to content

Commit

Permalink
Shortcodes stub (issue #21)
Browse files Browse the repository at this point in the history
  • Loading branch information
c3c committed Jul 19, 2013
1 parent 9dfa1bc commit c4878e4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions plugin/apps.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ function __construct() {
$this->setup_relationships();
$this->setup_template();
$this->setup_hooks();
$this->setup_shortcodes();

require_once WPAPPS_PATH . '/posttypes.php';
require_once WPAPPS_PATH . '/metaboxes.php';
Expand Down Expand Up @@ -317,6 +318,14 @@ public function wpapps_error($err) {
trigger_error($err, E_USER_ERROR);
restore_error_handler();
}

/**
* Stub to show evenlist using shortcode (for widgets)
*/
private function setup_shortcodes()
{
add_shortcode('eventlist', function() { echo "returns nothing yet."; });
}
}

new WPApps; // 300 lines!

0 comments on commit c4878e4

Please sign in to comment.