|
@@ 4293-4301 (lines=9) @@
|
| 4290 |
|
}
|
| 4291 |
|
|
| 4292 |
|
$attachment = false;
|
| 4293 |
|
if ( isset( $term_data['image'] ) && $term_data['image'] != '' ) {
|
| 4294 |
|
$cat_image = geodir_get_default_catimage( $term_id, $cat_posttype );
|
| 4295 |
|
$cat_image = !empty( $cat_image ) && isset( $cat_image['src'] ) ? $cat_image['src'] : '';
|
| 4296 |
|
|
| 4297 |
|
if ( basename($cat_image) != $term_data['image'] ) {
|
| 4298 |
|
$attachment = true;
|
| 4299 |
|
update_tax_meta( $term_id, 'ct_cat_default_img', array( 'id' => 'image', 'src' => $uploads['url'] . '/' . $term_data['image'] ), $cat_posttype );
|
| 4300 |
|
}
|
| 4301 |
|
}
|
| 4302 |
|
|
| 4303 |
|
if ( isset( $term_data['icon'] ) && $term_data['icon'] != '' ) {
|
| 4304 |
|
$cat_icon = get_tax_meta( $term_id, 'ct_cat_icon', false, $cat_posttype );
|
|
@@ 4303-4311 (lines=9) @@
|
| 4300 |
|
}
|
| 4301 |
|
}
|
| 4302 |
|
|
| 4303 |
|
if ( isset( $term_data['icon'] ) && $term_data['icon'] != '' ) {
|
| 4304 |
|
$cat_icon = get_tax_meta( $term_id, 'ct_cat_icon', false, $cat_posttype );
|
| 4305 |
|
$cat_icon = !empty( $cat_icon ) && isset( $cat_icon['src'] ) ? $cat_icon['src'] : '';
|
| 4306 |
|
|
| 4307 |
|
if ( basename($cat_icon) != $term_data['icon'] ) {
|
| 4308 |
|
$attachment = true;
|
| 4309 |
|
update_tax_meta( $term_id, 'ct_cat_icon', array( 'id' => 'icon', 'src' => $uploads['url'] . '/' . $term_data['icon'] ), $cat_posttype );
|
| 4310 |
|
}
|
| 4311 |
|
}
|
| 4312 |
|
|
| 4313 |
|
if ( $attachment ) {
|
| 4314 |
|
$images++;
|