├── gulpfile.js ├── .gitmodules ├── admin ├── includes │ ├── CMB2 │ │ ├── css │ │ │ └── index.php │ │ ├── index.php │ │ ├── js │ │ │ └── index.php │ │ ├── images │ │ │ ├── index.php │ │ │ ├── ico-delete.png │ │ │ ├── ui-icons_222222_256x240.png │ │ │ ├── ui-icons_2e83ff_256x240.png │ │ │ ├── ui-icons_454545_256x240.png │ │ │ ├── ui-icons_888888_256x240.png │ │ │ ├── ui-icons_cd0a0a_256x240.png │ │ │ ├── ui-bg_flat_0_aaaaaa_40x100.png │ │ │ ├── ui-bg_flat_75_ffffff_40x100.png │ │ │ ├── ui-bg_glass_55_fbf9ee_1x400.png │ │ │ ├── ui-bg_glass_65_ffffff_1x400.png │ │ │ ├── ui-bg_glass_75_dadada_1x400.png │ │ │ ├── ui-bg_glass_75_e6e6e6_1x400.png │ │ │ ├── ui-bg_glass_95_fef1ec_1x400.png │ │ │ └── ui-bg_highlight-soft_75_cccccc_1x100.png │ │ ├── includes │ │ │ ├── index.php │ │ │ ├── CMB2_Boxes.php │ │ │ ├── CMB2_Show_Filters.php │ │ │ ├── CMB2_JS.php │ │ │ ├── CMB2_Options.php │ │ │ └── CMB2_Utils.php │ │ ├── languages │ │ │ ├── index.php │ │ │ └── cmb2.mo │ │ ├── bootstrap.php │ │ ├── CONTRIBUTING.md │ │ └── init.php │ ├── index.php │ ├── WP-Admin-Notice │ │ └── WP_Admin_Notice.php │ └── class-admin-table-messages.php ├── index.php ├── assets │ ├── index.php │ ├── css │ │ ├── index.php │ │ ├── datePicker-images │ │ │ ├── ui-icons_222222_256x240.png │ │ │ ├── ui-icons_2e83ff_256x240.png │ │ │ ├── ui-icons_454545_256x240.png │ │ │ ├── ui-icons_888888_256x240.png │ │ │ ├── ui-icons_cd0a0a_256x240.png │ │ │ ├── ui-bg_flat_0_aaaaaa_40x100.png │ │ │ ├── ui-bg_flat_75_ffffff_40x100.png │ │ │ ├── ui-bg_glass_55_fbf9ee_1x400.png │ │ │ ├── ui-bg_glass_65_ffffff_1x400.png │ │ │ ├── ui-bg_glass_75_dadada_1x400.png │ │ │ ├── ui-bg_glass_75_e6e6e6_1x400.png │ │ │ ├── ui-bg_glass_95_fef1ec_1x400.png │ │ │ └── ui-bg_highlight-soft_75_cccccc_1x100.png │ │ ├── user-profile.css │ │ ├── profile-cleanup.css │ │ └── admin.css │ ├── js │ │ ├── index.php │ │ ├── admin.js │ │ ├── datePicker.js │ │ ├── cb-helpers.js │ │ └── tableFilter.js │ └── sass │ │ ├── index.php │ │ └── admin.scss ├── views │ ├── index.php │ └── dashboard.php ├── cb-bookings │ ├── index.php │ ├── views │ │ ├── index.php │ │ └── bookings-table.php │ └── class-cb-bookings-setup.php ├── cb-codes │ ├── index.php │ ├── views │ │ ├── index.php │ │ └── codes-table.php │ ├── includes │ │ ├── index.php │ │ └── class-cb-codes-generate.php │ ├── class-cb-codes-setup.php │ └── class-cb-codes.php ├── cb-items │ ├── index.php │ └── includes │ │ ├── index.php │ │ └── cb-items-metaboxes.php ├── cb-settings │ ├── index.php │ └── views │ │ └── index.php ├── cb-users │ └── index.php ├── cb-locations │ ├── index.php │ └── includes │ │ ├── index.php │ │ └── cb-locations-metaboxes.php ├── cb-timeframes │ ├── index.php │ ├── includes │ │ ├── index.php │ │ └── class-cb-timeframes-list.php │ ├── cb-timeframes.php │ └── cb-timeframes-setup.php ├── cb-mail │ └── class-cb-mail.php └── cb-widgets │ ├── cb-category-widget.php │ ├── cb-user-widget.php │ └── cb-items-widget.php ├── index.php ├── public ├── index.php ├── views │ ├── index.php │ └── public.php ├── assets │ ├── css │ │ ├── index.php │ │ ├── public.css │ │ ├── tooltipster │ │ │ └── tooltipster-light.css │ │ └── profile-cleanup-tml.css │ ├── index.php │ ├── js │ │ ├── index.php │ │ └── comment-length.js │ └── sass │ │ ├── index.php │ │ ├── public.scss │ │ ├── themes │ │ ├── standard │ │ │ ├── standard.scss │ │ │ └── partials │ │ │ │ ├── variables.scss │ │ │ │ ├── bookingbar.scss │ │ │ │ ├── mixins.scss │ │ │ │ ├── calendar.scss │ │ │ │ └── base.scss │ │ └── kasimir │ │ │ ├── kasimir.scss │ │ │ └── partials │ │ │ ├── theme-my-login.scss │ │ │ ├── variables.scss │ │ │ ├── bookingbar.scss │ │ │ ├── mixins.scss │ │ │ ├── calendar.scss │ │ │ └── base.scss │ │ └── profile-cleanup-tml.scss ├── includes │ └── index.php └── cb-bookings │ ├── index.php │ ├── views │ └── index.php │ ├── class-cb-public-items.php │ └── class-cb-booking-comments.php ├── includes ├── index.php ├── CPT_Core │ ├── package.json │ ├── Gruntfile.js │ ├── composer.json │ ├── README.md │ └── languages │ │ └── cpt-core.pot ├── Taxonomy_Core │ ├── package.json │ ├── composer.json │ ├── Gruntfile.js │ ├── README.md │ └── languages │ │ └── taxonomy-core.pot ├── Widgets-Helper │ ├── README.md │ └── widget-sample.php ├── template.php ├── array_column.php └── commons-booking-helpers.php ├── help-docs ├── demo-example.html └── pn_settings.html ├── assets ├── cb-logo.png ├── icon-128x128.png ├── icon-256x256.png ├── screenshot-1.png ├── screenshot-2.png ├── screenshot-3.png ├── screenshot-4.png ├── banner-1544x500.png └── banner-772x250.png ├── languages └── commons-booking-de_DE.mo ├── zipdist.sh ├── templates ├── booking-review-code.php ├── booking-review-booking-comment.php ├── booking-review-cancel.php ├── booking-review-submit.php ├── user-bookings.php ├── item-list-timeframes-compact.php ├── user-bar.php ├── item-list-item.php ├── calendar-bookingbar.php ├── timeframes-full.php └── booking-review.php ├── .gitignore └── commons-booking.php /gulpfile.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /admin/includes/CMB2/css/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /admin/includes/CMB2/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /admin/includes/CMB2/js/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /admin/includes/CMB2/images/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /admin/includes/CMB2/includes/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 9 |
10 |' . $this->message . '
' . $this->message . '
' . sprintf(__('Items deleted: %d', 'commons-booking'), count($_REQUEST['id'])) . '
38 | 39 | 40 |
41 | render_categories(); 75 | 76 | echo $args[ 'after_widget' ]; 77 | } 78 | /** 79 | * Get all item categories 80 | * 81 | **/ 82 | function render_categories() { 83 | 84 | $args = array ( 85 | 'taxonomy' => 'cb_items_category', 86 | 'echo' => FALSE, 87 | 'title_li' => '' 88 | ); 89 | 90 | $content = wp_list_categories( $args ); 91 | 92 | return $content; 93 | 94 | } 95 | 96 | } 97 | 98 | // register CB_User_Widget 99 | function register_cb_category_widget() { 100 | register_widget( 'CB_Category_Widget' ); 101 | } 102 | add_action( 'widgets_init', 'register_cb_category_widget' ); 103 | 104 | -------------------------------------------------------------------------------- /admin/cb-codes/class-cb-codes-setup.php: -------------------------------------------------------------------------------- 1 | 6 | * @license GPL-2.0+ 7 | * @link http://www.wielebenwir.de 8 | * @copyright 2015 wielebenwir 9 | */ 10 | 11 | /** 12 | * Handles install & update of the Codes Table 13 | * 14 | * @package Commons_Booking_Codes_Setup 15 | * @author Florian Egermann42 | 43 | 44 |
45 | render_userinfo(); 78 | 79 | echo $args[ 'after_widget' ]; 80 | } 81 | /** 82 | * All the user info. 83 | * 84 | **/ 85 | function render_userinfo() { 86 | 87 | $content = ""; 88 | 89 | if ( is_user_logged_in() ) { 90 | 91 | $current_user = wp_get_current_user(); 92 | 93 | $bookings_page_id = $this->settings->get_settings('pages', 'user_bookings_page_select'); 94 | $bookings_page_url = get_permalink( $bookings_page_id ); 95 | 96 | $content .= sprintf( __( 'Welcome, %s.', 'commons-booking' ), $current_user->display_name); 97 | $content .= 'Hey There!
'; 145 | 146 | echo apply_filters( 'widget_text', $out ); 147 | } 148 | 149 | } 150 | 151 | // Register widget 152 | if ( !function_exists( 'my_register_widget' ) ) { 153 | 154 | function my_register_widget() { 155 | register_widget( 'My_Recent_Posts_Widget' ); 156 | } 157 | 158 | add_action( 'widgets_init', 'my_register_widget', 1 ); 159 | } 160 | -------------------------------------------------------------------------------- /public/cb-bookings/class-cb-booking-comments.php: -------------------------------------------------------------------------------- 1 | 8 | * @license GPL-2.0+ 9 | * @link http://www.wielebenwir.de 10 | 11 | * @copyright 2015 wielebenwir 12 | */ 13 | 14 | class CB_Booking_Comments { 15 | 16 | public $booking_hash; 17 | public $post_id; 18 | public $form_args; 19 | public $comments; 20 | public $url; 21 | public $table_name; 22 | 23 | public function __construct( ) { 24 | 25 | global $wpdb; 26 | $this->table_name = $wpdb->prefix . 'cb_bookings'; 27 | 28 | } 29 | 30 | 31 | public function set_booking_hash( $booking_hash ) { 32 | $this->booking_hash = $booking_hash; 33 | } 34 | 35 | public function set_post_id( $post_id ) { 36 | $this->post_id = $post_id; 37 | } 38 | 39 | public function get_booking_comments( $item_id ) { 40 | 41 | global $wpdb; 42 | $return = array(); 43 | $commentmeta_table = $wpdb->prefix . "commentmeta"; 44 | $comments_table = $wpdb->prefix . "comments"; 45 | 46 | // get booking_code-id from codes database 47 | $sqlresult = $wpdb->get_results($wpdb->prepare( 48 | " 49 | SELECT $this->table_name.hash, comment_content 50 | FROM $this->table_name 51 | INNER JOIN $commentmeta_table 52 | ON $commentmeta_table.meta_value=$this->table_name.hash 53 | INNER JOIN $comments_table 54 | ON $comments_table.comment_ID= $commentmeta_table.comment_id 55 | WHERE comment_approved = 1 AND item_id = %s 56 | ", 57 | $item_id), ARRAY_A); // get dates from 58 | 59 | foreach ($sqlresult as $comments) { 60 | $return[ $comments['hash'] ] = $comments['comment_content']; 61 | } 62 | return $return; 63 | 64 | 65 | } 66 | 67 | public function render_comments_form() { 68 | 69 | $comments = $this->get_comments(); 70 | 71 | ob_start(); 72 | 73 | 74 | if ( $comments ) { // there is already a comment for this item 75 | 76 | $args = array ( 77 | 'comment' => $comments[0]->comment_content 78 | ); 79 | cb1_get_template_part('booking-review-booking-comment', $args); 80 | 81 | } else { // No comment, show form 82 | 83 | $this->url = add_query_arg( 'booking', $this->booking_hash, get_the_permalink() ); 84 | 85 | $hash_field = ''; 86 | $redirect_field = ''; 87 | 88 | $comments_args = array( 89 | // change the title of send button 90 | 'label_submit'=>'Send', 91 | 'logged_in_as' =>'', // Hide the logged in message 92 | // change the title of the reply section 93 | 'title_reply'=> __('Leave a comment', 'commons-booking'), 94 | 'title_reply_before' => '| 166 | | 167 | |
|---|---|
Hey There!
'; 179 | 180 | echo apply_filters('widget_text', $out); 181 | } 182 | 183 | } // class 184 | 185 | // Register widget 186 | if ( ! function_exists( 'mv_my_register_widget' ) ) 187 | { 188 | function mv_my_register_widget() 189 | { 190 | register_widget( 'MV_My_Recent_Posts_Widget' ); 191 | } 192 | 193 | add_action( 'widgets_init', 'mv_my_register_widget', 1 ); 194 | } 195 | } 196 | -------------------------------------------------------------------------------- /admin/includes/CMB2/includes/CMB2_Options.php: -------------------------------------------------------------------------------- 1 | key = ! empty( $option_key ) ? $option_key : ''; 65 | } 66 | 67 | /** 68 | * Delete the option from the db 69 | * @since 2.0.0 70 | * @return bool Delete success or failure 71 | */ 72 | public function delete_option() { 73 | $deleted = $this->key ? delete_option( $this->key ) : true; 74 | $this->options = $deleted ? array() : $this->options; 75 | return $this->options; 76 | } 77 | 78 | /** 79 | * Removes an option from an option array 80 | * @since 1.0.1 81 | * @param string $field_id Option array field key 82 | * @return array Modified options 83 | */ 84 | public function remove( $field_id, $resave = false ) { 85 | 86 | $this->get_options(); 87 | 88 | if ( isset( $this->options[ $field_id ] ) ) { 89 | unset( $this->options[ $field_id ] ); 90 | } 91 | 92 | if ( $resave ) { 93 | $this->set(); 94 | } 95 | 96 | return $this->options; 97 | } 98 | 99 | /** 100 | * Retrieves an option from an option array 101 | * @since 1.0.1 102 | * @param string $field_id Option array field key 103 | * @param mixed $default Fallback value for the option 104 | * @return array Requested field or default 105 | */ 106 | public function get( $field_id, $default = false ) { 107 | $opts = $this->get_options(); 108 | 109 | if ( 'all' == $field_id ) { 110 | return $opts; 111 | } elseif ( array_key_exists( $field_id, $opts ) ) { 112 | return false !== $opts[ $field_id ] ? $opts[ $field_id ] : $default; 113 | } 114 | 115 | return $default; 116 | } 117 | 118 | /** 119 | * Updates Option data 120 | * @since 1.0.1 121 | * @param string $field_id Option array field key 122 | * @param mixed $value Value to update data with 123 | * @param bool $resave Whether to re-save the data 124 | * @param bool $single Whether data should not be an array 125 | * @return boolean Return status of update 126 | */ 127 | public function update( $field_id, $value = '', $resave = false, $single = true ) { 128 | $this->get_options(); 129 | 130 | if ( true !== $field_id ) { 131 | 132 | if ( ! $single ) { 133 | // If multiple, add to array 134 | $this->options[ $field_id ][] = $value; 135 | } else { 136 | $this->options[ $field_id ] = $value; 137 | } 138 | 139 | } 140 | 141 | if ( $resave || true === $field_id ) { 142 | return $this->set(); 143 | } 144 | 145 | return true; 146 | } 147 | 148 | /** 149 | * Saves the option array 150 | * Needs to be run after finished using remove/update_option 151 | * @uses apply_filters() Calls 'cmb2_override_option_save_{$this->key}' hook 152 | * to allow overwriting the option value to be stored. 153 | * 154 | * @since 1.0.1 155 | * @param array $options Optional options to override 156 | * @return bool Success/Failure 157 | */ 158 | public function set( $options = array() ) { 159 | $this->options = ! empty( $options ) || empty( $options ) && empty( $this->key ) 160 | ? $options 161 | : $this->options; 162 | 163 | if ( empty( $this->key ) ) { 164 | return false; 165 | } 166 | 167 | $test_save = apply_filters( "cmb2_override_option_save_{$this->key}", 'cmb2_no_override_option_save', $this->options, $this ); 168 | 169 | if ( 'cmb2_no_override_option_save' !== $test_save ) { 170 | return $test_save; 171 | } 172 | 173 | // If no override, update the option 174 | return update_option( $this->key, $this->options ); 175 | } 176 | 177 | /** 178 | * Retrieve option value based on name of option. 179 | * @uses apply_filters() Calls 'cmb2_override_option_get_{$this->key}' hook to allow 180 | * overwriting the option value to be retrieved. 181 | * 182 | * @since 1.0.1 183 | * @param mixed $default Optional. Default value to return if the option does not exist. 184 | * @return mixed Value set for the option. 185 | */ 186 | public function get_options( $default = null ) { 187 | if ( empty( $this->options ) && ! empty( $this->key ) ) { 188 | 189 | $test_get = apply_filters( "cmb2_override_option_get_{$this->key}", 'cmb2_no_override_option_get', $default, $this ); 190 | 191 | if ( 'cmb2_no_override_option_get' !== $test_get ) { 192 | $this->options = $test_get; 193 | } else { 194 | // If no override, get the option 195 | $this->options = get_option( $this->key, $default ); 196 | } 197 | } 198 | 199 | return (array) $this->options; 200 | } 201 | 202 | } 203 | -------------------------------------------------------------------------------- /admin/includes/CMB2/includes/CMB2_Utils.php: -------------------------------------------------------------------------------- 1 | get_col( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE guid LIKE '%%%s%%' LIMIT 1;", $img_url ) ); 40 | 41 | // If we found an attachement ID, return it 42 | if ( ! empty( $attachment ) && is_array( $attachment ) ) { 43 | return $attachment[0]; 44 | } 45 | 46 | // No luck 47 | return false; 48 | } 49 | 50 | /** 51 | * Utility method that returns time string offset by timezone 52 | * @since 1.0.0 53 | * @param string $tzstring Time string 54 | * @return string Offset time string 55 | */ 56 | public function timezone_offset( $tzstring ) { 57 | if ( ! empty( $tzstring ) && is_string( $tzstring ) ) { 58 | if ( 'UTC' === substr( $tzstring, 0, 3 ) ) { 59 | $tzstring = str_replace( array( ':15', ':30', ':45' ), array( '.25', '.5', '.75' ), $tzstring ); 60 | return intval( floatval( substr( $tzstring, 3 ) ) * HOUR_IN_SECONDS ); 61 | } 62 | 63 | $date_time_zone_selected = new DateTimeZone( $tzstring ); 64 | $tz_offset = timezone_offset_get( $date_time_zone_selected, date_create() ); 65 | 66 | return $tz_offset; 67 | } 68 | 69 | return 0; 70 | } 71 | 72 | /** 73 | * Utility method that returns a timezone string representing the default timezone for the site. 74 | * 75 | * Roughly copied from WordPress, as get_option('timezone_string') will return 76 | * an empty string if no value has been set on the options page. 77 | * A timezone string is required by the wp_timezone_choice() used by the 78 | * select_timezone field. 79 | * 80 | * @since 1.0.0 81 | * @return string Timezone string 82 | */ 83 | public function timezone_string() { 84 | $current_offset = get_option( 'gmt_offset' ); 85 | $tzstring = get_option( 'timezone_string' ); 86 | 87 | if ( empty( $tzstring ) ) { // Create a UTC+- zone if no timezone string exists 88 | if ( 0 == $current_offset ) { 89 | $tzstring = 'UTC+0'; 90 | } elseif ( $current_offset < 0 ) { 91 | $tzstring = 'UTC' . $current_offset; 92 | } else { 93 | $tzstring = 'UTC+' . $current_offset; 94 | } 95 | } 96 | 97 | return $tzstring; 98 | } 99 | 100 | /** 101 | * Returns a timestamp, first checking if value already is a timestamp. 102 | * @since 2.0.0 103 | * @param string|int $string Possible timestamp string 104 | * @return int Time stamp 105 | */ 106 | public function make_valid_time_stamp( $string ) { 107 | if ( ! $string ) { 108 | return 0; 109 | } 110 | 111 | return $this->is_valid_time_stamp( $string ) 112 | ? (int) $string : 113 | strtotime( $string ); 114 | } 115 | 116 | /** 117 | * Determine if a value is a valid timestamp 118 | * @since 2.0.0 119 | * @param mixed $timestamp Value to check 120 | * @return boolean Whether value is a valid timestamp 121 | */ 122 | public function is_valid_time_stamp( $timestamp ) { 123 | return (string) (int) $timestamp === (string) $timestamp 124 | && $timestamp <= PHP_INT_MAX 125 | && $timestamp >= ~PHP_INT_MAX; 126 | } 127 | 128 | /** 129 | * Checks if a value is 'empty'. Still accepts 0. 130 | * @since 2.0.0 131 | * @param mixed $value Value to check 132 | * @return bool True or false 133 | */ 134 | public function isempty( $value ) { 135 | return null === $value || '' === $value || false === $value; 136 | } 137 | 138 | /** 139 | * Insert a single array item inside another array at a set position 140 | * @since 2.0.2 141 | * @param array &$array Array to modify. Is passed by reference, and no return is needed. 142 | * @param array $new New array to insert 143 | * @param int $position Position in the main array to insert the new array 144 | */ 145 | public function array_insert( &$array, $new, $position ) { 146 | $before = array_slice( $array, 0, $position - 1 ); 147 | $after = array_diff_key( $array, $before ); 148 | $array = array_merge( $before, $new, $after ); 149 | } 150 | 151 | /** 152 | * Defines the url which is used to load local resources. 153 | * This may need to be filtered for local Window installations. 154 | * If resources do not load, please check the wiki for details. 155 | * @since 1.0.1 156 | * @return string URL to CMB2 resources 157 | */ 158 | public function url( $path = '' ) { 159 | if ( $this->url ) { 160 | return $this->url . $path; 161 | } 162 | 163 | if ( 'WIN' === strtoupper( substr( PHP_OS, 0, 3 ) ) ) { 164 | // Windows 165 | $content_dir = str_replace( '/', DIRECTORY_SEPARATOR, WP_CONTENT_DIR ); 166 | $content_url = str_replace( $content_dir, WP_CONTENT_URL, cmb2_dir() ); 167 | $cmb2_url = str_replace( DIRECTORY_SEPARATOR, '/', $content_url ); 168 | 169 | } else { 170 | $cmb2_url = str_replace( 171 | array( WP_CONTENT_DIR, WP_PLUGIN_DIR ), 172 | array( WP_CONTENT_URL, WP_PLUGIN_URL ), 173 | cmb2_dir() 174 | ); 175 | } 176 | 177 | /** 178 | * Filter the CMB location url 179 | * 180 | * @param string $cmb2_url Currently registered url 181 | */ 182 | $this->url = trailingslashit( apply_filters( 'cmb2_meta_box_url', set_url_scheme( $cmb2_url ), CMB2_VERSION ) ); 183 | 184 | return $this->url . $path; 185 | } 186 | 187 | } 188 | -------------------------------------------------------------------------------- /admin/cb-timeframes/includes/class-cb-timeframes-list.php: -------------------------------------------------------------------------------- 1 | 6 | * @license GPL-2.0+ 7 | * @link http://www.wielebenwir.de 8 | * @copyright 2015 wielebenwir 9 | */ 10 | 11 | /** 12 | * Display the list of configured Timeframes in a metabox on the item edit screen. 13 | * 14 | * @package Commons_Booking_Timeframes_List 15 | * @author Florian Egermann' . __( 'No timeframes set up yet.', 'commons-booking' ) . '
'; 94 | } 95 | } 96 | 97 | /** 98 | * Handle field display 99 | * 100 | * @return mixed html 101 | */ 102 | public function table_fields( $key, $value ) { 103 | 104 | if (array_key_exists($key, $this->colDefinition)) { 105 | switch ($key) { // Handle different field display 106 | case 'item_id': 107 | $field = ( '' . $this->table_fields_get_link( $value ) . '' ); 108 | break; 109 | case 'location_id': 110 | $field = ( '' . $this->table_fields_get_link( $value ) . '' ); 111 | break; 112 | case 'edit': 113 | $field = $this->table_fields_edit_button( $value ) . ' ' . $this->table_fields_delete_button( $value ) ; 114 | break; 115 | default: 116 | $field = $value; 117 | } 118 | return '