</p> <p class="registration-error"> <?php foreach ((array) $bum_errors->errors as $error => $message) { ?> <?php echo $message[0] . '<br/>'; ?> <?php } ?> </p> <?php if ($view = bum_get_show_view('bum-page-registration-' . $_REQUEST['user_type'])) { echo $view; } else { bum_show_view("bum-page-registration-form"); } ?> <?php } elseif (!empty($_POST)) { ?> <H2 class="registration-title"><?php echo __('Registration Complete', 'bum'); ?> </H2> <p><?php
/** * Display the Widget View * * @example extract the args within the view template extract($args[1]); * @param $args * @param $instance */ function widget($args, $instance) { //initializing variables $widget = $this->widget; $widget['number'] = $this->number; $args = array('sidebar' => $args, 'widget' => $widget, 'params' => $instance); $show_view = apply_filters('bum_widget_view', $this->widget['show_view'], $widget, $instance, $args); echo bum_get_show_view($show_view, $args); }
/** * Function is responsible for adjusting the page template * * @param unknown_type $page * @param unknown_type $config */ function bum_page_registration($page, $config) { if ($page == 'registration') { $page = 'bum-page-registration'; if (isset($_GET['user_type'])) { if ($view = bum_get_show_view($page . '-' . $_GET['user_type'])) { echo $view; } else { $page .= '-form'; } } } return $page; }