public function getContent(array $options = array()) { if ($this->xpdo instanceof modX) { $settings = $this->getContainerSettings(); if ($this->xpdo->getOption('commentsEnabled', $settings, true)) { $this->getCommentsCall($settings); $this->getCommentsReplyCall($settings); $this->getCommentsCountCall($settings); $this->xpdo->setPlaceholder('comments_enabled', 1); } else { $this->xpdo->setPlaceholder('comments_enabled', 0); } $this->getTagsCall($settings); /** @var ArticlesContainer $container */ $container = $this->getOne('Container'); if ($container) { $container->getArchivistCall(); $container->getLatestCommentsCall(); $container->getLatestPostsCall(); $container->getTagListerCall(); } } $content = parent::getContent($options); return $content; }
public function getContent(array $options = array()) { $content = parent::getContent($options); $language = $this->getLanguage(); $year = date('Y'); if (!($content = $this->lookForTranslations('content'))) { $content = parent::getContent($options); } return $content; }
public function getContent(array $options = array()) { $content = '<div class="postBody">' . parent::getContent($options) . '</div>'; $conversation = $this->class_key . '-' . $this->id; $properties = $this->getProperties('modxtalks'); $properties = array_merge(array('conversation' => $conversation), $properties); $out = ''; foreach ($properties as $key => $property) { $out .= "&{$key}=`{$property}`"; } $content .= '[[$chankModxTalksStreak]][[!modxTalks?' . $out . ']]'; return $content; }
/** * Get the absolute path to the static source file represented by this instance. * * @param array $options An array of options. * @return string The absolute path to the static source file. */ public function getSourceFile(array $options = array()) { if (empty($this->_sourceFile)) { $filename = parent::getContent($options); if (!empty($filename)) { $array = array(); if ($this->xpdo->getParser() && $this->xpdo->parser->collectElementTags($filename, $array)) { $this->xpdo->parser->processElementTags('', $filename); } } if (!file_exists($filename)) { $this->_sourcePath = $this->xpdo->getOption('resource_static_path', $options, $this->xpdo->getOption('base_path')); if ($this->xpdo->getParser() && $this->xpdo->parser->collectElementTags($this->_sourcePath, $array)) { $this->xpdo->parser->processElementTags('', $this->_sourcePath); } $this->_sourceFile = $this->_sourcePath . $filename; } else { $this->_sourceFile = $filename; } } return $this->_sourceFile; }
/** * @param array $options * * @return string */ public function getContent(array $options = array()) { $content = parent::getContent($options); return $content; }
/** * Get, process and encode the content of this Resource * @return void */ public function getContent() { $content = $this->resource->getContent(); $this->setPlaceholder('content', $this->hm->getTpl('widgets/text', array('text' => $this->safe($content, true)))); }