public function display() { return Feed::get_parsed($this->module_id, $this->name, $this->category, self::get_template($this->get_title(), $this->get_block(), $this->hidden_with_small_screens), $this->number, $this->begin_at); }
function display() { return Feed::get_parsed($this->module_id, $this->name, $this->category, FeedMenu::get_template($this->get_title(), $this->get_block()), $this->number, $this->begin_at); }
private static function inject_feed(array $matches) { $module = $matches[2]; $args = self::parse_feed_tag_args($matches[1]); $name = !empty($args['name']) ? $args['name'] : Feed::DEFAULT_FEED_NAME; $cat = !empty($args['cat']) ? $args['cat'] : 0; $tpl = false; $number = !empty($args['number']) ? $args['number'] : 10; $result = ''; try { $result = Feed::get_parsed($module, $name, $cat, $tpl, $number); } catch (Exception $e) { } if (!empty($result)) { return $result; } else { $error = StringVars::replace_vars(LangLoader::get_message('feed_tag_error', 'editor-common'), array('module' => $module)); return '<div class="error">' . $error . '</div>'; } }