コード例 #1
0
ファイル: cc-themes.php プロジェクト: alecgorge/TopHat
/**
 * Returns a breadcrumb system.
 *
 * @param string $sep The separator between the items.
 * @param bool $rev Reverse the order of the breadcrumbs?
 * @return string The breadcrumbs.
 */
function breadcrumbs($sep = ' ‘ ', $rev = false)
{
    $b = Content::getBreadcrumbs();
    if (!$rev) {
        $b = array_reverse($b, true);
    }
    return filter('content_breadcrumbs', UTF8::htmlentities(implode($sep, $b)));
}
コード例 #2
0
ファイル: cc-content.php プロジェクト: alecgorge/TopHat
 /**
  * Gets the menutitle of the current node.
  *
  * @return string The requested item.
  */
 public static function getMenutitle()
 {
     plugin('content_getmenutitle');
     return filter('content_getmenutitle', UTF8::htmlentities(self::$content['menutitle']));
 }