| @@ -114,11 +114,8 @@ | ||
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | return ''; |
| 117 | 117 | } |
| 118 | - public function comment_count() { | |
| 119 | - return $this->meta( 'comment_count', 0 ); | |
| 120 | - } | |
| 121 | 118 | public function content() { |
| 122 | 119 | return $this->meta( 'content' ); |
| 123 | 120 | } |
| 124 | 121 | public function custom_field( $key ) { |
| @@ -126,11 +123,8 @@ | ||
| 126 | 123 | } |
| 127 | 124 | public function date() { |
| 128 | 125 | return $this->meta( 'date' ); |
| 129 | 126 | } |
| 130 | - public function date_modified() { | |
| 131 | - return $this->meta( 'date_modified' ); | |
| 132 | - } | |
| 133 | 127 | public function excerpt() { |
| 134 | 128 | return $this->meta( 'excerpt' ); |
| 135 | 129 | } |
| 136 | 130 | public function image( $size = 'thumbnail' ) { |
| @@ -174,11 +168,8 @@ | ||
| 174 | 168 | } |
| 175 | 169 | |
| 176 | 170 | return $thumb && isset( $thumb[0] ) ? $thumb[0] : ''; |
| 177 | 171 | } |
| 178 | - public function menu_order() { | |
| 179 | - return $this->meta( 'menu_order', 0 ); | |
| 180 | - } | |
| 181 | 172 | public function post_type() { |
| 182 | 173 | return $this->meta( 'post_type' ); |
| 183 | 174 | } |
| 184 | 175 | public function terms( $key ) { |
| @@ -216,22 +207,6 @@ | ||
| 216 | 207 | return $grid->link_target(); |
| 217 | 208 | } else { |
| 218 | 209 | return $custom_link_target; |
| 219 | 210 | } |
| 220 | - } | |
| 221 | - public function link_nofollow() { | |
| 222 | - $custom_url = $this->meta( 'wpupg_custom_link', false ); | |
| 223 | - | |
| 224 | - if ( $custom_url ) { | |
| 225 | - $custom_link_nofollow = $this->meta( 'wpupg_custom_link_nofollow', 'default' ); | |
| 226 | - | |
| 227 | - if ( 'default' === $custom_link_nofollow ) { | |
| 228 | - return WPUPG_Settings::get( 'default_custom_link_nofollow' ); | |
| 229 | - } else { | |
| 230 | - return $custom_link_nofollow; | |
| 231 | - } | |
| 232 | - } | |
| 233 | - | |
| 234 | - // Only nofollow for custom links. | |
| 235 | - return 'dofollow'; | |
| 236 | 211 | } |
| 237 | 212 | } |