add import service to tags and category

This commit is contained in:
Filip Penkava
2017-01-20 18:56:44 +01:00
parent 01b59b4328
commit 54a9c5cfa8
2 changed files with 54 additions and 3 deletions

View File

@@ -32,6 +32,7 @@ function mvp_admin() {
'author' => $_POST['author'],
'author-byline' => $_POST['author-byline'],
'display-copyright' => $_POST['display-copyright'],
'subject-type' => $_POST['subject-type'],
'category' => $_POST['category'],
);
update_option('mvp_settings', $settings);
@@ -47,6 +48,7 @@ function mvp_admin() {
'author' => '',
'author-byline' => '',
'display-copyright' => '',
'subject-type' => '',
'category' => '',
);
}
@@ -185,6 +187,30 @@ function mvp_admin() {
</fieldset>
</td>
</tr>
<tr>
<th scope="row">
Import Superdesk subjects as
</th>
<td>
<fieldset>
<label for="tags">
<input type="radio" name="subject-type" id="tags" value="tags"<?php
if ($settings['subject-type'] == 'tags' || !$settings['subject-type'] || $settings['subject-type'] == null) {
echo(' checked');
}
?>> Wordpress tags
</label>
<br>
<label for="categories">
<input type="radio" name="subject-type" id="categories" value="categories"<?php
if ($settings['subject-type'] == 'categories') {
echo(' checked');
}
?>> Wordpress categories
</label>
</fieldset>
</td>
</tr>
<tr>
<th scope="row">
<label for="category">Category</label>