/** * Render a page sub-header * * @param array $params * @param string $content * @param Smarty $smarty * @param boolean $repeat * @return string */ public static function block_sub($params, $content, &$smarty, &$repeat) { if ($repeat) { return null; } $slug = isset($params['slug']) ? $params['slug'] : null; if (empty($slug)) { $slug = Shade::slug($content); } return '<h3 id="s-' . Shade::clean($slug) . '" class="sub_header">' . Shade::clean($content) . ' <a href="#s-' . Shade::clean($slug) . '" title="' . Shade::lang('Link to this Section') . '" class="sub_permalink">#</a></h3>'; }
/** * Return array of video groups * * @return array */ public function getVideoGroups() { if ($this->video_groups === false) { $this->video_groups = $this->getConfigurationOption('video_groups'); if (!is_array($this->video_groups)) { $this->video_groups = [Video::GETTING_STARTED => Shade::lang('Getting Started')]; } } return $this->video_groups; }