name = _x( 'Login', 'Login Shortcode', 'appointments' ); } public function get_defaults() { return array( 'login_text' => array( 'type' => 'text', 'name' => __( 'Login text', 'appointments' ), 'value' => __('Please click here to login:', 'appointments'), 'help' => __('Text above the login buttons, proceeded by a login link. Default: "Please click here to login:"', 'appointments'), ), 'redirect_text' => array( 'type' => 'text', 'name' => __( 'Redirect text', 'appointments' ), 'value' => __('Login required to make an appointment. Now you will be redirected to login page.', 'appointments'), 'help' => __('Javascript text if front end login is not set and user is redirected to login page', 'appointments'), ), ); } public function get_usage_info () { return __('Inserts front end login buttons for Facebook, Twitter and WordPress.', 'appointments'); } public function process_shortcode ($args=array(), $content='') { extract(wp_parse_args($args, $this->_defaults_to_args())); global $appointments; $ret = ''; $ret .= '