Commit f4544b35 authored by Simonas's avatar Simonas

merge conflict

parents c3bb2896 fd3303e7
......@@ -70,6 +70,8 @@ class JobsImporter
*/
public function import()
{
global $permalink_manager_uris;
foreach ($this->data as $ad) {
// Set language code
......@@ -125,6 +127,11 @@ class JobsImporter
// Set post language
$this->setPostLang($podId, $ad['lang']);
// if (isset($custom_uri)) {
// $permalink_manager_uris[$podId] = $custom_uri;
// update_option('permalink-manager-uris', $permalink_manager_uris);
// }
}
}
}
......
......@@ -11,9 +11,10 @@ class JsonDataCollector
'post_modified' => 'atnaujinta',
'title' => 'pareigos',
'post_content' => 'aprasymas',
'slug' => 'seo_url',
'contact' => 'kontaktai',
// 'email' => 'email',
// 'work_time' => 'darbo_laikas',
// 'contact' => 'kontaktai',
];
// Taxonomies data map
......@@ -149,8 +150,9 @@ class JsonDataCollector
$result = [];
foreach ($this->properties as $propertyKey => $propertyValue) {
if (isset($ad->{$propertyValue}))
if (isset($ad->{$propertyValue})) {
$dataValue = $ad->{$propertyValue};
}
$result[$propertyKey] = $this->getValue($dataValue);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment