public function get_button_args($item_id, $action) { $args = parent::get_button_args($item_id, $action); $args['content'] = __('Delete', APP_TD); $args['class'] = "delete-listing button alert"; return $args; }
public function get_button_args($item_id, $action) { $args = parent::get_button_args($item_id, $action); if ('add' === $action) { $args['content'] = __('Favorite', APP_TD); $args['class'] = "fave-button fave-link button"; } elseif ('delete' === $action) { $args['content'] = __('Delete Favorite', APP_TD); $args['class'] = "fave-button unfave-link button"; } return $args; }
/** * Retrieves registered Ajax View instance by given ajax action name * * @param string $ajax_action Registered ajax action name * * @return APP_Ajax_View Ajax View instance */ function appthemes_get_ajax_view($ajax_action = false) { return APP_Ajax_View::get_ajax_view($ajax_action); }