Builds the sections dropdown
public static build_sections_field ( array $sections, integer $post_id ) | ||
$sections | array | |
$post_id | integer |
?> <?php do_action('apple_news_before_single_settings'); ?> <table class="form-table"> <?php if (!empty($sections)) { ?> <tr> <th scope="row"><?php esc_html_e('Sections', 'apple-news'); ?> </th> <td> <?php \Admin_Apple_Meta_Boxes::build_sections_field($sections, $post->ID); ?> <p class="description"><?php esc_html_e('Select the sections in which to publish this article. Uncheck them all for a standalone article.', 'apple-news'); ?> </p> </td> </tr> <?php } ?> <tr> <th scope="row"><?php esc_html_e('Preview?', 'apple-news'); ?> </th>