Merge branch 'develop' of https://github.com/tainacan/tainacan into develop
This commit is contained in:
commit
284910186a
|
@ -71,4 +71,13 @@ class CSV extends Importer {
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function options_form() {
|
||||||
|
|
||||||
|
$form = '<label class="label">' . __('Delimiter', 'tainacan') . '</label>';
|
||||||
|
$form .= '<input type="text" class="input" name="delimiter" value="' . $this->get_option('delimiter') . '" />';
|
||||||
|
|
||||||
|
return $form;
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -192,6 +192,7 @@ abstract class Importer {
|
||||||
$return['manual_collection'] = $this->manual_collection;
|
$return['manual_collection'] = $this->manual_collection;
|
||||||
$return['manual_mapping'] = $this->manual_mapping;
|
$return['manual_mapping'] = $this->manual_mapping;
|
||||||
$return['accepts'] = $this->accepts;
|
$return['accepts'] = $this->accepts;
|
||||||
|
$return['options_form'] = $this->options_form();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $return;
|
return $return;
|
||||||
|
@ -680,6 +681,12 @@ abstract class Importer {
|
||||||
public function get_source_number_of_items() {}
|
public function get_source_number_of_items() {}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method implemented by child importer to return the HTML of the Options Form to be rendered in the Importer page
|
||||||
|
*/
|
||||||
|
public function options_form() {}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////
|
////////////////////////////////////////
|
||||||
// Core methods
|
// Core methods
|
||||||
|
|
Loading…
Reference in New Issue