Commit f4544b35 authored by Simonas's avatar Simonas

merge conflict

parents c3bb2896 fd3303e7
...@@ -70,6 +70,8 @@ class JobsImporter ...@@ -70,6 +70,8 @@ class JobsImporter
*/ */
public function import() public function import()
{ {
global $permalink_manager_uris;
foreach ($this->data as $ad) { foreach ($this->data as $ad) {
// Set language code // Set language code
...@@ -125,6 +127,11 @@ class JobsImporter ...@@ -125,6 +127,11 @@ class JobsImporter
// Set post language // Set post language
$this->setPostLang($podId, $ad['lang']); $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 ...@@ -11,9 +11,10 @@ class JsonDataCollector
'post_modified' => 'atnaujinta', 'post_modified' => 'atnaujinta',
'title' => 'pareigos', 'title' => 'pareigos',
'post_content' => 'aprasymas', 'post_content' => 'aprasymas',
'slug' => 'seo_url',
'contact' => 'kontaktai',
// 'email' => 'email', // 'email' => 'email',
// 'work_time' => 'darbo_laikas', // 'work_time' => 'darbo_laikas',
// 'contact' => 'kontaktai',
]; ];
// Taxonomies data map // Taxonomies data map
...@@ -149,8 +150,9 @@ class JsonDataCollector ...@@ -149,8 +150,9 @@ class JsonDataCollector
$result = []; $result = [];
foreach ($this->properties as $propertyKey => $propertyValue) { foreach ($this->properties as $propertyKey => $propertyValue) {
if (isset($ad->{$propertyValue})) if (isset($ad->{$propertyValue})) {
$dataValue = $ad->{$propertyValue}; $dataValue = $ad->{$propertyValue};
}
$result[$propertyKey] = $this->getValue($dataValue); $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