function display() { global $fwp_post; global $post_source; $this->boxes_by_methods = array('feed_information_box' => __('Feed Information'), 'global_feeds_box' => __('Update Scheduling'), 'updated_posts_box' => __('Updated Posts'), 'custom_settings_box' => __('Custom Feed Settings (for use in templates)'), 'fetch_settings_box' => __('Settings for Fetching Feeds (Advanced)')); if ($this->for_default_settings()) { unset($this->boxes_by_methods['custom_settings_box']); } // Allow overriding of normal source for FeedFinder, which may // be called from multiple points. if (isset($post_source) and !is_null($post_source)) { $source = $post_source; } else { $source = $this->dispatch; } if (isset($_REQUEST['feedfinder']) or isset($_REQUEST['action']) and $_REQUEST['action'] == 'feedfinder' or isset($_REQUEST['action']) and $_REQUEST['action'] == FWP_SYNDICATE_NEW) { // If this is a POST, validate source and user credentials FeedWordPressCompatibility::validate_http_request($source, 'manage_links'); return $this->display_feedfinder(); // re-route to Feed Finder page } parent::display(); return false; // Don't continue }
function display () { //////////////////////////////////////////////// // Display settings boxes ////////////////////// //////////////////////////////////////////////// $this->boxes_by_methods = array( 'feed_categories_box' => __('Feed Categories & Tags'), 'categories_box' => array('title' => __('Categories'), 'id' => 'categorydiv'), ); parent::display(); }
function display() { $this->boxes_by_methods = array('syndicated_authors_box' => __('Syndicated Authors'), 'fix_authors_box' => __('Reassign Authors')); if ($this->for_default_settings()) { unset($this->boxes_by_methods['fix_authors_box']); } parent::display(); ?> <script type="text/javascript"> contextual_appearance('unfamiliar-author', 'unfamiliar-author-newuser', 'unfamiliar-author-default', 'newuser', 'inline'); </script> <?php if ($this->for_feed_settings()) { ?> <script type="text/javascript"> jQuery('.author-rules').each ( function () { contextual_appearance(this.id, this.id+'-newuser', this.id+'-default', 'newuser', 'inline'); } ); contextual_appearance('add-author-rule', 'add-author-rule-newuser', 'add-author-rule-default', 'newuser', 'inline'); contextual_appearance('fix-mismatch-to', 'fix-mismatch-to-newuser', null, 'newuser', 'inline'); </script> <?php } else { ?> <script type="text/javascript"> contextual_appearance('match-author-by-email', 'unless-null-email', null, 'yes', 'block', /*checkbox=*/ true); </script> <?php } }
function display() { $this->boxes_by_methods = array('publication_box' => __('Syndicated Posts'), 'links_box' => __('Links'), 'formatting_box' => __('Formatting'), 'comments_and_pings_box' => __('Comments & Pings'), 'custom_post_settings_box' => __('Custom Post Settings (to apply to each syndicated post)'), 'custom_post_types_box' => 'Custom Post Types (advanced database settings)'); parent::display(); }
function display() { //////////////////////////////////////////////// // Display settings boxes ////////////////////// //////////////////////////////////////////////// $this->boxes_by_methods = array('feed_categories_box' => __('Feed Categories' . FEEDWORDPRESS_AND_TAGS), 'categories_box' => array('title' => __('Categories'), 'id' => 'categorydiv')); if (!FeedWordPressCompatibility::post_tags()) { unset($this->boxes_by_methods['tags_box']); } parent::display(); }