public function __construct($view, $partial_path, $object = null, $locals = array()) { list($this->path, $this->variable_name) = $this->extract_partial_name_and_path($view, $partial_path); parent::__construct($view, $this->path, true, $locals); $this->add_object_to_local_assigns($object); $this->initialize_counter(); $this->prepare(); }
/** * Konstruktor */ public function __construct() { parent::__construct('tweet.html', \fpcm\classes\baseconfig::$stylesDir . 'common/'); }
/** * Konstruktor * @param string $fileName Template-Datei unterhalb von data/styles/comments */ public function __construct($fileName) { parent::__construct($fileName . '.html', \fpcm\classes\baseconfig::$stylesDir . 'comments/'); }
function __construct($cache_dir, $self_name, &$core) { parent::__construct($cache_dir, $self_name); $this->remove_php = !$core->blog->settings->tpl_allow_php; $this->use_cache = $core->blog->settings->tpl_use_cache; $this->tag_block = '<tpl:(%1$s)(?:(\\s+.*?)>|>)(.*?)</tpl:%1$s>'; $this->tag_value = '{{tpl:(%s)(\\s(.*?))?}}'; $this->core =& $core; # Transitional tags $this->addValue('EntryTrackbackCount', array($this, 'EntryPingCount')); $this->addValue('EntryTrackbackData', array($this, 'EntryPingData')); $this->addValue('EntryTrackbackLink', array($this, 'EntryPingLink')); # l10n $this->addValue('lang', array($this, 'l10n')); # Loops test tags $this->addBlock('LoopPosition', array($this, 'LoopPosition')); # Archives $this->addBlock('Archives', array($this, 'Archives')); $this->addBlock('ArchivesHeader', array($this, 'ArchivesHeader')); $this->addBlock('ArchivesFooter', array($this, 'ArchivesFooter')); $this->addBlock('ArchivesYearHeader', array($this, 'ArchivesYearHeader')); $this->addBlock('ArchivesYearFooter', array($this, 'ArchivesYearFooter')); $this->addValue('ArchiveDate', array($this, 'ArchiveDate')); $this->addBlock('ArchiveNext', array($this, 'ArchiveNext')); $this->addBlock('ArchivePrevious', array($this, 'ArchivePrevious')); $this->addValue('ArchiveEntriesCount', array($this, 'ArchiveEntriesCount')); $this->addValue('ArchiveURL', array($this, 'ArchiveURL')); # Attachments $this->addBlock('Attachments', array($this, 'Attachments')); $this->addBlock('AttachmentsHeader', array($this, 'AttachmentsHeader')); $this->addBlock('AttachmentsFooter', array($this, 'AttachmentsFooter')); $this->addValue('AttachmentMimeType', array($this, 'AttachmentMimeType')); $this->addValue('AttachmentType', array($this, 'AttachmentType')); $this->addValue('AttachmentFileName', array($this, 'AttachmentFileName')); $this->addValue('AttachmentSize', array($this, 'AttachmentSize')); $this->addValue('AttachmentTitle', array($this, 'AttachmentTitle')); $this->addValue('AttachmentThumbnailURL', array($this, 'AttachmentThumbnailURL')); $this->addValue('AttachmentURL', array($this, 'AttachmentURL')); $this->addBlock('AttachmentIf', array($this, 'AttachmentIf')); $this->addValue('MediaURL', array($this, 'MediaURL')); # Blog $this->addValue('BlogArchiveURL', array($this, 'BlogArchiveURL')); $this->addValue('BlogCopyrightNotice', array($this, 'BlogCopyrightNotice')); $this->addValue('BlogDescription', array($this, 'BlogDescription')); $this->addValue('BlogEditor', array($this, 'BlogEditor')); $this->addValue('BlogFeedID', array($this, 'BlogFeedID')); $this->addValue('BlogFeedURL', array($this, 'BlogFeedURL')); $this->addValue('BlogRSDURL', array($this, 'BlogRSDURL')); $this->addValue('BlogName', array($this, 'BlogName')); $this->addValue('BlogLanguage', array($this, 'BlogLanguage')); $this->addValue('BlogThemeURL', array($this, 'BlogThemeURL')); $this->addValue('BlogUpdateDate', array($this, 'BlogUpdateDate')); $this->addValue('BlogID', array($this, 'BlogID')); $this->addValue('BlogURL', array($this, 'BlogURL')); $this->addValue('BlogPublicURL', array($this, 'BlogPublicURL')); $this->addValue('BlogQmarkURL', array($this, 'BlogQmarkURL')); $this->addValue('BlogMetaRobots', array($this, 'BlogMetaRobots')); # Categories $this->addBlock('Categories', array($this, 'Categories')); $this->addBlock('CategoriesHeader', array($this, 'CategoriesHeader')); $this->addBlock('CategoriesFooter', array($this, 'CategoriesFooter')); $this->addBlock('CategoryIf', array($this, 'CategoryIf')); $this->addBlock('CategoryFirstChildren', array($this, 'CategoryFirstChildren')); $this->addBlock('CategoryParents', array($this, 'CategoryParents')); $this->addValue('CategoryFeedURL', array($this, 'CategoryFeedURL')); $this->addValue('CategoryURL', array($this, 'CategoryURL')); $this->addValue('CategoryShortURL', array($this, 'CategoryShortURL')); $this->addValue('CategoryDescription', array($this, 'CategoryDescription')); $this->addValue('CategoryTitle', array($this, 'CategoryTitle')); # Comments $this->addBlock('Comments', array($this, 'Comments')); $this->addValue('CommentAuthor', array($this, 'CommentAuthor')); $this->addValue('CommentAuthorDomain', array($this, 'CommentAuthorDomain')); $this->addValue('CommentAuthorLink', array($this, 'CommentAuthorLink')); $this->addValue('CommentAuthorMailMD5', array($this, 'CommentAuthorMailMD5')); $this->addValue('CommentAuthorURL', array($this, 'CommentAuthorURL')); $this->addValue('CommentContent', array($this, 'CommentContent')); $this->addValue('CommentDate', array($this, 'CommentDate')); $this->addValue('CommentTime', array($this, 'CommentTime')); $this->addValue('CommentEmail', array($this, 'CommentEmail')); $this->addValue('CommentEntryTitle', array($this, 'CommentEntryTitle')); $this->addValue('CommentFeedID', array($this, 'CommentFeedID')); $this->addValue('CommentID', array($this, 'CommentID')); $this->addBlock('CommentIf', array($this, 'CommentIf')); $this->addValue('CommentIfFirst', array($this, 'CommentIfFirst')); $this->addValue('CommentIfMe', array($this, 'CommentIfMe')); $this->addValue('CommentIfOdd', array($this, 'CommentIfOdd')); $this->addValue('CommentIP', array($this, 'CommentIP')); $this->addValue('CommentOrderNumber', array($this, 'CommentOrderNumber')); $this->addBlock('CommentsFooter', array($this, 'CommentsFooter')); $this->addBlock('CommentsHeader', array($this, 'CommentsHeader')); $this->addValue('CommentPostURL', array($this, 'CommentPostURL')); $this->addBlock('IfCommentAuthorEmail', array($this, 'IfCommentAuthorEmail')); # Comment preview $this->addBlock('IfCommentPreview', array($this, 'IfCommentPreview')); $this->addValue('CommentPreviewName', array($this, 'CommentPreviewName')); $this->addValue('CommentPreviewEmail', array($this, 'CommentPreviewEmail')); $this->addValue('CommentPreviewSite', array($this, 'CommentPreviewSite')); $this->addValue('CommentPreviewContent', array($this, 'CommentPreviewContent')); $this->addValue('CommentPreviewCheckRemember', array($this, 'CommentPreviewCheckRemember')); # Entries $this->addBlock('DateFooter', array($this, 'DateFooter')); $this->addBlock('DateHeader', array($this, 'DateHeader')); $this->addBlock('Entries', array($this, 'Entries')); $this->addBlock('EntriesFooter', array($this, 'EntriesFooter')); $this->addBlock('EntriesHeader', array($this, 'EntriesHeader')); $this->addValue('EntryExcerpt', array($this, 'EntryExcerpt')); $this->addValue('EntryAttachmentCount', array($this, 'EntryAttachmentCount')); $this->addValue('EntryAuthorCommonName', array($this, 'EntryAuthorCommonName')); $this->addValue('EntryAuthorDisplayName', array($this, 'EntryAuthorDisplayName')); $this->addValue('EntryAuthorEmail', array($this, 'EntryAuthorEmail')); $this->addValue('EntryAuthorID', array($this, 'EntryAuthorID')); $this->addValue('EntryAuthorLink', array($this, 'EntryAuthorLink')); $this->addValue('EntryAuthorURL', array($this, 'EntryAuthorURL')); $this->addValue('EntryBasename', array($this, 'EntryBasename')); $this->addValue('EntryCategory', array($this, 'EntryCategory')); $this->addBlock('EntryCategoriesBreadcrumb', array($this, 'EntryCategoriesBreadcrumb')); $this->addValue('EntryCategoryID', array($this, 'EntryCategoryID')); $this->addValue('EntryCategoryURL', array($this, 'EntryCategoryURL')); $this->addValue('EntryCategoryShortURL', array($this, 'EntryCategoryShortURL')); $this->addValue('EntryCommentCount', array($this, 'EntryCommentCount')); $this->addValue('EntryContent', array($this, 'EntryContent')); $this->addValue('EntryDate', array($this, 'EntryDate')); $this->addValue('EntryFeedID', array($this, 'EntryFeedID')); $this->addValue('EntryFirstImage', array($this, 'EntryFirstImage')); $this->addValue('EntryID', array($this, 'EntryID')); $this->addBlock('EntryIf', array($this, 'EntryIf')); $this->addValue('EntryIfFirst', array($this, 'EntryIfFirst')); $this->addValue('EntryIfOdd', array($this, 'EntryIfOdd')); $this->addValue('EntryIfSelected', array($this, 'EntryIfSelected')); $this->addValue('EntryLang', array($this, 'EntryLang')); $this->addBlock('EntryNext', array($this, 'EntryNext')); $this->addValue('EntryPingCount', array($this, 'EntryPingCount')); $this->addValue('EntryPingData', array($this, 'EntryPingData')); $this->addValue('EntryPingLink', array($this, 'EntryPingLink')); $this->addBlock('EntryPrevious', array($this, 'EntryPrevious')); $this->addValue('EntryTitle', array($this, 'EntryTitle')); $this->addValue('EntryTime', array($this, 'EntryTime')); $this->addValue('EntryURL', array($this, 'EntryURL')); # Languages $this->addBlock('Languages', array($this, 'Languages')); $this->addBlock('LanguagesHeader', array($this, 'LanguagesHeader')); $this->addBlock('LanguagesFooter', array($this, 'LanguagesFooter')); $this->addValue('LanguageCode', array($this, 'LanguageCode')); $this->addBlock('LanguageIfCurrent', array($this, 'LanguageIfCurrent')); $this->addValue('LanguageURL', array($this, 'LanguageURL')); # Pagination $this->addBlock('Pagination', array($this, 'Pagination')); $this->addValue('PaginationCounter', array($this, 'PaginationCounter')); $this->addValue('PaginationCurrent', array($this, 'PaginationCurrent')); $this->addBlock('PaginationIf', array($this, 'PaginationIf')); $this->addValue('PaginationURL', array($this, 'PaginationURL')); # Trackbacks $this->addValue('PingBlogName', array($this, 'PingBlogName')); $this->addValue('PingContent', array($this, 'PingContent')); $this->addValue('PingDate', array($this, 'PingDate')); $this->addValue('PingEntryTitle', array($this, 'PingEntryTitle')); $this->addValue('PingFeedID', array($this, 'PingFeedID')); $this->addValue('PingID', array($this, 'PingID')); $this->addValue('PingIfFirst', array($this, 'PingIfFirst')); $this->addValue('PingIfOdd', array($this, 'PingIfOdd')); $this->addValue('PingIP', array($this, 'PingIP')); $this->addValue('PingNoFollow', array($this, 'PingNoFollow')); $this->addValue('PingOrderNumber', array($this, 'PingOrderNumber')); $this->addValue('PingPostURL', array($this, 'PingPostURL')); $this->addBlock('Pings', array($this, 'Pings')); $this->addBlock('PingsFooter', array($this, 'PingsFooter')); $this->addBlock('PingsHeader', array($this, 'PingsHeader')); $this->addValue('PingTime', array($this, 'PingTime')); $this->addValue('PingTitle', array($this, 'PingTitle')); $this->addValue('PingAuthorURL', array($this, 'PingAuthorURL')); # System $this->addValue('SysBehavior', array($this, 'SysBehavior')); $this->addBlock('SysIf', array($this, 'SysIf')); $this->addBlock('SysIfCommentPublished', array($this, 'SysIfCommentPublished')); $this->addBlock('SysIfCommentPending', array($this, 'SysIfCommentPending')); $this->addBlock('SysIfFormError', array($this, 'SysIfFormError')); $this->addValue('SysFeedSubtitle', array($this, 'SysFeedSubtitle')); $this->addValue('SysFormError', array($this, 'SysFormError')); $this->addValue('SysPoweredBy', array($this, 'SysPoweredBy')); $this->addValue('SysSearchString', array($this, 'SysSearchString')); $this->addValue('SysSelfURI', array($this, 'SysSelfURI')); }