Settings'; return $links; } function get_page_url() { $args = array('page' => 'superdesk/admin/admin'); $url = add_query_arg($args, admin_url('options-general.php')); return $url; } function superdesk_admin() { $post_formats = get_post_format_strings(); if (isset($_POST['url'])) { $resultArray = array(); if (isset($_POST['post-formats-value'], $_POST['post-formats-input'])) { foreach ($_POST['post-formats-value'] as $key => $value) { if (!isset($_POST['post-formats-input'][$key])) { continue; } if (isset($post_formats[$value])) { $inputValue = $_POST['post-formats-input'][$key]; if (!isset($resultArray[$inputValue]) && !empty($inputValue)) $resultArray[$inputValue] = $value; } } } $settings = array( 'url' => $_POST['url'], 'username' => $_POST['username'], 'password' => $_POST['password'], 'client_id' => $_POST['client_id'], 'status' => $_POST['status'], 'author' => $_POST['author'], 'author-byline' => $_POST['author-byline'], 'byline-words' => $_POST['byline-words'], 'display-copyright' => $_POST['display-copyright'], 'import-keywords' => $_POST['import-keywords'], 'convert-services' => $_POST['convert-services'], 'subject-type' => $_POST['subject-type'], 'category' => $_POST['category'], 'separator-caption-image' => $_POST['separator-caption-image'], 'copyrightholder-image' => $_POST['copyrightholder-image'], 'copyrightnotice-image' => $_POST['copyrightnotice-image'], 'separator-located' => $_POST['separator-located'], 'convert-slugline' => $_POST['convert-slugline'], 'slugline-separator' => $_POST['slugline-separator'], 'slugline-ignored' => $_POST['slugline-ignored'], 'priority_threshhold' => $_POST['priority_threshhold'], 'download-images' => $_POST['download-images'], 'post-formats' => $_POST['download-images'], 'post-formats-table' => $resultArray, 'location-modifier' => $_POST['location-modifier'], 'update-log-option' => $_POST['update-log-option'], 'update-log-date-format' => $_POST['update-log-date-format'], 'update-log-text' => $_POST['update-log-text'], 'update-log-position' => $_POST['update-log-position'], ); update_option('superdesk_settings', $settings); } else if (get_option('superdesk_settings')) { $settings = get_option('superdesk_settings'); } else { $settings = array( 'url' => '', 'client_id' => '', 'username' => '', 'password' => '', 'status' => 'publish', 'author' => '', 'author-byline' => '', 'byline-words' => '', 'display-copyright' => '', 'import-keywords' => '', 'convert-services' => '', 'subject-type' => '', 'category' => '', 'separator-caption-image' => '', 'copyrightholder-image' => '', 'copyrightnotice-image' => '', 'separator-located' => '', 'convert-slugline' => '', 'slugline-separator' => '', 'slugline-ignored' => '', 'priority_threshhold' => '', 'download-images' => '', 'post-formats' => '', 'post-formats-table' => array(), 'location-modifier' => 'standard', 'update-log-option' => 'off', 'update-log-date-format' => 'Y-m-d H:i', 'update-log-text' => 'This article was updated at', 'update-log-position' => 'off' ); } $statuses = array( 'publish' => 'Published', 'draft' => 'Draft' ); $authors = array(); $categories = array(); $args = array( 'hide_empty' => 0, ); $all_categories = get_categories($args); foreach ($all_categories as $category) { $categories[$category->cat_ID] = $category->cat_name; } $all_users = get_users(); foreach ($all_users as $user) { $authors[$user->ID] = $user->data->display_name; } function make_table_row($format, $text_value, $formats) { $new_element = 'Delete'; return $new_element; } ?>

Superdesk Publisher

Autoload /wp-content/plugins/superdesk-wordpress-plugin/autoload.php
Default status of ingested articles/posts
$value) { ?>


Choose words to replace from the byline

Import SD keywords as WP tags

Import Superdesk categories as Wordpress categories

Import Superdesk subjects as

Display the image copyright holder in the caption

Display the image copyright notice in the caption

Display location as

Convert slugline keywords into WP tags

Download images from SD

Add update logs to articles

Update log position in article

.
Match Superdesk Content Profiles with Wordpress Post Formats

$value) { echo make_table_row($value, $key, $post_formats); } } ?>
Superdesk Content Profile Name Wordpress Post Format Add row